name: clanky-log-dive description: Inspect recent Clanky local sessions, Discord text subagent state, Discord voice chat sessions, voice-worker handoffs, duplicate voice replies, and performance/cost signals with the clanky logs CLI. when_to_use: Use when debugging recent Clanky sessions, Discord voice chat, Discord text subagents, voice-worker handoffs, repeated voice responses, duplicate ask_pi calls, stuck Discord inbox items, or Clanky performance/cost regressions. allowed_tools: - Bash deps: []
Clanky Log Dive
Use this skill for Clanky's own local logs and subagent state, covering Clanky Discord text/voice subagents.
Boundaries
- Work from
/Users/jamesvolpe/dev/clanky-piunless the user gives another checkout. - Use the default profile at
/Users/jamesvolpe/.clanky/profiles/defaultunless the user asks for another profile. - Do not delete or rewrite skills under
~/.claudeor~/.agentswhile debugging logs. - Prefer the CLI output first; only open raw JSONL, SQLite, or log files when the CLI output is insufficient.
Primary Commands
Recent overview:
pnpm exec tsx agents/clanky/src/bin.ts logs --limit 8 --tail 80
Latest Discord voice session:
pnpm exec tsx agents/clanky/src/bin.ts logs --session discord-voice --limit 8 --tail 80
Voice-worker handoff details:
pnpm exec tsx agents/clanky/src/bin.ts logs --session voice-worker --limit 8 --tail 40
Machine-readable report:
pnpm exec tsx agents/clanky/src/bin.ts logs --session discord-voice --json
Alternate profile or home:
pnpm exec tsx agents/clanky/src/bin.ts logs --profile default
pnpm exec tsx agents/clanky/src/bin.ts logs --home /path/to/.clanky
What To Check First
- Read
Subagentsfor activediscord-voice,voice-worker, anddiscord-guildstate. - Read
Recent Discord Inboxfor stuckqueuedorclaimedtext messages. - In
Selected Session, check:Duplicate tool calls, especially repeatedask_pi.Duplicate assistant messages, especially repeated spoken replies.- timeline ordering between user speech, tool calls, tool results, and assistant messages.
- For a selected
discord-voicesession, inspectLinked Voice Workerfor delegated work, token count, cost, and repeated worker requests. - Read
Discord Voice Log Tailfor realtime errors such asconversation_already_has_active_response, TTS buffering, media playback, and clankvox transport state. - Read
Discord Bridge Log Tailfor Discord text gateway acceptance, queueing, and reply send timings.
Interpreting Common Findings
- Repeated
ask_pi x3with matching args means Realtime emitted duplicate tool calls. Confirm whether only one Pi/worker request should have run. - Duplicate assistant messages after tool results usually mean each duplicate tool result created another spoken follow-up.
conversation_already_has_active_responsemeans the voice bridge attempted a new Realtime response while another response was active.- A
discord-guildsubagent with queue depth and aclaimedinbox row can indicate a stuck text-chat worker. - High linked
voice-workertokens/cost usually means duplicate delegations or long tool-heavy work.
Reporting
When answering, include exact timestamps with timezone context, the selected session file path, the duplicate counts, and the smallest likely root cause. If a fix was made, mention the verification commands that passed.