--- name: instinct-status description: Show learned instincts (project + global) with confidence command: true --- # Instinct Status Command Shows learned instincts for the current project plus global instincts, grouped by domain. ## Implementation Run the instinct CLI, resolving the active ECC plugin root the same way `hooks/hooks.json` and the other slash commands (`/sessions`, `/skill-health`) do — env var → standard install → known plugin roots → plugin cache → fallback. This avoids the divergence that happens when `CLAUDE_PLUGIN_ROOT` is unset while a legacy `~/.claude/skills/continuous-learning-v2/` directory still exists (#2037). ```bash ECC_ROOT="${CLAUDE_PLUGIN_ROOT:-$(node -e "var r=(()=>{var e=process.env.CLAUDE_PLUGIN_ROOT;if(e&&e.trim())return e.trim();var p=require('path'),f=require('fs'),h=require('os').homedir(),d=p.join(h,'.claude'),q=p.join('scripts','lib','utils.js');if(f.existsSync(p.join(d,q)))return d;for(var s of [['ecc'],['ecc@ecc'],['marketplaces','ecc'],['everything-claude-code'],['everything-claude-code@everything-claude-code'],['marketplaces','everything-claude-code']]){var l=p.join(d,'plugins',...s);if(f.existsSync(p.join(l,q)))return l}try{for(var g of ['ecc','everything-claude-code']){var b=p.join(d,'plugins','cache',g);for(var o of f.readdirSync(b,{withFileTypes:true})){if(!o.isDirectory())continue;for(var v of f.readdirSync(p.join(b,o.name),{withFileTypes:true})){if(!v.isDirectory())continue;var c=p.join(b,o.name,v.name);if(f.existsSync(p.join(c,q)))return c}}}}catch(x){}return d})();console.log(r)")}" python3 "$ECC_ROOT/skills/continuous-learning-v2/scripts/instinct-cli.py" status ``` ## Usage ``` /instinct-status ``` ## What to Do 1. Detect current project context (git remote/path hash) 2. Read project instincts from `~/.claude/homunculus/projects//instincts/` 3. Read global instincts from `~/.claude/homunculus/instincts/` 4. Merge with precedence rules (project overrides global when IDs collide) 5. Display grouped by domain with confidence bars and observation stats ## Output Format ``` ============================================================ INSTINCT STATUS - 12 total ============================================================ Project: my-app (a1b2c3d4e5f6) Project instincts: 8 Global instincts: 4 ## PROJECT-SCOPED (my-app) ### WORKFLOW (3) ███████░░░ 70% grep-before-edit [project] trigger: when modifying code ## GLOBAL (apply to all projects) ### SECURITY (2) █████████░ 85% validate-user-input [global] trigger: when handling user input ```