q-verify

q-verify is a command for Claude Code from contactTAM/q-command-system. It costs 6 tokens per session (475 once invoked), scanned A, original, MIT.

A command that checks whether session files were created correctly after Q-Command session-saving commands run. It examines transcripts, notes, checkpoints, and Git repository status.

In plain words
What is it for?
Use it to verify saved transcripts, session notes, and checkpoints, count their lines, inspect today's checkpoint files, and report the latest commit and working-tree state.
Why use it?
It helps confirm that work was saved and shows whether the repository has uncommitted changes. A checkpoint is a saved progress marker, and Git tracks code changes.

Command for Claude Code

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.

agentmods
npx agentmods add commands/contacttam/q-command-system/q-verify
Clone the repo
git clone --depth 1 https://github.com/contactTAM/q-command-system

Made for: Claude Code.

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 q-verify

README.md
[![agentmods](https://agentmods.dev/badge/commands/contacttam/q-command-system/q-verify.svg)](https://agentmods.dev/commands/contacttam/q-command-system/q-verify)
Your own site
<a href="https://agentmods.dev/commands/contacttam/q-command-system/q-verify"><img src="https://agentmods.dev/badge/commands/contacttam/q-command-system/q-verify.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00006 $0.00475
Opus 5 $0.00003 $0.00237
Sonnet 5 $0.00001 $0.00095
Haiku 4.5 $0.00001 $0.00047

Measured 4d ago against content hash 3a5900995c52, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

q-verify 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 4d 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.

templates/.claude/commands/q-verify.md · 87 lines

What it actually says

Verify Session Files

Purpose: Check that /q-end, /q-checkpoint, or /q-save worked correctly.

Step 1: Check Transcripts

ls -la .q-system/transcripts/*$(date +%Y-%m-%d)* 2>/dev/null

For each file found:

  • Show filename
  • Show creation time
  • Show line count: wc -l [file]

Step 2: Check Session Notes

ls -la .q-system/session-notes/*$(date +%Y-%m-%d)* 2>/dev/null

For each file found:

  • Show filename
  • Show creation time
  • Show line count

Step 3: Check Checkpoints

ls -la .q-system/checkpoints/*$(date +%Y-%m-%d)* 2>/dev/null

List all checkpoints from today with times.

Step 4: Check Git Status

git status
git log -1 --format="%h %s (%cr)"

Show:

  • Clean working tree or uncommitted changes
  • Last commit hash, message, and time

Step 5: Report

=== Verification Report ===

Transcripts:
[Found/None] .q-system/transcripts/[filename]
  - Created: [time]
  - Size: [N] lines

Session Notes:
[Found/None] .q-system/session-notes/[filename]
  - Created: [time]
  - Size: [N] lines

Checkpoints:
[N] checkpoint(s) from today:
  - [filename] ([time])

Git:
- Working tree: [clean/dirty]
- Last commit: [hash] "[message]" ([time])
- Ahead of origin: [N] commit(s)

Status: [All Clear / Issues Detected]

[If issues, list what's missing or problematic]

When to use:

  • After /q-end to confirm it worked
  • After /q-checkpoint to verify save
  • After /q-save to see what was captured
  • When resuming to see what exists from previous work
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. 4d ago First seen · 87 lines · 6 tokens per session scan A 3a5900995c52

Subscribe to this mod's changes

q-verify is a command published in the GitHub repository contactTAM/q-command-system (5 stars, last pushed 8mo ago), licensed MIT. It adds 6 tokens to every session and 475 once invoked, about $0.0000 per session on Opus 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-08-31.