q-save

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

A short session-saving command for situations where time or available conversation space is limited.

In plain words
What is it for?
Use it for an urgent exit or when context usage is above 90%, so the session has a brief recoverable record.
Why use it?
It records a minimal transcript and verifies the saved work and commit before you leave.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/contacttam/q-command-system/q-save.svg)](https://agentmods.dev/commands/contacttam/q-command-system/q-save)
Your own site
<a href="https://agentmods.dev/commands/contacttam/q-command-system/q-save"><img src="https://agentmods.dev/badge/commands/contacttam/q-command-system/q-save.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 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,074 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.00005 $0.01074
Opus 5 $0.00003 $0.00537
Sonnet 5 $0.00001 $0.00215
Haiku 4.5 $0.00001 $0.00107

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

Security

Grade A, and why

q-save 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 3d 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-save.md · 223 lines

How it starts

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

Quick Save

Purpose: Lightweight session wrap-up when time or context is limited.

USE THIS WHEN: Context is critical (>90%) or you need to exit immediately.


MANDATORY PRE-FLIGHT CHECKLIST

STOP. Before proceeding, confirm:

  • 1. I will generate and USE the timestamp
  • 2. I will create the transcript file (even if brief)
  • 3. I will commit changes
  • 4. I will VERIFY both file and commit

Step 1: 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

STORE this timestamp. Use it for ALL operations.


Step 2: Determine Participant Name

  • Name known from session: ____________________
  • OR use: "Unknown"

Step 3: Create Basic Transcript

3.1 Create Directory

mkdir -p .q-system/transcripts

3.2 Create File

Filename: .q-system/transcripts/${TIMESTAMP}-[Name].md

MANDATORY content (keep it brief but complete):

# Session: [TIMESTAMP]-[Name]

**Type:** Quick save (abbreviated due to context constraints)

---

## Key Accomplishments

- [Accomplishment 1]
- [Accomplishment 2]
- [List ALL major work items]

---

## Files Changed

**Created:**
- [file1]

**Modified:**
- [file1]

---

## Status at Exit

[Current state - what's done, what's pending]

---

## Note

Quick save used due to: [context limit / time constraint / emergency exit]
Full session notes not created. Review checkpoints if available.
  • File created
  • All accomplishments listed (even if brief)
  • Files changed listed

3.3 VERIFY File

ls -la .q-system/transcripts/${TIMESTAMP}* && wc -l .q-system/transcripts/${TIMESTAMP}*
  • File exists
  • File has content (>15 lines minimum)

VERIFICATION GATE 1:

Transcript created: .q-system/transcripts/[filename]
- Lines: [N]

Read the full file on GitHub · 223 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. 3d ago First seen · 223 lines · 5 tokens per session scan A af04a0771a2c

Subscribe to this mod's changes

q-save is a command published in the GitHub repository contactTAM/q-command-system (5 stars, last pushed 8mo ago), licensed MIT. It adds 5 tokens to every session and 1,074 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.