Skip to content
KurrentDB

Your coding agents

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

The desktop setup wizard's harnesses step: the coding agents found on this Mac, with Record ticked and the Tools column marked bundled or ticked
The setup wizard's agents step: each agent found on your computer, with Record and Tools

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

The desktop app's Settings on the Harnesses page: each coding tool found on this computer, with Session recording and Agent tools ticks, Repair and Rescan
Settings → Harnesses: Session recording and Agent tools for each coding tool found

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

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

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

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

  • Install kcap for it: setup does it when it detects ~/.gemini/antigravity/, ~/.gemini/antigravity-cli/, or antigravity / agy on your PATH; later, Settings → Harnesses in the desktop app or kcap 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 --antigravity reads ~/.gemini/antigravity/brain/ (the IDE) and ~/.gemini/antigravity-cli/brain/ (the agy CLI)
  • If your config lives elsewhere: if GEMINI_CLI_HOME is set, kcap looks for .gemini inside 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 agy CLI share a home and are imported together. Imported sessions carry no per-generation cost
  • Install kcap for it: setup does it when it detects claude on your PATH; later, Settings → Harnesses in the desktop app or kcap 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 --claude reads ~/.claude/projects/
  • If your config lives elsewhere: if CLAUDE_CONFIG_DIR points somewhere other than ~/.claude, kcap follows it
  • Hosted and review: Hosted agent, agent review, review-flow driver and reviewer, local eval judge
  • Worth knowing: /clear ends the session and starts a new one that inherits nothing
  • Install kcap for it: setup does it when it detects codex on your PATH, or ~/.codex; later, Settings → Harnesses in the desktop app or kcap 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 --codex reads ~/.codex/sessions/
  • If your config lives elsewhere: if CODEX_HOME points 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-access leaves the sandbox allowlist alone
  • Install kcap for it: setup does it when it detects ~/.copilot/ or copilot on your PATH; later, Settings → Harnesses in the desktop app or kcap 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 --copilot reads ~/.copilot/session-state/
  • If your config lives elsewhere: if COPILOT_HOME points 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
  • Install kcap for it: setup does it when it detects ~/.cursor; later, Settings → Harnesses in the desktop app or kcap 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 --cursor reads ~/.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_PATH points at cursor-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
  • Install kcap for it: setup does it when it detects ~/.gemini/ or gemini on your PATH; later, Settings → Harnesses in the desktop app or kcap 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 --gemini reads ~/.gemini/tmp/<project>/chats/
  • If your config lives elsewhere: if GEMINI_CLI_HOME is set, kcap looks for .gemini inside 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
  • Install kcap for it: setup does it when it detects ~/.grok/ or grok on your PATH; later, Settings → Harnesses in the desktop app or kcap 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 --grok reads ~/.grok/sessions/<encoded-cwd>/<sid>/updates.jsonl plus subagents
  • If your config lives elsewhere: if GROK_HOME points 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
  • Install kcap for it: setup does it when it detects ~/.kiro/, kiro or kiro-cli on your PATH; later, Settings → Harnesses in the desktop app or kcap 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.defaultAgent in ~/.kiro/settings/cli.json set 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 --kiro restores 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 --kiro reads ~/.kiro/sessions/cli/
  • If your config lives elsewhere: if KIRO_HOME points 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/*.sh and ~/.kiro/crew/skills, so when Crew is present setup also writes ~/.kiro/hooks/kcap-spawn.sh and 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/sh and 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
  • Install kcap for it: setup does it when it detects ~/.vibe/ or vibe on your PATH; later, Settings → Harnesses in the desktop app or kcap 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-vibe reads ~/.vibe/logs/session/unified/<id>/ and the older session_<ts>/messages.jsonl
  • If your config lives elsewhere: if VIBE_HOME points 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
  • Install kcap for it: setup does it when it detects ~/.config/muse/, ~/.local/share/muse/ or muse on your PATH; later, Settings → Harnesses in the desktop app or kcap plugin install --muse
  • What setup writes: hooks and mcp_servers in ~/.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 --muse reads ~/.local/share/muse/sessions/YYYY/MM/DD/<id>/session.jsonl plus subagent logs
  • If your config lives elsewhere: if XDG_CONFIG_HOME or XDG_DATA_HOME is set, kcap follows it. Muse runs its hooks without those variables, so the install saves them for the hooks: after changing either, run kcap plugin install --muse again 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=0 opts out)
  • Worth knowing: Muse Assistant, Meta’s consumer app, is a different thing: see below
  • Install kcap for it: setup does it when it detects ~/.config/opencode/, ~/.local/share/opencode/ or opencode on your PATH; later, Settings → Harnesses in the desktop app or kcap 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 opencode 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 --opencode reads ~/.local/share/opencode/opencode.db - the first import downloads a small SQLite library into ~/.cache/kcap (KCAP_SQLITE_NATIVE_BASE_URL for a mirror)
  • If your config lives elsewhere: if OPENCODE_CONFIG_DIR is set, kcap writes OpenCode’s config there, and it reads OpenCode’s data from under XDG_DATA_HOME when that is set
  • Hosted and review: Hosted agent; unattended reviewer
  • Worth knowing: No native end event; the watcher synthesises one. kcap import --reimport retries sessions the local ledger marked complete
  • Install kcap for it: setup does it when it detects ~/.pi/agent/ or pi on your PATH; later, Settings → Harnesses in the desktop app or kcap plugin install --pi
  • What setup writes: a TypeScript extension at ~/.pi/agent/extensions/kcap.ts for 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 --pi reads ~/.pi/agent/sessions/
  • If your config lives elsewhere: if PI_CODING_AGENT_DIR points 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_MODEL picks 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 pi 0.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 downgrade kcap daemon reviewer affirm --vendor pi accepts the installed build, as long as it is still 0.85.1 or newer

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

The desktop app's Settings on the Accounts page, with each coding agent's accounts and their usage
Settings → Accounts in the desktop app

From a terminal:

Terminal window
kcap accounts # list, with directories found but not added
kcap accounts add claude ~/.claude-work
kcap accounts add codex ~/.codex-oss
kcap accounts rename <id> "Work"
kcap accounts remove <id> # removes kcap from it; the directory and its login stay
kcap accounts rewire [<id>] # install storing again where it failed or was undone