hail-hydra-cc 2.3.2 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ description: >
4
4
  🔵 Hydra's analysis head — thorough code review, debugging, and analysis agent. Use
5
5
  PROACTIVELY whenever Claude needs to review code for quality, analyze a bug with error
6
6
  messages or stack traces, evaluate dependencies, assess test coverage, review pull request
7
- changes, identify performance issues, or analyze technical debt. Runs on Sonnet 4.6 for strong
7
+ changes, identify performance issues, or analyze technical debt. Runs on Sonnet for strong
8
8
  reasoning at good speed.
9
9
  May run in parallel with other Hydra agents — produces self-contained, clearly structured
10
10
  output so the orchestrator can merge results from multiple simultaneous agents.
@@ -4,8 +4,8 @@ description: >
4
4
  🔵 Hydra's implementation head — capable code writing and engineering agent. Use PROACTIVELY
5
5
  whenever Claude needs to write new code, implement features, refactor existing code, create
6
6
  or modify tests, fix bugs with clear error messages, make API integrations, or perform any
7
- code writing task that follows well-understood patterns. Runs on Sonnet 4.6 for a strong balance
8
- of speed and capability. Use this for all standard implementation work — reserve Opus 4.6 only
7
+ code writing task that follows well-understood patterns. Runs on Sonnet for a strong balance
8
+ of speed and capability. Use this for all standard implementation work — reserve Opus only
9
9
  for novel architecture or extremely subtle debugging.
10
10
  May run in parallel with other Hydra agents — produces self-contained, clearly structured
11
11
  output so the orchestrator can merge results from multiple simultaneous agents.
@@ -4,7 +4,7 @@ description: >
4
4
  🟢 Hydra's git operations specialist. Handles all version control tasks: staging,
5
5
  committing with well-crafted Conventional Commits messages, branching, merging,
6
6
  rebasing, stashing, cherry-picking, log inspection, diff analysis, and conflict
7
- detection. Runs on Haiku 4.5 — git operations are mechanical and well-defined.
7
+ detection. Runs on Haiku — git operations are mechanical and well-defined.
8
8
  Use hydra-analyst for merge conflict RESOLUTION (requires code
9
9
  comprehension) but hydra-git for conflict DETECTION and all other git operations.
10
10
  May run in parallel with other Hydra agents — produces self-contained, clearly
@@ -2,11 +2,11 @@
2
2
  name: hydra-guard
3
3
  description: >
4
4
  🟢 Hydra's security and quality gate agent. Automatically invoked after hydra-coder
5
- (Sonnet 4.6) produces code changes. Performs a fast scan for common security issues
5
+ (Sonnet) produces code changes. Performs a fast scan for common security issues
6
6
  (hardcoded secrets, SQL injection, XSS, unsafe deserialization, exposed API keys),
7
7
  code quality checks (unused imports, dead code, missing error handling on async
8
8
  operations), and leftover debug artifacts (console.log, TODO/FIXME/HACK comments).
9
- Runs on Haiku 4.5 for speed — this is a fast gate, not a deep audit. For deep
9
+ Runs on Haiku for speed — this is a fast gate, not a deep audit. For deep
10
10
  security review, use hydra-analyst instead.
11
11
  May run in parallel with other Hydra agents — produces self-contained, clearly
12
12
  structured output so the orchestrator can merge results from multiple simultaneous agents.
@@ -91,7 +91,7 @@ areas of the codebase.
91
91
  - `src/api.py:88` — Unhandled promise rejection in `fetchUser()` — add try/catch
92
92
  - `src/utils.py:14` — TODO comment left in production path
93
93
 
