What is kgai-mod?
kgai-mod is a Claude Code mod by kgaidev that experimental kgai add-on for Claude Code with function hooks: checks each code-editing turn for a structural decision on the side, records it without a line in the transcript, and draws. It is listed under Interface and has 6 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | kgaidev |
| Repository | kgaidev/kgai |
| Popularity | 6 GitHub stars |
| Category | Interface |
| Security | Review before installing (60/100) |
| Rank | #655 of 5,272 Claude Code mods; #252 in Interface |
| License | MIT |
| Last commit | 2026-10-05 |
| Stars this week | +1 |
| Hooks | 6 events |
| Sees | /"^(Edit|Write|MultiEdit|NotebookEdit)$"/ calls, Bash calls, Skill calls, classic hooks, every prompt |
| Draws on | ToolUse, ToolResult, AbovePrompt |
Is kgai-mod safe to install?
kgai-mod scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.env.get | reads env vars |
$.fs.stat | reads files |
$.model.fork | drives Claude |
$.process.run | runs processes |
$.session.surfaces | |
$.state.get | |
$.state.set | |
$.ui.log | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install kgai-mod?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/kgaidev/kgai claude plugin validate ./kgai/mods/kgai-mod
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add kgaidev/kgai && claude plugin install kgai-mod@kgai-marketplace
Or ask Claude to set it up
Paste this into Claude Code and it installs kgai-mod for you:
Install the "kgai-mod" Claude Code mod from https://github.com/kgaidev/kgai/tree/main/mods/kgai-mod. Run claude plugin validate on it first and show me what it can access before you enable it.