killi is a fast, tiny, free and open-source AI coding agent for your terminal, written in
Rust. It ships as one ~7 MB native binary for Apple silicon Macs and Linux (x64 and arm64) — no runtime to install, starts
in under 10 ms, and uses about 18 MB of memory while running a prompt. It reads your code, runs commands and edits files, and works with any OpenAI-compatible,
Anthropic-compatible or OpenAI Responses LLM, including ChatGPT subscriptions. It supports MCP
servers, subagents, plan mode, skills, hooks and AGENTS.md.
It is built around one idea: send the model as little as possible, and send it the same way
every time, so the provider's prompt cache keeps hitting (70–90% of input tokens come from the
cache). It is the sibling of the Kil terminal and the
Kiled editor.
killi is opinionated, not a general-purpose replacement for other agents. It makes these trade-offs on purpose:
- Cache first. The system prompt and tool list are fixed for a session, so tools can't be added or removed mid-session. MCP servers are reached through one gateway tool.
- No approval prompts. killi runs commands and edits files without asking.
/undoand git are the safety net; plan mode is the only mode that blocks edits. - macOS and Linux only. No Windows, no Intel Macs, and no LSP.
If you need per-command approval, Windows, or a toolset you can change mid-session, another agent will fit better.
killi at a glance
| killi | |
|---|---|
| Installed size | ~7 MB single binary, no runtime |
| Startup | under 10 ms |
| Memory, one prompt | ~18 MB (Claude Code: 318 MB, Kimi Code: 408 MB, opencode 2: 332 MB) |
| System prompt + all tools | ~2,900 tokens |
| Input tokens, same evals | 5.6× fewer than Kimi Code |
| Prompt-cache hits | 70–90% |
How these were measured: Size and memory · Capability tests.
Status: early but actively developed. macOS (arm64) and Linux (x64/arm64). Used daily by its author; see Known limitations.
- Long sessions stay cheap. The prompt and tool list never change mid-session, and history is only appended to, so 70–90% of input tokens come from the provider's prompt cache.
- The same work, far fewer tokens. About 2,900 tokens for the whole prompt and every tool; every capability task Kimi Code passes, with 5.6× fewer input tokens.
- Almost invisible on your machine. One ~7 MB binary with no runtime to install, starting in under 10 ms and using about 18 MB of memory running a prompt.
- No model lock-in. Any OpenAI-compatible, Anthropic-compatible or OpenAI Responses LLM, on an API key or a ChatGPT subscription.
- The full agent kit. Subagents and swarms, plan mode, MCP servers, skills, hooks,
AGENTS.mdand undo — free and open source under MIT.
curl -fsSL https://raw.githubusercontent.com/timwuhaotian/killi/main/install.sh | shThis puts killi in ~/.local/bin after checking its SHA-256 against
releases/latest.toml. Later, killi update does the same in place.
It installs releases/killi-arm64 on macOS, releases/killi-linux-x64 or
releases/killi-linux-arm64 on Linux. On Linux, four optional tools complete the picture:
wl-copy/wl-paste (Wayland) or xclip/xsel (X11) for clipboard copy and image paste,
notify-send for desktop notifications, ImageMagick (convert/magick) or ffmpeg for
shrinking large images before they are sent, and a Chrome-family browser on PATH for pages
that need JavaScript. Without them killi still works: copying falls back to the terminal's
OSC 52, notifications to OSC 9 terminals, and large images are sent as-is.
cargo install --path crates/killiRust 1.94 or later, on macOS (arm64) or Linux (x64/arm64).
- Small and quick. One 7 MB binary with no runtime to install. It starts in under 10 ms and uses about 18 MB of memory running a prompt, where Kimi Code uses 408 MB, Claude Code 318 MB and opencode 2 332 MB.
- Few tokens. The system prompt and every tool together come to about 2,900 tokens, plus
your
AGENTS.mdfiles and about 4 tokens per installed skill. In the capability tests killi passed every task Kimi Code passed, on the same model, with 5.6× fewer input tokens. - Cache-friendly by design. The system prompt and the tool list are fixed for the whole session, and history is only appended to, never rewritten. Even plan mode, subagents and resumed sessions reuse the same cached prefix; 70–90% of input tokens come from the cache.
- An interactive mode that stays out of the way. The conversation prints into your
terminal's own scrollback; only a small area at the bottom redraws: what's running, your task
list, the prompt and a status line. Type
/for a menu of commands and skills that narrows as you type. Type while the agent works and your message reaches it at its next step. Esc interrupts, and nothing it started keeps running. - Plan mode (Shift+Tab): the agent researches and writes a plan; edits are blocked and bash runs only read-only commands until you approve it.
- Tools that forgive small mistakes.
edittakes several changes in one call and still matches when only trailing spaces, smart quotes or dashes differ. Long output keeps its useful end and saves the rest to a file. Slightly broken tool-call JSON is repaired, not dropped. - Subagents run in parallel on the same model and cached prompt. Swarms run one subagent
per item of a prompt template, up to 128, several at a time, shown as one live panel (how many,
which are working on what, how long each has run); swarm mode, on by default and set with
[agent] swarmor/swarm, tells the agent to split its work that way, and[agent] swarm_parallel(default 8) sets how many run at once, and[agent] subagent_timeout(default 30 minutes, 0 for none) stops one that runs too long. A subagent never holds the conversation hostage: send a message while one works and it moves to the background, your message is answered at once, and its report comes back when it ends, read by the agent on a turn of its own if the session sits idle./mode orchestratesends every subagent to the background from the start, so the main agent only talks with you and coordinates (forking this conversation into each subagent by default,agent_messageto correct one mid-task). Quitting asks whether to pause them; resuming the session continues each from its own log. A turn nobody watches (-p, a subagent, a swarm member, a peer's task) wraps up after[agent] max_stepsrequests (default 200;0turns it off);max_steps_interactivesets a limit for the turns you watch, which have none by default. Background tasks keep servers and slow builds running. Undo puts your files back as they were before a turn, including what commands changed. - Sessions that know about each other. Run several killi at once and each knows where the
others work and what they are doing.
killi card <pid>says what a session can be asked to do, as text or JSON;killi send <pid> <task>hands one a task, which it runs on an agent of its own and answers with a report (--asynconly takes its id back),killi tasksandkilli task <id> [--follow]show where the tasks stand, andkilli cancel <id>stops one. The agent is told when another session works in its repository, to leave that session's changes alone, and how to ask it about its work or leave it a message. Nothing is added to the system prompt or the tool list. - Your setup, carried over. Kimi Code's config layout (
killi importcopies another agent's), skills from~/.agents/skills, MCP servers frommcp.json, Claude Code-style hooks, andAGENTS.md(orCLAUDE.md) files, including ones in subfolders. - Memory that follows you.
/remember <fact>, or the agent'smemorytool, keeps a lasting preference or environment fact in~/.killi/memory.md; every session's prompt carries it, so it holds in every project./memorylists what is saved and/memory forget Ndrops one. - Every session on disk, exactly as sent, so
killi -ccontinues where you left off with the cache still warm. - Updates itself.
killi updateinstalls the latest release after checking its checksum, and a session that finds a newer release (at start and every six hours) prints what changed since your version and asks whether to install it now.KILLI_NO_UPDATE_CHECK=1turns the check off.
What is killi? killi is a fast, tiny, open-source AI coding agent for the terminal, written in Rust. It ships as one ~7 MB native binary for Apple silicon Macs and Linux (x64 and arm64) with no runtime to install, starts in under 10 ms, and uses about 18 MB of memory while running a prompt. It reads your code, runs commands and edits files without approval prompts, is free (MIT), works with any OpenAI-compatible, Anthropic-compatible or OpenAI Responses LLM, and is built so the provider's prompt cache keeps hitting. It is opinionated: its tool list never changes mid-session, and it runs on macOS and Linux only.
Is killi open source? Yes. killi is open source under the MIT license, and the full source is on GitHub at github.com/timwuhaotian/killi. It is free to use and installs as a single ~7 MB binary.
How is killi different from Claude Code? Claude Code is Anthropic's closed-source agent tied to Anthropic models. killi makes different trade-offs: it runs commands and edits files without approval prompts, never changes its tool list mid-session, and runs on macOS and Linux only. In return it is open source, model-agnostic, and much lighter: in the same benchmark, killi used about 18 MB of memory while Claude Code used 318 MB, Kimi Code 408 MB and opencode 2 332 MB. In killi's capability tests, killi passed every task Kimi Code passed on the same model with 5.6× fewer input tokens. Because killi never changes the system prompt or the tool list during a session, 70–90% of its input tokens are served from the provider's prompt cache.
How much memory does killi use?
About 18 MB of peak memory while running a prompt, measured on 2026-11-07 on an M4 Pro with scripts/bench.py (hooks disabled). For comparison, the same benchmark measured Kimi Code at 408 MB, Claude Code at 318 MB and opencode 2 at 332 MB. The installed binary itself is about 7 MB.
Does killi support ChatGPT?
Yes. killi login chatgpt signs in with a ChatGPT Plus or Pro account in the browser, through OpenAI's sign-in for open-source tools. Requests go to api.openai.com/v1/responses on your plan, count toward your ChatGPT usage, and can be monitored in ChatGPT settings → Usage. killi also works with OpenAI-compatible APIs, Claude (Anthropic), and many other providers.
Does killi support Claude / Anthropic models?
Yes. killi accepts an Anthropic API key and speaks the Anthropic Messages protocol, so Claude models work directly. Claude models behind an OpenAI-compatible gateway can be used with the Responses protocol, with cache_control support for prompt caching.
How many tokens does killi use?
The system prompt and every tool together come to about 2,900 tokens, plus your AGENTS.md files, saved memory and about 4 tokens per installed skill. In the capability tests, killi used 5.6× fewer input tokens than Kimi Code on the same model while passing the same tasks.
What is prompt caching and why does killi care? Providers cache the start of a prompt, so a request that begins exactly like the previous one is cheaper and faster. killi is built around this: the system prompt, the tool list and the history are fixed for the whole session and only appended to, so 70–90% of input tokens come from the cache, including in plan mode, subagents, swarms and resumed sessions.
How do I install killi?
Run curl -fsSL https://raw.githubusercontent.com/timwuhaotian/killi/main/install.sh | sh to install the ~7 MB binary to ~/.local/bin after a SHA-256 check, or build from source with cargo install --path crates/killi (Rust 1.94+). killi runs on Apple silicon Macs and Linux (x64/arm64).
Does killi support MCP servers, subagents and plan mode?
Yes. killi supports MCP servers (stdio and HTTP) from mcp.json, subagents and swarms (up to 128 in parallel), plan mode that blocks edits until you approve, Claude Code-style hooks, AGENTS.md / CLAUDE.md instructions, skills, undo, background tasks and web search.
killi makes different trade-offs from the big terminal coding agents (see the top of this page). It is open-source, model-agnostic and much lighter. In the same benchmarks (measured with scripts/bench.py, see Size and memory and Capability tests):
- Memory: about 18 MB while running a prompt, where Claude Code uses 318 MB, Kimi Code 408 MB and opencode 2 332 MB.
- Tokens: it passes every capability task Kimi Code passes on the same model, with 5.6× fewer input tokens.
- Cost: 70–90% of input tokens come from the provider's prompt cache, so long sessions stay cheap.
- Vendor freedom: works with any OpenAI-compatible, Anthropic-compatible or OpenAI Responses LLM — not tied to one model.
- Open source: MIT licensed, one ~7 MB native binary, no runtime.
The top half of the chart above. Measured with scripts/bench.py; the versions and models are in
docs/bench.json. killi, Kimi Code and opencode 2 ran the same model,
MiMo-V2.6-Pro; Claude Code ran its default, now Claude Opus 5.5 (Sonnet 5.5 in October, and its
token count moved with the model). killi, Kimi Code and Claude Code
loaded this machine's skills, global instructions and MCP servers; opencode 2 ran with a fresh
config holding only the model, so it loaded the skills but no MCP servers, and with --standalone
so that it is one process. killi (0.6.56) and Claude Code (2.1.319) were measured on 2026-11-07
on an M4 Pro; the Kimi Code (2.3.0) and opencode 2 (2.1.3) rows are from 2026-10-22 and 2026-10-23
on an M1 Pro. killi runs with KILLI_NO_HOOKS=1: hooks are your own programs in other
processes, so they don't count toward its memory.
The bottom half of the chart above. Fourteen Rust and TypeScript tasks in evals/tasks: fixing bugs (one hidden in
a 1,400-line file), implementing features from a spec, clearing compiler and clippy errors,
a multi-file refactor, a concurrency bug, JSON escaping with no dependencies allowed, a fix
that must leave a shared file untouched, and a question answered from the code rather than a
misleading README. Each starts from a fresh git repo; it passes when its check (the tests,
clippy, or an exact answer) succeeds after the tool finishes, with the tests restored first.
Every task was checked to fail as given and pass with its reference solution.
scripts/eval.py runs them; docs/eval.md has every result.
killi's row is 0.6.55, measured on 2026-11-07; Kimi Code's (2.2.0) and Claude Code's (2.1.306)
rows are from 2026-10-22. Each tool ran every task once, so a single task's token count can swing
by a third or more. killi's times were taken on a busy machine and aren't comparable with the
other two; tokens and memory are not affected by load.
killi reads ~/.killi/config.toml. Without one, an interactive start writes the starting
template and opens the session. When a key for one of the template's providers is already in
the environment ($OPENAI_API_KEY or $ANTHROPIC_API_KEY), that model becomes the default,
so a machine that is already set up starts configured. With no key at all the session still
opens and its first rows are the steps: /provider adds a provider and its API key from
inside the session, /model picks a model it added, and killi login signs in to a
subscription instead. Once a model is configured, the first interactive launch also offers
to add another start command beside the binary (such as dw -> killi); press Enter to
keep starting it as killi.
To copy another agent's setup instead, killi import lists the other coding agents it finds
on the machine — Kimi Code, pi, omp, opencode, Codex, Claude Code or Gemini CLI — and copies
one's providers, models, API keys, default model, thinking level and MCP servers into killi's
layout on one choice; providers those tools only reach through an account login are skipped
(killi import --list shows what killi found):
killi importOtherwise killi init writes a starting config to edit. One with two providers looks like this:
default_model = "mimo/mimo-v2.6-pro"
# [thinking]
# enabled = false # turns reasoning off everywhere; each model reasons at its
# # default_effort (what /effort last picked) otherwise
[providers.mimo]
type = "openai" # OpenAI chat completions
base_url = "https://api.example.com/v1"
api_key_env = "MIMO_API_KEY" # or api_key = "..."
[providers.minimax]
type = "anthropic" # Anthropic Messages
base_url = "https://api.example.com/anthropic"
api_key_env = "MINIMAX_API_KEY"
[models."mimo/mimo-v2.6-pro"]
provider = "mimo"
model = "mimo-v2.6-pro"
max_context_size = 1000000
max_output_size = 128000
capabilities = ["image_in", "thinking", "tool_use"]
[models."minimax/MiniMax-M3.1-Flash"]
provider = "minimax"
model = "MiniMax-M3.1-Flash"To use a subscription instead of a pay-as-you-go key, run killi login and pick one, or name
it: killi login chatgpt, killi login opencode-go, killi login muse-code, killi login command-code or killi login grok (a SuperGrok or X Premium plan, confirmed with a code in any
browser, so it works over SSH too; killi isn't among the agents xAI names, so it may refuse a plan). Either way killi adds the provider and its models to the
config; killi logout signs out. Inside a session, /provider lists every preset and adds one
from a pasted key: opencode-go, muse-code and command-code, plus anthropic, gemini, grok, kimi,
mimo, minimax, qwen, stepfun, unisound and zai. (ChatGPT and the browser sign-ins stay in
killi login.) Gemini takes only an AI Studio key: Google forbids third-party tools from
signing in with Gemini CLI's Google login, so killi has no killi login gemini. Run on a provider
the config already has, it also brings that provider's key, API and URL up to date (and the
tool names for muse-code) and keeps the rest.
To keep a provider to some of its models — OpenCode Go already follows the account's own
enabled list — add [models_filter.<provider>] with include and exclude patterns. Each
pattern is a full alias or a model id, and a trailing * matches a prefix; exclude wins, and
a provider without the table keeps every model. The filter decides what /model lists, what
/provider syncs, and which model a session starts on:
[models_filter.zai]
include = ["glm-5.3", "glm-5.3-flash"]killi models sync [<provider>] refreshes OpenCode Go's account list and Z.ai's /models
with the keys already in the config, and applies the filter; it needs no sign-in.
- ChatGPT (Plus or Pro) signs in in the browser, through OpenAI's sign-in for open-source
tools, and keeps the credentials
in
~/.killi/chatgpt.json. Requests go toapi.openai.com/v1/responseson your plan, and killi refreshes the hourly token itself; ChatGPT settings → Usage shows and limits what killi uses. - OpenCode Go takes the API key from the OpenCode
Console (
killi loginalso takes$OPENCODE_API_KEY). Its models answer on Chat Completions, Responses or Anthropic Messages; killi writes each with the API and URL models.dev gives it, and leaves out the ones on Gemini's API. Requests carryx-opencode-sessionwith the session's ID, as OpenCode asks. - Muse Code (Meta) takes the muse CLI's API key (
LLM|…). killi writes ametaprovider on the Responses API withtool_names = { bash = "run_command", web_search = "search_web" }: Meta refuses a subscription's requests whose tools carry another client's names, so the requests carry the mapped names and the replies are read back under killi's. - Command Code signs in with your commandcode.ai account in the browser, the way its CLI
does, and writes a
commandcodeprovider with the models the subscription serves (/provider command-codetakes a pasted key instead). Requests speak the CLI's own API (/alpha/generate) and count toward the subscription's usage.
A model can use OpenAI's Responses API with protocol = "openai_responses". A Claude model
behind an OpenAI-compatible gateway (Bedrock through LiteLLM) caches nothing unless the request
marks it: set cache_control = true on that model, and check with scripts/probe.py cache.
killi # start a session here
killi -c # continue the last session in this folder
killi -r # pick an earlier session
killi -p "fix the failing test in src/lib.rs" # run one task and exit
killi -p "..." --json # one JSON summary: tokens, cache hits, time
killi "fix the failing test" # start a session and send this as the first turnAgent managers that launch killi (for example Orca, which detects a killi binary on the
PATH and runs it in a terminal): a positional prompt starts the interactive session with that
prompt already sent. The terminal title shows the folder, model and working/idle state.
| Key | |
|---|---|
| / | the command menu: ↑↓ choose, Tab completes, Enter runs, Esc closes |
| @ | the file menu: fuzzy-search the workspace, Tab or Enter inserts @path; the file's contents go to the model with your message |
| Enter | send; while the agent works, your message reaches it at its next step |
| Shift+Enter, Ctrl+J | new line |
| ! | run a shell command without involving the model; a bare ! opens your shell |
| Esc | interrupt; before the reply begins, your message comes back to the prompt as if never sent |
| Ctrl+S | while the agent works, interrupt it and send your message now; during a swarm the first press moves the swarm to the background and your message is read at once |
| Ctrl+C | copy the prompt's selection, else clear the prompt; on an empty prompt, interrupt, twice to quit |
| Shift+Tab | plan mode |
| Ctrl+V | paste an image from the clipboard as [Image #1] (Cmd+V too in Kil) |
| drag a file in | an image is attached as [Image #1]; any other file is named as @path |
| Ctrl+O | the last tool output or thought in full |
| ↑ ↓ | history |
| Tab, → | at the end of the prompt, take the faint suggestion after it |
| Shift+arrows, Shift+Home/End | select in the prompt, by words with Alt; typing replaces the selection, Ctrl+C copies it; in fullscreen mode a drag, double- or triple-click selects too |
Commands: /provider [name] (add a provider from a pasted key), /model [alias], /theme [name] (color theme),
/backup-model [alias] (the fallback when the primary keeps failing), /mcp [server]
(turn servers on or off), /web-search-config, /effort [level] (thinking effort),
/new (or /clear), /resume, /btw <question> (a side question, never kept),
/schedule <interval> <task>, /compact [focus], /recap, /undo, /plan,
/swarm [task|on|off|parallel <n>],
/mode [focus|orchestrate] (focus: subagents run in the foreground and move to the background
when you send a message; orchestrate: every subagent runs in the background while you keep
talking to the main agent), /verbosity [normal|ultra-concise] (ultra-concise: replies in the
fewest words that keep the meaning),
/goal [<text>|done|clear] (a session goal: /exit, /new and /resume wait until it is
/goal done, or /goal clear when it is truly impossible or no longer wanted), /usage, /session
(copies the session's id, log path and summary for another agent to read), /sessions (the
other killi sessions running on this machine), /later [done N] (what the agent noted for
later in this folder), /memory [add <fact>|forget N] (what killi remembers about you in every
project; /remember <fact> saves one), /prune [keep]
(deletes every session on the machine but the newest few), /reload,
/help, /exit, and
/<skill-name> [request] for any skill. The menu matches loosely, the way Kimi Code's does:
/cr finds code-review.
Repeat a task. Use /schedule 30 mins <task> or, for example,
/schedule 30 分钟 汇总最近的提交.
The model interprets the interval, from 1 minute to 7 days. The first run is due after one
interval, and each later run one interval after the last one ends. A task is a prompt:
commands, skills and ! lines can't be scheduled. Tasks run one at a time as ordinary turns,
with the usual controls and permissions, only when the interactive session is idle, the prompt
is empty, and no picker or pair is active. Missed ticks don't pile up, and Esc on a run skips
it and holds other due tasks back for an interval. /schedule lists tasks and
/schedule cancel <id> removes one. No extra setup is needed: keep the session open. Exiting or switching sessions
clears the schedules, and resuming doesn't restore them. Nothing runs in the background after
exit.
Ten color themes: /theme previews each one live — its banner gradient, diff stripes and
status colors — as the selection moves, before you pick. The screenshots here wear
iced-coffee (sky blue, coral and amber on dark), the palette the icon is drawn from.
After a turn that used tools, killi prints a recap of the session in 100 characters or fewer
under the turn's totals; /recap asks for one at any time, and [ui] recap = false turns the
automatic one off. A recap is a side request like /btw: it is never kept in the conversation
and the cached prefix still hits.
After a turn ends, the model suggests what to ask next: the empty prompt shows the suggestion
as its placeholder, and Tab or → puts it in the prompt. Once you take it, or pause for a second
while typing a prompt, the model guesses how the prompt goes on and shows that faint after the
cursor; Tab or → takes it and asks for more, and typing along it keeps it. Each is a side request
like /btw, so it is never kept in the conversation and the cached prefix still hits.
killi runs commands and edits files without asking; /undo is the safety net.
Things for later. When the agent notices a blocker, a bug in passing or an improvement
it won't do now, it notes it with its later tool right then, instead of holding it for the
final message, one list per folder in ~/.killi/sessions/<folder>/later.md with open items
only. /later shows the list, /later done 3 crosses one off, and the banner says how many
are open.
Other sessions. Every killi running on the machine is listed in ~/.killi/live. When one starts or stops there, the
agent is told once: changes it didn't make may be theirs, and branch switches, stashes and
resets belong in a worktree. /undo says when it would also undo another session's work. From
the agent's shell, or yours:
killi sessions # every session: pid, working or idle, folder, branch, prompt
killi sessions 4321 # what one is doing now: its task list, what it waits on
killi ask 4321 "which files are you changing?" # its model answers from its conversation; nothing is kept
killi tell 4321 "the base branch is pushed" # a message for its next step, or its next prompt when idleA message is marked as not coming from the user, never starts a turn, and a session takes at
most three between two prompts. [agent] peers = false keeps a session to itself.
-
System prompt: its guidance (how the agent works, and the safety rules) sits in
config.tomlunder[prompt] system, to read and edit;/reloadapplies a change.killi initwrites it there, or adds it to a config that has none. While it's there, killi updates don't change your prompt; delete the table to go back to the built-in text. -
Instructions:
~/.agents/AGENTS.md, then everyAGENTS.mdfrom the git root down to the working directory (orCLAUDE.mdwhere there is noAGENTS.md;@filelines are followed). When the agent works in a subfolder with its ownAGENTS.md, it is pointed to it. -
Memory: lasting facts and preferences about you, in
~/.killi/memory.md, sent after the instructions in every session's prompt./remember <fact>saves one,/memorylists them,/memory forget Nremoves one, and the agent keeps it current with itsmemorytool. It is capped at 20 entries and 4 KB, so it stays small; only the main session may change it (subagents read it, and plan mode waits for approval), and the agent is told never to save secrets, or what a file or web page told it. -
Skills: folders with a
SKILL.mdin~/.agents/skillsand the project's.agents/skillsor.claude/skills. Only their names go in the prompt; the agent loads one when it applies, and/<name>runs one directly. A skill's declared sub-commands (its Commands table orcommand-metadata.json, like impeccable'spolish) are names too:/polishloads the parent skill with that playbook appended. Other folders:[skills] dirs = [...]. One is built in:/update-configtells the agent every file and key of this version's configuration, so it can say where things are, what a setting does, or make a change. Project installs fromnpx skills add(any agent that uses.agents/skills) land there, and so do global installs with-g -a pi(orcodex,cline), so killi sees them. Installers look for killi by the~/.killifolder, whichinstall.shcreates. -
MCP: servers from
~/.killi/mcp.jsonand the project's.mcp.json, in the usual{"mcpServers": {...}}format (stdio or HTTP). The agent reaches them through onemcptool, and a server starts, and its tools load, the first time it's used. To give a project's favorite server native tools from the start, add[mcp] eager = ["godot"]to its.killi/config.toml. Stdio servers run in one sharedkilli mcp-serveprocess, so every killi session on the machine uses the same server instead of starting its own; it exits 15 minutes after the last session lets go. User servers start in your home folder, project servers in the project root./mcplists the servers and turns one on or off, for this session and the next ones. The project.mcp.jsonis the fileadd-mcpwrites for Claude Code, so servers added there reach killi too. -
Hooks use Claude Code's protocol (JSON on stdin; exit code 2 blocks and tells the model why):
[[hooks.PreToolUse]] matcher = "bash" # a regex over tool names command = "~/bin/no-force-push.sh"
Events:
SessionStart,UserPromptSubmit,PreToolUse,PostToolUse,Stop,SubagentStop,SessionEnd(when the session exits, only if a turn ran). APostToolUsehook that prints something (or exits 2) shows its output to the model, which makes a cheap stand-in for an editor's diagnostics: run the type checker after every edit.[[hooks.PostToolUse]] matcher = "edit|write" command = "cargo check --quiet 2>&1 | head -30; exit 0"
KILLI_NO_HOOKS=1runs a session with every hook off. -
Entire: killi sessions checkpoint to Entire, which mirrors the repo and links each commit to the session behind it (see the quickstart).
entire agent addhas no killi entry, but killi speaks Claude Code's hook protocol, so the wiring in/update-config(seven hooks in~/.killi/config.toml) checkpoints every session on start, prompt, tool use, stop and exit. -
Web:
web_searchfinds pages andfetch_urlreads them. Without setup, search reads Brave's public results page, which can turn automated requests away./web-search-configasks for the service and what it needs, writes[search]and applies it at once; by hand (provideris"brave","tavily","keenable"or"searxng"):[search] provider = "brave" api_key_env = "BRAVE_API_KEY" # or: api_key = "..."
"searxng"points at your own instance instead of a key — self-hosted, with the json format enabled (settings.yml:search → formats: [html, json]) — and takes an optional key:[search] provider = "searxng" url = "http://localhost:8888"
"keenable"works with no key (its public endpoint, rate limited per IP) or with one:[search] provider = "keenable" api_key_env = "KEENABLE_API_KEY" # optional
fetch_urlalso renders pages that need JavaScript, takes screenshots of them (screenshot, for checking a local dev server's UI) and fetches raw bodies (raw), all through Moli when it is installed (KILLI_MOLI,~/.local/bin/moli, ormolionPATH), else the Chrome, Chromium, Edge or Brave in/Applicationson macOS or onPATHon Linux (orKILLI_CHROME) run headless with a throwaway profile. A page whose static HTML has no readable text is rendered automatically.
Providers cache the start of a prompt, so a request that begins exactly like the last one is cheaper and faster (OpenAI, Anthropic). killi keeps that start identical:
- The system prompt, your
AGENTS.mdfiles and the tool definitions are built once when the session starts and never change. Plan mode blocks writes when a tool runs instead of removing tools; MCP servers are reached through one fixed tool; subagents get the same prompt and tools. - Messages are stored exactly as sent, tool-call arguments and reasoning included, and nothing earlier is ever edited or merged. Notes from killi to the model go at the end. Only compaction rewrites history, and it keeps your requests word for word.
On MiMo, changing the tool list mid-session dropped a request's cached tokens to zero, history included. That measurement shaped the rest.
The design, with the measurements behind each choice, is in docs/decisions.md.
- macOS (arm64) and Linux (x64/arm64) only. killi ships for Apple silicon Macs and Linux; Intel Macs and Windows are not supported yet.
- Early software. Used daily by its author, but expect rough edges;
/undoand git are your safety nets. - Small benchmark set. The capability tests cover 14 tasks, and measurements were taken on a small number of machines and models — see Size and memory and Capability tests.
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
python3 scripts/eval.py verify # every capability task fails as given and passes when solvedReleases are described in RELEASING.md.