From 2ba1a550ca8457c0d06e83c7a2c3ee4f4e60221d Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Sun, 5 Apr 2026 14:21:57 -0700 Subject: [PATCH] fix: namespace opencode command agents --- .opencode/MIGRATION.md | 2 +- .opencode/commands/build-fix.md | 2 +- .opencode/commands/checkpoint.md | 2 +- .opencode/commands/code-review.md | 2 +- .opencode/commands/e2e.md | 2 +- .opencode/commands/eval.md | 2 +- .opencode/commands/evolve.md | 2 +- .opencode/commands/go-build.md | 2 +- .opencode/commands/go-review.md | 2 +- .opencode/commands/go-test.md | 2 +- .opencode/commands/instinct-export.md | 2 +- .opencode/commands/instinct-import.md | 2 +- .opencode/commands/instinct-status.md | 2 +- .opencode/commands/learn.md | 2 +- .opencode/commands/orchestrate.md | 2 +- .opencode/commands/plan.md | 2 +- .opencode/commands/projects.md | 2 +- .opencode/commands/promote.md | 2 +- .opencode/commands/refactor-clean.md | 2 +- .opencode/commands/rust-build.md | 2 +- .opencode/commands/rust-review.md | 2 +- .opencode/commands/rust-test.md | 2 +- .opencode/commands/security.md | 2 +- .opencode/commands/setup-pm.md | 2 +- .opencode/commands/skill-create.md | 2 +- .opencode/commands/tdd.md | 2 +- .opencode/commands/test-coverage.md | 2 +- .opencode/commands/update-codemaps.md | 2 +- .opencode/commands/update-docs.md | 2 +- .opencode/commands/verify.md | 2 +- tests/opencode-config.test.js | 22 ++++++++++++++++++++++ 31 files changed, 52 insertions(+), 30 deletions(-) diff --git a/.opencode/MIGRATION.md b/.opencode/MIGRATION.md index 60961dc5..f967ec1d 100644 --- a/.opencode/MIGRATION.md +++ b/.opencode/MIGRATION.md @@ -184,7 +184,7 @@ Create a detailed implementation plan for: {input} ```markdown --- description: Create implementation plan -agent: planner +agent: everything-claude-code:planner --- Create a detailed implementation plan for: $ARGUMENTS diff --git a/.opencode/commands/build-fix.md b/.opencode/commands/build-fix.md index 984cf29c..bd864ff9 100644 --- a/.opencode/commands/build-fix.md +++ b/.opencode/commands/build-fix.md @@ -1,6 +1,6 @@ --- description: Fix build and TypeScript errors with minimal changes -agent: build-error-resolver +agent: everything-claude-code:build-error-resolver subtask: true --- diff --git a/.opencode/commands/checkpoint.md b/.opencode/commands/checkpoint.md index 5f1959c4..0fcf9ce7 100644 --- a/.opencode/commands/checkpoint.md +++ b/.opencode/commands/checkpoint.md @@ -1,6 +1,6 @@ --- description: Save verification state and progress checkpoint -agent: build +agent: everything-claude-code:build --- # Checkpoint Command diff --git a/.opencode/commands/code-review.md b/.opencode/commands/code-review.md index 2020d5eb..c672780d 100644 --- a/.opencode/commands/code-review.md +++ b/.opencode/commands/code-review.md @@ -1,6 +1,6 @@ --- description: Review code for quality, security, and maintainability -agent: code-reviewer +agent: everything-claude-code:code-reviewer subtask: true --- diff --git a/.opencode/commands/e2e.md b/.opencode/commands/e2e.md index afc67969..a113c4f8 100644 --- a/.opencode/commands/e2e.md +++ b/.opencode/commands/e2e.md @@ -1,6 +1,6 @@ --- description: Generate and run E2E tests with Playwright -agent: e2e-runner +agent: everything-claude-code:e2e-runner subtask: true --- diff --git a/.opencode/commands/eval.md b/.opencode/commands/eval.md index 2b78c3b5..191c8228 100644 --- a/.opencode/commands/eval.md +++ b/.opencode/commands/eval.md @@ -1,6 +1,6 @@ --- description: Run evaluation against acceptance criteria -agent: build +agent: everything-claude-code:build --- # Eval Command diff --git a/.opencode/commands/evolve.md b/.opencode/commands/evolve.md index 6f344a53..59ecc86e 100644 --- a/.opencode/commands/evolve.md +++ b/.opencode/commands/evolve.md @@ -1,6 +1,6 @@ --- description: Analyze instincts and suggest or generate evolved structures -agent: build +agent: everything-claude-code:build --- # Evolve Command diff --git a/.opencode/commands/go-build.md b/.opencode/commands/go-build.md index 22e1d6d2..ad8c54b2 100644 --- a/.opencode/commands/go-build.md +++ b/.opencode/commands/go-build.md @@ -1,6 +1,6 @@ --- description: Fix Go build and vet errors -agent: go-build-resolver +agent: everything-claude-code:go-build-resolver subtask: true --- diff --git a/.opencode/commands/go-review.md b/.opencode/commands/go-review.md index d794fc1c..5dfc32cb 100644 --- a/.opencode/commands/go-review.md +++ b/.opencode/commands/go-review.md @@ -1,6 +1,6 @@ --- description: Go code review for idiomatic patterns -agent: go-reviewer +agent: everything-claude-code:go-reviewer subtask: true --- diff --git a/.opencode/commands/go-test.md b/.opencode/commands/go-test.md index 361e5934..82b7be54 100644 --- a/.opencode/commands/go-test.md +++ b/.opencode/commands/go-test.md @@ -1,6 +1,6 @@ --- description: Go TDD workflow with table-driven tests -agent: tdd-guide +agent: everything-claude-code:tdd-guide subtask: true --- diff --git a/.opencode/commands/instinct-export.md b/.opencode/commands/instinct-export.md index 486d934b..727ac9b6 100644 --- a/.opencode/commands/instinct-export.md +++ b/.opencode/commands/instinct-export.md @@ -1,6 +1,6 @@ --- description: Export instincts for sharing -agent: build +agent: everything-claude-code:build --- # Instinct Export Command diff --git a/.opencode/commands/instinct-import.md b/.opencode/commands/instinct-import.md index e1567237..d0a45e21 100644 --- a/.opencode/commands/instinct-import.md +++ b/.opencode/commands/instinct-import.md @@ -1,6 +1,6 @@ --- description: Import instincts from external sources -agent: build +agent: everything-claude-code:build --- # Instinct Import Command diff --git a/.opencode/commands/instinct-status.md b/.opencode/commands/instinct-status.md index 5ca7ce8a..fef35131 100644 --- a/.opencode/commands/instinct-status.md +++ b/.opencode/commands/instinct-status.md @@ -1,6 +1,6 @@ --- description: Show learned instincts (project + global) with confidence -agent: build +agent: everything-claude-code:build --- # Instinct Status Command diff --git a/.opencode/commands/learn.md b/.opencode/commands/learn.md index 3a43cc11..eb0ba9f9 100644 --- a/.opencode/commands/learn.md +++ b/.opencode/commands/learn.md @@ -1,6 +1,6 @@ --- description: Extract patterns and learnings from current session -agent: build +agent: everything-claude-code:build --- # Learn Command diff --git a/.opencode/commands/orchestrate.md b/.opencode/commands/orchestrate.md index 76f9a0b4..d42db61e 100644 --- a/.opencode/commands/orchestrate.md +++ b/.opencode/commands/orchestrate.md @@ -1,6 +1,6 @@ --- description: Orchestrate multiple agents for complex tasks -agent: planner +agent: everything-claude-code:planner subtask: true --- diff --git a/.opencode/commands/plan.md b/.opencode/commands/plan.md index 801f4215..c3f73c73 100644 --- a/.opencode/commands/plan.md +++ b/.opencode/commands/plan.md @@ -1,6 +1,6 @@ --- description: Create implementation plan with risk assessment -agent: planner +agent: everything-claude-code:planner subtask: true --- diff --git a/.opencode/commands/projects.md b/.opencode/commands/projects.md index 77785d01..4aac769c 100644 --- a/.opencode/commands/projects.md +++ b/.opencode/commands/projects.md @@ -1,6 +1,6 @@ --- description: List registered projects and instinct counts -agent: build +agent: everything-claude-code:build --- # Projects Command diff --git a/.opencode/commands/promote.md b/.opencode/commands/promote.md index 566a662e..9bbc5b9c 100644 --- a/.opencode/commands/promote.md +++ b/.opencode/commands/promote.md @@ -1,6 +1,6 @@ --- description: Promote project instincts to global scope -agent: build +agent: everything-claude-code:build --- # Promote Command diff --git a/.opencode/commands/refactor-clean.md b/.opencode/commands/refactor-clean.md index d28e0fc7..9f5a5cde 100644 --- a/.opencode/commands/refactor-clean.md +++ b/.opencode/commands/refactor-clean.md @@ -1,6 +1,6 @@ --- description: Remove dead code and consolidate duplicates -agent: refactor-cleaner +agent: everything-claude-code:refactor-cleaner subtask: true --- diff --git a/.opencode/commands/rust-build.md b/.opencode/commands/rust-build.md index 82a668df..88f099c1 100644 --- a/.opencode/commands/rust-build.md +++ b/.opencode/commands/rust-build.md @@ -1,6 +1,6 @@ --- description: Fix Rust build errors and borrow checker issues -agent: rust-build-resolver +agent: everything-claude-code:rust-build-resolver subtask: true --- diff --git a/.opencode/commands/rust-review.md b/.opencode/commands/rust-review.md index ad9c8ece..f1b2c6c3 100644 --- a/.opencode/commands/rust-review.md +++ b/.opencode/commands/rust-review.md @@ -1,6 +1,6 @@ --- description: Rust code review for ownership, safety, and idiomatic patterns -agent: rust-reviewer +agent: everything-claude-code:rust-reviewer subtask: true --- diff --git a/.opencode/commands/rust-test.md b/.opencode/commands/rust-test.md index a1f2dbd2..abd75fa6 100644 --- a/.opencode/commands/rust-test.md +++ b/.opencode/commands/rust-test.md @@ -1,6 +1,6 @@ --- description: Rust TDD workflow with unit and property tests -agent: tdd-guide +agent: everything-claude-code:tdd-guide subtask: true --- diff --git a/.opencode/commands/security.md b/.opencode/commands/security.md index 226e5724..fa66cc35 100644 --- a/.opencode/commands/security.md +++ b/.opencode/commands/security.md @@ -1,6 +1,6 @@ --- description: Run comprehensive security review -agent: security-reviewer +agent: everything-claude-code:security-reviewer subtask: true --- diff --git a/.opencode/commands/setup-pm.md b/.opencode/commands/setup-pm.md index afaac6a7..f902f0ac 100644 --- a/.opencode/commands/setup-pm.md +++ b/.opencode/commands/setup-pm.md @@ -1,6 +1,6 @@ --- description: Configure package manager preference -agent: build +agent: everything-claude-code:build --- # Setup Package Manager Command diff --git a/.opencode/commands/skill-create.md b/.opencode/commands/skill-create.md index 5e550df9..ea5f1954 100644 --- a/.opencode/commands/skill-create.md +++ b/.opencode/commands/skill-create.md @@ -1,6 +1,6 @@ --- description: Generate skills from git history analysis -agent: build +agent: everything-claude-code:build --- # Skill Create Command diff --git a/.opencode/commands/tdd.md b/.opencode/commands/tdd.md index 7fc06b61..0513cac3 100644 --- a/.opencode/commands/tdd.md +++ b/.opencode/commands/tdd.md @@ -1,6 +1,6 @@ --- description: Enforce TDD workflow with 80%+ coverage -agent: tdd-guide +agent: everything-claude-code:tdd-guide subtask: true --- diff --git a/.opencode/commands/test-coverage.md b/.opencode/commands/test-coverage.md index 1eac79c9..4898965f 100644 --- a/.opencode/commands/test-coverage.md +++ b/.opencode/commands/test-coverage.md @@ -1,6 +1,6 @@ --- description: Analyze and improve test coverage -agent: tdd-guide +agent: everything-claude-code:tdd-guide subtask: true --- diff --git a/.opencode/commands/update-codemaps.md b/.opencode/commands/update-codemaps.md index 13166c33..61b34187 100644 --- a/.opencode/commands/update-codemaps.md +++ b/.opencode/commands/update-codemaps.md @@ -1,6 +1,6 @@ --- description: Update codemaps for codebase navigation -agent: doc-updater +agent: everything-claude-code:doc-updater subtask: true --- diff --git a/.opencode/commands/update-docs.md b/.opencode/commands/update-docs.md index a3bdaa58..d14f96fb 100644 --- a/.opencode/commands/update-docs.md +++ b/.opencode/commands/update-docs.md @@ -1,6 +1,6 @@ --- description: Update documentation for recent changes -agent: doc-updater +agent: everything-claude-code:doc-updater subtask: true --- diff --git a/.opencode/commands/verify.md b/.opencode/commands/verify.md index 7dce731a..71599c4c 100644 --- a/.opencode/commands/verify.md +++ b/.opencode/commands/verify.md @@ -1,6 +1,6 @@ --- description: Run verification loop to validate implementation -agent: build +agent: everything-claude-code:build --- # Verify Command diff --git a/tests/opencode-config.test.js b/tests/opencode-config.test.js index 690db04d..dec608f9 100644 --- a/tests/opencode-config.test.js +++ b/tests/opencode-config.test.js @@ -76,6 +76,28 @@ if ( passed++; else failed++; +if ( + test('command markdown frontmatter uses plugin-scoped agent ids', () => { + const commandsDir = path.join(opencodeDir, 'commands'); + + for (const entry of fs.readdirSync(commandsDir)) { + const body = fs.readFileSync(path.join(commandsDir, entry), 'utf8'); + const match = body.match(/^agent:\s*(.+)$/m); + + if (!match) { + continue; + } + + assert.ok( + match[1].startsWith('everything-claude-code:'), + `Expected plugin-scoped agent id in ${entry}, got: ${match[1]}` + ); + } + }) +) + passed++; +else failed++; + console.log(`\nPassed: ${passed}`); console.log(`Failed: ${failed}`); process.exit(failed > 0 ? 1 : 0);