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/msshives-gif/claude-plugins/detachgit clone --depth 1 https://github.com/msshives-gif/claude-pluginsWrote 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/msshives-gif/claude-plugins/detach)<a href="https://agentmods.dev/commands/msshives-gif/claude-plugins/detach"><img src="https://agentmods.dev/badge/commands/msshives-gif/claude-plugins/detach.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.00008 | $0.00519 |
| Opus 5 | $0.00004 | $0.00260 |
| Sonnet 5 | $0.00002 | $0.00104 |
| Haiku 4.5 | $0.00001 | $0.00052 |
Grade B, and why
detach 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 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
itself: `find ~/.claude/plugins -maxdepth 8 -type f -name What it actually says
Stop the managed-mode watcher attached to the current Claude Code session.
- Locate the compact-manager CLI. The path in the later steps
normally reads as an absolute path (script installs write it in).
If it instead still says
${CLAUDE_PLUGIN_ROOT}literally — plugin installs may not substitute command markdown — find the CLI file itself:find ~/.claude/plugins -maxdepth 8 -type f -name compact-manager -path "*/bin/*" 2>/dev/null(this handles versioned cache layouts, where a directory merely NAMED compact-manager has no bin/). If several paths match, use the most recently modified (ls -t). - Identify this session's id. If your environment exposes one
directly (e.g. a
CLAUDE_SESSION_IDenv var, or a session id in a path you already know, like your transcript or scratchpad path), prefer that — it is authoritative. Otherwise use the overview heuristic in step 3. - Heuristic fallback. State files are written by a PostToolUse hook
AFTER each tool result, so on your first tool call of a session
your own row does not exist yet. Therefore: (a) first run any
trivial command (e.g.
echo priming) — completing it writes your state file; (b) then run"${CLAUDE_PLUGIN_ROOT}/bin/compact-manager" overviewand read theupdatedages. Expect YOUR row marked>, seconds old. (The overview prints session ids shortened to 8 characters;stopaccepts an unambiguous prefix, so the short id is usable as-is.) Do NOT proceed on the heuristic alone — show the row and ask the user to confirm — if ANY of: the top row is not seconds-old, its age saysFUTURE-MTIME, two rows are under ~2 minutes old (a parallel active session), or only a single session row exists and you could not confirm the id from your environment in step 2. - Run
"${CLAUDE_PLUGIN_ROOT}/bin/compact-manager" stop <session-id>and report the result. If no watcher held this session, say so — that is a normal outcome, not an error.
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 · 39 lines · 8 tokens per session scan B 9a57d18ac28d
detach is a command published in the GitHub repository msshives-gif/claude-plugins (2 stars, last pushed 7d ago), licensed MIT. It adds 8 tokens to every session and 519 once invoked, about $0.0000 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.
Other commands, from other repositories
patterns
List makoto's integrity pattern catalog (read-only).
document
Record a decision as an ADR or RFC, or document existing code as a spec, doc, guide, or rule; routes to the right document type.
init
First-time Archcore setup — detect the repo, compose the full first-day seed in one preview, create it on one confirm, and wire host configs.
presence-reset
Wipe presence state for the current project, all projects, or specific subsystems. Asks for confirmation before destructive action.
presence-doctor
Show presence diagnostic report. Active preset, warnings, error counts, state sizes, integrity status. Run this when something seems off.
presence-status
Quick presence status. Active preset, current repo id, model size, recent reverts. Pass --zerotrust for the full Zero-Trust controls checklist.