Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9f8c975
feat: artifact lifecycle system — protected zones, 19 lifecycle tools…
azrod Sep 21, 2026
1b95c20
fix(plan-validator): use plan_get/plan_list instead of read/glob/grep
azrod Sep 21, 2026
19a9b4d
feat(spec-reviewer): add SPEC_VIOLATION verdict for contract divergen…
azrod Sep 21, 2026
7c64d39
feat: spec_format/plan_format tools, spec-writer agent, gardener dual…
azrod Sep 21, 2026
a292d25
refactor(gardener): pure audit orchestrator — no direct edits, no PRs
azrod Sep 22, 2026
a1c2c66
docs: sync all docs and specs post-refonte (gardener report)
azrod Sep 22, 2026
5239831
docs: sync specs and docs after artifact lifecycle refonte
azrod Sep 22, 2026
d70e25a
feat: introduce plan-reviewer cluster, replace plan-validator
azrod Sep 22, 2026
717d645
feat: team-lead proactively proposes exec-plan for complex clear requ…
azrod Sep 22, 2026
7c8755b
refactor: split index.js into config/agents.js and tools/registry.js
azrod Sep 23, 2026
1543b52
feat: inject plan-reviewer reminder in plan_create/update/validate re…
azrod Sep 27, 2026
3bb4bed
fix: migrate silent to hidden in agent config
azrod Sep 27, 2026
0e6da1b
chore: declare @opencode-ai/plugin as runtime dependency
azrod Sep 27, 2026
4238dec
refactor: replace plan-validator with plan-reviewer cluster
azrod Sep 27, 2026
b71bbc9
docs: sync all references after config/agents.js refactor and silent→…
azrod Sep 27, 2026
3cb2be7
chore: add spec-docs drift remediation exec-plan
azrod Sep 27, 2026
d6498f4
feat: add agent architect
azrod Oct 19, 2026
c719e65
chore: support v2 opencode
azrod Oct 27, 2026
a61d93c
fix(architect): present open decisions after plan changes
azrod Oct 29, 2026
46f71ee
chore: harness architect
azrod Nov 5, 2026
0132666
fix(permissions): remove blanket deny from specialized agents
azrod Nov 6, 2026
d5fc7fe
test(agents): freeze pre-refactor registry behavior
azrod Nov 6, 2026
055d5df
clean old agents
azrod Nov 6, 2026
4b34e8e
feat: add spec_search tool
azrod Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ jobs:
zero-deps:
name: Zero dependencies check
runs-on: ubuntu-latest
# Pattern enforced: the only allowed runtime dependency is @opencode-ai/plugin.
# Pattern enforced: the only allowed runtime dependency is @opencode/plugin.
# Any other entry in dependencies is a violation. devDependencies must remain empty.
steps:
- uses: actions/checkout@v4

