The AI coding agent that actually delivers production-ready code
Features β’ Quick Start β’ How It Works β’ Commands β’ Documentation
Most AI coding tools generate code and walk away. If tests fail, types don't match, or security issues creep in β that's on you.
Coco doesn't just generate code. It iterates until it's right.
After writing code, Coco automatically:
- β Runs your tests
- π Measures quality across 12 dimensions
- π Diagnoses what's wrong
- π§ Fixes issues and repeats
Until your code hits production-quality standards you define.
ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ
β Generate β βββΊ β Test β βββΊ β Measure β βββΊ β Fix β
ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ
β
Score < 85? β βββΊ Loop
Score β₯ 85? β βββΊ Done β
Not just code generation β iterative quality improvement:
| Iteration | Score | Status |
|---|---|---|
| 1 | 52 | Code generated β 3 tests failing, no error handling |
| 2 | 71 | Tests fixed, security vulnerability found |
| 3 | 84 | Security patched, coverage 82% |
| 4 | 91 | β All green β quality converged |
Enable with
/cocoβ now on by default for better results
Real metrics, not guesses:
| Dimension | How It's Measured |
|---|---|
| Test Coverage | c8/v8 instrumentation |
| Security | Pattern matching + optional Snyk |
| Complexity | Cyclomatic complexity (AST) |
| Duplication | Line-based similarity |
| Correctness | Test pass rate + build verification |
| Style | oxlint / eslint / biome |
| Documentation | JSDoc coverage |
| + 5 more | Readability, Maintainability, Test Quality, Completeness, Robustness |
Ship with confidence using /ship:
/ship # Complete 10-step pipelinePipeline: Preflight β Review β Tests β Lint β Branch β Version β Commit β PR β CI β Merge
Each step is interactive β press Ctrl+C anytime to safely cancel.
Six specialized agents with automatic routing:
- Researcher β Codebase exploration and analysis
- Coder β Code implementation (default)
- Tester β Test generation and coverage
- Reviewer β Quality auditing and code review
- Optimizer β Refactoring and performance
- Planner β Architecture and task decomposition
Bring your own API key:
| Provider | Auth | Models |
|---|---|---|
| Anthropic | API key / OAuth | Claude Opus, Sonnet, Haiku |
| OpenAI | API key | GPT-5.3 Codex, GPT-4.1, o4-mini |
| API key / gcloud | Gemini 3, 2.5 Pro/Flash | |
| Ollama | Local | Any local model |
| LM Studio | Local | Any GGUF model |
| Moonshot | API key | Kimi models |
- Ghost-text completion β Tab to accept suggestions
- Image paste β
Ctrl+Vto paste screenshots - Intent recognition β Natural language β commands
- Full-access mode β
/full-accessfor auto-approvals (with safety guards) - Self-update β Type "update coco" anytime
# Install globally
npm install -g @corbat-tech/coco
# Start interactive mode
coco
# Or use directly
coco "Add user authentication with tests"That's it. Coco walks you through provider setup on first launch.
| Command | What it does |
|---|---|
/help |
Show available commands |
/status |
Project status, git info, session stats |
/review |
Code review with severity-rated findings |
/diff |
Visual diff with syntax highlighting |
/ship |
Full release pipeline (review β test β PR β merge) |
/coco [on|off] |
Toggle quality mode (default: ON) |
/full-access [on|off] |
Auto-approve safe commands |
/compact |
Reduce context when conversation grows |
/clear |
Clear conversation history |
You don't need slash commands. Just talk:
| You say | Coco does |
|---|---|
| "review the code" | Runs /review |
| "let's ship it" | Runs /ship |
| "show me the changes" | Runs /diff |
| "update coco" | Runs /update-coco |
Bilingual support (English/Spanish).
Four phases for production-ready output:
CONVERGE ORCHESTRATE COMPLETE OUTPUT
ββββββββββββ ββββββββββββββββ ββββββββββββββββ ββββββββββββ
β Gather β β Design β β Execute with β β Generate β
β reqs β βββΊ β architecture ββββΊβ quality ββββΊβ CI/CD, β
β + spec β β + backlog β β convergence β β docs β
ββββββββββββ ββββββββββββββββ ββββββββββββββββ ββββββββββββ
β β
βββββββββββββββ
β Convergence β
β Loop β
βββββββββββββββ
- Converge β Understand requirements
- Orchestrate β Design architecture
- Complete β Build with quality iteration
- Output β Generate deployment config
git clone https://github.com/corbat/corbat-coco
cd corbat-coco
pnpm install
pnpm dev # Run in dev mode
pnpm test # 4,350+ tests
pnpm check # Typecheck + lint + testsrc/
βββ agents/ # Multi-agent coordination
βββ cli/ # REPL + commands
βββ phases/ # COCO phases
βββ quality/ # 12-dimension scoring
βββ providers/ # LLM provider integrations
βββ tools/ # File ops, git, tests, etc.
Stack: TypeScript + Node.js 22 + Vitest + oxlint/oxfmt + Zod
- Feature development β Get tested, reviewed code
- Refactoring β Improve quality with measurable progress
- Test generation β Meaningful tests, not boilerplate
- Code review β 12-dimensional quality feedback
- Learning β See how quality improves across iterations
We'd rather you know upfront:
- TypeScript/JavaScript first β Other languages have basic support
- CLI-only β No IDE extension yet (VS Code planned)
- Iteration takes time β Convergence adds 2-5 min per task
- LLM-dependent β Quality depends on your model choice
- Early stage β Not yet battle-tested at enterprise scale
Contributions welcome:
- π Bug reports and feature requests
- π¬ New quality analyzers
- π Additional LLM providers
- π Documentation and examples
See CONTRIBUTING.md.
MIT Β© Corbat
Built by developers who measure before they ship π₯₯
GitHub Β· corbat.tech Β· npm