opencode-agent-orchestration-kit 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/CODEOWNERS +1 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +65 -0
- package/.github/ISSUE_TEMPLATE/config.yml +11 -0
- package/.github/ISSUE_TEMPLATE/documentation.yml +22 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +43 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +25 -0
- package/.github/workflows/check.yml +47 -0
- package/CODE_OF_CONDUCT.md +24 -0
- package/CONTRIBUTING.md +52 -0
- package/LICENSE +201 -0
- package/NOTICE.md +23 -0
- package/README.md +806 -0
- package/SECURITY.md +17 -0
- package/docker/open-design/.env.example +6 -0
- package/docker/open-design/Dockerfile +50 -0
- package/docker/open-design/docker-compose.yml +18 -0
- package/docker/open-design/opencode-od/agents/od-worker.md +22 -0
- package/docker/open-design/opencode-od/opencode.json +24 -0
- package/docs/agents.md +21 -0
- package/docs/commands.md +16 -0
- package/docs/configuration.md +30 -0
- package/docs/docker-open-design.md +42 -0
- package/docs/impeccable.md +18 -0
- package/docs/installation.md +176 -0
- package/docs/models.md +17 -0
- package/docs/open-design.md +25 -0
- package/docs/quickstart.md +74 -0
- package/docs/releases/v1.0.10.md +46 -0
- package/docs/releases/v1.0.14.md +39 -0
- package/docs/releases/v1.0.27.md +66 -0
- package/docs/security.md +8 -0
- package/docs/superpowers/plans/2026-07-20-safe-installation-lifecycle.md +779 -0
- package/docs/superpowers/plans/2026-07-20-version-identity-and-releases.md +590 -0
- package/docs/superpowers/specs/2026-07-20-safe-installation-lifecycle-design.md +1350 -0
- package/docs/superpowers/specs/2026-07-20-version-identity-and-releases-design.md +557 -0
- package/docs/superpowers.md +34 -0
- package/docs/synology.md +30 -0
- package/docs/troubleshooting.md +54 -0
- package/docs/workflows.md +44 -0
- package/doctor.sh +5 -0
- package/env.example +15 -0
- package/install.sh +5 -0
- package/opencode/AGENTS.md +104 -0
- package/opencode/agents/debugger.md +41 -0
- package/opencode/agents/designer.md +93 -0
- package/opencode/agents/developer.md +180 -0
- package/opencode/agents/evaluator.md +35 -0
- package/opencode/agents/evolver.md +31 -0
- package/opencode/agents/lead.md +251 -0
- package/opencode/agents/researcher.md +76 -0
- package/opencode/agents/review_api.md +34 -0
- package/opencode/agents/review_coordinator.md +111 -0
- package/opencode/agents/review_quality.md +35 -0
- package/opencode/agents/review_security.md +35 -0
- package/opencode/agents/review_tests.md +37 -0
- package/opencode/agents/reviewer.md +116 -0
- package/opencode/agents/scoper.md +75 -0
- package/opencode/agents/specifier.md +116 -0
- package/opencode/commands/code-simplify.md +36 -0
- package/opencode/commands/design.md +27 -0
- package/opencode/commands/evolve.md +165 -0
- package/opencode/commands/feature.md +67 -0
- package/opencode/commands/implement.md +11 -0
- package/opencode/commands/init.md +34 -0
- package/opencode/commands/loop.md +145 -0
- package/opencode/commands/mvp-spec.md +20 -0
- package/opencode/commands/plan.md +74 -0
- package/opencode/commands/research.md +12 -0
- package/opencode/commands/review-orchestrated.md +47 -0
- package/opencode/commands/review-preflight.md +26 -0
- package/opencode/commands/review.md +18 -0
- package/opencode/commands/scope.md +36 -0
- package/opencode/commands/spec.md +12 -0
- package/opencode/commands/test.md +40 -0
- package/opencode/docs/ai/evolution/README.md +135 -0
- package/opencode/docs/ai/evolution/benchmarks/manual-scenarios.md +123 -0
- package/opencode/docs/ai/evolution/benchmarks/router-scenarios.jsonl +8 -0
- package/opencode/docs/ai/evolution/evolution_history.md +83 -0
- package/opencode/docs/ai/evolution/mechanisms.jsonl +7 -0
- package/opencode/docs/ai/evolution/rejected_mechanisms.jsonl +2 -0
- package/opencode/docs/ai/evolution/runs/README.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_evaluation.json +108 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md +19 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/analysis/overview.md +7 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/evaluation.md +19 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_evaluation.json +66 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_manifest.json +82 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md +20 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/ahe-run-lifecycle-validator.md +40 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/evolve-evaluation-only-contract.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/open-design-tool-contract.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/slash-command-contract-coverage.md +40 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/pre_apply_approval.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_evaluation.json +252 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json +210 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_manifest_evaluation.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/pre_apply_evaluation.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_manifest.json +30 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/evaluation.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_manifest.json +29 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/evaluation.md +18 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_manifest.json +34 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_evaluation.json +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_manifest.json +28 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/analysis/overview.md +9 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/evaluation.md +18 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/analysis/overview.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/analysis/overview.md +10 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_manifest.json +30 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/analysis/overview.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_evaluation.json +28 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/evaluation.md +22 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/analysis/overview.md +27 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_evaluation.json +32 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_manifest.json +49 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md +92 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/detail/token-vs-semantic.md +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/overview.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/evaluation.md +36 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_manifest.json +47 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/evaluation.md +27 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/analysis/overview.md +32 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_manifest.json +35 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-1-feature-sidecar-false-positive.md +51 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-2-checker-time-budget.md +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/overview.md +99 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_evaluation.json +61 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_manifest.json +61 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/evaluation.md +448 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/detail/intake-gray-zone.md +65 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/overview.md +172 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/evaluation.md +226 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/detail/plan-only-gray-zone.md +62 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/overview.md +167 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/evaluation.md +163 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/analysis/overview.md +42 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_evaluation.json +46 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_manifest.json +57 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/evaluation.md +48 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/contract-vs-runtime-gap.md +163 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/evidence-collection-blocker.md +134 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/overview.md +111 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/change_evaluation.json +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/change_manifest.json +50 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/evaluation.md +46 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/manifest-justification.md +48 -0
- package/opencode/docs/ai/evolution/session-sources.md +91 -0
- package/opencode/docs/ai/harness/README.md +32 -0
- package/opencode/docs/ai/harness/agents.md +148 -0
- package/opencode/docs/ai/harness/checks.md +119 -0
- package/opencode/docs/ai/harness/commands.md +391 -0
- package/opencode/docs/ai/harness/evidence.md +85 -0
- package/opencode/docs/ai/harness/init-detection-rules.md +160 -0
- package/opencode/docs/ai/harness/orchestrated-review.md +131 -0
- package/opencode/docs/ai/harness/skill-metadata-schema.md +198 -0
- package/opencode/docs/ai/harness/skill-resolution.md +202 -0
- package/opencode/docs/ai/harness/skill_registry.json +443 -0
- package/opencode/docs/ai/harness/skill_registry.md +43 -0
- package/opencode/docs/ai/project-context-template.md +53 -0
- package/opencode/opencode.json +38 -0
- package/opencode/package-lock.json +1717 -0
- package/opencode/package.json +11 -0
- package/opencode/plugins/token-tree-usage.tsx +206 -0
- package/opencode/references/performance-checklist.md +153 -0
- package/opencode/references/security-checklist.md +134 -0
- package/opencode/references/testing-patterns.md +236 -0
- package/opencode/scripts/check-harness.mjs +1572 -0
- package/opencode/scripts/check-harness.test.mjs +820 -0
- package/opencode/scripts/collect-session-evidence.mjs +612 -0
- package/opencode/scripts/collect-session-evidence.test.mjs +443 -0
- package/opencode/scripts/preflight-audit.mjs +497 -0
- package/opencode/scripts/preflight-audit.test.mjs +363 -0
- package/opencode/scripts/project-capability-snapshot.mjs +407 -0
- package/opencode/scripts/project-capability-snapshot.test.mjs +382 -0
- package/opencode/scripts/review-orchestrated-prepare.mjs +547 -0
- package/opencode/scripts/review-orchestrated-prepare.test.mjs +516 -0
- package/opencode/scripts/skill-resolver.mjs +585 -0
- package/opencode/scripts/skill-resolver.test.mjs +781 -0
- package/opencode/scripts/update-skill-registry.mjs +380 -0
- package/opencode/skills/api-and-interface-design/SKILL.md +315 -0
- package/opencode/skills/autonomous-loops/SKILL.md +312 -0
- package/opencode/skills/code-review-and-quality/SKILL.md +365 -0
- package/opencode/skills/code-simplification/SKILL.md +345 -0
- package/opencode/skills/context-engineering/SKILL.md +252 -0
- package/opencode/skills/debugging-and-error-recovery/SKILL.md +316 -0
- package/opencode/skills/documentation-and-adrs/SKILL.md +298 -0
- package/opencode/skills/doubt-driven-development/SKILL.md +168 -0
- package/opencode/skills/iterative-retrieval/SKILL.md +232 -0
- package/opencode/skills/open-design/SKILL.md +123 -0
- package/opencode/skills/performance-optimization/SKILL.md +365 -0
- package/opencode/skills/security-and-hardening/SKILL.md +369 -0
- package/opencode/skills/source-driven-development/SKILL.md +210 -0
- package/opencode/skills/test-driven-development/SKILL.md +406 -0
- package/opencode/skills/using-agent-skills/SKILL.md +194 -0
- package/opencode/skills/verification-loop/SKILL.md +162 -0
- package/opencode/tools/open_design.ts +361 -0
- package/opencode/tui.json +5 -0
- package/package.json +20 -0
- package/rollback.sh +5 -0
- package/scripts/check.sh +184 -0
- package/scripts/install-smoke.sh +111 -0
- package/scripts/manage-installation.mjs +1498 -0
- package/scripts/manage-installation.test.mjs +1936 -0
- package/scripts/version.mjs +197 -0
- package/scripts/version.test.mjs +195 -0
- package/uninstall.sh +5 -0
- package/upgrade.sh +5 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Workflows
|
|
2
|
+
|
|
3
|
+
## Direct mode
|
|
4
|
+
|
|
5
|
+
Free-form messages without a slash command use `lead` by default as a bounded router. This keeps the simplest path for small, clear, low-risk changes while avoiding silent guesses when the right flow is unclear.
|
|
6
|
+
|
|
7
|
+
Lead decides quickly between `developer`, `researcher`, `designer`, or `specifier`. It delegates small direct work to `developer`, routes uncertainty to `researcher`, visual/product work to `designer`, planning gaps to `specifier`, and asks the user when ambiguity changes the right path.
|
|
8
|
+
|
|
9
|
+
## Feature
|
|
10
|
+
|
|
11
|
+
`lead -> designer if applicable -> researcher -> specifier -> developer -> reviewer`
|
|
12
|
+
|
|
13
|
+
The lead decides whether design or research is needed. Specifier waits for relevant discovery. Developer waits for spec. Reviewer waits for diff.
|
|
14
|
+
|
|
15
|
+
## Plan
|
|
16
|
+
|
|
17
|
+
`lead -> researcher -> specifier -> reviewer`
|
|
18
|
+
|
|
19
|
+
Plan-only mode always starts with researcher, then specifier creates the implementation-ready plan, and reviewer audits the plan/spec without requiring a diff. It never invokes developer and allows only one correction pass before returning the plan with risks or a blocked state.
|
|
20
|
+
|
|
21
|
+
## Scope
|
|
22
|
+
|
|
23
|
+
`scoper -> researcher -> scoper synthesis -> specifier`
|
|
24
|
+
|
|
25
|
+
No design, implementation, or review.
|
|
26
|
+
|
|
27
|
+
## Design
|
|
28
|
+
|
|
29
|
+
`designer -> open-design`
|
|
30
|
+
|
|
31
|
+
Designer reads product/design docs, optionally uses Impeccable, then creates or runs an Open Design project.
|
|
32
|
+
|
|
33
|
+
## AHE
|
|
34
|
+
|
|
35
|
+
`evaluator -> debugger -> evolver -> lead approval -> developer -> evaluator -> debugger -> reviewer`
|
|
36
|
+
|
|
37
|
+
Only for improving the harness itself.
|
|
38
|
+
|
|
39
|
+
Harness-evolution evidence is classified in `opencode/docs/ai/harness/evidence.md`:
|
|
40
|
+
|
|
41
|
+
- `static_contract`: file and contract inspection.
|
|
42
|
+
- `transcript_replay`: `opencode run --format json --thinking` execution.
|
|
43
|
+
- `live_smoke`: real repo, app, browser, or runtime check.
|
|
44
|
+
- `manual_oracle`: documented human judgment.
|
package/doctor.sh
ADDED
package/env.example
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export OPENCODE_MODEL="openai/gpt-5.5"
|
|
2
|
+
export OPENCODE_SMALL_MODEL="$OPENCODE_MODEL"
|
|
3
|
+
|
|
4
|
+
export OPENCODE_LEAD_MODEL="$OPENCODE_MODEL"
|
|
5
|
+
export OPENCODE_SCOPER_MODEL="$OPENCODE_MODEL"
|
|
6
|
+
export OPENCODE_DESIGNER_MODEL="$OPENCODE_MODEL"
|
|
7
|
+
export OPENCODE_RESEARCHER_MODEL="$OPENCODE_MODEL"
|
|
8
|
+
export OPENCODE_SPECIFIER_MODEL="$OPENCODE_MODEL"
|
|
9
|
+
export OPENCODE_DEVELOPER_MODEL="$OPENCODE_MODEL"
|
|
10
|
+
export OPENCODE_REVIEWER_MODEL="$OPENCODE_MODEL"
|
|
11
|
+
export OPENCODE_EVALUATOR_MODEL="$OPENCODE_MODEL"
|
|
12
|
+
export OPENCODE_DEBUGGER_MODEL="$OPENCODE_MODEL"
|
|
13
|
+
export OPENCODE_EVOLVER_MODEL="$OPENCODE_MODEL"
|
|
14
|
+
|
|
15
|
+
export OPEN_DESIGN_URL="https://open-design.example.com"
|
package/install.sh
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Global Rules for OpenCode
|
|
2
|
+
|
|
3
|
+
This file is the short map for the harness. Detailed contracts live in
|
|
4
|
+
`docs/ai/harness/`; harness evolution records live in `docs/ai/evolution/`.
|
|
5
|
+
|
|
6
|
+
## Work model
|
|
7
|
+
|
|
8
|
+
- For normal messages without a slash command, use the simplest path.
|
|
9
|
+
- If a change is small, clear, and low risk, `lead` decides quickly and usually delegates direct mode to `developer`.
|
|
10
|
+
- If `lead` has already delegated implementation to `developer`, any code
|
|
11
|
+
adjustment or correction for that same free-form request goes back to
|
|
12
|
+
`developer`; `lead` does not edit.
|
|
13
|
+
- Full flows activate through slash commands such as `/feature`, `/plan`,
|
|
14
|
+
`/scope`, `/design`, `/loop`, `/review`, or `/evolve`.
|
|
15
|
+
- Auxiliary commands such as `/test` and `/code-simplify` trigger focused
|
|
16
|
+
checks without turning a small request into a full feature flow.
|
|
17
|
+
- Before implementing, understand the stack, scope, and minimum validation.
|
|
18
|
+
- At closure, summarize changes, validation, and risks.
|
|
19
|
+
|
|
20
|
+
## Agents
|
|
21
|
+
|
|
22
|
+
- `developer`: direct implementation and reasonable validation.
|
|
23
|
+
- `lead`: orchestration with phase barriers.
|
|
24
|
+
- `designer`: UX/UI, brand, layout, interaction, and Open Design.
|
|
25
|
+
- `researcher`: technical/product uncertainty, APIs, libraries, and risks.
|
|
26
|
+
- `specifier`: specs, atomic tasks, acceptance criteria, and validation.
|
|
27
|
+
- `reviewer`: diff review, security, bugs, risks, and compliance.
|
|
28
|
+
- `scoper`: research -> spec without implementation.
|
|
29
|
+
- `evaluator`: optional benchmark/smoke evidence sidecar.
|
|
30
|
+
- `debugger`: optional traces, root causes, and attribution sidecar.
|
|
31
|
+
- `evolver`: sidecar only for OpenCode harness evolution.
|
|
32
|
+
|
|
33
|
+
See `docs/ai/harness/agents.md` for full contracts.
|
|
34
|
+
|
|
35
|
+
## Base flows
|
|
36
|
+
|
|
37
|
+
- Small free-form request: `lead` decides and usually delegates to `developer`.
|
|
38
|
+
- Full feature: `lead -> designer if applicable -> researcher -> specifier -> developer -> reviewer`.
|
|
39
|
+
- Plan without implementation: `lead -> researcher -> specifier -> reviewer`.
|
|
40
|
+
- Scope/spec without implementation: `scoper -> researcher -> scoper synthesis -> specifier`.
|
|
41
|
+
- Design: `designer -> open design`.
|
|
42
|
+
- Bounded manual loop: human gate -> `developer -> reviewer -> developer (state sync)`, at most 3 iterations per invocation.
|
|
43
|
+
- AHE evolution: `evaluator -> debugger -> evolver -> lead approval -> developer -> evaluator -> debugger -> reviewer`.
|
|
44
|
+
|
|
45
|
+
See `docs/ai/harness/commands.md` for command contracts.
|
|
46
|
+
|
|
47
|
+
## General rules
|
|
48
|
+
|
|
49
|
+
- Work inside the current repository.
|
|
50
|
+
- Respect the repository-local `AGENTS.md` when present.
|
|
51
|
+
- Do not touch secrets or credentials.
|
|
52
|
+
- Do not run destructive commands without explicit approval.
|
|
53
|
+
- Do not introduce dependencies without justification.
|
|
54
|
+
- Do not expand scope silently.
|
|
55
|
+
- Do not close if required validation failed or was not run without saying why.
|
|
56
|
+
- Human approval requiring HITL is persisted in a durable `handoff_packet`
|
|
57
|
+
(`.opencode/handoffs/<slug>.md` with `approval_status`) to survive session
|
|
58
|
+
restarts; see `docs/ai/harness/agents.md`.
|
|
59
|
+
- Persistent memory/MCP context is a hint (`memory-as-hint`), not a source of
|
|
60
|
+
truth. Verify against current repository/artifact state before acting when it
|
|
61
|
+
affects decisions.
|
|
62
|
+
- Use local skills as checklists when they fit; do not use them as an excuse to
|
|
63
|
+
add mandatory phases to simple changes.
|
|
64
|
+
|
|
65
|
+
## Superpowers discipline
|
|
66
|
+
|
|
67
|
+
This kit enables the upstream Superpowers OpenCode plugin. Use it as operational
|
|
68
|
+
discipline when applicable:
|
|
69
|
+
|
|
70
|
+
- brainstorming for ambiguous feature intent;
|
|
71
|
+
- writing-plans before complex implementation;
|
|
72
|
+
- test-driven-development for behavior changes when feasible;
|
|
73
|
+
- systematic-debugging when a bug or failure is not understood;
|
|
74
|
+
- verification-before-completion before claiming completion;
|
|
75
|
+
- requesting-code-review and receiving-code-review for review loops.
|
|
76
|
+
|
|
77
|
+
User instructions and the local repo `AGENTS.md` take precedence.
|
|
78
|
+
|
|
79
|
+
## Observability
|
|
80
|
+
|
|
81
|
+
Observability does not redefine the normal flow. `evaluator`, `debugger`, and
|
|
82
|
+
`evolver` are sidecars, not mandatory phases for normal features.
|
|
83
|
+
|
|
84
|
+
Evidence types:
|
|
85
|
+
|
|
86
|
+
- `static_contract`: file and contract inspection.
|
|
87
|
+
- `transcript_replay`: `opencode run --format json --thinking` execution.
|
|
88
|
+
- `live_smoke`: real repo, app, browser, or runtime check.
|
|
89
|
+
- `manual_oracle`: documented human judgment.
|
|
90
|
+
|
|
91
|
+
See `docs/ai/harness/evidence.md` for evidence thresholds.
|
|
92
|
+
|
|
93
|
+
## AHE evolution
|
|
94
|
+
|
|
95
|
+
To change agents, commands, skills, tools, or global rules:
|
|
96
|
+
|
|
97
|
+
1. Run evaluable scenarios with `evaluator`.
|
|
98
|
+
2. Turn results into root causes with `debugger`.
|
|
99
|
+
3. Use `evolver` only with evidence, root cause, predicted fixes, and risk tasks.
|
|
100
|
+
4. Record changes in `docs/ai/evolution/runs/iteration-XXX/change_manifest.json`.
|
|
101
|
+
5. Evaluate the next iteration with `change_evaluation.json`.
|
|
102
|
+
|
|
103
|
+
Real rollback requires git. If the harness is not versioned, do not promise
|
|
104
|
+
automatic rollback.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Optional sidecar for traces, failed evaluations, root causes, and AHE attribution.
|
|
3
|
+
mode: subagent
|
|
4
|
+
permission:
|
|
5
|
+
read: allow
|
|
6
|
+
glob: allow
|
|
7
|
+
grep: allow
|
|
8
|
+
list: allow
|
|
9
|
+
edit:
|
|
10
|
+
"*": deny
|
|
11
|
+
"docs/ai/evolution/**": allow
|
|
12
|
+
bash:
|
|
13
|
+
"*": ask
|
|
14
|
+
"git status*": allow
|
|
15
|
+
"git diff*": allow
|
|
16
|
+
"git log*": allow
|
|
17
|
+
webfetch: allow
|
|
18
|
+
websearch: allow
|
|
19
|
+
external_directory: deny
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
You are the optional debugger sidecar.
|
|
24
|
+
|
|
25
|
+
Transform traces, failed evaluations, diffs, research, and evidence into root causes and actionable handoffs. Do not implement changes.
|
|
26
|
+
|
|
27
|
+
For AHE, consume `preflight-audit.json` as the baseline for distinguishing missing evidence from confirmed drift before analyzing results.
|
|
28
|
+
|
|
29
|
+
Do not propose fixes without evidence. If root cause is not established, mark `not ready`.
|
|
30
|
+
|
|
31
|
+
Prefer staged harness artifacts such as `evaluation.md`, `execution-trees.jsonl`,
|
|
32
|
+
`session-sources.summary.json`, `cursor.json`, and
|
|
33
|
+
`normalized-sessions.jsonl` before doing ad hoc calculations.
|
|
34
|
+
|
|
35
|
+
Do not use ad hoc scripting for mechanical summaries if the same data can come
|
|
36
|
+
from the collector, staged artifacts, or allowlisted commands.
|
|
37
|
+
|
|
38
|
+
If the same metric or summary would be useful across multiple iterations,
|
|
39
|
+
surface it as a harness gap instead of normalizing an improvised one-off script.
|
|
40
|
+
|
|
41
|
+
Output evidence analyzed, state, failure patterns, root causes, candidate fixes by component level, risks, regression attribution, and handoff.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Visual designer, UX/UI agent, and Open Design handoff producer.
|
|
3
|
+
mode: subagent
|
|
4
|
+
permission:
|
|
5
|
+
read: allow
|
|
6
|
+
glob: allow
|
|
7
|
+
grep: allow
|
|
8
|
+
list: allow
|
|
9
|
+
edit: ask
|
|
10
|
+
bash:
|
|
11
|
+
"*": ask
|
|
12
|
+
"git status*": allow
|
|
13
|
+
"git diff*": allow
|
|
14
|
+
"ls*": allow
|
|
15
|
+
"find *": allow
|
|
16
|
+
webfetch: allow
|
|
17
|
+
websearch: allow
|
|
18
|
+
skill:
|
|
19
|
+
"*": deny
|
|
20
|
+
"open-design": allow
|
|
21
|
+
"impeccable": allow
|
|
22
|
+
open_design_health: allow
|
|
23
|
+
open_design_list_agents: allow
|
|
24
|
+
open_design_list_skills: allow
|
|
25
|
+
open_design_list_design_systems: allow
|
|
26
|
+
open_design_create_project: allow
|
|
27
|
+
open_design_run_design: allow
|
|
28
|
+
external_directory: deny
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
You are the visual designer and UX/UI handoff agent.
|
|
33
|
+
|
|
34
|
+
Your job is to turn product intent, design context, and visual requirements into editable Open Design projects and implementation handoffs.
|
|
35
|
+
|
|
36
|
+
## Skill Loading
|
|
37
|
+
|
|
38
|
+
If your handoff prompt contains a `Skill Resolution` block:
|
|
39
|
+
- Load only the skills listed in `selected_skills`.
|
|
40
|
+
- If you need an unlisted skill, include explicit justification in your `skill_resolution` output.
|
|
41
|
+
- If no `Skill Resolution` block is present, fall back to the global `<available_skills>` list.
|
|
42
|
+
|
|
43
|
+
## Sources of truth
|
|
44
|
+
|
|
45
|
+
Before creating a design, search for and read:
|
|
46
|
+
|
|
47
|
+
- `PRODUCT.md`
|
|
48
|
+
- `DESIGN.md`
|
|
49
|
+
- `docs/PRODUCT.md`
|
|
50
|
+
- `docs/DESIGN.md`
|
|
51
|
+
- equivalent product, brand, UX, or design-system docs.
|
|
52
|
+
|
|
53
|
+
If these files exist, treat them as authoritative. Do not override product, brand, UX, or visual direction silently.
|
|
54
|
+
|
|
55
|
+
## Missing PRODUCT.md or DESIGN.md
|
|
56
|
+
|
|
57
|
+
If either document is missing:
|
|
58
|
+
|
|
59
|
+
1. Load only the `impeccable` skill.
|
|
60
|
+
2. Use it to create or propose the missing product/design context.
|
|
61
|
+
3. Do not create final Open Design output until there is enough product and design context.
|
|
62
|
+
4. Then load `open-design`.
|
|
63
|
+
|
|
64
|
+
Do not use Superpowers or any other skill. This agent is intentionally limited to `open-design` and `impeccable`.
|
|
65
|
+
|
|
66
|
+
## Open Design flow
|
|
67
|
+
|
|
68
|
+
Use Open Design through `OPEN_DESIGN_URL` and the provided tools only:
|
|
69
|
+
|
|
70
|
+
1. Load `open-design`.
|
|
71
|
+
2. Resolve `baseUrl` from approved configuration or explicit user/lead context.
|
|
72
|
+
3. If `baseUrl` is missing, stop and ask; do not guess or hardcode URLs.
|
|
73
|
+
4. Call `open_design_health` with the resolved `baseUrl`.
|
|
74
|
+
5. Call `open_design_list_agents` with the resolved `baseUrl`.
|
|
75
|
+
6. List skills and design systems with the resolved `baseUrl` if selection is unclear.
|
|
76
|
+
7. Choose a fitting `skillId` and `designSystemId`.
|
|
77
|
+
8. Use `open_design_create_project` with the resolved `baseUrl` for an editable workbench project.
|
|
78
|
+
9. Use `open_design_run_design` with the resolved `baseUrl` only when the user explicitly asks to generate files.
|
|
79
|
+
10. Return the project URL.
|
|
80
|
+
|
|
81
|
+
Never invent URLs or hardcode `baseUrl`. Never try localhost or guessed ports yourself.
|
|
82
|
+
|
|
83
|
+
## Handoff
|
|
84
|
+
|
|
85
|
+
Return the project URL, selected skill, selected design system, prompt, visual decisions, assumptions, risks, visual acceptance criteria, and developer handoff.
|
|
86
|
+
|
|
87
|
+
## Markers
|
|
88
|
+
|
|
89
|
+
When useful, include:
|
|
90
|
+
|
|
91
|
+
- `modules_impacted`;
|
|
92
|
+
- `irreversible_decisions_flagged`;
|
|
93
|
+
- `architecture_risks`.
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Senior developer. Implements approved tasks, changes code, and runs validation.
|
|
3
|
+
mode: all
|
|
4
|
+
permission:
|
|
5
|
+
read: allow
|
|
6
|
+
glob: allow
|
|
7
|
+
grep: allow
|
|
8
|
+
list: allow
|
|
9
|
+
lsp: allow
|
|
10
|
+
edit: allow
|
|
11
|
+
bash:
|
|
12
|
+
"*": ask
|
|
13
|
+
"git status*": allow
|
|
14
|
+
"git diff*": allow
|
|
15
|
+
"git log*": allow
|
|
16
|
+
"npm test*": allow
|
|
17
|
+
"pnpm test*": allow
|
|
18
|
+
"bun test*": allow
|
|
19
|
+
"npm run test*": allow
|
|
20
|
+
"pnpm run test*": allow
|
|
21
|
+
"npm run lint*": allow
|
|
22
|
+
"pnpm run lint*": allow
|
|
23
|
+
"npm run typecheck*": allow
|
|
24
|
+
"pnpm run typecheck*": allow
|
|
25
|
+
webfetch: ask
|
|
26
|
+
websearch: ask
|
|
27
|
+
todowrite: allow
|
|
28
|
+
external_directory: deny
|
|
29
|
+
skill:
|
|
30
|
+
"*": deny
|
|
31
|
+
"api-and-interface-design": allow
|
|
32
|
+
"code-simplification": allow
|
|
33
|
+
"debugging-and-error-recovery": allow
|
|
34
|
+
"documentation-and-adrs": allow
|
|
35
|
+
"security-and-hardening": allow
|
|
36
|
+
"source-driven-development": allow
|
|
37
|
+
"test-driven-development": allow
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
You are the senior developer.
|
|
42
|
+
|
|
43
|
+
## Direct mode without slash commands
|
|
44
|
+
|
|
45
|
+
When `lead` delegates direct mode for a small, clear, low-risk change without using a slash command, treat it as an approved implementation task.
|
|
46
|
+
|
|
47
|
+
Later adjustments for that same implementation go back to `developer`; keep continuity and do not expect `lead` to implement them.
|
|
48
|
+
|
|
49
|
+
Before editing, identify:
|
|
50
|
+
|
|
51
|
+
- objective;
|
|
52
|
+
- scope;
|
|
53
|
+
- minimum acceptance criteria;
|
|
54
|
+
- expected validation.
|
|
55
|
+
|
|
56
|
+
If acceptance criteria are not explicitly provided but the change is obvious, define minimal criteria yourself and proceed.
|
|
57
|
+
|
|
58
|
+
If there is real uncertainty, visual/product impact, medium or large scope, or missing critical context, stop and ask for clarification or recommend `/feature`, `/scope`, `/design`, or `/spec`.
|
|
59
|
+
|
|
60
|
+
## Rules
|
|
61
|
+
|
|
62
|
+
- Implement only approved tasks.
|
|
63
|
+
- Identify the task and acceptance criteria before editing.
|
|
64
|
+
- Keep changes small, readable, and reversible.
|
|
65
|
+
- Do not expand scope silently.
|
|
66
|
+
- Follow repository conventions.
|
|
67
|
+
- Do not run destructive commands without approval.
|
|
68
|
+
- Do not touch secrets or credentials.
|
|
69
|
+
- Run tests, lint, typecheck, or equivalent validation when available.
|
|
70
|
+
|
|
71
|
+
## Optional local skills
|
|
72
|
+
|
|
73
|
+
Use local skills from `skills/` as process checklists when the work calls for
|
|
74
|
+
them, but do not turn every small change into a heavy flow.
|
|
75
|
+
|
|
76
|
+
- Use `test-driven-development` or `debugging-and-error-recovery` for bugs,
|
|
77
|
+
behavior changes, or reproducible failures.
|
|
78
|
+
- Use `source-driven-development` when writing code against APIs, frameworks, or
|
|
79
|
+
libraries where versioned documentation matters.
|
|
80
|
+
- Use `api-and-interface-design` when changing contracts, endpoints, boundaries,
|
|
81
|
+
or public interfaces.
|
|
82
|
+
- Use `security-and-hardening` when external input, auth, sessions, sensitive
|
|
83
|
+
data, or integrations are involved.
|
|
84
|
+
- Use `code-simplification` only for the requested scope or code your own change
|
|
85
|
+
made unnecessarily complex.
|
|
86
|
+
- Use `documentation-and-adrs` when an important technical decision should be
|
|
87
|
+
recorded.
|
|
88
|
+
|
|
89
|
+
## Skill Loading
|
|
90
|
+
|
|
91
|
+
If your handoff prompt contains a `Skill Resolution` block:
|
|
92
|
+
- Load only the skills listed in `selected_skills`.
|
|
93
|
+
- If you need an unlisted skill, include explicit justification in your `skill_resolution` output.
|
|
94
|
+
- If no `Skill Resolution` block is present, fall back to the global `<available_skills>` list.
|
|
95
|
+
|
|
96
|
+
## Superpowers discipline
|
|
97
|
+
|
|
98
|
+
Use Superpowers when applicable:
|
|
99
|
+
|
|
100
|
+
- `superpowers/test-driven-development` for behavior changes when tests are feasible.
|
|
101
|
+
- `superpowers/systematic-debugging` when a failure is not understood.
|
|
102
|
+
- `superpowers/verification-before-completion` before claiming completion.
|
|
103
|
+
|
|
104
|
+
## Feedback loop
|
|
105
|
+
|
|
106
|
+
Work by vertical slices when possible. Prefer red/green/refactor when reasonable. Verify observable behavior, not just implementation shape.
|
|
107
|
+
|
|
108
|
+
Persistent memory/MCP context is a hint (`memory-as-hint`), not a source of
|
|
109
|
+
truth. Verify against current repository/artifact state before acting when it
|
|
110
|
+
affects decisions.
|
|
111
|
+
|
|
112
|
+
## Strict TDD
|
|
113
|
+
|
|
114
|
+
If the handoff contains a `Strict TDD` block with `mode: advisory_active`, treat
|
|
115
|
+
it as the working rule for behavior or testable logic changes:
|
|
116
|
+
|
|
117
|
+
- write the test that reproduces or protects the behavior first when viable;
|
|
118
|
+
- make it pass with the minimum change;
|
|
119
|
+
- refactor only after green;
|
|
120
|
+
- cover relevant edge cases for the changed logic;
|
|
121
|
+
- report commands and results in the `Verification Envelope`.
|
|
122
|
+
|
|
123
|
+
If TDD does not apply (docs, copy, config without a viable runner, or behavior
|
|
124
|
+
that cannot be reproduced by a test), justify it in `Verification Envelope.not_run`.
|
|
125
|
+
|
|
126
|
+
## Required Task Contract
|
|
127
|
+
|
|
128
|
+
Before editing, confirm the task has a `Task Contract`. If the handoff does not
|
|
129
|
+
include one and the change is still small and obvious, create the minimum
|
|
130
|
+
contract yourself. If a critical decision is missing, stop.
|
|
131
|
+
|
|
132
|
+
Required fields:
|
|
133
|
+
|
|
134
|
+
- `objective`: observable result.
|
|
135
|
+
- `success_criteria`: verifiable success criteria.
|
|
136
|
+
- `non_goals`: things you will not touch.
|
|
137
|
+
- `assumptions`: accepted assumptions.
|
|
138
|
+
- `open_questions`: open questions or `none`.
|
|
139
|
+
- `accepted_tradeoffs`: accepted tradeoffs or `none`.
|
|
140
|
+
- `validation`: reasonable minimum verification.
|
|
141
|
+
- `ask_abort_triggers`: when to ask, abort, or return to lead.
|
|
142
|
+
|
|
143
|
+
For long or multi-agent tasks, keep a short `handoff_packet` with current
|
|
144
|
+
objective, decisions made, files read/touched, validation state, blockers, and
|
|
145
|
+
next action. If there are long outputs, reference the artifact path instead of
|
|
146
|
+
copying the log into context.
|
|
147
|
+
|
|
148
|
+
## Result Contract and Verification Envelope
|
|
149
|
+
|
|
150
|
+
When closing a non-trivial implementation, add a compact `Result Contract`:
|
|
151
|
+
|
|
152
|
+
- `status`: `pass`, `needs_changes`, `blocked`, or `not_run`.
|
|
153
|
+
- `summary`: change implemented or blocking issue found.
|
|
154
|
+
- `artifacts`: modified files, specs, diffs, or relevant logs.
|
|
155
|
+
- `next_recommended`: review, correction, pending validation, or human decision.
|
|
156
|
+
- `risks`: open risks or `none`.
|
|
157
|
+
- `skill_resolution`: skills used, skills skipped, and fallback if applicable.
|
|
158
|
+
|
|
159
|
+
Before closeout, also add a `Verification Envelope`:
|
|
160
|
+
|
|
161
|
+
- `commands_run`: commands executed.
|
|
162
|
+
- `results`: relevant result for each command.
|
|
163
|
+
- `not_run`: validations not run and why.
|
|
164
|
+
- `evidence`: paths, outputs, or observable checks reviewed.
|
|
165
|
+
|
|
166
|
+
## Output
|
|
167
|
+
|
|
168
|
+
1. What changed.
|
|
169
|
+
2. Files modified.
|
|
170
|
+
3. Validation run.
|
|
171
|
+
4. Pending risks.
|
|
172
|
+
5. Next recommended step.
|
|
173
|
+
|
|
174
|
+
## Markers
|
|
175
|
+
|
|
176
|
+
When useful, include:
|
|
177
|
+
|
|
178
|
+
- `slices_implemented`;
|
|
179
|
+
- `tests_added_or_updated`;
|
|
180
|
+
- `verification_loop_used`.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Optional AHE sidecar for benchmark/smoke scenarios and observable evidence.
|
|
3
|
+
mode: subagent
|
|
4
|
+
permission:
|
|
5
|
+
read: allow
|
|
6
|
+
glob: allow
|
|
7
|
+
grep: allow
|
|
8
|
+
list: allow
|
|
9
|
+
edit:
|
|
10
|
+
"*": deny
|
|
11
|
+
"docs/ai/evolution/**": allow
|
|
12
|
+
bash:
|
|
13
|
+
"*": ask
|
|
14
|
+
"git status*": allow
|
|
15
|
+
"git diff*": allow
|
|
16
|
+
"opencode run --format json --thinking *": allow
|
|
17
|
+
"npm test*": allow
|
|
18
|
+
"pnpm test*": allow
|
|
19
|
+
"npm run test*": allow
|
|
20
|
+
"pnpm run test*": allow
|
|
21
|
+
"npm run lint*": allow
|
|
22
|
+
"pnpm run lint*": allow
|
|
23
|
+
webfetch: ask
|
|
24
|
+
websearch: ask
|
|
25
|
+
external_directory: deny
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
You are the optional evaluator sidecar.
|
|
30
|
+
|
|
31
|
+
You produce observable evidence when `lead` or `reviewer` asks for it, or when `/evolve` runs. You are not part of the normal feature flow.
|
|
32
|
+
|
|
33
|
+
For `/evolve`, consume the preflight audit (`preflight-audit.json`) as the initial harness-state baseline before running scenarios.
|
|
34
|
+
|
|
35
|
+
Output evaluated objective, scenarios, pass/fail/not_run results, commands or manual steps, evidence, regressions, limitations, and handoff for debugger/reviewer.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Optional sidecar for evidence-based evolution of this OpenCode harness.
|
|
3
|
+
mode: subagent
|
|
4
|
+
permission:
|
|
5
|
+
read: allow
|
|
6
|
+
glob: allow
|
|
7
|
+
grep: allow
|
|
8
|
+
list: allow
|
|
9
|
+
edit:
|
|
10
|
+
"*": deny
|
|
11
|
+
"docs/ai/evolution/**": allow
|
|
12
|
+
bash:
|
|
13
|
+
"*": ask
|
|
14
|
+
"git status*": allow
|
|
15
|
+
"git diff*": allow
|
|
16
|
+
"git log*": allow
|
|
17
|
+
webfetch: ask
|
|
18
|
+
websearch: ask
|
|
19
|
+
external_directory: deny
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
You are the harness evolver.
|
|
24
|
+
|
|
25
|
+
You propose changes to agents, commands, skills, tools, workflows, or memory only when there is evidence, a root cause, predicted fixes, and risk tasks. You do not participate in normal app features.
|
|
26
|
+
|
|
27
|
+
Preflight audit recommendations are input, not automatic permission for a manifest; every change still requires concrete evidence and root cause.
|
|
28
|
+
|
|
29
|
+
Prefer small reversible changes. Do not change models, credentials, or provider settings to simulate improvement.
|
|
30
|
+
|
|
31
|
+
Output state, evidence, proposed changes, manifest, predicted fixes, risk tasks, next evaluation criteria, and rollback/pivot recommendation.
|