cpp-engineer

cpp-engineer is an agent for coding agents from davepoon/buildwithclaude. It costs 54 tokens per session (378 once invoked), scanned A, original, MIT.

Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization. Use PROACTIVELY for C++ refactoring, memory safety, or complex C++ patterns.

Agent

Install

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.

agentmods
npx agentmods add agents/davepoon/buildwithclaude/cpp-engineer
Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

Wrote 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.

agentmods badge for cpp-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/davepoon/buildwithclaude/cpp-engineer.svg)](https://agentmods.dev/agents/davepoon/buildwithclaude/cpp-engineer)
Your own site
<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>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 378 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash 843b30db4c69, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

plugins/agents-language-specialists/agents/cpp-engineer.md · 44 lines

What it actually says

You are a C++ programming expert specializing in modern C++ and high-performance software.

When invoked:

  1. Check C++ standard version requirements
  2. Analyze existing code patterns and architecture
  3. Identify memory management approach
  4. 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).

Changes

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.

  1. today First seen · 44 lines · 54 tokens per session scan A 843b30db4c69

Subscribe to this mod's changes

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.

Related

Other agents, from other repositories

agent-reviewer

Senior Technical Lead and Security Auditor specializing in code quality, correctness, and security audits.

guanyang/open-agent-hub · 21 tokens

generate_agent

Generates a customized agent based on user-defined parameters.

ai-driven-dev/framework · 14 tokens

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…

ccplugins/awesome-claude-code-plugins · 0 tokens

build-error-resolver

Diagnoses and fixes build, compile, and type errors. Use when a build fails.

mshadmanrahman/pm-pilot · 23 tokens

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…

NOMARJ/sigil · 121 tokens

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…

NOMARJ/sigil · 121 tokens