- name: Assert dependencies contains only @opencode-ai/plugin and devDependencies is empty
- name: Assert dependencies contains only @opencode/plugin and devDependencies is empty
run: |
node -e "
const pkg = JSON.parse(require('fs').readFileSync('package.json', 'utf8'));
const deps = pkg.dependencies ?? {};
const devDeps = pkg.devDependencies ?? {};
if (!deps['@opencode-ai/plugin']) {
console.error('Error: @opencode-ai/plugin must be present in dependencies.');
if (!deps['@opencode/plugin']) {
console.error('Error: @opencode/plugin must be present in dependencies.');
process.exit(1);
}
const extraDeps = Object.keys(deps).filter(k => k !== '@opencode-ai/plugin');
const extraDeps = Object.keys(deps).filter(k => k !== '@opencode/plugin');
if (extraDeps.length > 0) {
console.error('Error: dependencies may only contain @opencode-ai/plugin. Found unexpected: ' + extraDeps.join(', '));
console.error('Error: dependencies may only contain @opencode/plugin. Found unexpected: ' + extraDeps.join(', '));
process.exit(1);
}
if (Object.keys(devDeps).length > 0) {
Expand Down Expand Up @@ -151,4 +151,3 @@ jobs:
echo "Error: one or more brief files failed the schema check (see above)."
exit 1
fi

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
.opencode/
!.opencode/agents/
!.opencode/tools/
.DS_Store
101 changes: 55 additions & 46 deletions AGENTS.md

Large diffs are not rendered by default.

39 changes: 38 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- Agents can find relevant spec passages with `spec_search` and expand them with `spec_read_section`, using exact file/line citations and source hashes. Search reflects current files without reindexing; section reads detect changed sources and remain bounded for large documents.
- `architect` — a directly selectable architecture advisor that explains whole-system boundaries, trade-offs, and incremental migrations. It directly authors accepted specs and exec-plans without gaining code, shell, brief, or implementation access.
- `plan-reviewer` cluster — orchestrator + three specialized sub-reviewers (`plan-functional-reviewer`, `plan-technical-reviewer`, `plan-code-reviewer`). Supports two review depths: `light` (spec coherence only) and `deep` (spec coherence + codebase feasibility). Returns APPROVED / CHANGES_REQUESTED / BLOCKED.
- `spec_format()` and `plan_format()` lifecycle tools — return the canonical format for specs and exec-plans inline, so agents always know the expected structure before calling `spec_create` or `plan_create`
- `spec-writer` agent — specialized in writing high-quality specs conforming to the canonical format; delegated by team-lead
- 21 lifecycle tools replace the previous 5, organized by domain: 7 spec tools (including `spec_format`), 8 plan tools (including `plan_format`), 5 brief tools, and `project_state` (returns specs + plans with unchecked blocks only, no briefs).
- Two new agents: `spec-validator` (explicitly checks spec consistency after structural validation) and `spec-reviewer` (integrated into the review-manager pool — decides whether specs need creation or update after each delivery)
- Artifact directories (`docs/specs/`, `docs/exec-plans/`, `docs/briefs/`) are now protected at runtime — any direct `read`, `edit`, `write`, `bash`, `glob`, or `grep` call targeting these paths is blocked by the plugin. All access goes through the 21 lifecycle tools.
- The team-lead now follows a Spec Protocol: specs are created before implementation (`spec_create` → `spec_validate`), and the `spec-reviewer` runs automatically in the review phase after every delivery.

### Fixed
- Large specs and exec-plans are read in bounded pages instead of oversized responses; agents follow continuation cursors to read the complete document and restart if it changes mid-read.
- SOUL now applies to all agents, including architect and subagents, regardless of their mode. Global and per-agent `soul: false` overrides remain supported.
- Architect now presents remaining decisions after creating or updating an exec-plan, with options, consequences, and a recommendation, instead of leaving them in the plan. It does not repeat the plan or ask you to reconfirm accepted decisions without new evidence.
- Review-manager launches specialists directly instead of routing through plan-reviewer and exceeding the nested-agent depth limit. Review orchestrators stop immediately on infrastructure restrictions rather than retrying blocked spawns.
- Installed packages now include the agent registration module. Artifact protection also covers V2 shell commands and multi-file patches.
- Configured artifact paths now stay synchronized between lifecycle tools and direct-access protection, including through symlink aliases and case variants. Unsafe glob patterns that traverse parent directories are blocked.
- Architect can no longer mark exec-plan delivery blocks complete; it retains only the narrowly accepted plan creation and update exception.

### Changed
- All review agents, including plan reviewers and spec validation, can now run `git status` and `git diff` with options without an approval prompt.
- Architect now obtains independent spec approval before creating a plan, closes open questions before deep plan review, and applies review corrections itself. Only current, fully approved artifacts are ready for handoff; your acceptance of architecture decisions remains required.
- Architect now evaluates your proposals independently, challenges unsupported or disproportionate choices with concrete reasons, and supports sound ideas without inventing objections. It distinguishes your final decision from its own recommendation.
- Migrated to OpenCode V2. V1 plugin loading is no longer supported; configure the plugin under `plugins`, agent overrides under native `agents`, and plugin-specific `soul`/artifact paths under plugin `options`. Nested reviews require `experimental.subagent_depth: 2`; todos are optional.
- Agents inherit model variants instead of forcing provider-specific `max`/`extended` defaults, and lifecycle tools explicitly enforce their named permissions before execution.
- The team-lead now proactively proposes creating an exec-plan when a request involves 3+ distinct non-trivial steps, multiple agents, or work likely to span several sessions — even when the intent is perfectly clear. Previously, exec-plans were only suggested for ambiguous requests.
- `plan_create`, `plan_update`, `spec_create`, and `spec_update` now return a suggestion to run a validation review once the artifact is complete — rather than falsely claiming to auto-trigger a validator.
- `plan_create`, `plan_update`, and `plan_validate` now include a reminder in their response to delegate a semantic review to the `plan-reviewer` agent before starting implementation — so the plan review step is never silently skipped.

### Removed
- Removed the `bug-finder` agent and its team-lead investigation protocol. No replacement agent is assigned; independently configured user agents remain untouched.
- Retired the `planning`, `brainstorm`, `harness`, `researcher`, and `gardener` agents. The team-lead prompt still contains their old routing pending a separate redesign; those plugin-agent paths are unavailable and no replacement responsibilities are assigned. Lifecycle tools, existing artifacts, and independently configured user agents remain intact.
- Removed the blanket deny policy from specialized agents. Actions without an explicit agent rule, including external directory access, are no longer automatically blocked by the plugin.
- `plan-validator` agent replaced by the `plan-reviewer` cluster.
- `mark_block_done`, `complete_plan`, `register_spec`, and `check_artifacts` have been removed and replaced by the new domain-specific lifecycle tools (`plan_block_done`, `spec_create`, etc.)

## [1.0.0] - 2026-08-19

### Added
Expand Down Expand Up @@ -35,7 +72,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- New `brainstorm` agent — helps developers discover and articulate what they want to build before planning starts. Run it before the team-lead to produce a structured product brief at `docs/briefs/{project-name}.md`.
- New `harness` agent — encodes emerging patterns as permanent mechanical enforcement artifacts (lint rules, CI workflows, AGENTS.md entries, guiding principles). Triggered by the user, the team-lead post-feature, or the Gardener on recurring drift.
- New `planning` agent — transforms complex or ambiguous requests into structured work contracts on disk (`docs/exec-plans/`). Returns inline plan simples for small tasks; full exec-plans for multi-session work.
- New `gardener` agent — periodic maintenance agent that fixes stale documentation and detects code drift against established rules. Opens targeted PRs; updates `QUALITY_SCORE.md`; escalates recurring patterns to `harness`.
- New `gardener` agent — periodic maintenance agent that fixes stale documentation and detects code drift against established rules. Escalates recurring patterns to `harness`.
- The team-lead now knows when to invoke `planning` (complex/ambiguous requests) and when to suggest `harness` post-delivery (recurring patterns).
- Five lifecycle tools now available directly to the team-lead — no delegation needed for project bookkeeping: `project_state` (full artifact inventory), `check_artifacts` (consistency scan), `mark_block_done` (check a block in an exec-plan), `complete_plan` (close a scope), and `register_spec` (create a new spec file). The team-lead calls these at mission start and after each delivery automatically.
- Exec-plans now support an optional `brief:` frontmatter field to trace the brainstorm → implementation link bidirectionally.
Expand Down
3 changes: 3 additions & 0 deletions IDEAS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ The Anthropic article highlights the value of *active testing* over passive read
To make this agnostic (working for CLI, backend, or libraries, not just web frontend), we could introduce a `test-engineer` agent. Instead of reading code, this agent's mandate would be to write and execute a test (unit test, bash script, curl command) against the running code to prove it works.
**Caveats:** This would be extremely token-intensive and slow, as it requires environment setup, test authoring, and execution loops. It's likely too heavy for the default review path and should probably remain an explicit opt-in workflow for critical features.

## 5. Team-lead doit proposer de créer un exec-plan dés qu'un plan se déssine

## 6. agent spec-writer ne doit pouvoir uniquement utiliser les tools spec*
Loading
Loading