speckit.archive.run

speckit.archive.run is a command for Claude Code from racecraft-lab/Paddock. It costs 16 tokens per session (3,101 once invoked), scanned A, original, MIT.

A command that moves completed feature specifications into durable project memory while preserving where the original files came from. It can also find older merged specifications before a new run begins.

In plain words
What is it for?
Use it to archive merged specifications, plans, changelogs, and related records, or to scan for specifications that still need archiving.
Why use it?
It keeps project history and decisions available after a feature is merged, while retaining enough information to recover the original files from Git.

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/racecraft-lab/paddock/speckit.archive.run
Clone the repo
git clone --depth 1 https://github.com/racecraft-lab/Paddock

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 speckit.archive.run

README.md
[![agentmods](https://agentmods.dev/badge/commands/racecraft-lab/paddock/speckit.archive.run.svg)](https://agentmods.dev/commands/racecraft-lab/paddock/speckit.archive.run)
Your own site
<a href="https://agentmods.dev/commands/racecraft-lab/paddock/speckit.archive.run"><img src="https://agentmods.dev/badge/commands/racecraft-lab/paddock/speckit.archive.run.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,101 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.00016 $0.03101
Opus 5 $0.00008 $0.01550
Sonnet 5 $0.00003 $0.00620
Haiku 4.5 $0.00002 $0.00310

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

Security

Grade A, and why

speckit.archive.run 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 yesterday.

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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • archive — 100% identical, 0 lines differ
  • archive — 97% identical, 3 lines differ
.claude/commands/speckit.archive.run.md · 428 lines

How it starts

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

Act as the Chief Software Architect, Documentation Maintainer, and release provenance auditor.

Your goal is to archive merged feature specifications into durable project memory while preserving enough provenance to recover raw spec artifacts from git later. This command also supports Archive Sweep mode, which identifies previously merged feature specs before a new SpecKit run starts.

User Input

$ARGUMENTS

You MUST consider the user input before proceeding.

Input Parsing

Parse $ARGUMENTS as shell-like tokens. Supported forms:

speckit.archive.run specs/###-feature-name [scope] [provenance] [mode]
speckit.archive.run --sweep --current-target specs/###-current-feature [provenance] [mode]

Positional Input

  • First non-option token: feature spec directory path, for example specs/007-invoice-settings.
  • In --sweep mode, no positional feature directory is required.

Scope Modifiers

If none are provided, update all archival artifacts.

  • --spec-only: update only .specify/memory/spec.md
  • --plan-only: update only .specify/memory/plan.md
  • --changelog-only: update only .specify/memory/changelog.md
  • --agent-only: update only the agent knowledge file (GEMINI.md, AGENTS.md, or CLAUDE.md)

Mode And Safety Options

  • --dry-run: do not modify files; produce the same eligibility, provenance, and cleanup report that an apply run would use.
  • --apply: apply memory archival edits. This is the default for a single feature archive unless --dry-run is present.
  • --sweep: discover previously merged feature specs and report archive and cleanup eligibility before any new spec work begins.
  • --apply-cleanup: after successful archival, remove or move completed spec folders out of active specs/** only if every cleanup gate passes.
  • --current-target <path>: active feature spec for the current run. Archive Sweep MUST exclude this path from archival and cleanup.

Provenance Options

Read the full file on GitHub · 428 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. yesterday First seen · 428 lines · 16 tokens per session scan A b3d7af22baad

Subscribe to this mod's changes

speckit.archive.run is a command published in the GitHub repository racecraft-lab/Paddock (11 stars, last pushed 2mo ago), licensed MIT. It adds 16 tokens to every session and 3,101 once invoked, about $0.0001 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-09-03.