adopt

A repository setup command that adds the files and markers needed to use the dwarves-kit operating process. It also connects the repository to the process that classifies work and checks it before shipping.

In plain words
What is it for?
Use it to adopt a repository into dwarves-kit, check whether adoption is already complete, and optionally enable selected modules.
Why use it?
It removes the need to configure these operating rules by hand and helps ensure agents follow the same workflow in the repository.

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/dwarvesf/dwarves-kit/adopt
Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 683 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.00060 $0.00683
Opus 5 $0.00030 $0.00342
Sonnet 5 $0.00012 $0.00137
Haiku 4.5 $0.00006 $0.00068

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

Security

Grade A, and why

adopt 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 2d 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.

commands/adopt.md · 48 lines

How it starts

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

You are adopting a repo into the dwarves-kit operating layer. This installs the operate-contract so that, from now on, an agent working in that repo classifies the work and picks a lane before coding, and the ship-gate engages on push.

Run

$ARGUMENTS may name a target dir (default: the repo root), --check (status only), or --with <a,b,c> (seed these modules true in a FRESH .kit.toml; ignored once one exists).

  1. Resolve the target: default . (git rev-parse --show-toplevel).

  2. Run the driver (idempotent, non-destructive):

    bash "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/dwarves-kit}/lib/adopt.sh" [--check] [--with <a,b,c>] <target>
    
  3. Report what it created (or that the repo was already adopted). Tell the user the one next step: open a session in the adopted repo and run /kit:start to classify the first task.

What adoption installs

  • AGENTS.md -- the operate-contract (read-first).
  • a CLAUDE.md loader pointer (Claude Code auto-loads CLAUDE.md, not AGENTS.md).
  • WORKFLOW.md -- a pointer to the installed kit's lane x phase matrix (not a 49KB copy).
  • docs/verification/README.md -- the proof marker that makes the ship-gate engage.
  • .kit.toml -- an OPT-IN starter override of the kit-root defaults (SPEC-192). Created only on a fresh adopt (never overwritten afterward); --with seeds the named modules true instead of inheriting the kit-root default. Edit [modules] any time and re-run /kit:adopt (or --refresh) to re-wire.
  • .claude/settings.json hook entries for this project's currently-enabled hook-bearing modules (board, session, advisor, cosmetic) -- a targeted jq MERGE, re-wired on every adopt run from the project's CURRENT .kit.toml, never a wholesale file rewrite. Command/skill modules (queue, stats, quiz_gate, weekend_batch, bridge) need no settings.json entry.

The classifiers (lane-classify, task-type-classify, proof-gate) run from the installed kit; adoption wires the contract to reference them. It never copies the engine.

Read the full file on GitHub · 48 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. 2d ago First seen · 48 lines · 60 tokens per session scan A 829e1ae89157

Subscribe to this mod's changes

adopt is a command published in the GitHub repository dwarvesf/dwarves-kit (11 stars, last pushed 2d ago), licensed MIT. It adds 60 tokens to every session and 683 once invoked, about $0.0003 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-30.