The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix(context-monitor): make cost warnings informational, not commands (#2091)
Farzul Nizam Zolkifli1e5fa96d75a8
diff --git a/scripts/hooks/ecc-context-monitor.js b/scripts/hooks/ecc-context-monitor.jsindex a2475517e..62b92287a 100644--- a/scripts/hooks/ecc-context-monitor.js+++ b/scripts/hooks/ecc-context-monitor.js@@ -144,19 +144,19 @@ function evaluateConditions(bridge, options = {}) {warnings.push({severity: 3,type: 'cost',- message: `COST CRITICAL: Session cost is $${cost.toFixed(2)}. ` + 'Stop and inform the user about high cost before continuing.'+ message: `COST CRITICAL: session total ~$${cost.toFixed(2)} (over $${COST_CRITICAL_USD}). Informational only — not an instruction to stop.`});} else if (cost > COST_WARNING_USD) {warnings.push({severity: 2,type: 'cost',- message: `COST WARNING: Session cost is $${cost.toFixed(2)}. ` + 'Review whether the current approach justifies the expense.'+ message: `COST WARNING: session total ~$${cost.toFixed(2)} (over $${COST_WARNING_USD}). Informational only.`});} else if (cost > COST_NOTICE_USD) {warnings.push({severity: 1,type: 'cost',- message: `COST NOTICE: Session cost is $${cost.toFixed(2)}. ` + 'Consider whether the current approach is efficient.'+ message: `COST NOTICE: session total ~$${cost.toFixed(2)}. Informational only.`});}}