Your coding agents
What setup installs
Section titled “What setup installs”Setup detects every supported coding agent on your computer and installs kcap into each one you say yes to: the hooks that store its sessions and, where the agent supports them, kcap’s tools. In the desktop app that is the agents step of setup. When kcap setup hands over to the web app’s first-run page, that page lists the agents it found and you pick there. Each section below says what setup writes for that agent

Adding an agent later
Section titled “Adding an agent later”Install an agent after setup, or change your mind about one, and kcap needs to be installed into it or taken out. The quickest route is Settings → Harnesses in the desktop app, which lists each coding tool found on your computer:
- Session recording stores that agent’s sessions; tick it to install kcap’s hooks, untick it to remove them. Sessions already stored are kept
- Agent tools installs kcap’s MCP servers and skills, so the agent can search stored sessions and use kcap from its chat. Claude Code and Codex install them together with the hooks, under one tick labelled Session recording and agent tools; Grok Build has no Agent tools tick
- Repair reinstalls what kcap set up for that agent, and Rescan looks again after you install a new one
Ticking and unticking run the same installs as setup, and apply to every profile on your computer. Restart the agent afterwards so it loads or drops the change

From a terminal, kcap plugin install with the agent’s flag does the same, for example kcap plugin install --codex; Claude Code is the default with no flag. kcap plugin remove --codex takes it out again
Running the whole of setup again, from Set up kcap… in the desktop app’s menu, also works: use it to pick up several agents at once, change who can read new sessions, or import history you skipped
Importing history
Section titled “Importing history”Setup also offers each agent’s existing history: the desktop app’s history step lists each agent’s sessions, with Customize to choose repositories. Afterwards, run kcap import with the agent’s flag, given in each section below
The git hook
Section titled “The git hook”Every install also adds a kcap git hook to your global git config, which is how a commit is normally filed under the session that made it. Cursor, OpenCode and Antigravity are the exceptions: their commits are read from the agent’s shell commands instead. git config --global hook.kcap.enabled false turns the hook off
Project-scoped installs
Section titled “Project-scoped installs”For Claude Code and Codex, kcap plugin install --project writes into the repository instead of your home directory, so the install travels with it. Updates do not refresh a project-scoped install: run it again after upgrading kcap
Antigravity
Section titled “Antigravity”- Install kcap for it: setup does it when it detects
~/.gemini/antigravity/,~/.gemini/antigravity-cli/, orantigravity/agyon your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --antigravity - What setup writes: a plugin directory at
~/.gemini/config/plugins/kcap/, MCP in~/.gemini/config/mcp_config.json, skills in~/.gemini/skills/, the steering block shared with Gemini CLI in~/.gemini/GEMINI.md - Loading the hooks: Restart the IDE so it reloads the plugin
- What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --antigravityreads~/.gemini/antigravity/brain/(the IDE) and~/.gemini/antigravity-cli/brain/(theagyCLI) - If your config lives elsewhere: if
GEMINI_CLI_HOMEis set, kcap looks for.geminiinside it, as it does for Gemini CLI - Hosted and review: Hosted agent (
agy); unattended reviewer - Worth knowing: One vendor, two surfaces: the IDE and the
agyCLI share a home and are imported together. Imported sessions carry no per-generation cost
Claude Code
Section titled “Claude Code”- Install kcap for it: setup does it when it detects
claudeon your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install - What setup writes: the Claude Code plugin registered in
~/.claude/settings.json; everything else comes from the plugin bundle: hooks, MCP servers, skills - Loading the hooks: Starts a fresh session; no trust prompt
- What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --claudereads~/.claude/projects/ - If your config lives elsewhere: if
CLAUDE_CONFIG_DIRpoints somewhere other than~/.claude, kcap follows it - Hosted and review: Hosted agent, agent review, review-flow driver and reviewer, local eval judge
- Worth knowing:
/clearends the session and starts a new one that inherits nothing
- Install kcap for it: setup does it when it detects
codexon your PATH, or~/.codex; later, Settings → Harnesses in the desktop app orkcap plugin install --codex - What setup writes: hooks in
~/.codex/hooks.json, MCP servers and sandbox network access in~/.codex/config.toml, skills in~/.agents/skills/ - Loading the hooks: Codex runs new hooks only after you trust them; see Trust the hooks once below
- What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --codexreads~/.codex/sessions/ - If your config lives elsewhere: if
CODEX_HOMEpoints somewhere other than~/.codex, kcap follows it - Hosted and review: Hosted agent, agent review, review-flow driver and reviewer
- Worth knowing: Setup pre-approves kcap’s read-only tool servers in Codex and sets a long timeout on the flows server so a round is not cut short. It also lets Codex’s sandbox reach the server of every kcap profile, so its skills can connect; disconnecting Codex keeps that access.
--skip-codex-network-accessleaves the sandbox allowlist alone
Copilot CLI
Section titled “Copilot CLI”- Install kcap for it: setup does it when it detects
~/.copilot/orcopiloton your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --copilot - What setup writes: hooks in
~/.copilot/hooks/kcap.json, MCP in~/.copilot/mcp-config.json, a steering block in~/.copilot/copilot-instructions.md, skills in~/.agents/skills/ - Loading the hooks: Takes effect on the next start
- What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --copilotreads~/.copilot/session-state/ - If your config lives elsewhere: if
COPILOT_HOMEpoints somewhere other than~/.copilot, kcap follows it - Hosted and review: Hosted agent; review-flow reviewer
- Worth knowing: Also reads
.claude/skills, so a skill approved only for Claude Code reaches it
Cursor
Section titled “Cursor”- Install kcap for it: setup does it when it detects
~/.cursor; later, Settings → Harnesses in the desktop app orkcap plugin install --cursor - What setup writes: hooks in
~/.cursor/hooks.json, MCP in~/.cursor/mcp.json, skills in~/.agents/skills/ - Loading the hooks: Takes effect on the next start
- What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --cursorreads~/.cursor/projects/<workspace>/agent-transcripts/- Agent-mode sessions only; Chat, Inline Edit and Tab are not sessions - Hosted and review: Hosted agent (structured conversation) and review-flow reviewer;
KCAP_CURSOR_PATHpoints atcursor-agent - Worth knowing: Commits are read from the agent’s shell commands rather than the git hook, because one Cursor process can host several sessions
Gemini CLI
Section titled “Gemini CLI”- Install kcap for it: setup does it when it detects
~/.gemini/orgeminion your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --gemini - What setup writes: a hooks block and MCP entries in
~/.gemini/settings.json, skills in~/.gemini/skills/, a steering block in~/.gemini/GEMINI.md - Loading the hooks: Takes effect on the next start
- What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --geminireads~/.gemini/tmp/<project>/chats/ - If your config lives elsewhere: if
GEMINI_CLI_HOMEis set, kcap looks for.geminiinside it instead of in your home directory - Hosted and review: Hosted agent; unattended reviewer
- Worth knowing: Imports recover the working directory from the session’s initial context when present; recordings without it cannot be placed by repository filters
Grok Build
Section titled “Grok Build”- Install kcap for it: setup does it when it detects
~/.grok/orgrokon your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --grok - What setup writes: hooks in
~/.grok/hooks/kcap.json, skills in~/.agents/skills/; no MCP registration - Loading the hooks: Restart any running
grok - What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --grokreads~/.grok/sessions/<encoded-cwd>/<sid>/updates.jsonlplus subagents - If your config lives elsewhere: if
GROK_HOMEpoints somewhere other than~/.grok, kcap follows it - Hosted and review: Hosted agent; unattended reviewer
- Worth knowing: Without MCP registration, Grok Build has no kcap tools in the session; it is stored and importable
Kiro and Kiro Crew
Section titled “Kiro and Kiro Crew”- Install kcap for it: setup does it when it detects
~/.kiro/,kiroorkiro-clion your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --kiro - What setup writes: a new agent definition file,
~/.kiro/agents/kcap.json, which copies the settings of your default Kiro agent and adds kcap’s capture hook;chat.defaultAgentin~/.kiro/settings/cli.jsonset to it, so Kiro starts with that agent; MCP in~/.kiro/settings/mcp.json; skills in~/.kiro/skills/. The Kiro program itself is not touched - Loading the hooks: Takes effect on the next start. Setup says before you consent that it changes your default agent;
kcap plugin remove --kirorestores the previous one and deletes the file - What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --kiroreads~/.kiro/sessions/cli/ - If your config lives elsewhere: if
KIRO_HOMEpoints somewhere other than~/.kiro, kcap follows it - Hosted and review: Hosted agent; unattended reviewer
- Worth knowing: Kiro Crew regenerates its profiles at every start and reads only
~/.kiro/hooks/*.shand~/.kiro/crew/skills, so when Crew is present setup also writes~/.kiro/hooks/kcap-spawn.shand copies the skills there; restart Crew once. Crew chats are stored with each spawned sub-agent nested under them. Not on Windows: Crew runs its hooks through/bin/shand checks the script’s execute bit, and Windows has neither, so there Kiro’s own sessions are stored and Crew chats are not. Synced repository skills do not reach Crew
Mistral Vibe
Section titled “Mistral Vibe”- Install kcap for it: setup does it when it detects
~/.vibe/orvibeon your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --mistral-vibe - What setup writes: hooks merged into
~/.vibe/hooks.toml, MCP in~/.vibe/config.toml, skills in~/.agents/skills/ - Loading the hooks: Restart any running
vibe - What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --mistral-vibereads~/.vibe/logs/session/unified/<id>/and the oldersession_<ts>/messages.jsonl - If your config lives elsewhere: if
VIBE_HOMEpoints somewhere other than~/.vibe, kcap follows it - Hosted and review: Stored and importable; not hosted
- Worth knowing: Capture fails closed for Mistral Vibe: a transcript it cannot read safely is not uploaded
Muse Code
Section titled “Muse Code”- Install kcap for it: setup does it when it detects
~/.config/muse/,~/.local/share/muse/ormuseon your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --muse - What setup writes: hooks and
mcp_serversin~/.config/muse/settings.json, skills in~/.agents/skills/ - Loading the hooks: Restart any running
muse - What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --musereads~/.local/share/muse/sessions/YYYY/MM/DD/<id>/session.jsonlplus subagent logs - If your config lives elsewhere: if
XDG_CONFIG_HOMEorXDG_DATA_HOMEis set, kcap follows it. Muse runs its hooks without those variables, so the install saves them for the hooks: after changing either, runkcap plugin install --museagain or press Repair on its row in Settings → Harnesses - Hosted and review: Hosted agent over MSP, Muse’s own protocol, with no terminal surface; unattended reviewer (
KCAP_MUSE_UNATTENDED_REVIEWER=0opts out) - Worth knowing: Muse Assistant, Meta’s consumer app, is a different thing: see below
OpenCode
Section titled “OpenCode”- Install kcap for it: setup does it when it detects
~/.config/opencode/,~/.local/share/opencode/oropencodeon your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --opencode - What setup writes: a plugin on the event bus at
~/.config/opencode/plugins/kcap.ts, MCP in~/.config/opencode/opencode.json, a steering block in~/.config/opencode/AGENTS.md, skills in~/.agents/skills/ - Loading the hooks: Restart any running
opencodeso it reloads the plugin - What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --opencodereads~/.local/share/opencode/opencode.db- the first import downloads a small SQLite library into~/.cache/kcap(KCAP_SQLITE_NATIVE_BASE_URLfor a mirror) - If your config lives elsewhere: if
OPENCODE_CONFIG_DIRis set, kcap writes OpenCode’s config there, and it reads OpenCode’s data from underXDG_DATA_HOMEwhen that is set - Hosted and review: Hosted agent; unattended reviewer
- Worth knowing: No native end event; the watcher synthesises one.
kcap import --reimportretries sessions the local ledger marked complete
- Install kcap for it: setup does it when it detects
~/.pi/agent/orpion your PATH; later, Settings → Harnesses in the desktop app orkcap plugin install --pi - What setup writes: a TypeScript extension at
~/.pi/agent/extensions/kcap.tsfor capture and an MCP bridge (Pi has no native MCP), a steering block in~/.pi/agent/AGENTS.md, skills in~/.agents/skills/ - Loading the hooks: Takes effect on the next start
- What is stored: prompts, replies, tool calls and results, token usage where the agent reports it, subagents, and the commits it makes
- Import its history:
kcap import --pireads~/.pi/agent/sessions/ - If your config lives elsewhere: if
PI_CODING_AGENT_DIRpoints somewhere other than~/.pi/agent, kcap follows it - Hosted and review: Hosted agent; unattended reviewer on macOS and Linux, with read-only file tools, no shell and none of your interactive extensions;
KCAP_PI_MODELpicks its model. Not a reviewer on Windows: each review runs in a directory that holds the reviewer’s transcript, and the daemon cannot make that directory owner-only there - Worth knowing: The reviewer needs
pi0.85.1 or newer, the oldest build its containment flags were measured on; anything older is refused and no setting admits it. The daemon also records the version it first found as its minimum, so after a downgradekcap daemon reviewer affirm --vendor piaccepts the installed build, as long as it is still 0.85.1 or newer
Muse Assistant
Section titled “Muse Assistant”Meta’s consumer Muse app is a general assistant, not a coding agent, and connects differently: give it the connect-kcap skill from the kcap-cli repository, say Connect kcap with your workspace address, and it installs kcap inside its VM, signs you in with a device code and registers kcap’s tools as a custom connector. Storing chats is opt-in per chat (record my chats, then a clear yes); stored chats are always private to you. Pages and flows are not part of the connector
More than one Claude Code or Codex account
Section titled “More than one Claude Code or Codex account”If you keep separate sign-ins, such as work and personal, each in its own config directory, kcap stores sessions from every one and can start a session under any of them
In the desktop app, Settings → Accounts lists each account under its agent, with Default on the agent’s standard directory, used when a session picks no account. Each row shows the account’s state, its plan and usage bars for its limits: how much of each window (five hours, a week) is used and when it resets, amber from 75% and red when the limit is hit. Cards at the top count the accounts ready for a long run, the next reset and the accounts that need a fix, and a row that needs one shows the command to run
Add account… offers the directories kcap found on your computer, or Choose a Claude Code folder… and Choose a Codex folder… to pick one by hand; Set up stores sessions from a default directory kcap found but has not set up. Each row’s … menu has Refresh, Rename, Reconnect and Remove. The launcher’s account picker chooses one for a session, or Use default

From a terminal:
kcap accounts # list, with directories found but not addedkcap accounts add claude ~/.claude-workkcap accounts add codex ~/.codex-osskcap accounts rename <id> "Work"kcap accounts remove <id> # removes kcap from it; the directory and its login staykcap accounts rewire [<id>] # install storing again where it failed or was undone