whalesong-analyze
Analyze one recorded agent session the way the Whalesong instrument does — signal shape first, computed findings second, exact evidence rows last. Use when the user asks what a session did, why it stalled, looped, errored, or burned tokens.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 5
- Forks
- 2
01 前言 Front Matter
- name
- whalesong-analyze
- invocation
- model+user
- description
- Analyze one recorded agent session the way the Whalesong instrument does — signal shape first, computed findings second, exact evidence rows last. Use when the user asks what a session did, why it stalled, looped, errored, or burned tokens.
03 SKILL.md 正文
Whalesong: analyze one session
Whalesong's contract is see the behavior, then read the record. Follow that order — shape, findings, evidence — instead of starting in rows.
Pick the trace
whalesong_list_traces(filtersource,name,since_hours). Ids are source-prefixed:claude:…,codex:…,cw:…,devin:…,muse:….- A file path works too:
whalesong_analyzeacceptspathfor Whalesong JSONL, OTLP JSON, Codewhale session JSON, or runtime JSONL.
Shape before findings
whalesong_get_trace— rollup: counts by type/category, models, tokens, errors, top tools, span. Long duration + few events = partially observed, not slow.whalesong_rhythm— the instrument's actual DSP: dominant onset period, spectral entropy, strongest autocorrelation lag. A metronomic session (strong lag, low entropy) is a different failure than an arrhythmic storm.whalesong_analyze— findings withkind,severity,atMs,detail, and sampledeventsids. Every finding is a heuristic with a stated threshold, not a verdict.whalesong_observationswithfull: trueon the finding's event ids —statusMessage/input/outputsay why a call failed or what a loop was running. Shape without payload is half the answer.
If the shape is the story
whalesong_listenrenders the run to WAV — sustained harmonics are model/reasoning/subagent work, short envelopes are tool/file/network at fixed registers, beating is error density. Offer the path; let the human hear the session rather than read about it.whalesong_reportproduces the privacy-safe numerical report (no names, payloads, ids or absolute timestamps) when the analysis needs to be shared.
Honesty rules — the instrument's own
- Repetition is evidence, not proof of a stuck agent; identical calls can still progress. Gaps are unobserved time: waiting, uninstrumented work, dropped data, or stall — the record cannot say which.
- Token/cost fields stay null when unrecorded. Never estimate them.
observedGapRationear 1 means the collector saw fragments — read coverage before behavior.
Report
Shape line (duration, events, models, errors, dominant period if notable),
then findings by severity each backed by quoted evidence rows, then one
"check next" — instrumentUrl deep-links the waterfall for the human.
04 同仓库更多 Skills
xlsx
Create/edit/analyze/verify spreadsheet workbooks including XLSX/CSV/TSV.
webapp-testing
Start/reuse a local app, wait for readiness, inspect rendered state/console/network, act from observed selectors, and verify with evidence.
verify
Exercise the real app/API/CLI and collect observable evidence; tests alone do not count as end-to-end verification.
tts
暂无简介
test
Detect the project’s test stack, run the narrowest useful tests, create tests when authorized, and report coverage/gaps honestly.
spreadsheets
Compatibility alias for the xlsx skill. Prefer loading xlsx.