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.
/plugin marketplace add Redtropig/harness-anchor/plugin install harness-anchorWrote 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/redtropig/harness-anchor/anchor)<a href="https://agentmods.dev/commands/redtropig/harness-anchor/anchor"><img src="https://agentmods.dev/badge/commands/redtropig/harness-anchor/anchor/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.
<a href="https://agentmods.dev/commands/redtropig/harness-anchor/anchor"><img src="https://agentmods.dev/badge/commands/redtropig/harness-anchor/anchor.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00037 | $0.00866 |
| Opus 5 | $0.00018 | $0.00433 |
| Sonnet 5 | $0.00007 | $0.00173 |
| Haiku 4.5 | $0.00004 | $0.00087 |
Grade A, and why
anchor 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 9d 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 — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/anchor
Initialize harness-anchor state files in the current project. The mechanical
work (existence checks, placeholder substitution, writes, chmod) is done by
scripts/scaffold.sh — the single source of truth. Your job is the
decisions the script refuses to make.
Steps
-
If the directory is not a git repository, ask first: continue anyway (TOC freshness will report
not-git) or rungit init(recommended)? The script itself only reports the fact; this decision is yours to ask. -
Run the scaffold:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.sh --target "$(pwd)"The report lists
written:/kept (skip-by-default):/conflicts (need decision):and prints the next-steps block. -
Resolve conflicts — never silently overwrite. For each file under
conflicts (need decision):, AskUserQuestion with options[Overwrite / Skip / Show diff].- Show diff → run
diff "$(pwd)/<file>" <(bash ${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.sh --target "$(pwd)" --render <file>)and show it, then re-ask. - Collect the approved files and apply them in ONE call:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.sh --target "$(pwd)" --overwrite <f1,f2> kept (skip-by-default)files (feature_list.json, golden-rules.md) hold accumulated value — only overwrite if the user explicitly asks; mention they were kept.
- Show diff → run
-
Print the script's next-steps block verbatim (it is the report tail).
-
Do NOT auto-commit. Let the user review the diff first.
-
Hand off to
/cpp-initif this is a C/C++ project missing its config.bash ${CLAUDE_PLUGIN_ROOT}/scripts/cpp-detect.sh --target "$(pwd)"If
is_cpp_projectistrueand eitherhas_clang_formatorhas_clang_tidyisfalse, make the last line of your reply a concrete recommendation:Next: run
/cpp-init— this is a<build_system>project with no.clang-format/.clang-tidyyet, and/cpp-initdrops those plus a per-build-systeminit.sh,scripts/lint.sh, and the sanitizer build.
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.
- 9d ago First seen · 79 lines · 37 tokens per session scan A 706e3e4c9c25
anchor is a command published in the GitHub repository Redtropig/harness-anchor (13 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 866 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
explore
Multi-angle codebase exploration spawning 3-5 parallel agents for code structure, data flow, architecture patterns, and health assessment. Generates ASCII visualizations, import graphs, and design pattern detection with cross-session memory storage. Use when exploring a repo, discovering architecture, onboarding to a…
commit
Run when user calls /commit or asks to generate a commit message. Analyzes staged changes and writes a structured commit message.
design-context-extract
Extract design DNA from app screenshots, live URLs, or screen recordings using Google Stitch — color palettes, typography, spacing tokens, component patterns, and motion specs as design-tokens.json or Tailwind config. Use when the user points to a screenshot, URL, or video and asks to extract or audit the design…
design-import
Scaffolds React components from a Claude Design handoff bundle and stops at files on disk: no stories, no tests, no pull request. Use when handed a claude.ai/design URL or a local bundle file; when that same scaffold should carry on through test generation, browser verification and an opened PR, run /ork:design-ship…
dev
One-command dev loop boot. Spins up portless (named HTTPS subdomain), emulate (stateful API mocks), the project's dev server, and an agent-browser session, all keyed to the current git branch. Use when starting a feature branch, switching worktrees, or returning to a project after a break. Skips silently with install…
test-tdd
Run when user calls /test-tdd. Scans modified files, locates their corresponding unit/integration test suites, and runs them.