kode

5 MB zero-dependency Go agent runtime.
Think, therefore act.

go install github.com/BackendStack21/kode/cmd/kode@latest Get Started →

The Five Whys

What you get

🔒

Sandboxed Execution

kode run --sandbox — every session spawns an isolated Docker container. No network, no host mounts beyond the working directory, zero capabilities, destroyed on exit.

🧩

Sub-Agent Delegation

Parallel OS-process sub-agents via delegate_tasks. True isolation — each sub-agent is a fresh process with its own config, tools, and timeout. Up to 8 concurrent workers.

🧠

Self-Learning Skills

Detects multi-step procedures, error recoveries, and corrections during your sessions. Saves them as reusable SKILL.md files. On by default — --no-learn to disable.

💾

Persistent Memory

Three tiers: facts, session buffer, and episodes. Merge-on-write via go-vector cosine similarity. Saves ~80% LLM calls on repeated topics.

🔗

MCP Two-Way

Server: kode mcp exposes native tools to Claude Code, Cursor, any MCP client. Client: kode connects to external MCP servers and makes their tools available to the agent.

🌐

Web UI

kode serve — browser-based agent with @ resource completion, WebSocket streaming, and a full IDE-style console. Built from Go's embed — zero npm.

🏗️

Layerable Config

Four-layer priority chain: global → project → KODE_* env vars → CLI flags. ${VAR} substitution in config files. Sensible defaults at every layer.

🔍

Native Tools

Built-in read_file, write_file, search_files, patch, shell, and browser. All gated by a unified security layer — classify operations as allow / deny / prompt per risk class.

kode vs the rest

kodePython agents
DependenciesZero. stdlib only.200+ packages
Binary size~5 MB static50–200 MB (venv)
StartupInstant2–10 seconds
Sandbox--sandbox flagManual Docker setup
Tool interfaceOne interface, one methodClass hierarchies + decorators
MCPBidirectional (server + client)Client-only or adapter needed
LanguageGo — native binaryPython — interpreter required

Install in 5 seconds

# Results instantly
$ kode run "How many lines in go.mod?"
3 lines

# With session persistence
$ kode run --session "Refactor the auth module"
$ kode continue "Now add error handling"

# Different provider, same binary
$ kode run --model gpt-4o --base-url https://api.openai.com/v1 "Explain this"

Cheatsheet

Commands

Key Flags

Everything else is documented

Deep-dive docs for every subsystem. Real detail, no fluff.

Ship it

One binary. One loop. Zero frameworks.
Go install and go.

go install github.com/BackendStack21/kode/cmd/kode@latest GitHub →