setup-continuity

setup-continuity is a command for coding agents from ArieGoldkin/claude-forge. It costs 19 tokens per session (1,754 once invoked), scanned B, original, MIT.

A one-time setup command for a project's continuity system, which records session state and handoffs so work can be resumed later. It checks folders, settings, scripts, and tracking files, and can create an initial checkpoint.

In plain words
What is it for?
Use it when enabling continuity for the first time, checking a cloned project, repairing broken automation, or verifying the setup after an update.
Why use it?
It removes the manual work of preparing the files and hooks needed to preserve project context. It also helps find missing or incorrectly configured parts after cloning or updating a project.

Command

Part of the ctk plugin — 12 commands, 1 agent 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/ariegoldkin/claude-forge/setup-continuity
Clone the repo
git clone --depth 1 https://github.com/ArieGoldkin/claude-forge

Or install ctk, the plugin that ships this one along with the rest of its 12 commands, 1 agent.

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 setup-continuity

README.md
[![agentmods](https://agentmods.dev/badge/commands/ariegoldkin/claude-forge/setup-continuity.svg)](https://agentmods.dev/commands/ariegoldkin/claude-forge/setup-continuity)
Your own site
<a href="https://agentmods.dev/commands/ariegoldkin/claude-forge/setup-continuity"><img src="https://agentmods.dev/badge/commands/ariegoldkin/claude-forge/setup-continuity.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 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,754 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00019 $0.01754
Opus 5 $0.00010 $0.00877
Sonnet 5 $0.00004 $0.00351
Haiku 4.5 $0.00002 $0.00175

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

Security

Grade B, and why

setup-continuity scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

if ! grep -q "\.claude/continuity/" .gitignore 2>/dev/null; then
plugins/continuity-toolkit/commands/setup-continuity.md · 263 lines

How it starts

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

/setup-continuity - Initialize Continuity System

One-time setup wizard to ensure all continuity system components are properly configured.

When to Use

  • First time setting up continuity system in a project
  • After cloning a repo with existing continuity files
  • When hooks or automation aren't working
  • To verify system health after updates

What This Command Does

  1. Verify directories - Create missing continuity directories
  2. Update .gitignore - Ensure session state files are not committed
  3. Check settings.local.json - Ensure hooks are configured
  4. Initialize ledger - Create from template if missing
  5. Verify hook scripts - Check they're executable
  6. Initialize shared-context.json - Set up tracking fields
  7. Create initial handoff - Optional first checkpoint

Execution Steps

Step 1: Check Directory Structure

Verify and create required directories:

Required directories:
- .claude/
- .claude/commands/
- .claude/context/
- .claude/continuity/
- .claude/continuity/handoffs/
- .claude/continuity/ledgers/
- .claude/continuity/archive/
- .claude/continuity/learnings/

For any missing directories, create them:

mkdir -p .claude/continuity/{handoffs,ledgers,archive,learnings}
mkdir -p .claude/context

Step 2: Update .gitignore

Continuity files are user-specific session state and should NOT be committed to git. They contain:

  • Personal working notes and timestamps
  • Session-specific context that varies per developer
  • Transient data that would cause merge conflicts

Check if .gitignore exists and contains the required entries:

# Claude session state (user-specific, not shared)
.claude/context/
.claude/continuity/

Implementation:

  1. Check if .gitignore exists in project root
  2. If it exists, check if it already contains .claude/continuity/
  3. If entries are missing, append them:
# Check and append if needed
if ! grep -q "\.claude/continuity/" .gitignore 2>/dev/null; then
  echo "" >> .gitignore
  echo "# Claude session state (user-specific, not shared)" >> .gitignore
  echo ".claude/context/" >> .gitignore
  echo ".claude/continuity/" >> .gitignore
fi

Read the full file on GitHub · 263 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 First seen · 263 lines · 19 tokens per session scan B 7cbf6aa7cc3b

Subscribe to this mod's changes

setup-continuity is a command published in the GitHub repository ArieGoldkin/claude-forge (6 stars, last pushed 27d ago), licensed MIT. It adds 19 tokens to every session and 1,754 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.