init

init is a command for Claude Code from longthread/claude-plugins. It costs 20 tokens per session (1,900 once invoked), scanned A, original, MIT.

A command that bootstraps a named programme by creating a ledger, handoff prompt, deferred file, and CLAUDE.md pointer for work that continues across sessions.

In plain words
What is it for?
Use it to start a multi-session programme after checking the repository, branch, remote, date, and existing continuity files.
Why use it?
It records project state and handoff information so later sessions can resume ongoing work with the right context.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the programme plugin — 5 commands shipped together

Good fit Use it to start a multi-session programme after checking the repository, branch, remote, date, and existing continuity files.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add longthread/claude-plugins
Claude Code
/plugin install programme

Made for: Claude Code.

Or install programme, the plugin that ships this one along with the rest of its 5 commands.

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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/longthread/claude-plugins/init/github.svg)](https://agentmods.dev/commands/longthread/claude-plugins/init)
Your own site
<a href="https://agentmods.dev/commands/longthread/claude-plugins/init"><img src="https://agentmods.dev/badge/commands/longthread/claude-plugins/init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for init

Your own site · 80×15
<a href="https://agentmods.dev/commands/longthread/claude-plugins/init"><img src="https://agentmods.dev/badge/commands/longthread/claude-plugins/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 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,900 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00020 $0.01900
Opus 5.5 $0.00008 $0.00760
Sonnet 5.5 $0.00004 $0.00380
Haiku 4.5 $0.00002 $0.00190

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

Security

Grade A, and why

init 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/programme/commands/init.md · 125 lines

How it starts

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

Bootstrap a programme called $1 so that multi-session work on it survives session boundaries.

If $1 is empty, ask for a name before doing anything else. Derive <SLUG> from it: lowercase, non-alphanumerics to hyphens.

1. Establish the ground truth

Run these and use the results; do not accept any figure from the conversation:

git rev-parse --show-toplevel
git rev-parse --abbrev-ref HEAD
git remote -v
date +%Y-%m-%d

Read .claude/session-continuity.json if it exists for docsRoot (default docs) and compareBranch (default origin/main, or origin/master if that is what the remote has).

2. Refuse when it does not fit

A ledger suits work with a running thread across sessions. For a repo that is a series of unrelated tickets it goes stale and then actively misleads — worse than nothing.

If <docsRoot>/programmes/<SLUG>/ already exists, stop and say so. Do not overwrite a ledger; offer /programme:resume <SLUG> instead.

Before creating anything else, if nothing in the conversation or the repo already shows a running multi-session thread, ask the user directly: is $1 ongoing work a later session would need to resume, or a series of unrelated tickets? The test is whether a session would ever have to ask "where were we?" — if not, a ledger only rots. Do not proceed on silence; the user can override and say to bootstrap anyway.

3. Create the files

Copy from ${CLAUDE_PLUGIN_ROOT}/templates/, substituting <PROGRAMME_NAME>, <SLUG>, <DATE>, <BRANCH>, <COMPARE_BRANCH>, <DOCS_ROOT>. Substitute only those six literal token strings — every other angle-bracketed span in a template is content, not a placeholder for you to fill: ledger.md's archive/<YYYY-MM-DD>-<phase>.md and NEXT-SESSION.md's <the spec or plan this phase executes> are filled in later, by whoever writes those entries. ## The arc's three spans and NEXT-SESSION.md's <a command a later session can actually run> / <what it prints once this phase is done> are filled by step 5's interview, not by this copy. A blanket replace of every <…> corrupts all eight. Copy each template's header verbatim — those headers are the mechanism, and every rule in them is stated in exactly one place.

Read the full file on GitHub · 125 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. 5d ago Changed da5738756bfb
  2. 8d ago Changed 12c7f413fe5b
  3. 1mo ago Changed · +8 lines e69815d58112
  4. 3mo ago First seen · 117 lines · 20 tokens per session scan A bd28a0c9ec6f

Subscribe to this mod's changes

init is a command published in the GitHub repository longthread/claude-plugins (1 stars, last pushed 6d ago), licensed MIT. It adds 20 tokens to every session and 1,900 once invoked, about $0.0001 per session on Opus 5.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.

Related

init compared with commands from other repositories

init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
initlongthread/claude-pluginsCommand16d agoMITA20Claude Code
agent-modekardebadas/claude-pluginCommand316d agoApache-2.0A53Claude Code
bugKripu77/software-factoryCommand62mo agoMITA27Claude Code
featureKripu77/software-factoryCommand62mo agoMITA19Claude Code
telemetryKripu77/software-factoryCommand62mo agoMITA22Claude Code
ciKripu77/software-factoryCommand62mo agoMITA19Claude Code
docsKripu77/software-factoryCommand62mo agoMITA16Claude Code