OpenCode Autonomous Engineering Engine

Plan. Implement. Review.
Zero Friction.

Transform OpenCode into a battle-tested software engineering swarm with specialized agents, strict architectural boundaries, and native slash commands.

git clone https://github.com/akshhthakkar/opencode.git ~/.config/opencode

The Engineering Lifecycle

$ opencode > /plan Add JWT authentication middleware & refresh tokens
[Planner] Scanning project architecture and dependency graph...
✓ Scanned `src/middleware/` and `src/models/`
✓ Defined contract types for `TokenPayload` and `AuthHeader`

Phased Roadmap Generated:
1. [Service] Token generation in `src/auth/jwt.ts`
2. [Middleware] Auth verification hook in `src/middleware/auth.ts`
3. [Tests] Expiration and signature regression tests in `tests/jwt.test.ts`

Specialized Engineering Swarm

📐
Architect

Planner

Deep codebase exploration and risk assessment. Produces phased blueprints without modifying code.

  • Read-only exploration
  • Dependency mapping
  • Acceptance criteria
Full-Stack

Implementer

Executes architectural blueprints with surgical, type-safe, and idiomatic code changes.

  • Minimal diff footprint
  • Strict type adherence
  • Zero scope creep
🛡️
QA & Audit

Reviewer

Executes project test runners, evaluates boundary conditions, and audits uncommitted diffs.

  • Runs Jest/Pytest/Vitest
  • Static type & lint check
  • Actionable fix reports

Built-in Slash Commands

/plan <task>
→ Planner
Generates structured architectural phases and dependency roadmaps.
/implement <spec>
→ Implementer
Executes code changes strictly following the approved roadmap.
/check <args>
→ Reviewer
Runs automated test suites, typechecks, and boundary verifications.
/review
→ Reviewer
Performs immediate audit of uncommitted git diffs and status.

Injected Standards

code-standards

Enforces single-responsibility design, explicit naming, strict typing, resilient error handling, and zero dead code.

verification-testing

Standardizes automated test discovery (Jest, Pytest, Cargo, Vitest), edge-case validation, and linter conformance.