d48cda4081
CI / Test (ubuntu-latest, Node 18.x, bun) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, npm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, pnpm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, yarn) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 20.x, bun) (push) Failing after 17m13s
CI / Test (ubuntu-latest, Node 20.x, npm) (push) Failing after 18m42s
CI / Test (ubuntu-latest, Node 20.x, pnpm) (push) Failing after 15m0s
CI / Test (ubuntu-latest, Node 20.x, yarn) (push) Failing after 49m44s
CI / Test (ubuntu-latest, Node 22.x, bun) (push) Failing after 51m55s
CI / Test (ubuntu-latest, Node 22.x, pnpm) (push) Failing after 21m57s
CI / Test (ubuntu-latest, Node 22.x, npm) (push) Failing after 37m39s
CI / Test (ubuntu-latest, Node 22.x, yarn) (push) Failing after 34m7s
CI / Validate Components (push) Failing after 37m15s
CI / Python Tests (push) Failing after 10m1s
CI / Security Scan (push) Failing after 10m1s
CI / Lint (push) Failing after 17m12s
CI / Coverage (push) Failing after 20m19s
CI / Test (macos-latest, Node 18.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, yarn) (push) Has been cancelled
60 lines
2.6 KiB
Markdown
60 lines
2.6 KiB
Markdown
---
|
|
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=(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
|
|
```
|
|
|
|
## 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
|
|
```
|