An AI coding agent that writes the code, runs the tests, and remembers your project — session after session. Tell it what to build and watch it happen.
One command is all it takes — paste in cmd.exe or PowerShell:
cmd.exe (Command Prompt):
Then open a new terminal and type kb.
A coding agent that works directly with your project.
Persistent memory. Remembers facts, decisions, and preferences across sessions. Yesterday's context is there tomorrow.
Knowledge base. Builds compact kb/ notes with code pointers. Token-cheap, no full re-scans.
Reads, edits, runs. Works with your files and terminal directly — plain English is all you need.
Drives your real Chrome. Uses your profile, logins, and cookies — not a sterile separate browser.
All major model providers. Claude, OpenAI, Gemini, xAI, DeepSeek, Moonshot, Ollama, and any OpenAI-compatible API. Your key, your choice.
$0 kbcode fee. Bring your own API key and pay only your provider at their official prices. No markup.
Encrypted API keys. Fernet-encrypted and machine-bound in ~/.kbcode. They go to your provider and nowhere else.
One command to install. No Python, no clone, no admin rights. Paste one line and you're done.
Works with any model. Weak models get tool-call repair, strong models get full capability. No wasted turns.
Learns from mistakes. Catches failures in real time, turns them into permanent lessons. Improves the more you use it.
36 capabilities across coding, memory, context, tools, safety, and setup.
Reads your files, writes code, runs commands — runs locally, no server needed.
Core15+ built-in providers — Claude, OpenAI, Gemini, xAI, DeepSeek, Moonshot, Z.ai, MiMo, OpenRouter, Mistral, Groq, Together, Qwen, Ollama, and any OpenAI-compatible API.
CoreCode, architect, ask, debug, driven, pilot, orchestrator, and custom modes — each gets only the tools it needs.
More → CoreDelegate to specialist subagents — autopilot, fixer, code-explorer, plus your own custom agents. Parallel and autonomous.
CoreRemembers facts, decisions, and preferences across sessions in a thread-safe store. Teach it once.
MemoryReusable workflows saved as .md files. Teach once, run any time with /<name>.
Short notes with code pointers — token-cheap, no full re-scan. kb_read, edit, write, auto-update, semantic search.
MemoryA running diary that survives context summarization — your goal and rules never get lost mid-session.
MemorySummarize, trim, or none — keeps long sessions inside the window without losing the thread.
ContextWeak model sends a malformed call? kbcode fixes it automatically. No wasted turns.
ContextEvery session is recorded. Reopen an old chat exactly where you left it.
ContextRead, write, edit, list, search, run, plus background tasks. PageRank symbol map shows the code that matters.
ToolsSearch/replace with multiple fallback strategies. Edits land cleanly even when the file has drifted.
ToolsSearches the web and fetches URLs for current docs and changelogs. Pages cached with a TTL.
ToolsReads images and screenshots. Paste a mockup or an error screen and it understands.
ToolsPulls the transcript from any YouTube video — walkthroughs, talks, tutorials.
ToolsConnect any stdio MCP server — its tools become built-in. No platform lock-in.
ToolsDrop a .py file in .kbcode/tools/ — it becomes an in-process tool.
Detached agents in git-worktree sandboxes. Start one, switch tasks — lands as a branch.
ToolsPreToolUse / PostToolUse / Stop hooks from .kbcode/ config. Block or allow any tool.
Drives your real Chrome — your profile, logins, cookies — via the kbcode extension.
ToolsSnapshot before every edit. /undo reverts the last turn. Nothing is lost.
Register with email or Google at kbcode.dev. Only --version, login, doctor stay open.
Fernet-encrypted and machine-bound in ~/.kbcode. Keys go to your provider only.
External text from web, pages, and files is wrapped — prompt injection can't issue instructions.
SafetyTests, lint, and KB checks in one command: kb gate. Nothing unready gets committed.
Probes each model on onboarding. Weak models get handled, not trusted blindly.
SafetyCatches mistakes mid-turn, turns them into permanent lessons. Never repeats the same error twice.
SafetyScores and ranks its own answers — you get the best one it produced.
SafetyCompares models head-to-head on real tasks. Pick the provider that actually performs.
Safetykb doctor checks PATH, install, config, provider, and warns if your binary is stale.
Precedence-based config with presets. Per-project .kbcode/ retargeting. Set once, inherits everywhere.
kb model, kb init, kb onboarding — from zero to a configured project in minutes.
28 fragments, served by the brain at startup. Not bundled in the exe — improve without a reinstall.
SetupOpt-in feedback, scrubbed of secrets and file paths before leaving your machine.
Setupkb update downloads a SHA256-verified kb.exe — one command to upgrade.
A compact memory of your codebase — short notes with code pointers.
/init to fill them with real facts.
/init — your project has a memory
On a new project, kbcode drops empty starter templates into kb/.
Until you run /init, the agent has no knowledge of your codebase — it
will re-scan files from scratch every time, miss conventions, and repeat the same mistakes.
One command scans your entire project, fills every note with real facts from your code, and web-searches for the latest docs. Minutes later, your project has a real memory — and the agent actually knows what it's doing.
All major providers, one agent loop. Bring your own API key — any OpenAI‑compatible endpoint works.
Don't see yours? Pick Custom — kbcode works with any OpenAI-compatible API. Your endpoint, your key.
Terminal flags and 88 slash commands inside the chat. More →
/undo /rollback /diff /review /explain/status /context /compact /usage /cost/model /provider /thinking /temperature /fallback/kb /curate /memory /skills /learn/mode /auto /todo /worklog /agents /tools/commit /pr /bg /tasks /gate /open/help in chat for all 88 commands$0 kbcode fee. You pay only your AI provider.
Bring your own provider key (Claude, OpenAI, Gemini, DeepSeek). You pay your provider directly at official API prices with zero markup.
Your code and keys stay under your control.
API keys in ~/.kbcode are machine-bound encrypted. They go straight to your provider and nowhere else.
Every edit takes a git checkpoint. Run /undo to revert the last turn instantly. Nothing is lost.
Logs, prompts, and feedback automatically strip API keys and secrets before touching disk or network.
External web content is wrapped to prevent prompt-injection attacks from overriding agent instructions.
Create an account or sign in to get your install command.
Sign up with email+password or use your Google account — takes 30 seconds.
Already signed in? Go to your dashboard.