Terminal-native AI coding agent. Built on agentcore, a minimal agent execution kernel.
Most AI coding tools are either bloated frameworks or thin API wrappers. Codebot sits in between: a complete agent with session management, security policies, and a polished TUI — in under 3000 lines of application code.
The trick: agentcore handles execution, codebot handles coordination.
Each layer has one job. No layer knows about the layers above it.
Agent
- Streaming responses with extended thinking (off → xhigh)
- Tool execution: read, write, edit, bash, grep, find, ls, web_search, web_fetch
- Task management: task_create, task_get, task_update, task_list (SubAgent coordination)
- SubAgent delegation with parallel/chain execution
- Automatic context compaction when window fills up
- Multi-provider: Anthropic, OpenAI, OpenRouter, Gemini
- MCP (Model Context Protocol) server integration
Sessions
- Append-only JSONL persistence — crash-safe, human-readable
- Resume (
-clast,-rpick), fork at any point, replay - Model and thinking level restored per session
Security
- Three profiles:
strict/balanced/off - Dangerous command blocking (rm -rf, sudo, dd, ...)
- Workspace-scoped file access
- JSON audit log for every tool decision
Interface
- Interactive TUI with real-time streaming and markdown rendering
- Plan mode: agent proposes changes, user reviews and approves
- AskUser: structured multi-choice questions from agent to user
- Image paste (Ctrl+V) with selection (↑) and deletion (Delete)
- Task progress display: progress bar + status icons above input
- Non-interactive print mode for pipes and scripts (
-p) - Slash commands:
/model,/compact,/plan,/resume,/copy, ...
Pre-built binary (recommended):
# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/voocel/codebot/main/scripts/install.sh | sh
# Windows (PowerShell)
irm https://raw.githubusercontent.com/voocel/codebot/main/scripts/install.ps1 | iexOr download directly from GitHub Releases.
With Go:
go install github.com/voocel/codebot/cmd/codebot@latestBuild from source:
git clone https://github.com/voocel/codebot.git
cd codebot && go build -o codebot ./cmd/codebot# Set API key and run
export ANTHROPIC_API_KEY=sk-ant-...
codebotSupported environment variables: ANTHROPIC_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY, GEMINI_API_KEY. For more options see settings.example.jsonc.
OpenRouter can be used as a first-class provider in settings.json:
{
"provider": "openrouter",
"model": "openai/gpt-5",
"providers": {
"openrouter": {
"api_key": "sk-or-...",
"base_url": "https://openrouter.ai/api/v1"
}
}
}# Interactive TUI
codebot
# Pipe mode
echo "explain main.go" | codebot -p
# Continue last session
codebot -c
# Strict security
codebot -policy-profile strict- Reuse before reinvent — agentcore does the agent loop, codebot doesn't redo it
- No premature abstraction — every interface has at least two real callers
- Convention over configuration — sensible defaults, explicit overrides
- Secure by default — balanced policy, audit trail, workspace boundaries
Config files: ~/.codebot/settings.json (global) or .codebot/settings.json (project-level, takes precedence).
All fields are optional. See settings.example.jsonc for the full reference with comments.
- API key for at least one provider
- Go 1.25+ (only if installing via
go installor building from source)
MIT