94
- Note: Savings calculated against Opus 4.6 ($5/$25 per MTok). These are warnings only — code has been delivered above.
94
+ Note: Savings calculated against Opus ($5/$25 per MTok). These are warnings only — code has been delivered above.
95
95
  ```
96
96
 
97
97
  ## Boundaries
@@ -4,7 +4,7 @@ description: >
4
4
  🟢 Hydra's execution head — fast test runner, build executor, and validation agent.
5
5
  Use PROACTIVELY whenever Claude needs to run tests, execute builds, check linting, verify
6
6
  formatting, run type checks, check git status, execute simple scripts, or validate that
7
- changes work. Runs on Haiku 4.5 for speed — ideal for quick feedback loops during development.
7
+ changes work. Runs on Haiku for speed — ideal for quick feedback loops during development.
8
8
  May run in parallel with other Hydra agents — produces self-contained, clearly structured
9
9
  output so the orchestrator can merge results from multiple simultaneous agents.
10
10
  tools: Read, Bash, Glob, Grep
@@ -6,7 +6,7 @@ description: >
6
6
  files, read code, find patterns, grep for strings, list directories, understand project
7
7
  structure, answer "where is X?" questions, or build/update the codebase dependency map.
8
8
  This is the first head to reach for when gathering information before making changes.
9
- Runs on Haiku 4.5 for near-instant responses.
9
+ Runs on Haiku for near-instant responses.
10
10
  May run in parallel with other Hydra agents — produces self-contained, clearly structured
11
11
  output so the orchestrator can merge results from multiple simultaneous agents.
12
12
  tools: Read, Grep, Glob, Bash, Write
@@ -4,7 +4,7 @@ description: >
4
4
  🟢 Hydra's documentation head — fast technical writing agent. Use PROACTIVELY whenever
5
5
  Claude needs to write or update README files, add code comments or docstrings, create
6
6
  changelogs, write API documentation, update configuration docs, or produce any technical
7
- writing that describes existing code. Runs on Haiku 4.5 for speed — documentation from
7
+ writing that describes existing code. Runs on Haiku for speed — documentation from
8
8
  existing code is largely descriptive and doesn't need heavy reasoning.
9
9
  May run in parallel with other Hydra agents — produces self-contained, clearly structured
10
10
  output so the orchestrator can merge results from multiple simultaneous agents.
@@ -3,7 +3,7 @@ name: hydra-sentinel-scan
3
3
  description: >
4
4
  Fast integration sweep after code changes. Checks for broken imports,
5
5
  missing exports, changed function signatures, missing env vars, circular
6
- dependencies, and changed API routes. Runs on Haiku 4.5 for speed.
6
+ dependencies, and changed API routes. Runs on Haiku for speed.
7
7
  If issues are found, the orchestrator escalates to hydra-sentinel for
8
8
  deep analysis. If clean — done, zero additional cost.
9
9
  model: haiku
@@ -206,6 +206,24 @@ Parallel-safe. Self-contained output. See SKILL.md collaboration rules.
206
206
 
207
207
  After scan completes, orchestrator handles sentinel-pending flag cleanup per SKILL.md sentinel protocol.
208
208
 
209
+ ### End-of-Scan Tracking Cleanup (REQUIRED)
210
+
211
+ After producing your final report — clean OR issues_found OR error —
212
+ ALWAYS clear the sentinel pending flag and write a scan marker so the
213
+ statusline can show `✅ Sentinel clean` briefly:
214
+
215
+ ```bash
216
+ SID="${CLAUDE_SESSION_ID:-unknown}"
217
+ DIR="${TMPDIR:-/tmp}/hydra-sentinel"
218
+ rm -f "${DIR}/${SID}-pending.json" 2>/dev/null
219
+ mkdir -p "$DIR" 2>/dev/null
220
+ date +%s > "${DIR}/${SID}-last-scan" 2>/dev/null
221
+ ```
222
+
223
+ If `CLAUDE_SESSION_ID` is not set, clear the most recently modified
224
+ `*-pending.json` in that directory and write the corresponding `-last-scan`
225
+ marker. Failure here must not block your report — silently skip on error.
226
+
209
227
  ## Output Format — Compressed (MANDATORY)
210
228
 
211
229
  You report to the orchestrator (Opus), NOT to the user. Opus translates for the user. Output must be DENSE and STRUCTURED, not prose.
@@ -4,7 +4,7 @@ description: >
4
4
  Deep integration analysis triggered when sentinel-scan flags issues.
5
5
  Validates inter-component contracts, traces data flow across boundaries,
6
6
  confirms or dismisses findings from the fast scan, and provides specific
7
- fix suggestions. Runs on Sonnet 4.6 for accuracy.
7
+ fix suggestions. Runs on Sonnet for accuracy.
8
8
  model: sonnet
9
9
  tools: Read, Grep, Glob, Write
10
10
  memory: project
@@ -208,3 +208,21 @@ Preambles, transitions, self-explanations, restatements, hedging, politeness.
208
208
 
209
209
  ### Role-specific
210
210
  Issue/fix pairs. Decision notes at confirm/dismiss only — one line each. Don't narrate the trace; show the conclusion.
211
+
212
+ ## End-of-Scan Tracking Cleanup (REQUIRED)
213
+
214
+ After producing your final report — confirmed, dismissed, or mixed —
215
+ ALWAYS clear the sentinel pending flag and write a scan marker so the
216
+ statusline can show `✅ Sentinel clean` briefly:
217
+
218
+ ```bash
219
+ SID="${CLAUDE_SESSION_ID:-unknown}"
220
+ DIR="${TMPDIR:-/tmp}/hydra-sentinel"
221
+ rm -f "${DIR}/${SID}-pending.json" 2>/dev/null
222
+ mkdir -p "$DIR" 2>/dev/null
223
+ date +%s > "${DIR}/${SID}-last-scan" 2>/dev/null
224
+ ```
225
+
226
+ If `CLAUDE_SESSION_ID` is not set, clear the most recently modified
227
+ `*-pending.json` in that directory and write the corresponding `-last-scan`
228
+ marker. Failure here must not block your report — silently skip on error.
@@ -1,37 +1,37 @@
1
- ---
2
- description: Show current Hydra configuration and how to customize it
3
- allowed-tools: Read, Bash
4
- ---
5
-
6
- # Hydra Config
7
-
8
- Show the current Hydra configuration:
9
-
10
- 1. Check for project-level config first:
11
- ```bash
12
- cat .claude/skills/hydra/config/hydra.config.md 2>/dev/null
13
- ```
14
-
15
- 2. If not found, check global config:
16
- ```bash
17
- cat ~/.claude/skills/hydra/config/hydra.config.md 2>/dev/null
18
- ```
19
-
20
- 3. If neither found, show defaults:
21
-
22
- ```
23
- 🐉 Hydra Configuration (defaults — no config file found)
24
- ─────────────────────────────
25
- Mode: balanced
26
- Dispatch Log: on
27
- Auto-Guard: on
28
- Model Overrides: none
29
- ─────────────────────────────
30
- To customize, create a config file:
31
- Global: ~/.claude/skills/hydra/config/hydra.config.md
32
- Project: .claude/skills/hydra/config/hydra.config.md
33
-
34
- Run /hydra:status to see current agent assignments.
35
- ```
36
-
37
- 4. If a config file IS found, display its contents and note where it was loaded from.
1
+ ---
2
+ description: Show current Hydra configuration and how to customize it
3
+ allowed-tools: Read, Bash
4
+ ---
5
+
6
+ # Hydra Config
7
+
8
+ Show the current Hydra configuration:
9
+
10
+ 1. Check for project-level config first:
11
+ ```bash
12
+ cat .claude/skills/hydra/config/hydra.config.md 2>/dev/null
13
+ ```
14
+
15
+ 2. If not found, check global config:
16
+ ```bash
17
+ cat ~/.claude/skills/hydra/config/hydra.config.md 2>/dev/null
18
+ ```
19
+
20
+ 3. If neither found, show defaults:
21
+
22
+ ```
23
+ 🐉 Hydra Configuration (defaults — no config file found)
24
+ ─────────────────────────────
25
+ Mode: balanced
26
+ Dispatch Log: on
27
+ Auto-Guard: on
28
+ Model Overrides: none
29
+ ─────────────────────────────
30
+ To customize, create a config file:
31
+ Global: ~/.claude/skills/hydra/config/hydra.config.md
32
+ Project: .claude/skills/hydra/config/hydra.config.md
33
+
34
+ Run /hydra:status to see current agent assignments.
35
+ ```
36
+
37
+ 4. If a config file IS found, display its contents and note where it was loaded from.
@@ -1,71 +1,71 @@
1
- ---
2
- description: Manually run the Hydra security and quality scan on specified files or directories
3
- allowed-tools: Read, Grep, Glob, Bash
4
- model: haiku
5
- ---
6
-
7
- # Hydra Guard — Manual Security Scan
8
-
9
- Run a focused security and quality scan on the specified files.
10
-
11
- **Target**: $ARGUMENTS
12
-
13
- If no arguments provided, scan all files changed since the last commit:
14
- ```bash
15
- git diff --name-only HEAD 2>/dev/null || echo "Not a git repository or no changes"
16
- ```
17
-
18
- ## Scan Checklist
19
-
20
- For each target file, check for:
21
-
22
- ### CRITICAL (security)
23
- - Hardcoded secrets, API keys, tokens, passwords (patterns: `sk-`, `ghp_`, `AKIA`, `password =`, `secret =`, `token =`, `api_key =`)
24
- - SQL injection vulnerabilities (string concatenation in queries)
25
- - XSS vulnerabilities (unescaped user input in HTML output)
26
- - Unsafe deserialization (`eval()`, `pickle.loads()`, `unserialize()`)
27
- - Path traversal (`../` in file operations without validation)
28
- - Command injection (user input passed to shell commands)
29
-
30
- ### WARNING (quality)
31
- - `console.log` / `print()` debug leftovers
32
- - TODO/FIXME/HACK comments
33
- - Unused imports (obvious cases only)
34
- - Missing error handling on async operations (no try/catch, no .catch())
35
- - Empty catch blocks
36
- - Hardcoded URLs or magic numbers without constants
37
-
38
- ### INFO (style)
39
- - Functions longer than 100 lines
40
- - Deeply nested conditionals (3+ levels)
41
- - Inconsistent naming conventions within the same file
42
-
43
- ## Output Format
44
-
45
- ```
46
- 🐉 Hydra Guard — Security & Quality Report
47
- ═══════════════════════════════════════════
48
- Files scanned: 3
49
-
50
- 🔴 CRITICAL (2 findings)
51
- src/auth.py:45 Hardcoded API key: OPENAI_KEY = "sk-..."
52
- src/db.py:78 SQL injection: f-string in query construction
53
-
54
- ⚠️ WARNING (3 findings)
55
- src/auth.py:12 console.log left in production code
56
- src/utils.py:89 Empty catch block — errors silently swallowed
57
- src/api.py:34 TODO: "fix this later" (line 34)
58
-
59
- ℹ️ INFO (1 finding)
60
- src/handler.py:1 Function process_request is 142 lines long
61
-
62
- Summary: 2 critical · 3 warnings · 1 info
63
- ```
64
-
65
- If no issues found:
66
- ```
67
- 🐉 Hydra Guard — All Clear ✅
68
- Files scanned: 3 | No issues found.
69
- ```
70
-
71
- **Important**: This is a FAST scan, not a deep audit. For thorough security review, use hydra-analyst instead.
1
+ ---
2
+ description: Manually run the Hydra security and quality scan on specified files or directories
3
+ allowed-tools: Read, Grep, Glob, Bash
4
+ model: haiku
5
+ ---
6
+
7
+ # Hydra Guard — Manual Security Scan
8
+
9
+ Run a focused security and quality scan on the specified files.
10
+
11
+ **Target**: $ARGUMENTS
12
+
13
+ If no arguments provided, scan all files changed since the last commit:
14
+ ```bash
15
+ git diff --name-only HEAD 2>/dev/null || echo "Not a git repository or no changes"
16
+ ```
17
+
18
+ ## Scan Checklist
19
+
20
+ For each target file, check for:
21
+
22
+ ### CRITICAL (security)
23
+ - Hardcoded secrets, API keys, tokens, passwords (patterns: `sk-`, `ghp_`, `AKIA`, `password =`, `secret =`, `token =`, `api_key =`)
24
+ - SQL injection vulnerabilities (string concatenation in queries)
25
+ - XSS vulnerabilities (unescaped user input in HTML output)
26
+ - Unsafe deserialization (`eval()`, `pickle.loads()`, `unserialize()`)
27
+ - Path traversal (`../` in file operations without validation)
28
+ - Command injection (user input passed to shell commands)
29
+
30
+ ### WARNING (quality)
31
+ - `console.log` / `print()` debug leftovers
32
+ - TODO/FIXME/HACK comments
33
+ - Unused imports (obvious cases only)
34
+ - Missing error handling on async operations (no try/catch, no .catch())
35
+ - Empty catch blocks
36
+ - Hardcoded URLs or magic numbers without constants
37
+
38
+ ### INFO (style)
39
+ - Functions longer than 100 lines
40
+ - Deeply nested conditionals (3+ levels)
41
+ - Inconsistent naming conventions within the same file
42
+
43
+ ## Output Format
44
+
45
+ ```
46
+ 🐉 Hydra Guard — Security & Quality Report
47
+ ═══════════════════════════════════════════
48
+ Files scanned: 3
49
+
50
+ 🔴 CRITICAL (2 findings)
51
+ src/auth.py:45 Hardcoded API key: OPENAI_KEY = "sk-..."
52
+ src/db.py:78 SQL injection: f-string in query construction
53
+
54
+ ⚠️ WARNING (3 findings)
55
+ src/auth.py:12 console.log left in production code
56
+ src/utils.py:89 Empty catch block — errors silently swallowed
57
+ src/api.py:34 TODO: "fix this later" (line 34)
58
+
59
+ ℹ️ INFO (1 finding)
60
+ src/handler.py:1 Function process_request is 142 lines long
61
+
62
+ Summary: 2 critical · 3 warnings · 1 info
63
+ ```
64
+
65
+ If no issues found:
66
+ ```
67
+ 🐉 Hydra Guard — All Clear ✅
68
+ Files scanned: 3 | No issues found.
69
+ ```
70
+
71
+ **Important**: This is a FAST scan, not a deep audit. For thorough security review, use hydra-analyst instead.
@@ -1,47 +1,47 @@
1
- ---
2
- description: Show all available Hydra commands, agents, and a quick reference guide
3
- ---
4
-
5
- # Hydra Help
6
-
7
- Display the following help reference directly — do NOT search files or run commands:
8
-
9
- ```
10
- 🐉 Hydra Framework — Quick Reference
11
- ═══════════════════════════════════════
12
- COMMANDS
13
- /hydra:help Show this help screen
14
- /hydra:status Show installed agents, version, config
15
- /hydra:update Update Hydra to the latest version
16
- /hydra:config Show current configuration
17
- /hydra:guard Run security scan on files (usage: /hydra:guard src/auth.py)
18
- /hydra:quiet Suppress dispatch logs for this session
19
- /hydra:map View, rebuild, or query the codebase map
20
- /hydra:verbose Enable verbose dispatch logs with timing
21
- /hydra:report Report a bug, request a feature, or share feedback
22
- /hydra:preflight Two-phase environment & compatibility check before new projects
23
- /hydra:stats Show real token usage and estimated savings (no AI estimation)
24
- /hydra:stfu Silence intermediate prose from every dispatched subagent
25
-
26
- AGENTS
27
- 🟢 hydra-scout (Haiku 4.5) — Explore codebase, find files, map structure
28
- 🟢 hydra-runner (Haiku 4.5) — Run tests, linters, build commands
29
- 🟢 hydra-scribe (Haiku 4.5) — Write docs, comments, READMEs
30
- 🟢 hydra-guard (Haiku 4.5) — Security scan, quality gate
31
- 🟢 hydra-git (Haiku 4.5) — Git operations, commits, branches
32
- 🟢 hydra-preflight (Haiku 4.5) — Environment detection, version probing, dep inventory
33
- 🔵 hydra-coder (Sonnet 4.6) — Write and edit code
34
- 🔵 hydra-analyst (Sonnet 4.6) — Debug, diagnose, review
35
-
36
- HOW IT WORKS
37
- The Opus 4.6 orchestrator automatically delegates tasks to cheaper,
38
- faster agents (Haiku 4.5 and Sonnet 4.6) — saving ~50% on API costs
39
- while maintaining Opus-level quality through verification.
40
-
41
- You don't need to do anything. Just work normally.
42
- Hydra operates invisibly unless you check the dispatch log.
43
-
44
- LINKS
45
- GitHub: https://github.com/AR6420/Hail_Hydra
46
- npm: https://www.npmjs.com/package/hail-hydra-cc
47
- ```
1
+ ---
2
+ description: Show all available Hydra commands, agents, and a quick reference guide
3
+ ---
4
+
5
+ # Hydra Help
6
+
7
+ Display the following help reference directly — do NOT search files or run commands:
8
+
9
+ ```
10
+ 🐉 Hydra Framework — Quick Reference
11
+ ═══════════════════════════════════════
12
+ COMMANDS
13
+ /hydra:help Show this help screen
14
+ /hydra:status Show installed agents, version, config
15
+ /hydra:update Update Hydra to the latest version
16
+ /hydra:config Show current configuration
17
+ /hydra:guard Run security scan on files (usage: /hydra:guard src/auth.py)
18
+ /hydra:quiet Suppress dispatch logs for this session
19
+ /hydra:map View, rebuild, or query the codebase map
20
+ /hydra:verbose Enable verbose dispatch logs with timing
21
+ /hydra:report Report a bug, request a feature, or share feedback
22
+ /hydra:preflight Two-phase environment & compatibility check before new projects
23
+ /hydra:stats Show real token usage and estimated savings (no AI estimation)
24
+ /hydra:stfu Silence intermediate prose from every dispatched subagent
25
+
26
+ AGENTS
27
+ 🟢 hydra-scout (Haiku 4.5) — Explore codebase, find files, map structure
28
+ 🟢 hydra-runner (Haiku 4.5) — Run tests, linters, build commands
29
+ 🟢 hydra-scribe (Haiku 4.5) — Write docs, comments, READMEs
30
+ 🟢 hydra-guard (Haiku 4.5) — Security scan, quality gate
31
+ 🟢 hydra-git (Haiku 4.5) — Git operations, commits, branches
32
+ 🟢 hydra-preflight (Haiku 4.5) — Environment detection, version probing, dep inventory
33
+ 🔵 hydra-coder (Sonnet 4.6) — Write and edit code
34
+ 🔵 hydra-analyst (Sonnet 4.6) — Debug, diagnose, review
35
+
36
+ HOW IT WORKS
37
+ The Opus 4.6 orchestrator automatically delegates tasks to cheaper,
38
+ faster agents (Haiku 4.5 and Sonnet 4.6) — saving ~50% on API costs
39
+ while maintaining Opus-level quality through verification.
40
+
41
+ You don't need to do anything. Just work normally.
42
+ Hydra operates invisibly unless you check the dispatch log.
43
+
44
+ LINKS
45
+ GitHub: https://github.com/AR6420/Hail_Hydra
46
+ npm: https://www.npmjs.com/package/hail-hydra-cc
47
+ ```
@@ -1,16 +1,16 @@
1
- ---
2
- description: Suppress Hydra dispatch logs for the rest of this session
3
- ---
4
-
5
- # Hydra Quiet Mode
6
-
7
- Acknowledge this command and remember for the rest of this session:
8
-
9
- **Do NOT display the Hydra Dispatch Log footer after tasks.**
10
-
11
- Respond with:
12
- "🐉 Quiet mode enabled. Dispatch logs suppressed for this session. Use /hydra:verbose to re-enable."
13
-
14
- Continue operating Hydra normally (delegation, verification, auto-guard) — just don't show the dispatch log table.
15
-
16
- Also suppress the task completion notification sound for this session.
1
+ ---
2
+ description: Suppress Hydra dispatch logs for the rest of this session
3
+ ---
4
+
5
+ # Hydra Quiet Mode
6
+
7
+ Acknowledge this command and remember for the rest of this session:
8
+
9
+ **Do NOT display the Hydra Dispatch Log footer after tasks.**
10
+
11
+ Respond with:
12
+ "🐉 Quiet mode enabled. Dispatch logs suppressed for this session. Use /hydra:verbose to re-enable."
13
+
14
+ Continue operating Hydra normally (delegation, verification, auto-guard) — just don't show the dispatch log table.
15
+
16
+ Also suppress the task completion notification sound for this session.
@@ -80,6 +80,37 @@ const { stats, totalTurns, haikuCost, sonnetCost, opusCost,
80
80
  delegatedTurns, delegationRate, sessionFile, unknownModels } = summary;
81
81
 
82
82
  const bar = '━'.repeat(40);
83
+
84
+ // No-delegation guidance branch — when no Hydra subagents dispatched OR savings below indicator threshold
85
+ if (delegatedTurns === 0 || savedUSD < 0.01) {
86
+ console.log('');
87
+ console.log('🐉 Hydra Stats');
88
+ console.log(bar);
89
+ console.log('Session: ' + path.basename(sessionFile));
90
+ console.log('Turns: ' + totalTurns);
91
+ console.log(bar);
92
+ console.log('');
93
+ console.log('🟣 Opus (' + stats.opus.turns + ' turns): ' + fmt(stats.opus.input + stats.opus.cache_create) + ' in / ' + fmt(stats.opus.output) + ' out → \$' + opusCost.toFixed(3));
94
+ console.log(bar);
95
+ console.log('');
96
+ console.log('No Hydra subagent dispatches recorded in this session.');
97
+ console.log('');
98
+ console.log('Hydra works best when invoked explicitly. Try:');
99
+ console.log(' /hydra:scout — codebase exploration on Haiku');
100
+ console.log(' /hydra:guard — security scan on Haiku');
101
+ console.log(' /hydra:preflight — environment validation');
102
+ console.log(' /hydra:map — codebase dependency map');
103
+ console.log('');
104
+ console.log('Or include \"use hydra\" in prompts that involve multi-file');
105
+ console.log('exploration, codebase analysis, or routine verification.');
106
+ console.log(bar);
107
+ if (unknownModels && unknownModels.size > 0) {
108
+ console.log('');
109
+ console.log('⚠️ Unknown models (not counted): ' + Array.from(unknownModels).join(', '));
110
+ }
111
+ process.exit(0);
112
+ }
113
+
83
114
  console.log('');
84
115
  console.log('🐉 Hydra Stats');
85
116
  console.log(bar);