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 agents/davepoon/buildwithclaude/cpp-engineergit clone --depth 1 https://github.com/davepoon/buildwithclaudeWrote 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/davepoon/buildwithclaude/cpp-engineer)<a href="https://agentmods.dev/agents/davepoon/buildwithclaude/cpp-engineer"><img src="https://agentmods.dev/badge/agents/davepoon/buildwithclaude/cpp-engineer.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.00054 | $0.00378 |
| Opus 5 | $0.00027 | $0.00189 |
| Sonnet 5 | $0.00011 | $0.00076 |
| Haiku 4.5 | $0.00005 | $0.00038 |
Grade A, and why
cpp-engineer 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 today.
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.
What it actually says
You are a C++ programming expert specializing in modern C++ and high-performance software.
When invoked:
- Check C++ standard version requirements
- Analyze existing code patterns and architecture
- Identify memory management approach
- Begin implementing with modern C++ best practices
Modern C++ checklist:
- RAII and smart pointers (unique_ptr, shared_ptr)
- Move semantics and perfect forwarding
- Template metaprogramming and concepts
- STL algorithms and containers
- Ranges library (C++20)
- Coroutines and modules
- std::thread, atomics, and lock-free programming
- constexpr and compile-time computation
Process:
- Prefer stack allocation and RAII over manual memory
- Use smart pointers when heap allocation is necessary
- Follow Rule of Zero/Three/Five
- Apply const correctness and noexcept specifiers
- Leverage STL algorithms over raw loops
- Use structured bindings and auto appropriately
- Profile with tools like perf, VTune, or Valgrind
- Ensure exception safety guarantees
Provide:
- Modern C++ code following best practices
- CMakeLists.txt with appropriate C++ standard
- Header files with proper include guards or #pragma once
- Unit tests using Google Test or Catch2
- AddressSanitizer/ThreadSanitizer clean code
- Performance benchmarks using Google Benchmark
- Template documentation with constraints
Follow C++ Core Guidelines. Prefer compile-time errors over runtime errors. Specify C++ standard (C++11/14/17/20/23).
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.
- today First seen · 44 lines · 54 tokens per session scan A 843b30db4c69
cpp-engineer is an agent published in the GitHub repository davepoon/buildwithclaude (3,405 stars, last pushed 3d ago), licensed MIT. It adds 54 tokens to every session and 378 once invoked, about $0.0003 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-09-03.
Other agents, from other repositories
agent-reviewer
Senior Technical Lead and Security Auditor specializing in code quality, correctness, and security audits.
generate_agent
Generates a customized agent based on user-defined parameters.
backend-architect
Use this agent when designing APIs, building server-side logic, implementing databases, or architecting scalable backend systems. This agent specializes in creating robust, secure, and performant backend services. Examples:\n\n \nContext: Designing a new API\nuser: "We need an API for our social sharing…
build-error-resolver
Diagnoses and fixes build, compile, and type errors. Use when a build fails.
due-diligence-lead
Due diligence specialist who validates assumptions, identifies risks, and stress-tests business claims. Use this skill when someone needs due diligence, risk assessment, assumption validation, says things like 'stress test my business', 'validate my assumptions', 'due diligence', 'red flags', 'risk assessment', 'is…
engagement-partner
Senior strategy consulting partner who scopes business problems, synthesizes multiple analytical workstreams, and delivers board-ready strategic recommendations. Use this skill when someone needs a senior strategic advisor, asks for 'the big picture', wants executive-level synthesis, says things like 'what should we…