verify-session-flow

verify-session-flow is a skill for Claude Code, Codex from dimetron/pi-go. It costs 122 tokens per session (1,686 once invoked), scanned A, original, MIT.

A formal model for checking the interactive session flow of a coding tool. It covers actions such as submitting prompts, waiting, cancelling work, interrupting, and quitting.

In plain words
What is it for?
Use it when changing keyboard handling, prompt submission, cancellation, goal-loop controls, or session startup and shutdown behavior.
Why use it?
It catches user-visible state problems that isolated tests may miss, such as lost queued prompts, an unresponsive interrupt, or a quit action that discards work.

Skill for Claude CodeCodex

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

Good fit Use it when changing keyboard handling, prompt submission, cancellation, goal-loop controls, or session startup and shutdown behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dimetron/pi-go/verify-session-flow
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 dimetron/pi-go --skill verify-session-flow
Clone the repo
git clone --depth 1 https://github.com/dimetron/pi-go

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 verify-session-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/dimetron/pi-go/verify-session-flow/github.svg)](https://agentmods.dev/skills/dimetron/pi-go/verify-session-flow)
Your own site
<a href="https://agentmods.dev/skills/dimetron/pi-go/verify-session-flow"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/verify-session-flow/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 verify-session-flow

Your own site · 80×15
<a href="https://agentmods.dev/skills/dimetron/pi-go/verify-session-flow"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/verify-session-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,686 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.00122 $0.01686
Opus 5.5 $0.00049 $0.00674
Sonnet 5.5 $0.00024 $0.00337
Haiku 4.5 $0.00012 $0.00169

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

Security

Grade A, and why

verify-session-flow 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 20d 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.

internal/extension/bundled_skills/verify-session-flow/SKILL.md · 108 lines

How it starts

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

Verify the session flow

This is the model of what a person sees: launch, type, wait, cancel, quit. It exists because the two failures a user actually notices are structural — a session that cannot be interrupted, and a quit that discards work — and both span several handlers, so neither is visible in a unit test of any one of them.

The properties: the Ctrl+C quit needs two presses, Esc stops an armed goal loop, a canceled turn hands its queued prompt to the next turn rather than dropping it, and no TUI state is a dead end.

Does my change touch the verified code

git diff --stat <sync-commit>..HEAD -- \
  internal/tui/tui.go internal/tui/agent_loop.go internal/tui/commands.go \
  internal/tui/goal.go internal/autocompact/hook.go

Model covers (each model step names the handler it stands for):

Model action Code
InitProgress / InitDone / InitFailed the deferred-init splash, tui.go:563-565, 2391-2417
SubmitIdle handleInputSubmit → enqueuePrompt → submit, tui.go:783, agent_loop.go:985-1049
SubmitSteers while busy, a prompt steers instead of queueing, tui.go:785-787, agent_loop.go:961-975
GoalCycleQueues a goal cycle's own prompt occupies the queue, goal.go:284-296
TurnEndQueued / TurnEndIdle / TurnEndGoalCycle handleAgentDone, agent_loop.go:2013-2075
EscBusy / EscIdle handleInterruptKey, tui.go:1273-1281
CtrlCBusyFirst / CtrlCBusyAgain / CtrlCIdleFirst / CtrlCIdleSecond tui.go:1283-1297
CtrlCTimerFires resetCtrlCCount, tui.go:2353-2359
CancelSettlesToIdle / CancelSettlesToQueued cancelAgent, agent_loop.go:830-874
GoalSetIdle / GoalStop handleGoalCommand, goal.go:361-400
Quit / QuitIdle tea.Quit, /quit

Not modelled, and why: the modal overlays (commit, login, skill-create, branch and search popups). Each is a pointer that either swallows or forwards a key; none can strand a running turn, and the ordering claim they make is the five-line handler list in handleKey (tui.go:1144-1151), which a reader checks by eye. Also out of scope: rendering, scrolling, the diff sidebar, /run and /pr-autofix (separate machines), and the pre-turn compaction hook, whose guarantee is only that it never aborts a turn.

Read the full file on GitHub · 108 lines

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. 20d ago First seen · 108 lines · 122 tokens per session scan A 5fba5567e8d4

Subscribe to this mod's changes

verify-session-flow is a skill published in the GitHub repository dimetron/pi-go (232 stars, last pushed 6d ago), licensed MIT. It adds 122 tokens to every session and 1,686 once invoked, about $0.0005 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-09.

Related

verify-session-flow compared with skills from other repositories

verify-session-flow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
verify-session-flowdimetron/pi-goSkill2326d agoMITA122Claude Code, Codex
test-fixpatriceckhart/zotSkill372todayMITA17Claude Code
find-tracesaxiomhq/cliSkill606d agoMITA37Claude Code
troubleshoot-tervaterva-sh/tervaSkill5yesterdayMITA83Claude Code, Codex
golang-lintalexastrum/sklSkill115d agoMITA100Claude Code
golang-troubleshootingalexastrum/sklSkill115d agoMITA130Claude Code
golang-samber-oopsalexastrum/sklSkill115d agoMITA74Claude Code