OpenCode command center for high-signal automation, deterministic validation, and release-ready workflows.
Docs hub:
docs/pages/index.htmlSupport: https://buy.stripe.com/8x200i8bSgVe3Vl3g8bfO00
Welcome to my OpenCode command center! ✨
This repo gives you a clean, portable OpenCode setup with fast MCP controls inside OpenCode itself. Keep autonomous coding smooth, and only turn on external context when you actually need it. ⚡
Start here: docs/quickstart.md
For the reusable delivery contract and lighter-weight policy docs that complement this runtime repo, search your local clone first when available, and use these public references when you need a shareable or canonical link:
https://github.com/dmoliveira/agents.md/blob/main/AGENTS.mdhttps://github.com/dmoliveira/agents.md/blob/main/docs/index.mdhttps://github.com/dmoliveira/agents.md/blob/main/docs/validation-policy.mdhttps://github.com/dmoliveira/agents.md/blob/main/docs/plan/README.md
Treat them as optional supporting references, not required startup context for every run.
If this project helps your workflow, please consider supporting ongoing maintenance:
- One source of truth for global OpenCode config.
- Token-aware workflow by keeping managed MCPs disabled by default.
- Instant MCP toggling with
/mcpcommands in the OpenCode prompt. - Portable install with a one-liner script and symlinked default config path.
- Worktree-first repo: start each task in a dedicated git worktree branch and keep the main project folder off task branches.
- 🧠 Built-in
/mcpcommand forstatus,help,doctor,profile,enable, anddisable. - 🎛️ Built-in
/plugincommand to enable or disable plugins without editing JSON. - 🔔 Built-in
/notifycommand to tune notification behavior and inspect a repo-local notification inbox feed. - 🧾 Built-in
/digestcommand for session snapshots and optional exit hooks. - 🧠 Built-in
/memorycommand for local shared-memory capture, retrieval, recall, and summarization. - 📡 Built-in
/telemetrycommand to manage LangGraph/local event forwarding. - ✅ Built-in
/post-sessioncommand to configure auto test/lint hooks on session end. - 🛡️ Policy profiles available via
/notify policy profile <strict|balanced|fast>. - 🧵 Built-in
/bgcommand for minimal background job orchestration and retrieval. - 🧱 Built-in
/refactor-litecommand for preflighted, safe-first refactor workflows. - 🗂️ Built-in
/reservationcommand to manage file reservation state for parallel writer guardrails. - 🧠 Built-in
/safe-editcommand for semantic adapter planning and readiness diagnostics. - 🩺 Built-in
/doctorumbrella command for one-shot health checks. - 🤖 Built-in
/agent-doctorcommand for custom agent contract and runtime checks. - 💾 Built-in
/configcommand for backup/restore snapshots. - 🧩 Built-in
/stackbundles for coordinated multi-command profiles. - 🌐 Built-in
/browsercommand for provider switching and dependency diagnostics. - ⏱️ Built-in
/budgetcommand for execution budget profile, override, and diagnostics. - 🧠 Custom agents for Tab selection:
orchestrator(primary), plusexplore,librarian,oracle,verifier,reviewer,release-scribe,strategic-planner,ambiguity-analyst, andplan-critic. - 🧠 Built-in
/nvimcommand to install and validate deeperopencode.nvimkeymap integration. - 🧰 Built-in
/devtoolscommand to manage external productivity tooling. - 🧭 Built-in
/auto-slashcommand to map natural-language intent to safe slash command previews. - 🗺️ Built-in
/autoflowcommand for deterministic plan execution (status/report/resume/doctor). - 🧾 Built-in
/session handofffor concise continuation summaries with next actions. - 🧱 Built-in
/init-deepcommand to scaffold hierarchicalAGENTS.mdguidance. - 🛑 Built-in
/continuation-stopfor one-shot continuation shutdown (autopilot stop + resume disable). - 🧰
/agent-pooltracks manual visible capacity while/bgremains the job execution backend. - 💸 Better token control with managed MCPs off by default plus MCP profiles (
minimal,research,web,all) and on-demand toggling. - 🔒 Autonomous-friendly permissions for trusted project paths.
- 🔁 Easy updates by rerunning the installer.
- 🧩 Clear, versioned config for experiments and rollbacks.
This setup keeps build as the default agent for quick direct work, while adding orchestrator and focused specialists for manual selection via Tab:
orchestrator(primary): execution lead for complex tasks, with explicit delegation and completion gates.explore(subagent): read-only internal codebase scout.librarian(subagent): read-only external docs and OSS evidence researcher.oracle(subagent): read-only architecture/debug advisor for hard tradeoffs.verifier(subagent): read-only validation runner for test/lint/build checks.reviewer(subagent): read-only quality/risk review pass before final delivery.release-scribe(subagent): read-only PR/changelog/release-notes writer from git evidence.strategic-planner(subagent): read-only sequencing and milestone planning specialist.ambiguity-analyst(subagent): read-only assumptions and unknowns surfacer for unclear scope.plan-critic(subagent): read-only feasibility and gate-coverage critic for concrete plans.
Default selection note:
buildremains the configureddefault_agentinopencode.jsonfor speed.- choose
orchestratorwhen you want end-to-end multi-step execution with delegation and completion gates.
Agent files live in agent/*.md and install globally to ~/.config/opencode/agent/.
Agent source-of-truth specs live in agent/specs/*.json and generate markdown via scripts/build_agents.py.
Quick validation:
/agent-doctor
/agent-doctor --json
Detailed guide: docs/agents-playbook.md 📘
Operating contract: instructions/agent_operating_contract.md 🛡️
Autopilot hook migration plan: docs/autopilot-hook-roadmap.md 🔁
Detailed roadmap history, implementation baselines, and deep-dive capability notes are now maintained in docs/readme-deep-notes.md to keep this README focused on day-to-day operator workflows.
Use these references for deeper context:
docs/readme-deep-notes.mddocs/plan/oh-my-opencode-parity-high-value-plan.mddocs/upstream-divergence-registry.mdinstructions/agent_operating_contract.md
The full slash-command catalog now lives in docs/command-handbook.md.
Quickstart commands:
/doctor run
/plugin status
/mcp status
/notify status
/delivery status --json
/autopilot go --goal "finish current objective" --json
/autoflow status --json
/gateway status
Enable MCPs only when the task benefits from extra context, for example with /mcp profile research.
Recommended command split:
/deliveryfor day-to-day issue delivery and closeout/workflowfor lower-level workflow validation and resume control/autopilotfor open-ended autonomous execution/autoflowfor explicit plan-file execution
Before implementation work, create a dedicated git worktree branch for the task. Do not edit task files from the main project folder, and do not git checkout or git switch that folder onto a task branch.
Protected branches (main, master) are also edit-blocked by default even in linked worktrees, and bash usage there is limited to inspection, validation, and exact sync commands: git fetch, git fetch --prune, and git pull --rebase.
Use /complete <prefix> for command discovery, docs/command-handbook.md for full command examples, docs/operator-playbook.md for canonical operator flows, and docs/parallel-wt-playbook.md for the worktree-first execution checklist.
Managed /mcp names: context7, gh_grep, playwright, exa_search, firecrawl, github.
Aliases: ghgrep -> gh_grep, exa -> exa_search.
Profiles:
minimal-> disable all managed MCPsresearch->context7,gh_grepweb->playwright,exa_search,firecrawlall-> enable all managed MCPs
opencode.json- global OpenCode config (linked to default path)scripts/mcp_command.py- backend script for/mcpscripts/plugin_command.py- backend script for/pluginscripts/notify_command.py- backend script for/notifyscripts/session_digest.py- backend script for/digestscripts/session_command.py- backend script for/sessionscripts/autoflow_command.py- backend script for/autoflowscripts/init_deep_command.py- backend script for/init-deepscripts/continuation_stop_command.py- backend script for/continuation-stopscripts/opencode_session.sh- optional wrapper to run digest on process exit and enableMY_OPENCODE_GATEWAY_EVENT_AUDIT=1by default with rotation; after a wrapped session,/gateway continuation reportis the fastest check for recenttodo-continuation-enforceractivityscripts/telemetry_command.py- backend script for/telemetryscripts/post_session_command.py- backend script for/post-sessionscripts/policy_command.py- policy profile helper used by/notify policy ...and stack presetsscripts/doctor_command.py- backend script for/doctorscripts/update_release_index.py- helper script to regeneratedocs/plan/v0.4-release-index.mdscripts/update_docs_automation_summary.py- helper script to regeneratedocs/plan/docs-automation-summary.mdscripts/docs_automation_sync_check.py- checker script for docs automation workflow/pages/summary synchronizationscripts/pages_readiness_check.py- checker script for remote GitHub Pages readiness and workflow publishing modescripts/plan_hygiene_check.py- checker script for stale plan worklog rows missing closure evidence linksscripts/update_wave_completion_doc.py- helper script to generate wave completion docs from merged PR metadatascripts/release_note_validation_check.py- checker script for release-note validation heading consistencyscripts/release_note_quality_check.py- checker script for release-note quality scoring and triage signalsscripts/wave_linkage_check.py- checker script for completed-wave plan/completion linkage integrityscripts/wave_handoff_summary.py- helper script for wave transition handoff action summariesscripts/config_command.py- backend script for/configscripts/stack_profile_command.py- backend script for/stackscripts/browser_command.py- backend script for/browserscripts/budget_command.py- backend script for/budgetscripts/release_train_engine.py- release-train backend engine for preflight, draft, and publish gatingscripts/release_train_command.py-/release-traincommand surface and doctor/checklist integrationscripts/hotfix_runtime.py- incident hotfix runtime profile with checkpoint and timeline capturescripts/todo_command.py- backend script for/todoscripts/resume_command.py- backend script for/resumescripts/safe_edit_adapters.py- semantic safe-edit adapter and validation helpersscripts/safe_edit_command.py-/safe-editcommand surface for semantic adapter planning and diagnosticsscripts/todo_enforcement.py- shared todo compliance enforcement helpersscripts/install_wizard.py- interactive install/reconfigure wizardscripts/nvim_integration_command.py- backend script for/nvimscripts/devtools_command.py- backend script for/devtoolsscripts/config_layering.py- shared layered config + JSONC loader for command scriptsinstall.sh- one-step installer/updaterMakefile- common maintenance commands (make help).pre-commit-config.yaml- pre-commit hook definitionslefthook.yml- fast git hook runner config.envrc.example- direnv template for local environment variables.github/workflows/ci.yml- CI checks and installer smoke test
make help
make validate
make selftest
make doctor
make doctor-json
make devtools-status
make hooks-install
make install-test
make release-check
make release VERSION=0.1.1Tip: for local branch testing, installer accepts REPO_REF.
Happy shipping! 😄