mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-14 02:10:07 +08:00
Salvages the useful statusline/context monitor work from stale PR #1504 while preserving the current continuous-learning hook runner wiring. Adds the metrics bridge, context monitor, statusline script, shared cost/session bridge utilities, and tests. Fixes the reviewed false loop-detection hash collision for non-file tools, avoids default-session cost inflation, sanitizes statusline task lookup, and records hook payload session IDs in cost-tracker.
21 lines
1.0 KiB
JSON
21 lines
1.0 KiB
JSON
{
|
|
"statusLine": {
|
|
"type": "command",
|
|
"command": "node \"<plugin-root>/scripts/hooks/ecc-statusline.js\"",
|
|
"description": "ECC statusline: model | task | $cost tools files duration | dir | context bar"
|
|
},
|
|
"_comments": {
|
|
"setup": "Replace <plugin-root> with your ECC installation path. For plugin installs, use the resolved path from CLAUDE_PLUGIN_ROOT.",
|
|
"display": "Shows model name, current task, session cost, tool count, files modified, session duration, directory, and context usage bar with color thresholds.",
|
|
"colors": {
|
|
"green": "Context used < 50%",
|
|
"yellow": "Context used < 65%",
|
|
"orange": "Context used < 80%",
|
|
"red_blink": "Context used >= 80%"
|
|
},
|
|
"output_example": "Opus 4.6 | Fixing auth bug | $1.23 47t 5f 15m | myproject ███████░░░ 68%",
|
|
"dependencies": "Reads bridge file from ecc-metrics-bridge.js PostToolUse hook. Both must be installed for full metrics display.",
|
|
"usage": "Copy the statusLine object to your ~/.claude/settings.json"
|
|
}
|
|
}
|