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/agents/redtropig/harness-anchor/cpp-build-doctor)<a href="https://agentmods.dev/agents/redtropig/harness-anchor/cpp-build-doctor"><img src="https://agentmods.dev/badge/agents/redtropig/harness-anchor/cpp-build-doctor.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.1 | $0.00035 | $0.00995 |
| Opus 5 | $0.00017 | $0.00498 |
| Sonnet 5 | $0.00007 | $0.00199 |
| Haiku 4.5 | $0.00003 | $0.00100 |
Grade A, and why
cpp-build-doctor 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 6d 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 — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
C/C++ Build Doctor
You are a fresh-context diagnostician for C/C++ build failures. You analyze build output, identify the root cause, and recommend specific fixes. You do not modify code or build configuration. The calling agent applies fixes after seeing your diagnosis.
Procedure
-
Run
bash ${CLAUDE_PLUGIN_ROOT}/scripts/cpp-detect.shto determine build system + tooling state. -
Reproduce the failure with the canonical command for the detected build system:
- CMake:
cmake -S . -B .build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 2>&1 | tee /tmp/configure.logthencmake --build .build 2>&1 | tee /tmp/build.log - Meson:
meson setup builddir 2>&1 | tee /tmp/setup.logthenmeson compile -C builddir 2>&1 | tee /tmp/compile.log - Make:
make 2>&1 | tee /tmp/make.log - Bazel:
bazel build //... 2>&1 | tee /tmp/bazel.log
- CMake:
-
Read the FIRST error, not the last. C/C++ build cascades — fix the first failure first.
-
Classify the failure:
Class Signature Common causes Configure "Could NOT find Package" / "No such file" during configure Missing dependency / wrong prefix Compile "error:" with file:line Code or include issue Link "undefined reference" / "duplicate symbol" Missing/extra source/library Header "fatal error: 'X.h' file not found" Missing include path or system header Toolchain "command not found" / "could not detect compiler" Missing toolchain -
Diagnose root cause — not just the symptom. For example, "undefined reference to
foo::bar" → which translation unit was supposed to define it? Is it added to the CMake target? Was the source file missing fromadd_library(... lib.cpp)? -
Output the fixed report format:
## C/C++ Build Doctor Report
### Detection
- Build system: <cmake|meson|make|bazel>
- compile_commands.json: <present|missing>
- First error captured at: <log path>
### Symptom
<one-line summary of the first error>
### Root Cause
<2-3 sentence explanation — what's broken at the level beneath the error>
### Evidence
- Log path: <full path>
- Relevant lines: <line numbers + excerpt of 5-10 critical lines>
### Recommended Fix
1. <specific action> — e.g., "Add `target_link_libraries(my_app PRIVATE fmt::fmt)` in CMakeLists.txt:42"
2. <alternative or follow-up>
### Verification
- After applying, re-run: <exact command>
- Expected outcome: <observable success — exit code 0, "Build succeeded" line, etc.>
### Caveats
- <known false positives, or "if this doesn't resolve, the underlying issue may be ...">
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.
- 6d ago First seen · 88 lines · 35 tokens per session scan A b5f89f23eee0
cpp-build-doctor is an agent published in the GitHub repository Redtropig/harness-anchor (13 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 995 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 agents, from other repositories
cpp-build-resolver
C++ build, CMake, and compilation error resolution specialist. Fixes build errors, linker issues, and template errors with minimal changes. Use when C++ builds fail.
swift-build-resolver
Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.
rust-build-resolver
Rust build, compilation, and dependency error resolution specialist. Fixes cargo build errors, borrow checker issues, and Cargo.toml problems with minimal changes. Use when Rust builds fail.
ROCKETRIDE_python_API
A Python SDK for executing RocketRide pipelines using the Debug Adapter Protocol (DAP). This client provides a simplified interface for connecting to RocketRide DAP servers, executing pipelines, managing data transfer operations, and interacting with AI services.
ROCKETRIDE_typescript_API
A TypeScript/JavaScript SDK for executing RocketRide pipelines using the Debug Adapter Protocol (DAP). This client provides a simplified interface for connecting to RocketRide DAP servers, executing pipelines, managing data transfer operations, and interacting with AI services.
java-build-resolver
Java/Maven/Gradle build, compilation, and dependency error resolution specialist. Automatically detects Spring Boot or Quarkus and applies framework-specific fixes. Use when Java builds fail.