q-end

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

A command that closes a coding session by collecting its work, writing documentation, and committing changes to Git.

In plain words
What is it for?
Use it to review checkpoints and prior work, create final session notes, verify the result, and commit the changes.
Why use it?
It helps preserve session history and prevents completed work from being left undocumented.

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-end
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-end

README.md
[![agentmods](https://agentmods.dev/badge/commands/contacttam/q-command-system/q-end.svg)](https://agentmods.dev/commands/contacttam/q-command-system/q-end)
Your own site
<a href="https://agentmods.dev/commands/contacttam/q-command-system/q-end"><img src="https://agentmods.dev/badge/commands/contacttam/q-command-system/q-end.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 1,965 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.01965
Opus 5 $0.00003 $0.00983
Sonnet 5 $0.00001 $0.00393
Haiku 4.5 $0.00001 $0.00197

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

Security

Grade A, and why

q-end 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-end.md · 380 lines

How it starts

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

End Session

Purpose: Complete session documentation and commit all changes.


MANDATORY PRE-FLIGHT CHECKLIST

STOP. Before proceeding, execute each item in order:

  • 1. Read this ENTIRE command file top to bottom
  • 2. Confirm you understand all 7 steps
  • 3. You will NOT skip any step
  • 4. You will VERIFY each step before proceeding to the next

DO NOT PROCEED until you have mentally confirmed all 4 items.


Step 1: MANDATORY - Gather ALL Prior Work

CRITICAL: This step is NON-NEGOTIABLE. Execute ALL sub-items.

1.1 Check for Continued Session

# Look for auto-compact continuation message in conversation
  • Search conversation for: "This session is being continued from a previous conversation"
  • If found: The conversation summary contains work BEFORE auto-compact - you MUST include this

1.2 MANDATORY: Read ALL Checkpoints From Today

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

EXECUTE the command above. Then:

  • For EACH checkpoint file found: READ IT COMPLETELY
  • Note accomplishments from each checkpoint
  • Note files changed in each checkpoint
  • Note decisions made in each checkpoint

If checkpoints exist and you did not read them: STOP and read them NOW.

1.3 Compile Complete Work List

  • Work from conversation summary (if continued session)
  • Work from ALL checkpoints (list each)
  • Work from current conversation (after checkpoints)

VERIFICATION GATE 1:

I have gathered work from:
- [ ] Conversation summary: [YES/NO/N/A]
- [ ] Checkpoint files read: [list count or "none"]
- [ ] Current conversation: [YES]

TOTAL accomplishments to document: [NUMBER]

DO NOT PROCEED to Step 2 until you have completed this verification.


Step 2: Generate Timestamp

EXECUTE this exact command:

TIMESTAMP=$(date +"%Y-%m-%d-%H%M") && echo "TIMESTAMP: $TIMESTAMP"
  • Command executed
  • Timestamp captured: ____________________
  • Format verified: YYYY-MM-DD-HHMM

Read the full file on GitHub · 380 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. 4d ago First seen · 380 lines · 6 tokens per session scan A 64b3171c0fad

Subscribe to this mod's changes

q-end 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 1,965 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.