Commands
The kcap CLI command surface, grouped by what you’d reach for. For every command, kcap <command> --help gives the full flag list. This page is a navigable summary.
Setup and auth
Section titled “Setup and auth”kcap setup # interactive wizardkcap setup --server-url <url> --no-prompt # scripted / CIkcap login # OAuth in browserkcap login --device # device flow (SSH / headless)kcap logout # delete stored tokenskcap whoami # show authenticated userkcap status # server health checkTokens are stored at ~/.config/kcap/tokens.json. Auth0 tokens auto-refresh; direct GitHub tokens expire after 24 hours and the next CLI call will reprompt.
See Install the CLI for the wizard walkthrough.
Session lookup
Section titled “Session lookup”kcap recap <sessionId> # AI-generated summarykcap recap --full <sessionId> # complete transcriptkcap recap --chain <sessionId> # across the continuation chainkcap recap --chain --full <sessionId>
kcap errors <sessionId> # extract tool-call errorskcap errors --chain <sessionId>
kcap validate-plan <sessionId> # verify all plan items completedThe identifier can be a session GUID or a meta-session slug. Inside Claude or Codex with the plugin installed, the session ID is resolved from the environment automatically.
More: Session recap, Errors & plan validation.
Recording control
Section titled “Recording control”kcap hide # mark current session owner-onlykcap hide <sessionId> # specific session
kcap disable # stop recording + delete server data (irreversible)kcap disable <sessionId>
kcap ignore . # ignore current directory (no capture for sessions under it)kcap ignore ~/code/xkcap ignore --listkcap ignore --remove ~/code/xMore: Visibility & sharing.
Evaluations and review
Section titled “Evaluations and review”kcap eval <sessionId> # LLM-as-judge, 13 questionskcap eval --model opus <sessionId>kcap eval --chain <sessionId>kcap eval --questions safety <sessionId>kcap eval --skip efficiency <sessionId>kcap eval --threshold 5000 <sessionId>kcap eval --list-questions
kcap review <pr-url> # Claude with MCP context toolsMore: Evaluations, PR review.
MCP servers (for agents)
Section titled “MCP servers (for agents)”kcap mcp sessions # stdio MCP server: search past sessionsThe Capacitor plugin (installed by kcap setup) auto-registers this server for both Claude Code and Codex CLI, so it’s available out of the box on either harness.
The server is repo-aware — cd into a project before launching the agent and search_sessions defaults to that repo. Three tools: search_sessions, get_session_summary, get_session_transcript. See Session recall.
Importing past sessions
Section titled “Importing past sessions”kcap import # everything detected (Cursor = current workspace)kcap import --all # every session/repo (Cursor still narrows to current workspace)kcap import --claude # only Claude sessionskcap import --codex # only Codex sessionskcap import --cursor # only Cursor (current workspace)kcap import --cursor --cursor-all-workspaces # only Cursor, every workspacekcap import --cursor --cursor-workspace ~/p # only Cursor, one specific workspacekcap import --org # narrow by scope: org reposkcap import --repo owner/name # narrow by scope: one repokcap import --repo . # narrow by scope: current cwd's repokcap import --org --yes # skip confirmationkcap import --org --private # mark as Only Visible to Youkcap import --org --since 2026-01-01 # on or after this datekcap import --org --cwd /path/to/project # filter by working directorykcap import --org --session abc123 # single session (dashed or dashless GUID)More: Import your history.
Hooks and plugin
Section titled “Hooks and plugin”kcap plugin install # Claude hooks, user scopekcap plugin install --codex # Codex hooks + agent skills, user scopekcap plugin install --skills # Agent skills only (~/.agents/skills/), no Codex hookskcap plugin install --project # Claude hooks, current repokcap plugin install --codex --project # Codex hooks in <repo>/.codex/hooks.json, skills user-widekcap plugin remove --codex # Remove Codex hooks + agent skillskcap plugin remove --skills # Remove agent skills--skills installs the five kcap skills (kcap-recap, kcap-errors, kcap-hide, kcap-disable, kcap-validate-plan) to ~/.agents/skills/. Codex, Cursor, and any agent that honours the .agents/skills/ convention picks them up automatically. Use --codex instead to also install Codex hooks.
Project-scope installs must be run from inside a git working tree. Skills are always user-wide; --project only affects hooks.
Refresh on upgrade
Section titled “Refresh on upgrade”The npm postinstall hook refreshes all user-scope kapacitor installations on every npm install -g @kurrent/kapacitor, so you always pick up the current CLI version’s skills (~/.agents/skills/kapacitor-*), Codex hook commands (~/.codex/hooks.json), and Claude plugin registration (~/.claude/settings.json). Each refresh is gated on a marker file written by your previous setup — fresh systems that never opted in are left untouched, and project-scope installs (--project) are not auto-refreshed.
These refresh commands are normally invoked by the postinstall hook, but you can run them by hand:
kapacitor plugin install --skills --if-installed # Refresh skills only if previously installedkapacitor plugin install --codex --if-installed # Refresh Codex hooks only if previously installedkapacitor plugin install --if-installed # Refresh Claude plugin registration only if previously installedErrors during a --if-installed refresh are swallowed so the upgrade never breaks npm install.
Daemon
Section titled “Daemon”kcap daemon start # foreground (default --name = OS username)kcap daemon start -d # backgroundkcap daemon start --name laptop -dkcap daemon statuskcap daemon status --name laptopkcap daemon stop --name laptopkcap daemon stop --yes # stop all, no promptkcap daemon doctor # diagnose lock-file statekcap daemon doctor --clean # also remove stale lock/pid files
kcap repos # list known reposkcap repos add .kcap repos remove ~/dev/oldMore: Hosted agents.
Configuration and profiles
Section titled “Configuration and profiles”kcap config showkcap config set <key> <value>
kcap profile add work --server-url https://acme.kcap.aikcap profile listkcap profile show workkcap profile remove work
kcap use work # bind 'work' to current repokcap use work --global # set as global defaultkcap use work --save # write .kcap.json (team-share)More: Configuration & profiles.
kcap update # check npm for a newer releaseThe CLI checks for updates lazily (24-hour cache). To force a check, just run kcap update.
Uninstall
Section titled “Uninstall”To remove kcap from this machine, run:
kcap uninstall # interactive, user-scope removalkcap uninstall --yes # non-interactivekcap uninstall --project --yes # also strip project-scope hooks in cwd's repokcap uninstall --keep-config # remove integrations, keep ~/.config/kcapuninstall covers every supported agent in one go: it stops running daemons and watcher processes, strips kcap entries from user-level Claude Code, Codex CLI, and Cursor hook files (preserving any non-kcap entries), removes agent skills under ~/.agents/skills/ (plus the legacy ~/.codex/skills/kcap-* folders), and deletes ~/.config/kcap/.
--project additionally cleans up <repo>/.claude/settings.local.json and <repo>/.codex/hooks.json in the current git working tree (errors if you’re not inside one). Cursor only has a user-scope hooks.json, so --project does not affect it. Project-scope hooks in other repos are not touched — re-run from each repo that has them.
Use --keep-config to preserve profiles, tokens, and ignore lists when you plan to reinstall. For finer-grained removal (only Codex hooks, only Cursor, only skills), use kcap plugin remove [--codex|--cursor|--skills] instead.