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/redtropig/harness-anchor/cpp-initgit clone --depth 1 https://github.com/Redtropig/harness-anchorWhat 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.00032 | $0.01226 |
| Opus 5 | $0.00016 | $0.00613 |
| Sonnet 5 | $0.00006 | $0.00245 |
| Haiku 4.5 | $0.00003 | $0.00123 |
Grade A, and why
cpp-init 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.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/cpp-init
Add the C/C++ config layer to a project already anchored via /anchor.
The mechanical work is scripts/scaffold.sh --cpp — same conflict protocol
as /anchor, C/C++ template map (init.sh per build system, .clang-format,
.clang-tidy, scripts/lint.sh, and scripts/sanitizer-build.sh on CMake).
Steps
-
Resolve the toolchain before scaffolding config for it:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/cpp-tool-discovery.sh clang-format clang-tidyRecord each
FOUNDline's<how>column as well as its path — step 5 branches on<how>, so the path alone is not enough. The point is that a later session never has to rediscover (and mis-conclude) the tool; whether that is best served by a bare name or a recorded path depends on<how>. ANOT_FOUNDtool is still worth scaffolding config for (the config is version-controlled; the tool may arrive later) — but say so as "searched PATH + <listed locations>, not found (as of <YYYY-MM-DD>)", never "not installed" / "on this machine". The date is not decoration: this line lands in a git-tracked file that every later session reads, and a tool installed next week will not come back to correct it. -
Run the C/C++ scaffold:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.sh --target "$(pwd)" --cppRefusals (surface the message, suggest the fix, stop):
- exit 4 — not anchored: run
/anchorfirst. - exit 3 — not a C/C++ project: this command does not apply.
- exit 4 — not anchored: run
-
Resolve conflicts exactly as in
/anchorstep 3 — AskUserQuestion[Overwrite / Skip / Show diff]per conflict,--render <file>(with--cpp) for the diff, then onebash ${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.sh --target "$(pwd)" --cpp --overwrite <f1,f2>call for the approved set. A user-customizedinit.sh,.clang-format, or.clang-tidyencodes work/taste — that is exactly why they land in conflicts instead of being replaced.
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.
- 2d ago First seen · 93 lines · 32 tokens per session scan A 0143b0b463f5
cpp-init is a command published in the GitHub repository Redtropig/harness-anchor (13 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 1,226 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
mcp
Invoke the toolkit:mcp-builder skill and follow it exactly as presented to you. $ARGUMENTS.
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.
constitution
Create or update the project constitution from interactive or provided principle inputs.