[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111353":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":22,"topics":23,"createdAt":10,"pushedAt":44,"updatedAt":45,"readmeContent":46,"aiSummary":47,"trendingCount":16,"starSnapshotCount":16,"syncStatus":48,"lastSyncTime":49,"discoverSource":50},111353,"killi","timwuhaotian\u002Fkilli","timwuhaotian","Open-source AI coding agent for your terminal, written in Rust. One 7 MB native binary for Apple Silicon Macs, ~18 MB RAM, 70–90% prompt-cache hits. Works with OpenAI, Anthropic and any compatible LLM; MCP, subagents, plan mode, skills, hooks, AGENTS.md. A lightweight Claude Code \u002F Codex CLI alternative.","https:\u002F\u002Ftimwuhaotian.github.io\u002Fkilli\u002F",null,"Rust",55,12,8,1,0,4,43.74,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"agentic-coding","ai-agent","ai-agents","ai-coding-agent","anthropic","apple-silicon","claude-code","cli","coding-agent","developer-tools","llm","macos","mcp","model-context-protocol","open-source","openai","prompt-caching","rust","terminal","tui","2026-11-23 14:46:30","2026-11-18 03:01:45","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Ficon.png\" width=\"128\" height=\"128\" alt=\"killi icon\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">killi\u003C\u002Fh1>\n\n[![CI](https:\u002F\u002Fgithub.com\u002Ftimwuhaotian\u002Fkilli\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Ftimwuhaotian\u002Fkilli\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Ftimwuhaotian\u002Fkilli)](https:\u002F\u002Fgithub.com\u002Ftimwuhaotian\u002Fkilli\u002Freleases\u002Flatest)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](LICENSE)\n![macOS · Linux](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FmacOS-Linux-lightgrey)\n\n**killi is a fast, tiny, free and open-source AI coding agent for your terminal**, written in\nRust. It ships as one ~7 MB native binary for Apple silicon Macs and Linux (x64 and arm64) — no runtime to install, starts\nin under 10 ms, and uses about 18 MB of memory while running a prompt. Like Claude Code, Codex\nCLI, opencode or Kimi Code, it reads your code, runs commands and edits files, but it works with\nany OpenAI-compatible, Anthropic-compatible or OpenAI Responses LLM, including ChatGPT\nsubscriptions, and it supports MCP servers, subagents, plan mode, skills, hooks and `AGENTS.md`.\nIt is built around one idea: send the model as little as possible, and send it the same way\nevery time, so the provider's prompt cache keeps hitting (70–90% of input tokens come from the\ncache). It is the sibling of the [Kil](https:\u002F\u002Fgithub.com\u002Ftimwuhaotian\u002Fkil) terminal and the\n[Kiled](https:\u002F\u002Fgithub.com\u002Ftimwuhaotian\u002Fkiled) editor.\n\n**killi at a glance**\n\n| | killi |\n|---|---|\n| Installed size | ~7 MB single binary, no runtime |\n| Startup | under 10 ms |\n| Memory, one prompt | ~18 MB (Claude Code: 318 MB, Kimi Code: 408 MB, opencode 2: 332 MB) |\n| System prompt + all tools | ~2,600 tokens |\n| Input tokens, same evals | 5.6× fewer than Kimi Code |\n| Prompt-cache hits | 70–90% |\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fscreenshot.svg\" width=\"960\" alt=\"killi on the iced-coffee theme fixing a failing slugify test: the blue-to-coral banner, a read and the failing test run, a thought, an edit to slug.py with added and removed line stripes, the passing run and the explanation; below, the model's suggested next prompt sits in the empty prompt and the status line shows the model, swarm mode, a context gauge, tokens 83% cached and the git branch\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fbenchmarks-dark.svg\">\n    \u003Cimg src=\"docs\u002Fbenchmarks-light.svg\" width=\"960\" alt=\"Every benchmark in one chart: installed size, peak memory running one prompt and tokens sent before you type for killi, Kimi Code, Claude Code and opencode 2; then capability-test runs passed, input tokens, time and peak memory per run for killi, Kimi Code and Claude Code\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\nHow these were measured: [Size and memory](#size-and-memory) · [Capability tests](#capability-tests).\n\n> **Status: early but actively developed.** macOS (arm64) and Linux (x64\u002Farm64). Used daily by its author; see [Known limitations](#known-limitations).\n\n## Why killi\n\n- **Long sessions stay cheap.** The prompt and tool list never change mid-session, and history\n  is only appended to, so 70–90% of input tokens come from the provider's prompt cache.\n- **The same work, far fewer tokens.** About 2,600 tokens for the whole prompt and every tool;\n  every capability task Kimi Code passes, with 5.6× fewer input tokens.\n- **Almost invisible on your machine.** One ~7 MB binary with no runtime to install, starting in\n  under 10 ms and using about 18 MB of memory running a prompt.\n- **No model lock-in.** Any OpenAI-compatible, Anthropic-compatible or OpenAI Responses LLM, on\n  an API key or a ChatGPT subscription.\n- **The full agent kit.** Subagents and swarms, plan mode, MCP servers, skills, hooks,\n  `AGENTS.md` and undo — free and open source under MIT.\n\n## Install\n\n```sh\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Ftimwuhaotian\u002Fkilli\u002Fmain\u002Finstall.sh | sh\n```\n\nThis puts `killi` in `~\u002F.local\u002Fbin` after checking its SHA-256 against\n[`releases\u002Flatest.toml`](releases\u002Flatest.toml). Later, `killi update` does the same in place.\nIt installs `releases\u002Fkilli-arm64` on macOS, `releases\u002Fkilli-linux-x64` or\n`releases\u002Fkilli-linux-arm64` on Linux. On Linux, four optional tools complete the picture:\n`wl-copy`\u002F`wl-paste` (Wayland) or `xclip`\u002F`xsel` (X11) for clipboard copy and image paste,\n`notify-send` for desktop notifications, ImageMagick (`convert`\u002F`magick`) or `ffmpeg` for\nshrinking large images before they are sent, and a Chrome-family browser on `PATH` for pages\nthat need JavaScript. Without them killi still works: copying falls back to the terminal's\nOSC 52, notifications to OSC 9 terminals, and large images are sent as-is.\n\n## Build from source\n\n```sh\ncargo install --path crates\u002Fkilli\n```\n\nRust 1.94 or later, on macOS (arm64) or Linux (x64\u002Farm64).\n\n## Features\n\n- **Small and quick.** One 7 MB binary with no runtime to install. It starts in under 10 ms and\n  uses about 18 MB of memory running a prompt, where Kimi Code uses 408 MB, Claude Code 318 MB\n  and opencode 2 332 MB.\n- **Few tokens.** The system prompt and every tool together come to about 2,600 tokens, plus\n  your `AGENTS.md` files and about 4 tokens per installed skill. In the\n  [capability tests](#capability-tests) killi passed every task Kimi Code passed, on the same\n  model, with 5.6× fewer input tokens.\n- **Cache-friendly by design.** The system prompt and the tool list are fixed for the whole\n  session, and history is only appended to, never rewritten. Even plan mode, subagents and\n  resumed sessions reuse the same cached prefix; 70–90% of input tokens come from the cache.\n- **An interactive mode that stays out of the way.** The conversation prints into your\n  terminal's own scrollback; only a small area at the bottom redraws: what's running, your task\n  list, the prompt and a status line. Type `\u002F` for a menu of commands and skills that narrows as\n  you type. Type while the agent works and your message reaches it at its next step. Esc\n  interrupts, and nothing it started keeps running.\n- **Plan mode** (Shift+Tab): the agent researches and writes a plan; edits are blocked and\n  bash runs only read-only commands until you approve it.\n- **Tools that forgive small mistakes.** `edit` takes several changes in one call and still\n  matches when only trailing spaces, smart quotes or dashes differ. Long output keeps its useful\n  end and saves the rest to a file. Slightly broken tool-call JSON is repaired, not dropped.\n- **Subagents** run in parallel on the same model and cached prompt. **Swarms** run one subagent\n  per item of a prompt template, up to 128, several at a time, shown as one live panel (how many,\n  which are working on what, how long each has run); swarm mode, on by default and set with\n  `[agent] swarm` or `\u002Fswarm`, tells the agent to split its work that way, and\n  `[agent] swarm_parallel` (default 8) sets how many run at once. **Background tasks** keep servers and slow builds running. **Undo** puts\n  your files back as they were before a turn, including what commands changed.\n- **Sessions that know about each other.** Run several killi at once and each knows where the\n  others work and what they are doing. `killi card \u003Cpid>` says what a session can be asked to\n  do, as text or JSON; `killi send \u003Cpid> \u003Ctask>` hands one a task, which it runs on an agent of\n  its own and answers with a report (`--async` only takes its id back), `killi tasks` and\n  `killi task \u003Cid> [--follow]` show where the tasks stand, and `killi cancel \u003Cid>` stops one.\n  The agent is told when another session works in its repository, to leave that session's\n  changes alone, and how to ask it about its work or leave it a message. Nothing is added to the\n  system prompt or the tool list.\n- **Your setup, carried over.** Kimi Code's config layout (`killi import` copies another agent's),\n  skills from `~\u002F.agents\u002Fskills`, MCP servers from `mcp.json`, Claude Code-style hooks, and\n  `AGENTS.md` (or `CLAUDE.md`) files, including ones in subfolders.\n- **Every session on disk**, exactly as sent, so `killi -c` continues where you left off with\n  the cache still warm.\n- **Updates itself.** `killi update` installs the latest release after checking its checksum,\n  and a session that finds a newer release (at start and every six hours) prints what changed\n  since your version and asks whether to install it now. `KILLI_NO_UPDATE_CHECK=1` turns the\n  check off.\n\n## FAQ\n\n**What is killi?**\nkilli 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. Like Claude Code, Codex CLI, opencode or Kimi Code, it reads your code, runs commands and edits files, but it 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.\n\n**Is killi open source?**\nYes. killi is open source under the MIT license, and the full source is on GitHub at github.com\u002Ftimwuhaotian\u002Fkilli. It is free to use and installs as a single ~7 MB binary.\n\n**How is killi different from Claude Code?**\nClaude Code is Anthropic's closed-source agent tied to Anthropic models. killi 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.\n\n**How much memory does killi use?**\nAbout 18 MB of peak memory while running a prompt, measured on 2026-11-07 on an M4 Pro with [`scripts\u002Fbench.py`](scripts\u002Fbench.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.\n\n**Does killi support ChatGPT?**\nYes. `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\u002Fv1\u002Fresponses 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.\n\n**Does killi support Claude \u002F Anthropic models?**\nYes. 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.\n\n**How many tokens does killi use?**\nThe system prompt and every tool together come to about 2,600 tokens, plus your `AGENTS.md` files 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.\n\n**What is prompt caching and why does killi care?**\nProviders 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.\n\n**How do I install killi?**\nRun `curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Ftimwuhaotian\u002Fkilli\u002Fmain\u002Finstall.sh | sh` to install the ~7 MB binary to `~\u002F.local\u002Fbin` after a SHA-256 check, or build from source with `cargo install --path crates\u002Fkilli` (Rust 1.94+). killi runs on Apple silicon Macs and Linux (x64\u002Farm64).\n\n**Does killi support MCP servers, subagents and plan mode?**\nYes. 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` \u002F `CLAUDE.md` instructions, skills, undo, background tasks and web search.\n\n## killi vs Claude Code, Kimi Code and opencode\n\nkilli is an open-source, model-agnostic alternative to the big terminal coding agents, and it is much lighter. In the same benchmarks (measured with [`scripts\u002Fbench.py`](scripts\u002Fbench.py), see [Size and memory](#size-and-memory) and [Capability tests](#capability-tests)):\n\n- **Memory:** about 18 MB while running a prompt, where Claude Code uses 318 MB, Kimi Code 408 MB and opencode 2 332 MB.\n- **Tokens:** it passes every capability task Kimi Code passes on the same model, with 5.6× fewer input tokens.\n- **Cost:** 70–90% of input tokens come from the provider's prompt cache, so long sessions stay cheap.\n- **Vendor freedom:** works with any OpenAI-compatible, Anthropic-compatible or OpenAI Responses LLM — not tied to one model.\n- **Open source:** MIT licensed, one ~7 MB native binary, no runtime.\n\n## Size and memory\n\nThe top half of the chart above. Measured with [`scripts\u002Fbench.py`](scripts\u002Fbench.py); the versions and models are in\n[`docs\u002Fbench.json`](docs\u002Fbench.json). killi, Kimi Code and opencode 2 ran the same model,\nMiMo-V2.6-Pro; Claude Code ran its default, now Claude Opus 5.5 (Sonnet 5.5 in October, and its\ntoken count moved with the model). killi, Kimi Code and Claude Code\nloaded this machine's skills, global instructions and MCP servers; opencode 2 ran with a fresh\nconfig holding only the model, so it loaded the skills but no MCP servers, and with `--standalone`\nso that it is one process. killi (0.6.56) and Claude Code (2.1.319) were measured on 2026-11-07\non 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\non an M1 Pro. killi runs with `KILLI_NO_HOOKS=1`: hooks are your own programs in other\nprocesses, so they don't count toward its memory.\n\n## Capability tests\n\nThe bottom half of the chart above. Fourteen Rust and TypeScript tasks in [`evals\u002Ftasks`](evals\u002Ftasks): fixing bugs (one hidden in\na 1,400-line file), implementing features from a spec, clearing compiler and clippy errors,\na multi-file refactor, a concurrency bug, JSON escaping with no dependencies allowed, a fix\nthat must leave a shared file untouched, and a question answered from the code rather than a\nmisleading README. Each starts from a fresh git repo; it passes when its check (the tests,\nclippy, or an exact answer) succeeds after the tool finishes, with the tests restored first.\nEvery task was checked to fail as given and pass with its reference solution.\n[`scripts\u002Feval.py`](scripts\u002Feval.py) runs them; [docs\u002Feval.md](docs\u002Feval.md) has every result.\nkilli's row is 0.6.55, measured on 2026-11-07; Kimi Code's (2.2.0) and Claude Code's (2.1.306)\nrows are from 2026-10-22. Each tool ran every task once, so a single task's token count can swing\nby a third or more. killi's times were taken on a busy machine and aren't comparable with the\nother two; tokens and memory are not affected by load.\n\n## Using killi\n\n### Models\n\nkilli reads `~\u002F.killi\u002Fconfig.toml`. Without one, an interactive start writes the starting\ntemplate and opens the session. When a key for one of the template's providers is already in\nthe environment (`$OPENAI_API_KEY` or `$ANTHROPIC_API_KEY`), that model becomes the default,\nso a machine that is already set up starts configured. With no key at all the session still\nopens and its first rows are the steps: `\u002Fprovider` adds a provider and its API key from\ninside the session, `\u002Fmodel` picks a model it added, and `killi login` signs in to a\nsubscription instead. Once a model is configured, the first interactive launch also offers\nto add another start command beside the binary (such as `dw` -> `killi`); press Enter to\nkeep starting it as `killi`.\n\nTo copy another agent's setup instead, `killi import` lists the other coding agents it finds\non the machine — Kimi Code, pi, omp, opencode, Codex, Claude Code or Gemini CLI — and copies\none's providers, models, API keys, default model, thinking level and MCP servers into killi's\nlayout on one choice; providers those tools only reach through an account login are skipped\n(`killi import --list` shows what killi found):\n\n```sh\nkilli import\n```\n\nOtherwise `killi init` writes a starting config to edit. One with two providers looks like this:\n\n```toml\ndefault_model = \"mimo\u002Fmimo-v2.6-pro\"\n\n# [thinking]\n# enabled = false            # turns reasoning off everywhere; each model reasons at its\n#                            # default_effort (what \u002Feffort last picked) otherwise\n\n[providers.mimo]\ntype = \"openai\"              # OpenAI chat completions\nbase_url = \"https:\u002F\u002Fapi.example.com\u002Fv1\"\napi_key_env = \"MIMO_API_KEY\" # or api_key = \"...\"\n\n[providers.minimax]\ntype = \"anthropic\"           # Anthropic Messages\nbase_url = \"https:\u002F\u002Fapi.example.com\u002Fanthropic\"\napi_key_env = \"MINIMAX_API_KEY\"\n\n[models.\"mimo\u002Fmimo-v2.6-pro\"]\nprovider = \"mimo\"\nmodel = \"mimo-v2.6-pro\"\nmax_context_size = 1000000\nmax_output_size = 128000\ncapabilities = [\"image_in\", \"thinking\", \"tool_use\"]\n\n[models.\"minimax\u002FMiniMax-M3.1-Flash\"]\nprovider = \"minimax\"\nmodel = \"MiniMax-M3.1-Flash\"\n```\n\nTo use a subscription instead of a pay-as-you-go key, run `killi login` and pick one, or name\nit: `killi login chatgpt`, `killi login opencode-go`, `killi login muse-code` or `killi login\ncommand-code`. Either way killi adds the provider and its models to the config; `killi logout`\nsigns out. Inside a session, `\u002Fprovider` lists every preset and adds one from a pasted key:\nopencode-go, muse-code and command-code, plus anthropic, kimi, mimo, minimax, qwen, stepfun,\nunisound and zai. (ChatGPT and the browser sign-ins stay in `killi login`.) Run on a provider\nthe config already has, it also brings that provider's key, API and URL up to date (and the\ntool names for muse-code) and keeps the rest.\n\nTo keep a provider to some of its models — OpenCode Go already follows the account's own\nenabled list — add `[models_filter.\u003Cprovider>]` with `include` and `exclude` patterns. Each\npattern is a full alias or a model id, and a trailing `*` matches a prefix; `exclude` wins, and\na provider without the table keeps every model. The filter decides what `\u002Fmodel` lists, what\n`\u002Fprovider` syncs, and which model a session starts on:\n\n```toml\n[models_filter.zai]\ninclude = [\"glm-5.3\", \"glm-5.3-flash\"]\n```\n\n`killi models sync [\u003Cprovider>]` refreshes OpenCode Go's account list and Z.ai's `\u002Fmodels`\nwith the keys already in the config, and applies the filter; it needs no sign-in.\n\n- **ChatGPT** (Plus or Pro) signs in in the browser, through OpenAI's [sign-in for open-source\n  tools](https:\u002F\u002Fdevelopers.openai.com\u002Fsiwc\u002Ftoken-sharing-open-source), and keeps the credentials\n  in `~\u002F.killi\u002Fchatgpt.json`. Requests go to `api.openai.com\u002Fv1\u002Fresponses` on your plan, and\n  killi refreshes the hourly token itself; [ChatGPT settings → Usage](https:\u002F\u002Fchatgpt.com\u002Fsettings\u002Fusage)\n  shows and limits what killi uses.\n- **[OpenCode Go](https:\u002F\u002Fopencode.ai\u002Fdocs\u002Fgo\u002F)** takes the API key from the [OpenCode\n  Console](https:\u002F\u002Fopencode.ai\u002Fconsole) (`killi login` also takes `$OPENCODE_API_KEY`).\n  Its models answer on Chat Completions, Responses or Anthropic Messages; killi writes\n  each with the API and URL\n  [models.dev](https:\u002F\u002Fmodels.dev) gives it, and leaves out the ones on Gemini's API. Requests\n  carry `x-opencode-session` with the session's ID, as OpenCode asks.\n- **Muse Code** (Meta) takes the muse CLI's API key (`LLM|…`). killi writes a `meta` provider\n  on the Responses API with `tool_names = { bash = \"run_command\", web_search = \"search_web\" }`:\n  Meta refuses a subscription's requests whose tools carry another client's names, so the\n  requests carry the mapped names and the replies are read back under killi's.\n- **Command Code** signs in with your commandcode.ai account in the browser, the way its CLI\ndoes, and writes a `commandcode` provider with the models the subscription serves\n(`\u002Fprovider command-code` takes a pasted key instead). Requests speak the CLI's own API\n(`\u002Falpha\u002Fgenerate`) and count toward the subscription's usage.\n\nA model can use OpenAI's Responses API with `protocol = \"openai_responses\"`. A Claude model\nbehind an OpenAI-compatible gateway (Bedrock through LiteLLM) caches nothing unless the request\nmarks it: set `cache_control = true` on that model, and check with `scripts\u002Fprobe.py cache`.\n\n### Working with it\n\n```sh\nkilli                        # start a session here\nkilli -c                     # continue the last session in this folder\nkilli -r                     # pick an earlier session\nkilli -p \"fix the failing test in src\u002Flib.rs\"   # run one task and exit\nkilli -p \"...\" --json        # one JSON summary: tokens, cache hits, time\n```\n\n| Key | |\n|---|---|\n| \u002F | the command menu: ↑↓ choose, Tab completes, Enter runs, Esc closes |\n| @ | the file menu: fuzzy-search the workspace, Tab or Enter inserts `@path`; the file's contents go to the model with your message |\n| Enter | send; while the agent works, your message reaches it at its next step |\n| Shift+Enter, Ctrl+J | new line |\n| ! | run a shell command without involving the model; a bare `!` opens your shell |\n| Esc | interrupt; before the reply begins, your message comes back to the prompt as if never sent |\n| Ctrl+S | while the agent works, interrupt it and send your message now; during a swarm the first press only queues it |\n| Ctrl+C | copy the prompt's selection, else clear the prompt; on an empty prompt, interrupt, twice to quit |\n| Shift+Tab | plan mode |\n| Ctrl+V | paste an image from the clipboard as `[Image #1]` (Cmd+V too in [Kil](https:\u002F\u002Fgithub.com\u002Ftimwuhaotian\u002Fkil)) |\n| drag a file in | an image is attached as `[Image #1]`; any other file is named as `@path` |\n| Ctrl+O | the last tool output or thought in full |\n| ↑ ↓ | history |\n| Tab, → | at the end of the prompt, take the faint suggestion after it |\n| Shift+arrows, Shift+Home\u002FEnd | 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 |\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fmenu.svg\" width=\"960\" alt=\"The slash menu narrowed by \u002Fre on the iced-coffee theme: resume, recap, reload and the refactor and code-review skills first, then the other commands whose descriptions match, each with its description\">\n\u003C\u002Fp>\n\nCommands: `\u002Fprovider [name]` (add a provider from a pasted key), `\u002Fmodel [alias]`, `\u002Ftheme [name]` (color theme),\n`\u002Fbackup-model [alias]` (the fallback when the primary keeps failing), `\u002Fmcp [server]`\n(turn servers on or off), `\u002Fweb-search-config`, `\u002Feffort [level]` (thinking effort),\n`\u002Fnew` (or `\u002Fclear`), `\u002Fresume`, `\u002Fbtw \u003Cquestion>` (a side question, never kept),\n`\u002Fcompact [focus]`, `\u002Frecap`, `\u002Fundo`, `\u002Fplan`, `\u002Fswarm [task|on|off|parallel \u003Cn>]`,\n`\u002Fgoal [\u003Ctext>|done|clear]` (a session goal: `\u002Fexit`, `\u002Fnew` and `\u002Fresume` wait until it is\n`\u002Fgoal done`, or `\u002Fgoal clear` when it is truly impossible or no longer wanted), `\u002Fusage`, `\u002Fsession`\n(copies the session's id, log path and summary for another agent to read), `\u002Fsessions` (the\nother killi sessions running on this machine), `\u002Flater [done N]` (what the agent noted for\nlater in this folder), `\u002Fprune [keep]`\n(deletes every session on the machine but the newest few), `\u002Freload`,\n`\u002Fhelp`, `\u002Fexit`, and\n`\u002F\u003Cskill-name> [request]` for any skill. The menu matches loosely, the way Kimi Code's does:\n`\u002Fcr` finds `code-review`.\n\nTen color themes: `\u002Ftheme` previews each one live — its banner gradient, diff stripes and\nstatus colors — as the selection moves, before you pick. The screenshots here wear\n`iced-coffee` (sky blue, coral and amber on dark), the palette the icon is drawn from.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Ftheme.svg\" width=\"960\" alt=\"\u002Ftheme previewing iced-coffee: a specimen with the banner in its blue-to-coral gradient, a swatch for every color's job, sample tool rows, a working row and a diff, above the prompt and the list of ten themes with iced-coffee current\">\n\u003C\u002Fp>\n\nAfter a turn that used tools, killi prints a recap of the session in 100 characters or fewer\nunder the turn's totals; `\u002Frecap` asks for one at any time, and `[ui] recap = false` turns the\nautomatic one off. A recap is a side request like `\u002Fbtw`: it is never kept in the conversation\nand the cached prefix still hits.\n\nAfter a turn ends, the model suggests what to ask next: the empty prompt shows the suggestion\nas its placeholder, and Tab or → puts it in the prompt. Once you take it, or pause for a second\nwhile typing a prompt, the model guesses how the prompt goes on and shows that faint after the\ncursor; Tab or → takes it and asks for more, and typing along it keeps it. Each is a side request\nlike `\u002Fbtw`, so it is never kept in the conversation and the cached prefix still hits.\n\nkilli runs commands and edits files without asking; `\u002Fundo` is the safety net.\n\n**Things for later.** When the agent notices a blocker, a bug in passing or an improvement\nit won't do now, it notes it with its `later` tool right then, instead of holding it for the\nfinal message, one list per folder in `~\u002F.killi\u002Fsessions\u002F\u003Cfolder>\u002Flater.md` with open items\nonly. `\u002Flater` shows the list, `\u002Flater done 3` crosses one off, and the banner says how many\nare open.\n\n**Other sessions.** Every killi running on the machine is listed in `~\u002F.killi\u002Flive`. When one starts or stops there, the\nagent is told once: changes it didn't make may be theirs, and branch switches, stashes and\nresets belong in a worktree. `\u002Fundo` says when it would also undo another session's work. From\nthe agent's shell, or yours:\n\n```sh\nkilli sessions                 # every session: pid, working or idle, folder, branch, prompt\nkilli sessions 4321            # what one is doing now: its task list, what it waits on\nkilli ask 4321 \"which files are you changing?\"   # its model answers from its conversation; nothing is kept\nkilli tell 4321 \"the base branch is pushed\"      # a message for its next step, or its next prompt when idle\n```\n\nA message is marked as not coming from the user, never starts a turn, and a session takes at\nmost three between two prompts. `[agent] peers = false` keeps a session to itself.\n\n### System prompt, instructions, skills, MCP and hooks\n\n- **System prompt:** its guidance (how the agent works, and the safety rules) sits in\n  `config.toml` under `[prompt] system`, to read and edit; `\u002Freload` applies a change.\n  `killi init` writes it there, or adds it to a config that has none. While it's there, killi\n  updates don't change your prompt; delete the table to go back to the built-in text.\n- **Instructions:** `~\u002F.agents\u002FAGENTS.md`, then every `AGENTS.md` from the git root down to\n  the working directory (or `CLAUDE.md` where there is no `AGENTS.md`; `@file` lines are\n  followed). When the agent works in a subfolder with its own `AGENTS.md`, it is pointed to it.\n- **Skills:** folders with a `SKILL.md` in `~\u002F.agents\u002Fskills` and the project's\n  `.agents\u002Fskills` or `.claude\u002Fskills`. Only their names go in the prompt; the agent loads one\n  when it applies, and `\u002F\u003Cname>` runs one directly. A skill's declared sub-commands (its\n  Commands table or `command-metadata.json`, like impeccable's `polish`) are names too:\n  `\u002Fpolish` loads the parent skill with that playbook appended. Other folders:\n  `[skills] dirs = [...]`.\n  One is built in: `\u002Fupdate-config` tells the agent every file and key of this version's\n  configuration, so it can say where things are, what a setting does, or make a change.\n  Project installs from `npx skills add` (any agent that uses `.agents\u002Fskills`) land there, and\n  so do global installs with `-g -a pi` (or `codex`, `cline`), so killi sees them. Installers\n  look for killi by the `~\u002F.killi` folder, which `install.sh` creates.\n- **MCP:** servers from `~\u002F.killi\u002Fmcp.json` and the project's `.mcp.json`, in the usual\n  `{\"mcpServers\": {...}}` format (stdio or HTTP). The agent reaches them through one `mcp` tool,\n  and a server starts, and its tools load, the first time it's used. To give a project's\n  favorite server native tools from the start, add `[mcp] eager = [\"godot\"]` to its\n  `.killi\u002Fconfig.toml`. Stdio servers run in one shared `killi mcp-serve` process, so every\n  killi session on the machine uses the same server instead of starting its own; it exits 15\n  minutes after the last session lets go. User servers start in your home folder, project\n  servers in the project root. `\u002Fmcp` lists the servers and turns one on or off, for this\n  session and the next ones. The project `.mcp.json` is the file `add-mcp` writes for Claude\n  Code, so servers added there reach killi too.\n- **Hooks** use Claude Code's protocol (JSON on stdin; exit code 2 blocks and tells the model\n  why):\n\n  ```toml\n  [[hooks.PreToolUse]]\n  matcher = \"bash\"             # a regex over tool names\n  command = \"~\u002Fbin\u002Fno-force-push.sh\"\n  ```\n\n  Events: `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `Stop`,\n  `SubagentStop`, `SessionEnd` (when the session exits, only if a turn ran). A `PostToolUse` hook that prints something (or exits 2) shows its output to\n  the model, which makes a cheap stand-in for an editor's diagnostics: run the type checker\n  after every edit.\n\n  ```toml\n  [[hooks.PostToolUse]]\n  matcher = \"edit|write\"\n  command = \"cargo check --quiet 2>&1 | head -30; exit 0\"\n  ```\n\n  `KILLI_NO_HOOKS=1` runs a session with every hook off.\n\n- **Entire:** killi sessions checkpoint to [Entire](https:\u002F\u002Fentire.io), which mirrors the\n  repo and links each commit to the session behind it (see the\n  [quickstart](https:\u002F\u002Fdocs.entire.com\u002Fquickstart)). `entire agent add` has no killi entry,\n  but killi speaks Claude Code's hook protocol, so the wiring in `\u002Fupdate-config` (seven\n  hooks in `~\u002F.killi\u002Fconfig.toml`) checkpoints every session on start, prompt, tool use,\n  stop and exit.\n\n- **Web:** `web_search` finds pages and `fetch_url` reads them. Without setup, search reads\n  Brave's public results page, which can turn automated requests away. `\u002Fweb-search-config`\n  asks for the service and what it needs, writes `[search]` and applies it at once; by hand\n  (`provider` is `\"brave\"`, `\"tavily\"` or `\"searxng\"`):\n\n  ```toml\n  [search]\n  provider = \"brave\"\n  api_key_env = \"BRAVE_API_KEY\"   # or: api_key = \"...\"\n  ```\n\n  `\"searxng\"` points at your own instance instead of a key — self-hosted, with the json format\n  enabled (`settings.yml`: `search → formats: [html, json]`) — and takes an optional key:\n\n  ```toml\n  [search]\n  provider = \"searxng\"\n  url = \"http:\u002F\u002Flocalhost:8888\"\n  ```\n\n  `fetch_url` also renders pages that need JavaScript, takes screenshots of them (`screenshot`,\n  for checking a local dev server's UI) and fetches raw bodies (`raw`), all through Moli when\n  it is installed (`KILLI_MOLI`, `~\u002F.local\u002Fbin\u002Fmoli`, or `moli` on `PATH`), else the Chrome,\n  Chromium, Edge or Brave in `\u002FApplications` on macOS or on `PATH` on Linux (or `KILLI_CHROME`)\n  run headless with a throwaway\n  profile. A page whose static HTML has no readable text is rendered automatically.\n\n## How it works\n\nProviders cache the start of a prompt, so a request that begins exactly like the last one is\ncheaper and faster ([OpenAI](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fguides\u002Fprompt-caching),\n[Anthropic](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fdocs\u002Fbuild-with-claude\u002Fprompt-caching)). killi keeps\nthat start identical:\n\n- The system prompt, your `AGENTS.md` files and the tool definitions are built once when the\n  session starts and never change. Plan mode blocks writes when a tool runs instead of removing\n  tools; MCP servers are reached through one fixed tool; subagents get the same prompt and tools.\n- Messages are stored exactly as sent, tool-call arguments and reasoning included, and nothing\n  earlier is ever edited or merged. Notes from killi to the model go at the end. Only\n  compaction rewrites history, and it keeps your requests word for word.\n> On MiMo, changing the tool list mid-session dropped a request's cached tokens to zero,\n> history included. That measurement shaped the rest.\n\nThe design, with the measurements behind each choice, is in\n[docs\u002Fdecisions.md](docs\u002Fdecisions.md).\n\n## Known limitations\n\n- **macOS (arm64) and Linux (x64\u002Farm64) only.** killi ships for Apple silicon Macs and Linux; Intel Macs and Windows are not supported yet.\n- **Early software.** Used daily by its author, but expect rough edges; `\u002Fundo` and git are your safety nets.\n- **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](#size-and-memory) and [Capability tests](#capability-tests).\n\n## Development\n\n```sh\ncargo clippy --workspace --all-targets -- -D warnings\ncargo test --workspace\npython3 scripts\u002Feval.py verify   # every capability task fails as given and passes when solved\n```\n\nReleases are described in [RELEASING.md](RELEASING.md).\n\n## License\n\n[MIT](LICENSE)\n","killi 是一个轻量级开源终端 AI 编程智能体，专为高效代码理解、编辑与执行设计。它以单个约 7 MB 的 Rust 原生二进制分发，启动快（\u003C10 ms）、内存占用低（约 18 MB），支持 OpenAI\u002FAnthropic 兼容 LLM，并集成 MCP 协议、子智能体、规划模式、可扩展技能与钩子机制；核心优化在于高 prompt 缓存命中率（70–90%），显著减少重复 token 传输。适用于 macOS（Apple Silicon）和 Linux 开发者在 CLI 环境中进行快速代码调试、文件编辑与自动化任务，是 Claude Code、Codex CLI 等工具的轻量替代方案。",2,"2026-11-24 04:40:55","CREATED_QUERY"]