mirror of
https://github.com/affaan-m/ECC.git
synced 2026-08-22 23:42:24 +02:00
The `.opencode/commands/*.md` frontmatter referenced agents with the Claude Code plugin namespace (`agent: everything-claude-code:<name>`), but ECC's opencode integration registers its agents unscoped in `opencode.json`'s `agent` map (`code-reviewer`, `planner`, ...), and that file's own `command` section already references them unscoped. The `everything-claude-code:` scope resolves under no opencode config (the opencode plugin package is `ecc-universal`, and inline-config agents are bare), so subtask commands like `/code-review` hard-fail with `Agent not found: everything-claude-code:code-reviewer`. Non-subtask commands fall back to the default agent and appear to work — which is why only some commands failed. Strip the `everything-claude-code:` prefix from all 30 command frontmatter agent ids so they match the registered agents, fix the MIGRATION.md example, and replace the test that enforced the broken scoped invariant with one that asserts each command agent id is a registered opencode agent (fails on the old scoped ids, passes on the fix). Fixes #2477
29 lines
1.7 KiB
Markdown
29 lines
1.7 KiB
Markdown
---
|
|
description: Show learned instincts (project + global) with confidence
|
|
agent: build
|
|
---
|
|
|
|
# Instinct Status Command
|
|
|
|
Show instinct status from continuous-learning-v2: $ARGUMENTS
|
|
|
|
## Your Task
|
|
|
|
Resolve the active ECC plugin root with the same walker `hooks/hooks.json`
|
|
uses (env var → standard install → known plugin roots → plugin cache →
|
|
fallback), then run the instinct CLI. This avoids reading a stale legacy
|
|
`~/.claude/skills/continuous-learning-v2/` install when the plugin is
|
|
active under `~/.claude/plugins/cache/...` (#2037).
|
|
|
|
```bash
|
|
ECC_ROOT="${CLAUDE_PLUGIN_ROOT:-$(node -e "var r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process.env.CLAUDE_PLUGIN_ROOT;if(e&&e.trim())return e.trim();var d=p.join(o.homedir(),'.claude');function L(x){try{return require(p.join(x,'scripts','lib','resolve-ecc-root')).resolveEccRoot()}catch(_){return null}}var r=L(d);if(r)return r;var s=['ecc','ecc@ecc','marketplaces/ecc','everything-claude-code','everything-claude-code@everything-claude-code','marketplaces/everything-claude-code'];for(var i=0;i<s.length;i++){r=L(p.join(d,'plugins',s[i]));if(r)return r}try{var g=['ecc','everything-claude-code'];for(var j=0;j<g.length;j++){var c=p.join(d,'plugins','cache',g[j]);var O=f.readdirSync(c);for(var k=0;k<O.length;k++){var q=p.join(c,O[k]);var V=f.readdirSync(q);for(var m=0;m<V.length;m++){r=L(p.join(q,V[m]));if(r)return r}}}}catch(_){}return d})();console.log(r)")}"
|
|
python3 "$ECC_ROOT/skills/continuous-learning-v2/scripts/instinct-cli.py" status
|
|
```
|
|
|
|
## Behavior Notes
|
|
|
|
- Output includes both project-scoped and global instincts.
|
|
- Project instincts override global instincts when IDs conflict.
|
|
- Output is grouped by domain with confidence bars.
|
|
- This command does not support extra filters in v2.1.
|