This project includes a checked-in opencode.json so OpenCode Desktop App can
pick up project defaults for instructions, MCP servers, LSP servers, and
plugins.
opencode.json- project-level OpenCode config loaded by CLI/Desktop..opencode/agents/- project-local specialist agents..opencode/commands/- optional project-local command files..opencode/plugins/- project-local plugin directory.
- Instructions: loads
AGENTS.md,CLAUDE.md, andSECURITY.md. - LSP: keeps
gopls,bash,yaml-ls,typescript, andeslintexplicitly configured. - MCP: includes optional
context7andsentryentries, disabled by default. - Serena MCP: includes an optional local
serenaentry, disabled by default. - Plugins: starts with an empty npm plugin list (
"plugin": []). - Agents: includes
planner,code-reviewer, andsecurity-auditor. - Commands: includes
security-check,monitor-fly, andload-test. - Permissions: auto-allows trusted low-risk commands and asks for everything else.
- Open
opencode.json. - Set the server
enabledfield totrue. - For Serena, confirm the local command works on your machine (default is
uvx --from serena-agent serena start-mcp-server --transport stdio --project .and adjustmcp.serena.commandif needed. - For Context7, set
CONTEXT7_API_KEYin your environment if you need higher limits. - For Sentry, run
opencode mcp auth sentryto complete OAuth.
- Local plugin: add
.jsor.tsfiles under.opencode/plugins/. - npm plugin: add package names to the
pluginarray inopencode.json. - Secret guard: this project includes
.opencode/plugins/env-protection.jsto block reads of likely secret files by default. - Automation hooks: this project includes
.opencode/plugins/automation-hooks.jsto:- auto-format files after edits (
prettier,eslint --fix,gofmt) - inject repo context on first prompt in each session
- add lightweight routing hints for planner/reviewer/security prompts
- run automatic tests when the session goes idle
- auto-format files after edits (
Run these from OpenCode as slash commands:
/security-check- run mandatory security gates and summarise failures./monitor-fly [args]- run Fly log monitoring with optional arguments./load-test [args]- run scripted load testing safely.
planner- scoped planning before implementation.code-reviewer- diff-first review for regressions and coverage.security-auditor- security and permissions-focused review.
OPENCODE_ALLOW_SECRET_READ=true- temporarily bypass plugin secret-read blocking.OPENCODE_AUTO_TEST_ON_IDLE=false- disable automatic test runs when the session idles.
Keep API keys and secrets out of source control; use environment variables or separate secret files referenced by OpenCode config substitutions.