Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
kairocode
command
Command kairocode is a coding agent on kairo: it survives crashes, waits without a process, and runs subagents in parallel without redoing finished work.
|
Command kairocode is a coding agent on kairo: it survives crashes, waits without a process, and runs subagents in parallel without redoing finished work. |
|
internal
|
|
|
acp
Package acp is KairoCode as an ACP agent (Agent Client Protocol v1, ADR 0002): an editor starts `kairocode acp` and talks JSON-RPC over its stdin and stdout.
|
Package acp is KairoCode as an ACP agent (Agent Client Protocol v1, ADR 0002): an editor starts `kairocode acp` and talks JSON-RPC over its stdin and stdout. |
|
agents
Package agents is the ACP agents a user can install from ACP's registry and run as a provider (ADR 0015): the registry, read and kept for an hour; what this machine can run; installing one, when the user chose to; and what is installed, and how to start it.
|
Package agents is the ACP agents a user can install from ACP's registry and run as a provider (ADR 0015): the registry, read and kept for an hour; what this machine can run; installing one, when the user chose to; and what is installed, and how to start it. |
|
atomicfile
Package atomicfile writes a file whole or not at all: to a temporary file of its own in the same directory, synced, then renamed over the file.
|
Package atomicfile writes a file whole or not at all: to a temporary file of its own in the same directory, synced, then renamed over the file. |
|
cli
Package cli is the kairocode command (design 8.2).
|
Package cli is the kairocode command (design 8.2). |
|
clipboard
Package clipboard reads the clipboard's image, for a paste (ADR 0026, 追記 2026-10-28): the terminal sends only text, so the UI reads the clipboard itself, with the system's own command, outside KairoCode's sandbox (the clipboard is the desktop's).
|
Package clipboard reads the clipboard's image, for a paste (ADR 0026, 追記 2026-10-28): the terminal sends only text, so the UI reads the clipboard itself, with the system's own command, outside KairoCode's sandbox (the clipboard is the desktop's). |
|
config
Package config is where KairoCode's settings are: kairocode.json, the user's ($XDG_CONFIG_HOME/kairocode, else ~/.config/kairocode) and a project's (at its root), and the user's other files beside it.
|
Package config is where KairoCode's settings are: kairocode.json, the user's ($XDG_CONFIG_HOME/kairocode, else ~/.config/kairocode) and a project's (at its root), and the user's other files beside it. |
|
daemon
Package daemon is the one process per data directory that runs kairo (ADR 0008), and the client every other kairocode process uses to reach it.
|
Package daemon is the one process per data directory that runs kairo (ADR 0008), and the client every other kairocode process uses to reach it. |
|
flowchart
Package flowchart is the shape of a flow (ADR 0003), read from its Starlark script: the primitives it calls (agent, tool, ask, decide, parallel), in the order, branches and loops the script puts them.
|
Package flowchart is the shape of a flow (ADR 0003), read from its Starlark script: the primitives it calls (agent, tool, ask, decide, parallel), in the order, branches and loops the script puts them. |
|
flowfile
Package flowfile reads and writes a project's flow scripts (ADR 0003): <dir>/.kairocode/workflows/<name>.star, and their drafts (ADR 0030).
|
Package flowfile reads and writes a project's flow scripts (ADR 0003): <dir>/.kairocode/workflows/<name>.star, and their drafts (ADR 0030). |
|
invariants
Package invariants checks the invariants in AGENTS.md that can be read off the sources: deterministic workflow code (1), declared tool effects (3) and no secrets in the tree (6).
|
Package invariants checks the invariants in AGENTS.md that can be read off the sources: deterministic workflow code (1), declared tool effects (3) and no secrets in the tree (6). |
|
jsonrpc
Package jsonrpc is JSON-RPC 2.0 over newline-delimited JSON: ACP's stdio transport (ADR 0002), for KairoCode as an ACP agent and as an ACP client of other agents (ADR 0014).
|
Package jsonrpc is JSON-RPC 2.0 over newline-delimited JSON: ACP's stdio transport (ADR 0002), for KairoCode as an ACP agent and as an ACP client of other agents (ADR 0014). |
|
locale
Package locale is the language a person reads KairoCode's reviews in: the words of a flow's review (what it reaches, what a try did), not its labels (REACHES, models), which stay as they are, as a pull request's do.
|
Package locale is the language a person reads KairoCode's reviews in: the words of a flow's review (what it reaches, what a try did), not its labels (REACHES, models), which stay as they are, as a pull request's do. |
|
lsp
Package lsp gives a file's errors as language servers see them (ADR 0009): after a tool writes a file, the server for its language is told of the new content, and the errors it publishes for that file are added to the tool's result, in opencode's form.
|
Package lsp gives a file's errors as language servers see them (ADR 0009): after a tool writes a file, the server for its language is told of the new content, and the errors it publishes for that file are added to the tool's result, in opencode's form. |
|
msg
Package msg holds the conversation's types.
|
Package msg holds the conversation's types. |
|
opencode
Package opencode reads opencode's project definitions, with opencode's meaning (ADR 0002): agents (.opencode/agents/*.md), commands (.opencode/commands/*.md) and skills (SKILL.md under .opencode/skills, .claude/skills and .agents/skills).
|
Package opencode reads opencode's project definitions, with opencode's meaning (ADR 0002): agents (.opencode/agents/*.md), commands (.opencode/commands/*.md) and skills (SKILL.md under .opencode/skills, .claude/skills and .agents/skills). |
|
permission
Package permission decides whether a tool call may run: allow, ask, or deny, from rules shaped as opencode writes them (ADR 0002).
|
Package permission decides whether a tool call may run: allow, ask, or deny, from rules shaped as opencode writes them (ADR 0002). |
|
provider
Package provider adapts model providers to one request/response shape.
|
Package provider adapts model providers to one request/response shape. |
|
runtime
Package runtime opens kairo, declares KairoCode's actions and workflows on it, and gives the server and the CLI a small API over sessions.
|
Package runtime opens kairo, declares KairoCode's actions and workflows on it, and gives the server and the CLI a small API over sessions. |
|
sandbox
Package sandbox runs the commands KairoCode starts inside the operating system's sandbox, after Codex (ADR 0005): writes only under the session's working directory and the temporary directories, no network unless asked, and the directories that hold KairoCode's and other agents' settings kept out of reach.
|
Package sandbox runs the commands KairoCode starts inside the operating system's sandbox, after Codex (ADR 0005): writes only under the session's working directory and the temporary directories, no network unless asked, and the directories that hold KairoCode's and other agents' settings kept out of reach. |
|
sandbox/sandboxtest
Package sandboxtest skips a test that starts commands in KairoCode's sandbox where there is none, and notes so: inside another sandbox (an agent's, or KairoCode's own) one cannot be started (ADR 0031), and scripts/check.sh says how many tests did not run (KAIROCODE_SKIPPED).
|
Package sandboxtest skips a test that starts commands in KairoCode's sandbox where there is none, and notes so: inside another sandbox (an agent's, or KairoCode's own) one cannot be started (ADR 0031), and scripts/check.sh says how many tests did not run (KAIROCODE_SKIPPED). |
|
secrets
Package secrets keeps plugins' credentials (ADR 0025): in the system's key store (macOS's keychain through security, Linux's Secret Service through secret-tool), else in a file only the user can read.
|
Package secrets keeps plugins' credentials (ADR 0025): in the system's key store (macOS's keychain through security, Linux's Secret Service through secret-tool), else in a file only the user can read. |
|
server
Package server is KairoCode's HTTP API (design 8.1): sessions, messages, turns, approvals, undo and redo, and a session's events (SSE).
|
Package server is KairoCode's HTTP API (design 8.1): sessions, messages, turns, approvals, undo and redo, and a session's events (SSE). |
|
store
Package store keeps conversation content by the hash of its content, once (design 2.2, NFR-5).
|
Package store keeps conversation content by the hash of its content, once (design 2.2, NFR-5). |
|
tools
Package tools holds the built-in tools.
|
Package tools holds the built-in tools. |
|
trust
Package trust keeps the folders the user said they trust (ADR 0010): the chat asks before it reads a folder's kairocode.json and .opencode, whose rules and instructions the session would follow.
|
Package trust keeps the folders the user said they trust (ADR 0010): the chat asks before it reads a folder's kairocode.json and .opencode, whose rules and instructions the session would follow. |
|
tui
Package tui is kairo's terminal UI (ADR 0010), shaped as claude's: what is done is written into the terminal's flow (it stays in the scrollback), and under it stay the reply being written, the input box and a status line.
|
Package tui is kairo's terminal UI (ADR 0010), shaped as claude's: what is done is written into the terminal's flow (it stays in the scrollback), and under it stay the reply being written, the input box and a status line. |
|
tui/screen
Package screen draws the terminal UI's area below the conversation, and writes the conversation above it, as Codex's TUI does (ADR 0033).
|
Package screen draws the terminal UI's area below the conversation, and writes the conversation above it, as Codex's TUI does (ADR 0033). |
|
tui/screen/vtest
Package vtest is a small terminal for tests of what internal/tui/screen writes (ADR 0033).
|
Package vtest is a small terminal for tests of what internal/tui/screen writes (ADR 0033). |
|
workflows
Package workflows is KairoCode's kairo workflows: a session, and the turns it runs one after another.
|
Package workflows is KairoCode's kairo workflows: a session, and the turns it runs one after another. |
|
scripts
|
|
|
envcheck
command
envcheck says whether this environment can run the tests (scripts/check.sh runs it before them): they listen on 127.0.0.1 and on Unix sockets (fake servers, the daemon), and start commands in KairoCode's sandbox.
|
envcheck says whether this environment can run the tests (scripts/check.sh runs it before them): they listen on 127.0.0.1 and on Unix sockets (fake servers, the daemon), and start commands in KairoCode's sandbox. |
Click to show internal directories.
Click to hide internal directories.