session-debugging

session-debugging is a skill for Claude Code, Codex from wsauret/flywheel. It costs 15 tokens per session (1,169 once invoked), scanned A, original, Apache-2.0.

A read-only procedure for investigating what happened during a Flywheel session by combining stored facts with diagnostic records.

In plain words
What is it for?
It helps trace session events, provider requests, model responses, timing, usage, and referenced artifacts from a session ID, project root, or reported symptom.
Why use it?
It lets developers answer runtime questions without changing the evidence being investigated. It also explains where event timelines, database facts, and log records come from.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps trace session events, provider requests, model responses, timing, usage, and referenced artifacts from a session ID, project root, or reported symptom.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wsauret/flywheel/session-debugging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wsauret/flywheel --skill session-debugging
Clone the repo
git clone --depth 1 https://github.com/wsauret/flywheel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/wsauret/flywheel/session-debugging/github.svg)](https://agentmods.dev/skills/wsauret/flywheel/session-debugging)
Your own site
<a href="https://agentmods.dev/skills/wsauret/flywheel/session-debugging"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/session-debugging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/wsauret/flywheel/session-debugging"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/session-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,169 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.01169
Opus 5.5 $0.00006 $0.00468
Sonnet 5.5 $0.00003 $0.00234
Haiku 4.5 $0.00002 $0.00117

Measured 28d ago against content hash ca370eeae8c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/orchestration/modules/development/definitions/skills/session-debugging/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Debugging

Input: a session id, a project root, or a symptom, and the question to answer about what the runtime did.

Read evidence; never change it. A diagnostic record holds ids, sizes, hashes, and kinds, never content (ARCH-RUNTIME-075), so read the content a record names from the durable fact it points at. The storage layout, the diagnostics tiers, and the logging mechanics are in docs/architecture.md, "Session Artifacts" and its "Diagnostics" part.

Sources

flywheel events search (in the source tree, bun run events:search) reads two sources as one timestamp-merged timeline:

  • Durable facts in .flywheel/flywheel.sqlite. They answer replay and projection questions. Provider request audit facts (prompt.assembled, tool_surface.selected, model.requested, model.request.dispatched, model.response_received, model.usage.recorded, context.application.recorded, context.transformer.applied, model.stream.summary.recorded) are durable. model.stream.summary.recorded keeps the aggregate timing and thinking-stall evidence.
  • Diagnostic records in the current .flywheel/log/*.jsonl files, including Log.* calls as log.<level> records. They answer "what did the runtime observe" within log retention. Raw stream telemetry is in model.stream.* records: provider-wire observations (source=provider, including Anthropic ping heartbeats), watchdog stalls and timeouts (source=watchdog), and normalized milestones (source=normalized).

The account service writes its own log under ~/.flywheel/log/, not the project's. Search both directories when a question crosses the account and a project, such as a launch, an executor exit, or a web client report.

Method

  1. Find the vocabulary: --list-types lists the types of both sources.
  2. Find failures: --errors --latest. --errors matches error-shaped facts plus log.error and log.warn records.
  3. Inspect causality: --around <position> -C <radius> around the interesting position interleaves facts and records by timestamp. Narrow a broad window with --type model.response_received or --regex "prompt\.assembled|model\.requested|model\.response_received".
  4. Match the symptom to its records in references/records.md and read the fields that the reference names.
  5. When a family you need is DEBUG or notable, reproduce with FLYWHEEL_LOG_LEVEL=DEBUG, which turns on log.debug and every DEBUG-tier and notable-tier family at once.
  6. When the records do not explain the cause, add a targeted diagnostic at that boundary that follows docs/architecture.md, "Diagnostics", and continue with systematic-debugging.

Read the full file on GitHub · 57 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago First seen · 57 lines · 15 tokens per session scan A ca370eeae8c0

Subscribe to this mod's changes

session-debugging is a skill published in the GitHub repository wsauret/flywheel (19 stars, last pushed today), licensed Apache-2.0. It adds 15 tokens to every session and 1,169 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

session-debugging compared with skills from other repositories

session-debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-debuggingwsauret/flywheelSkill19todayApache-2.0A15Claude Code, Codex
rust-checkHmbown/CodeWhaleSkill41k2d agoMITA15Claude Code, Codex
debugHmbown/CodeWhaleSkill41k2d agoMITA30Claude Code, Codex
feedbackHmbown/CodewhaleSkill41k1mo agoMITA0Claude Code, Codex
test-fixpatriceckhart/zotSkill373yesterdayMITA17Claude Code
investigateAbyssCN/oh-my-dagSkill441mo agoMITA77Claude Code, Codex
bugfix-triageAbyssCN/oh-my-dagSkill441mo agoMITA37Claude Code, Codex