archive

archive is a command for coding agents from kitchen-engineer42/joharnessburg. It costs 83 tokens per session (368 once invoked), scanned A, original, MIT.

A command that packages a completed John workspace into a ZIP archive. The archive contains the project's durable planning, configuration, and skill files while leaving out development clutter.

In plain words
What is it for?
Use it when a John project is finished and you need to bundle its workspace files into a release archive.
Why use it?
It creates a portable copy that can be shared with teammates, attached to a release, or stored for later.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the john plugin — 28 skills, 5 commands, 5 agents, 3 hooks shipped together

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/kitchen-engineer42/joharnessburg/archive
Clone the repo
git clone --depth 1 https://github.com/kitchen-engineer42/joharnessburg

Or install john, the plugin that ships this one along with the rest of its 28 skills, 5 commands, 5 agents, 3 hooks.

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 archive

README.md
[![agentmods](https://agentmods.dev/badge/commands/kitchen-engineer42/joharnessburg/archive.svg)](https://agentmods.dev/commands/kitchen-engineer42/joharnessburg/archive)
Your own site
<a href="https://agentmods.dev/commands/kitchen-engineer42/joharnessburg/archive"><img src="https://agentmods.dev/badge/commands/kitchen-engineer42/joharnessburg/archive.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 368 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.1 $0.00083 $0.00368
Opus 5 $0.00042 $0.00184
Sonnet 5 $0.00017 $0.00074
Haiku 4.5 $0.00008 $0.00037

Measured 5d ago against content hash a97044302b68, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

archive 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 5d 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.

plugins/joharnessburg/commands/archive.md · 21 lines

What it actually says

When this command fires:

  1. Parse the user's argument. The first positional (if any) is a label for the archive (used in the default filename). --output <path> overrides the default location. --force allows overwriting an existing file.

  2. Invoke the archive script via Bash:

    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/archive_workspace.py" <user-args>
    
  3. The script returns JSON with archive_path, file_count, and size_bytes. Tell the user the zip is ready at the path, with the file count and size. If the user asked for the archive in the context of "we're done", consider also offering to run /john:status for a final inventory check before they ship.

  4. On success: false with "No .john/ directory found", tell the user there's no workspace to archive — they need /john:init first.

The archive is suitable for handing to teammates, attaching to a release, or stashing for posterity. It does NOT include .git/, node_modules/, __pycache__/, *.pyc/*.pyo, or .DS_Store — only the durable John artifacts plus the produced skills.

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. 5d ago First seen · 21 lines · 83 tokens per session scan A a97044302b68

Subscribe to this mod's changes

archive is a command published in the GitHub repository kitchen-engineer42/joharnessburg (9 stars, last pushed 1mo ago), licensed MIT. It adds 83 tokens to every session and 368 once invoked, about $0.0004 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.