L0 operating rules. Keep this file loaded by default; load deeper context only when the task requires it.
- Inspect relevant source files before behavior-changing edits; generated summaries are not a source-of-truth replacement.
- Before finishing, run the relevant detected checks:
npm run build,npm run check,npm run lint,npm run format,npm run format:check,npm run prepublishOnly,npm run test. - Do not commit secrets, local config, dependency folders, or generated build output such as
opencode-plusplus.local.yml, API keys,node_modules/,dist/, or coverage artifacts. - Preserve existing project conventions and command patterns unless the source code clearly requires a change.
- Read
AGENTS.mdonly before the task is concrete. - Agent-led handoff: run
opencode-plusplus run "<task>" .or inspect.agent-context/runs/<task-id>/; this writes context and boundaries but does not execute an agent. - Harness-led executor flow: run
opencode-plusplus orchestrate "<task>" . --executor mock|opencode|mimocode --executor-command "<command with {prompt}>" --max-loops 3 --checkpoint git-worktreewhen OpenCode++ should own multi-loop gates. - Do not load the full
.agent-context/directory unless L1/L2 context is insufficient. - Prefer source files over generated summaries for behavior, API, and test decisions.
- Entrypoint:
src/cli/index.ts - Entrypoint:
src/mcp/server.ts - Anchor:
src/core/freshness.ts- 9 exports, 57 symbols - Anchor:
src/harness/control-plane/loop-controller.ts- 10 exports, 60 symbols - Anchor:
src/harness/control-plane/orchestrator.ts- 12 exports, 132 symbols
- Run:
npm run dev - Typecheck:
npm run build - Typecheck:
npm run check - Lint:
npm run lint - Lint:
npm run format - Lint:
npm run format:check - Lint:
npm run prepublishOnly - Test:
npm run test
L0 AGENTS.md- always-loaded operating rules onlyL1 .agent-context/repo-summary.md- compact repository overview for task startL1 .agent-context/onboarding.md- first-read workflow and commandsL1 .agent-context/context-layers.md- layer map for all generated outputsL2 .agent-context/runs/- complete task runs generated for concrete workL2 .agent-context/tasks/- standalone task packs generated or prebuilt for concrete workL3 .agent-context/key-files.md- ranked evidence index; load only when neededL3 .agent-context/index/- symbols, files, modules, and chunks for targeted lookupL3 .agent-context/evidence/- analyzer evidence for deeper inspectionL3 .agent-context/module-map.md- module responsibilities after task scope is knownL3 .agent-context/architecture.md- architecture notes and evidenceL3 .agent-context/dependency-graph.md- file and module dependency graphL3 .agent-context/graphs/- Mermaid and JSON graph artifactsL3 .agent-context/readiness.md- agent-readiness gaps and evidenceL3 .agent-context/rag/- RAG-ready export documents
.agent-context/contracts/- machine-checkable edit, command, test, and safety boundaries.agent-context/runs/- complete task run contexts with plan, pack, tests, impact, verify, and prompts.agent-context/loops/- loop controller decisions when written withopencode-plusplus loop "<task>" . --write.agent-context/traces/- execution trace records for agent edits, tests, verification, final state, and manual/command/CI evidence.agent-context/hallucination/- deterministic missing file, command, dependency, config, and symbol findings.agent-context/regression/- known issues, fix history, fragile modules, and anti-regression test memory.agent-context/delta/- context delta and files the agent should re-read after repository changes
- Prefer
opencode-plusplus trace run <trace-id> . --action run-test --command "<test-command>"over manual test claims when recording verification. - Run
opencode-plusplus hallucination . --trace <trace-id> --base mainwhen the task has an execution trace. - Run
opencode-plusplus regression . --trace <trace-id> --base mainwhen the task touches known fragile modules or historical bug patterns. - Prefer
opencode-plusplus policy . --base main --trace <trace-id> --fail-on requiredwhen a trace exists. - Run
opencode-plusplus verify --diff .andopencode-plusplus loop "<task>" . --phase after-editbefore final review. - Check
opencode-plusplus freshness .andopencode-plusplus drift .if generated context may be stale.
No manual agent notes configured yet. Add environment and deployment guidance to AGENTS.manual.md.