Codebuff is an advanced coding agent with a composable agent framework. It also includes:
- freebuff, the free coding agent
- evalbuff, a project to improve an agent through evals
Make an efficient learning agent that can do anything.
- TypeScript monorepo (Bun workspaces)
- Bun runtime + package manager
- Next.js (web app + API routes)
- Multiple LLM providers (Anthropic/OpenAI/Gemini/etc.)
cli/— TUI client (OpenTUI + React) and local UXsdk/— JS/TS SDK used by the CLI and external usersweb/— Next.js app + API routes (the "web API")packages/agent-runtime/— agent runtime + tool handling (server-side)common/— shared types, tools, schemas, utilitiesagents/— main agents shipped with codebuff.agents/— local agent templates (prompt + programmatic agents)freebuff/- a free coding agent built from configuring codebuff clievalbuff/— automated docs optimization loop (run agent → judge → analyze → improve docs)
- Never force-push
mainunless explicitly requested. - Run interactive git commands in tmux (anything that opens an editor or prompts).
docs/architecture.md— Package dependency graph, per-package details, architectural patternsdocs/request-flow.md— Full request lifecycle from CLI through server and backdocs/error-schema.md— Server error response formats and client-side handlingdocs/development.md— Dev setup, worktrees, logs, package management, DB migrationsdocs/testing.md— DI over mocking, tmux CLI testingdocs/environment-variables.md— Env var rules, DI helpers, loading orderdocs/agents-and-tools.md— Agent system, shell shims, tool definitionsdocs/patterns/handle-steps-generators.md— handleSteps generator patterns and spawn_agents tool calls- docs/evalbuff/interpreting-task-prompts.md