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.
npx agentmods add commands/koolamusic/claudefiles/adoptgit clone --depth 1 https://github.com/koolamusic/claudefilesWrote 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.
[](https://agentmods.dev/commands/koolamusic/claudefiles/adopt)<a href="https://agentmods.dev/commands/koolamusic/claudefiles/adopt"><img src="https://agentmods.dev/badge/commands/koolamusic/claudefiles/adopt.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00038 | $0.02733 |
| Opus 5 | $0.00019 | $0.01367 |
| Sonnet 5 | $0.00008 | $0.00547 |
| Haiku 4.5 | $0.00004 | $0.00273 |
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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Overview
Bring cross-machine Claude memory into the local memory dir. The archive at <workspace>/memory/archive/<host>/<iso>/ is read-only reference; this command presents candidates, the user picks, the command copies (backing up overwrites). Never writes without per-fragment confirmation.
Arguments
--host <name>— restrict enumeration to a single host (default: all hosts).--since <YYYY-MM-DD>— restrict to snapshots from this date forward (UTC).--all— skip thelatest-per-hostreduction and consider every snapshot. Rarely needed.
Steps
- Resolve workspace and config.
- Read
.workspacercfrompwd(the project root). If the file is missing, stop with[studio] not a studio-managed project (no .workspacerc); run /studio:setup firstand exit 1. - Parse the JSON
workspacefield; expand a leading~via${HOME}. Call thisWORKSPACE. - If
[[ ! -d "$WORKSPACE" ]], stop with[studio] workspace dir not found: $WORKSPACEand exit 1. - Read
${WORKSPACE}/studio.yaml. Extract (usingyq):archive_dir=$(yq eval '.memory.archive_dir // "memory/archive"' "${WORKSPACE}/studio.yaml") RAW_SOURCE=$(yq eval '.memory.source' "${WORKSPACE}/studio.yaml") default_filter=$(yq eval '.adoption.default_filter // "latest-per-host"' "${WORKSPACE}/studio.yaml") preview_chars=$(yq eval '.adoption.preview_chars // 200' "${WORKSPACE}/studio.yaml") backup_on_overwrite=$(yq eval '.adoption.backup_on_overwrite // true' "${WORKSPACE}/studio.yaml") backup_suffix=$(yq eval '.adoption.backup_suffix // ".local-backup-{iso}"' "${WORKSPACE}/studio.yaml") - If
preview_charsis0or negative, treat it as200silently. - Derive
PROJECT_HASHfrompwd.${PROJECT_HASH}is expanded by this command, not by Claude Code's plugin loader. The two-stage sed pipeline is the canonical derivation:PROJECT_HASH=$(pwd | sed 's|/|-|g' | sed 's|\.|-|g') - Expand
memory.sourcewithPROJECT_HASHand~to produceLOCAL_MEMORY:LOCAL_MEMORY="${RAW_SOURCE//\$\{PROJECT_HASH\}/$PROJECT_HASH}" LOCAL_MEMORY="${LOCAL_MEMORY/#\~/$HOME}"
- Read
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.
- 4d ago First seen · 141 lines · 38 tokens per session scan A fbaebcf3d7d6
adopt is a command published in the GitHub repository koolamusic/claudefiles (132 stars, last pushed 4d ago), licensed MIT. It adds 38 tokens to every session and 2,733 once invoked, about $0.0002 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.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.