finish

A session-closing command that follows the project's canonical completion procedure. It captures context, synchronizes project settings and instructions, records insights, checks the worktree, and can handle related Git actions.

In plain words
What is it for?
Use it at the end of a coding session to update project records, save memories and insights, review repository status, and produce a closing summary.
Why use it?
It reduces the chance of losing useful session context or leaving the project state unclear when work ends. Keeping the procedure in one reference file also prevents different completion commands from drifting apart.

Command

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/data-wise/craft/finish
Clone the repo
git clone --depth 1 https://github.com/Data-Wise/craft
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 454 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.00008 $0.00454
Opus 5 $0.00004 $0.00227
Sonnet 5 $0.00002 $0.00091
Haiku 4.5 $0.00001 $0.00045

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

Security

Grade A, and why

finish 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.

commands/finish.md · 35 lines

What it actually says

/finish - Session Completion & Context Capture

This command is a thin shim. The canonical behavior lives in the adhd-workflow skill's Session Completion operation. This file exists only to preserve the explicit /craft:finish slash entry point (renamed from /craft:done on 2026-07-17 — see ADR-006, which supersedes ADR-002 on naming only; ADR-002's shim-vs-skill rationale is unchanged).

When invoked

  1. Load the canonical procedure: read ${CLAUDE_PLUGIN_ROOT:-.}/skills/workflow/adhd-workflow/references/done.md and follow it exactly. That reference is the single source of truth for the full session-completion flow — CLAUDE.md sync (Step 1.10), Settings Sync (Step 1.10.5), Memory Capture (Step 1.11), Memory Optimize (Step 1.12), Insights Capture (Step 1.13), Worktree Status (Step 1.14), the interactive summary (Step 2), and auto-git (Step 3.5).

  2. Do not reimplement here. Any change to /finish behavior must be made in the reference file, never duplicated into this shim. Keeping the body in one place is the entire point of ADR-002.

Why this is a shim

/finish (renamed from /done) routes to the adhd-workflow skill's Session Completion operation. Both entry paths — the explicit /craft:finish slash command and the skill's natural-language match ("wrap up", "I'm done") — route to the same reference file.

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 · 35 lines · 8 tokens per session scan A bea2e07d4ea5

Subscribe to this mod's changes

finish is a command published in the GitHub repository Data-Wise/craft (4 stars, last pushed 16d ago), licensed MIT. It adds 8 tokens to every session and 454 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.