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.

Updated 2026-10-05

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.

TypeClaude code mod
Authorkgaidev
Repositorykgaidev/kgai
Popularity6 GitHub stars
CategoryInterface
SecurityReview before installing (60/100)
Rank#655 of 5,272 Claude Code mods; #252 in Interface
LicenseMIT
Last commit2026-10-05
Stars this week+1
Hooks6 events
Sees/"^(Edit|Write|MultiEdit|NotebookEdit)$"/ calls, Bash calls, Skill calls, classic hooks, every prompt
Draws onToolUse, 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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.env.getreads env vars
$.fs.statreads files
$.model.forkdrives Claude
$.process.runruns processes
$.session.surfaces
$.state.get
$.state.set
$.ui.logdraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install kgai-mod?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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.