fix: namespace opencode command agents

This commit is contained in:
Affaan Mustafa
2026-04-05 14:21:57 -07:00
parent 600de94a47
commit 2ba1a550ca
31 changed files with 52 additions and 30 deletions

View File

@@ -184,7 +184,7 @@ Create a detailed implementation plan for: {input}
```markdown ```markdown
--- ---
description: Create implementation plan description: Create implementation plan
agent: planner agent: everything-claude-code:planner
--- ---
Create a detailed implementation plan for: $ARGUMENTS Create a detailed implementation plan for: $ARGUMENTS

View File

@@ -1,6 +1,6 @@
--- ---
description: Fix build and TypeScript errors with minimal changes description: Fix build and TypeScript errors with minimal changes
agent: build-error-resolver agent: everything-claude-code:build-error-resolver
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Save verification state and progress checkpoint description: Save verification state and progress checkpoint
agent: build agent: everything-claude-code:build
--- ---
# Checkpoint Command # Checkpoint Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Review code for quality, security, and maintainability description: Review code for quality, security, and maintainability
agent: code-reviewer agent: everything-claude-code:code-reviewer
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Generate and run E2E tests with Playwright description: Generate and run E2E tests with Playwright
agent: e2e-runner agent: everything-claude-code:e2e-runner
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Run evaluation against acceptance criteria description: Run evaluation against acceptance criteria
agent: build agent: everything-claude-code:build
--- ---
# Eval Command # Eval Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Analyze instincts and suggest or generate evolved structures description: Analyze instincts and suggest or generate evolved structures
agent: build agent: everything-claude-code:build
--- ---
# Evolve Command # Evolve Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Fix Go build and vet errors description: Fix Go build and vet errors
agent: go-build-resolver agent: everything-claude-code:go-build-resolver
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Go code review for idiomatic patterns description: Go code review for idiomatic patterns
agent: go-reviewer agent: everything-claude-code:go-reviewer
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Go TDD workflow with table-driven tests description: Go TDD workflow with table-driven tests
agent: tdd-guide agent: everything-claude-code:tdd-guide
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Export instincts for sharing description: Export instincts for sharing
agent: build agent: everything-claude-code:build
--- ---
# Instinct Export Command # Instinct Export Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Import instincts from external sources description: Import instincts from external sources
agent: build agent: everything-claude-code:build
--- ---
# Instinct Import Command # Instinct Import Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Show learned instincts (project + global) with confidence description: Show learned instincts (project + global) with confidence
agent: build agent: everything-claude-code:build
--- ---
# Instinct Status Command # Instinct Status Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Extract patterns and learnings from current session description: Extract patterns and learnings from current session
agent: build agent: everything-claude-code:build
--- ---
# Learn Command # Learn Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Orchestrate multiple agents for complex tasks description: Orchestrate multiple agents for complex tasks
agent: planner agent: everything-claude-code:planner
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Create implementation plan with risk assessment description: Create implementation plan with risk assessment
agent: planner agent: everything-claude-code:planner
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: List registered projects and instinct counts description: List registered projects and instinct counts
agent: build agent: everything-claude-code:build
--- ---
# Projects Command # Projects Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Promote project instincts to global scope description: Promote project instincts to global scope
agent: build agent: everything-claude-code:build
--- ---
# Promote Command # Promote Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Remove dead code and consolidate duplicates description: Remove dead code and consolidate duplicates
agent: refactor-cleaner agent: everything-claude-code:refactor-cleaner
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Fix Rust build errors and borrow checker issues description: Fix Rust build errors and borrow checker issues
agent: rust-build-resolver agent: everything-claude-code:rust-build-resolver
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Rust code review for ownership, safety, and idiomatic patterns description: Rust code review for ownership, safety, and idiomatic patterns
agent: rust-reviewer agent: everything-claude-code:rust-reviewer
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Rust TDD workflow with unit and property tests description: Rust TDD workflow with unit and property tests
agent: tdd-guide agent: everything-claude-code:tdd-guide
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Run comprehensive security review description: Run comprehensive security review
agent: security-reviewer agent: everything-claude-code:security-reviewer
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Configure package manager preference description: Configure package manager preference
agent: build agent: everything-claude-code:build
--- ---
# Setup Package Manager Command # Setup Package Manager Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Generate skills from git history analysis description: Generate skills from git history analysis
agent: build agent: everything-claude-code:build
--- ---
# Skill Create Command # Skill Create Command

View File

@@ -1,6 +1,6 @@
--- ---
description: Enforce TDD workflow with 80%+ coverage description: Enforce TDD workflow with 80%+ coverage
agent: tdd-guide agent: everything-claude-code:tdd-guide
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Analyze and improve test coverage description: Analyze and improve test coverage
agent: tdd-guide agent: everything-claude-code:tdd-guide
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Update codemaps for codebase navigation description: Update codemaps for codebase navigation
agent: doc-updater agent: everything-claude-code:doc-updater
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Update documentation for recent changes description: Update documentation for recent changes
agent: doc-updater agent: everything-claude-code:doc-updater
subtask: true subtask: true
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
description: Run verification loop to validate implementation description: Run verification loop to validate implementation
agent: build agent: everything-claude-code:build
--- ---
# Verify Command # Verify Command

View File

@@ -76,6 +76,28 @@ if (
passed++; passed++;
else failed++; 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(`\nPassed: ${passed}`);
console.log(`Failed: ${failed}`); console.log(`Failed: ${failed}`);
process.exit(failed > 0 ? 1 : 0); process.exit(failed > 0 ? 1 : 0);