megaplan
Megaplan
High-rigor planning with adversarial critique, explicit gate decisions, and resumable execution.
When to use it
- Multi-file, ambiguous, high-risk, or multi-stage work
- Work that benefits from critique before execution
- Tasks where resumability and execution discipline matter
Skip it for obvious, low-risk edits.
Roles
| Role | Subagent | Purpose |
|---|---|---|
| Planner | build |
plan, revise, finalize |
| Critics | 3x deep |
feasibility, architecture, risk |
| Reviewer | deep |
final independent review |
| Orchestrator | you | state, gate, execution loop |
Workflow
init -> plan -> critique -> gate -> revise/finalize -> execute -> review
plan,revise,finalizedelegate tobuildcritiqueruns 3 paralleldeepcritics and merges flagsgateis computed by you, then decision delegated tobuildexecuteis owned by the main threadreviewdelegates todeep
Core rules
1. Continuity source of truth
Use .megaplan/plans/<name>/runbook.md as the continuity source of truth.
Trust runbook.md over conversational memory, especially after compaction or resume.
2. Main-thread execution
During execute, the main thread owns:
- batch selection
- implementation
- progress maintenance
- commits
- runbook updates
Delegate only fresh-eyes work:
simplify- pre-commit
review - specialist verification when needed
3. Fresh-eyes rule
The main thread must not approve its own diff unaided.
Before each commit:
- delegate fresh
simplify - delegate fresh pre-commit
review - fix anything required
- then commit atomically
4. Never-stop
During execution, set /never-stop using the exact ## Continue section from runbook.md.
Refresh it after meaningful steps. Clear it on complete or blocked.
Minimal runbook
Keep runbook.md minimal. It should contain only:
StatusStepNextBatchLast commitWatchBlocker## Continue
Do not turn the runbook into a diary. Keep history and evidence in other artifacts.
Artifacts
Use .megaplan/plans/<name>/.
Essential artifacts:
runbook.md— continuity control planeplan_v<N>.mdandplan_v<N>.meta.jsonfaults.jsongate.jsonfinalize.jsonreview.json
Additional artifacts may be written as needed for critiques, execution evidence, and summaries.
Execution loop
When Step is execute, use this loop:
- Find next unblocked WorkingBatch
- Implement in main thread
- Delegate fresh
simplify - Delegate fresh
review - Fix anything required
- Commit atomically
- Update
runbook.md - Repeat
Stop only on:
complete— all planned work finished, reviewed, committedblocked— missing requirements, auth, permissions, secrets, or irreconcilable contradiction
References
- Prompt templates: references/prompts.md
- Gate logic: references/evaluation.md
More from ajoslin/dot
pinescript
Use when creating or reviewing TradingView Pine Script v6 indicators/strategies/libraries, applying non-repainting best practices, generating Pine Script from other languages, or running Pine Script linting.
51session-export
Update GitHub PR or GitLab MR descriptions with AI session export summaries. Use when user asks to add session summary to PR/MR, document AI assistance in PR/MR, or export conversation summary to PR/MR description.
21find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
20vercel-composition-patterns
React composition patterns that scale. Use when refactoring components with
19kimaki-expert
Provide expert support for Kimaki setup, Discord bot wiring, OpenCode session orchestration, slash-command troubleshooting, and automation workflows. Use when users mention Kimaki, kimaki.xyz, Discord-controlled coding agents, or channel-to-project mapping.
18init-review-policy
Initialize repo-scoped code review policy files under .opencode/review. Use when setting up project-specific review rules for /code-review.
18