ClaudeCodeMod

All shelves / Mods / Workflow

kgai-mod

By kgaidev

kgai-mod is a Claude Code workflow mod by kgaidev.

Draws a status line when a decision is recorded, and Record and Skip in confirm mode, for kgai, the team's shared memory of why the code changed.

Draws

Install

The marketplace name is kgai-marketplace.

Shell and Claude Code
claude plugin marketplace add kgaidev/kgai
claude plugin install kgai@kgai-marketplace
/plugin install kgai-mod@kgai-marketplace
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
License
MIT
Repo stars
6
Last change
2026-10-05

What it can reach

  • Draws in the session
  • Reaches the network or an outside service
  • Sees tool calls
  • Runs a command when you press
  • Calls another program on this machine

It needs the kgai plugin as well, because that plugin installs the engine and the skills. Without the mod, the kgai plugin's Stop hook continues each turn that edited code, and the model answers in the transcript whether there was a decision to record. The mod takes that capture instruction out of the hook result, so the turn is not continued, and asks the same question in a tool-less fork of the session when the turn ends. The fork reuses the session's prompt cache and adds no row to the transcript. It records only after kg ingest --dry-run accepts the payload. You see a status line for a few seconds when a decision was recorded. A failed check stays out of the transcript, goes to the debug log, and toasts at most once per session. capture defaults to auto, which records silently and shows that line. confirm shows the decision above the prompt with Record and Skip, and the band goes away with the next prompt. On a surface that does not draw above the prompt, such as the VS Code extension alone or claude -p, confirm records as auto does. off records nothing and leaves the classic nudge on. compact defaults to on: each kg search, kg context, kg ingest, kg sync, and kgai skill call draws as one dim line. Only the drawing changes. The model and the stored transcript still have everything. A failed call shows in full, and so do kg init, kg config, and the kg-trust skill. Record runs kg ingest. The kgai plugin's Stop hooks still run, so team sync is unchanged. Team sync is opt-in and sends decision events to an S3 bucket you own. The status line, the toast, and the band work in the terminal and the desktop app's Code tab. The mod is experimental.

The marketplace name is kgai-marketplace. The marketplace also holds kgai, which this mod needs installed first. The marketplace source is ./mods/kgai-mod. The status line and the Record and Skip band are why this page files it under workflow. memory-fork draws what the memory fork changed above the prompt, and refuses the session's writes into the memory folder. cortexdb-live, for CortexDB, AI memory in one SQLite file, draws what it recalled above the prompt, and plans that lookup with Haiku before the model reads it. This one records the team's structural decisions from a side question at the end of a turn that edited code. kg is the command the kgai plugin installs.

Demo

The kgai-mod section of the kgai README: the side question at the end of a turn that edited code, the recorded status line, the install line, and the one-line kgai rows.
Screenshot of the author's GitHub page.

What it hooks into

  • ui.renderDraws into the sessionToolUseToolResultAbovePrompt
  • turn.startWhen Claude starts a turn
  • prompt.submitWhen you send a prompt
  • tool.callAround a tool call, where it can hold oneBashSkill
  • classic.StopA Claude Code event
  • turn.completeWhen a turn ends

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's source, 3 files. They load when you open them.

Facts

Author
kgaidev
Category
Workflow
Marketplace
kgai-marketplace
Repo
kgaidev/kgai
Folder
mods/kgai-mod
Version
0.1.0
License
MIT
Repo stars
6
Last change
2026-10-05
Language
Go
Files
9

Other mods in Workflow

glanceflowAntreas-StrbHolds a commandDraws a checklist above the prompt with the plan, the step Claude is on, how far along it is, and when Claude needs you.batonashishsk93Draws a band above the prompt of this session, the other sessions, and the tasks passed between them.todosbengousDraws the repository's TODOs in a scrolling band above the prompt, newest first, including findings an agent recorded.zcode-executorKyoMioFor zcode-executor, which hands Claude's tasks to the local ZCode agent, draws a live pane of this project's ZCode sessions and the requests waiting on you.arbeitslistenikisgeDraws a to-do field beside the chat, queues tasks while Claude works, and starts the next one, with Claude's plan above it.workfacescodge-24Draws the agent's notes in a panel and hands that file back verbatim after every compaction, auto or manual.brewmod-reminderskochetkov-maKeeps reminders as Markdown files that fire on time, draws a band of the fired ones in a later session, and has Claude run one when you pick it.navigatorqf-studioHolds a commandDraws a /nav pane of context, cost, reads, and the next task step as a button, and a phase band above the prompt, and guards fan-out reads.aftermidudevQueues prompts with /after while Claude works, draws the queue above the prompt, and sends the next one as your message when the turn ends.narratormidudevSpeaks a one or two sentence recap after each turn, in your language, with your system's best free voice, switched from the footer or /narrator.cc10xromiluz13For cc10x, which writes every workflow to disk, draws the phase, running agent, and next step above the prompt, and a pane of the whole step chain.engineerswingermanHolds a commandFor DAE, a spec- and test-driven methodology kit, draws a pipeline band and a /dae pane, and denies unconfirmed pushes and a frontier model on a loop.
All 396 in Workflow