Files
everything-claude-code/commands/instinct-status.md
T
affaan 6f01d26420 refactor: consolidate duplicated hook-root resolver into shared resolveEccRoot() (#2368)
The inline node -e resolver blob was duplicated ~60x across hooks.json,
command docs, and translations. Each copy inlined the full ~700-char
plugin-root search using a spread over nested array literals
(p.join(d,'plugins',...s) over [['ecc'],...]), which breaks Windows hook
execution due to shell quoting (#2368).

Collapse every copy to a 250-char locator that loads the committed
resolve-ecc-root module and delegates to resolveEccRoot() — no spread, no
nested array literals, no escaped double quotes. The real search logic now
lives in one tested module. Also route session-start-bootstrap.js through
resolveEccRoot() instead of its own duplicated reimplementation, and fix
the auto-update.md 'marketplace' (singular) typo along the way.

Guard tests updated: discovery behavior is asserted against resolveEccRoot();
the inline is asserted to delegate and to contain no Windows-fragile
constructs.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-01 00:05:02 +00:00

2.0 KiB

name, description, command
name description command
instinct-status Show learned instincts (project + global) with confidence 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).

ECC_ROOT="${CLAUDE_PLUGIN_ROOT:-$(node -e "var r=(function(){var p=require('path'),o=require('os');var e=process.env.CLAUDE_PLUGIN_ROOT;var b=(e&&e.trim())?e.trim():p.join(o.homedir(),'.claude');try{return require(p.join(b,'scripts','lib','resolve-ecc-root')).resolveEccRoot()}catch(x){return b}})();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/<project-id>/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