ChooChoo for OpenCode.
Open-source speed. Enterprise-grade standards.
The fast, open-source terminal coding agent. ChooChoo generates OPENCODE.md so every autonomous coding session follows your team's architectural decisions and security guardrails from session zero.
ChooChoo writes your OPENCODE.md for you.
OpenCode reads OPENCODE.md at startup to understand the project. ChooChoo compiles it from your actual codebase — covering architecture, key files, rules, and hard limits — so the agent starts fast and stays safe.
- OPENCODE.md with project structure, key files, and rules
- Explicit ALWAYS / NEVER guardrails for safe autonomous operation
- Stays in sync with your codebase as it evolves
# OPENCODE.md
# Generated by ChooChoo — do not edit by hand.
## payments-api
FastAPI service · Python 3.12 · PostgreSQL
## Quick Context
src/ Main application code
src/api/ Route definitions
src/services/ Business logic
src/models/ SQLAlchemy ORM models
tests/ Mirrors src/ structure
## Rules
ALWAYS:
✓ Use SQLAlchemy ORM (never raw SQL)
✓ Annotate function signatures with types
✓ Write tests for new business logic
✓ Use environment variables for secrets
NEVER:
✗ Log secrets, tokens, or card data
✗ Modify files under migrations/ directly
✗ Skip Pydantic validation at API boundaries
## Key Files
src/main.py FastAPI entry point
src/auth/service.py JWT auth (ADR-001)
src/payments/ Stripe integration
src/db/session.py Database dependency Why use ChooChoo with OpenCode?
Fast autonomous agents need firm guardrails. ChooChoo gives OpenCode the structure to move quickly and safely.
Consistent Output
Generated code follows your linting rules from the start, reducing cleanup work before code review.
Fewer Iterations
The AI understands your standards upfront, producing acceptable code faster and with less back-and-forth.
Team Alignment
Everyone's AI assistant generates code that matches your team's style guide — automatically.
Zero Configuration
Get started instantly with sensible defaults that work out of the box for most projects.
Type-Safe Code
Strict linting rules catch potential bugs and enforce type safety before they reach review.
AI-Ready Rules
Purpose-built rules that AI models understand and follow consistently, session after session.
Ready to run OpenCode with confidence?
Give your terminal agent the context it needs to operate within your team's guardrails automatically.