killi
A ~7 MB Rust coding agent for the terminal that keeps the prompt prefix fixed, so 70–90% of input tokens hit the cache.
- Source repo
- timwuhaotian/killi
- Stars
- ★ 55
- Last updated
- 3d ago
- FARS reviewed
- Nov 20, 2026
- License
- MIT
- Primary language
- Rust
- FA score
- 52/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformChatGPT · OpenAI API · Claude APIClaude Code (Partial support)
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer on an Apple Silicon Mac or a Linux box who wants a terminal agent with no Node or Python runtime to install — one binary plus one API key.
- Not a fit if
- Teams that require per-command approval before edits or shell runs
- Developers on Windows or Intel Macs, which are not supported
- Projects that depend on LSP or on tools being added mid-session
- Website
- timwuhaotian.github.io/killi ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-20
- Source review
- 52/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
killi is an AI coding agent written in Rust and shipped as one ~7 MB native binary for Apple Silicon macOS and Linux (x64/arm64), with no runtime to install. It reads the repository, runs shell commands and edits files from an interactive TUI that prints into the terminal's own scrollback while only a small footer redraws; it can also run a single task headless with killi -p and return a JSON summary of tokens, cache hits and time. Models come from any OpenAI-compatible, Anthropic-compatible or OpenAI Responses endpoint, from an API key or a ChatGPT Plus/Pro subscription, or from providers added with /provider, killi login and killi import. The organizing idea is prompt-cache stability: the system prompt, AGENTS.md instructions and tool definitions are built once per session and history is only appended, so most input tokens are served from the provider's cache. Around that core it adds plan mode, subagents and swarms of up to 128, MCP servers reached through one gateway tool, skills, Claude Code-style hooks, /undo, background tasks and cross-session messaging commands.
On start, killi builds a fixed prefix: the system prompt from [prompt] system in ~/.killi/config.toml, ~/.agents/AGENTS.md plus every AGENTS.md (or CLAUDE.md where absent) from the git root down to the working directory, saved memory from ~/.killi/memory.md, and the complete tool list — roughly 2,900 tokens together. It then loops: the model calls bash, edit/write (tolerant of trailing spaces, smart quotes and dashes, and repairing slightly broken tool-call JSON), web_search/fetch_url, memory, later, subagents and a single mcp gateway tool, with results streamed back into scrollback while the footer shows the running step, task list, prompt and status line. MCP servers declared in ~/.killi/mcp.json and the project .mcp.json (stdio or HTTP) are launched on first use by a shared killi mcp-serve process. Subagents and swarms reuse the same cached prefix — one subagent per template item, up to 128, concurrency set by swarm_parallel (default 8, 8), either in the foreground or all in the background under /mode orchestrate. Sessions are persisted exactly as sent so killi -c resumes with a warm cache, and every running session registers in ~/.killi/live, where killi sessions, killi ask, killi tell, killi card, killi send, killi tasks and killi cancel act on it. Hooks follow Claude Code's stdin-JSON protocol across SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SubagentStop and SessionEnd; killi -p ... --json emits one JSON object with token, cache-hit and timing data for scripts.
- A developer on an Apple Silicon Mac or a Linux box who wants a terminal agent with no Node or Python runtime to install — one binary plus one API key.
- Long debugging or refactoring sessions where the token bill matters and a warm prompt cache keeps input cost down.
- Teams whose models are spread across a self-hosted OpenAI-compatible gateway, Anthropic and a ChatGPT subscription, and who want to avoid vendor lock-in.
- Users already invested in Claude Code conventions — AGENTS.md/CLAUDE.md,
~/.agents/skills,mcp.json, hooks — who want a lighter runtime without rebuilding their setup. - Scripted or CI one-shot runs that need token and cache accounting, via
killi -pwith--json. - Parallel workloads: a swarm with one subagent per work item, or several killi sessions querying and handing tasks to each other with
killi ask/killi send.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Environment variables
OPENAI_API_KEYANTHROPIC_API_KEY- Config files
releases/latest.toml~/.local/bin~/.killi/config.toml
How do you install or deploy this agent?
The install script verifies a SHA-256 against releases/latest.toml and drops the binary in ~/.local/bin:
How do you use this agent?
The first interactive killi writes a starting ~/.killi/config.toml and opens the session; if $OPENAI_API_KEY or $ANTHROPIC_API_KEY is already in the environment, that provider's model becomes the default. You can also generate a config with killi init, or copy another agent's setup with killi import, which offers the Kimi Code, pi, omp, opencode, Codex, Claude Code or Gemini CLI configs it finds. A two-provider config looks like this:
What are this agent's strengths and limitations?
- Tiny and fast: one ~7 MB binary with no runtime, under 10 ms startup, and about 18 MB peak memory for one prompt — the repo's own benchmark measures Claude Code at 318 MB, Kimi Code at 408 MB and opencode 2 at 332 MB.
- Cache-first by construction: the system prompt and tool list never change mid-session and history is append-only, so plan mode, subagents and resumed sessions reuse the same prefix; the documented hit rate is 70–90% of input tokens.
- No model lock-in: OpenAI-compatible, Anthropic Messages and OpenAI Responses protocols, API keys or a ChatGPT Plus/Pro subscription, plus OpenCode Go, Muse Code and Command Code sign-ins.
- Low prompt overhead: about 2,900 tokens for the whole system prompt and every tool; in the repository's 14 capability tasks it passed everything Kimi Code passed on the same model with 5.6× fewer input tokens.
- A full agent kit rather than a chat wrapper: plan mode, subagents and swarms up to 128, MCP behind one gateway tool, skills, Claude Code-format hooks,
/remembermemory,/undo, background tasks and cross-session messaging.
- No approval prompts: commands and edits run immediately, with
/undoand git as the only guardrails, and plan mode the only mode that blocks writes. - Platforms are limited to macOS (arm64) and Linux (x64/arm64) — no Windows, no Intel Macs, no LSP.
- The tool list and system prompt are frozen for a session, so tools cannot be added or removed mid-session; MCP must go through one gateway tool, and native tools need
[mcp] eagerdeclared up front. - Early-stage software, used daily by its author but explicitly rough-edged, with a small evidence base of 14 capability tasks run once each.
- You must supply an LLM key or subscription anyway (the software is free, the model is not), and the comparison numbers mix machines, dates and model versions, so they are directional rather than controlled.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| killi This agent | 52 · Major gaps | CLIFree + model costs | ★ 55 | 3d ago | Rust | ChatGPT · OpenAI API · Claude API |
| Aster | 70 · Some gaps | CLIFree + model costs | ★ 139 | 22d ago | Rust | OpenAI API |
| Whale | 56 · Major gaps | CLIFree + model costs | ★ 935 | 1mo ago | Go | — |
| VT Code | 63 · Some gaps | CLIFree + model costs | ★ 916 | 1d ago | Rust | OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
README states plainly that killi runs commands and edits files with no approval prompts, so user_confirmation is 0 by design. least_privilege rests only on plan mode and /undo as backstops, which is thin, hence 1. Data-flow transparency covers config and login but does not systematically disclose session logs, memory files and outbound request contents, hence 1. Sensitive data handling mentions credentials in ~/.killi/chatgpt.json and env-var API keys but no file permissions or encryption, hence 1. Dependency security is evidenced by a cargo-audit --deny unsound CI job and --locked builds, hence 2. External effects (command execution, file edits, network) are on by default with only undo/git as recovery, hence 1. Rollback is documented via /undo and git in both README and AGENTS.md, hence 2. Source attribution is limited to README self-description and an MIT copyright line with an unverified publisher, hence 1.
self_consistency is decent: README, AGENTS.md and Cargo.toml agree on version and commands, and CI runs clippy, tests, MSRV and a live check, hence 2. dependency_availability is supported by --locked, rust-version 1.94 and three-platform release builds, hence 2. failure_messages show a uniform eprintln plus anyhow context in main.rs, but the sample is small and no systematic error taxonomy is visible, hence 1.
audience_and_scenarios is explicit about terminal developers and the trade-offs versus Claude Code, hence 2. capability_boundaries are unusually clear (no Windows, no Intel Macs, no LSP, fixed tool list per session), hence 3. trigger_precision relies on skill description text with no conflict resolution or negative examples shown, hence 1. environment_fit covers macOS arm64 and Linux x64/arm64 with graceful degradation for optional tools, but excludes Windows and Intel, hence 2.
information_architecture has README sections, an FAQ, AGENTS.md and a skills directory, hence 2. install_notes give curl install with SHA-256 check, cargo source build and the Rust version, hence 2. naming_stability shows an import-kimi alias and several command aliases, indicating naming churn, hence 1. examples_and_faq include an FAQ and config samples, hence 2. known_limitations has a dedicated section and an explicit early-stage status, hence 2. license is a full MIT text consistent with Cargo.toml, hence 3. versioning_changelog is only referenced by a workflow; no changelog content is in the packet, hence 1. maintenance_responsibility is a single author with an unverified publisher and self-update path, hence 1.
output_usability offers -p/--json one-shot output, session logs and report scripts, hence 2. marginal_value is differentiated on size, memory and cache hits, though the comparisons are self-measured, hence 2. cost_benefit rests on the 5.6x token and 70-90% cache claims, which are author-reported, single-run and measured on different machines and dates, so the evidence does not support a strong conclusion, hence 1.
claim_traceability is good: README points to scripts/bench.py, docs/bench.json, docs/eval.md and measurement dates, hence 2. cross_source_corroboration is weak: performance numbers come only from the author's own scripts and charts with no third-party reproduction, hence 1. fact_inference_separation is partial: dates and machines are named, but rows from different machines and dates are compared side by side without fully flagging non-comparability, hence 1.
- Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
- Commands and file edits run without approval by default, with only /undo and git as recovery; risky in untrusted repositories.
- Performance and token figures (7 MB, 18 MB, 5.6x, 70-90% cache hits) are author-measured across different machines and dates with no third-party reproduction.
- Publisher identity is unverified, and the self-update path fetches and installs a new binary from the network; verify checksums and provenance yourself.
- No actual changelog content is present in the packet, making version evolution and breaking changes hard to trace.
- Session logs and memory files are persisted to disk by default, so sensitive code content may be retained; assess accordingly.
FAQ
Is killi free?
Is killi open source?
Is killi safe to use?
Is killi still maintained?
Who makes killi?
What is killi's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.