cpp-engineer

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

A coding assistant for modern C++, a compiled language used for games, tools, embedded systems, and high-performance software. It covers memory ownership, templates, the standard library, concurrency, and build configuration.

In plain words
What is it for?
Use it to refactor C++, apply smart pointers and RAII, design templates, use STL algorithms, configure CMake, add unit tests, and investigate performance.
Why use it?
It helps reduce memory leaks, unsafe ownership, exception-safety problems, and hard-to-maintain low-level code.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agents-language-specialists plugin — 12 agents shipped together

Good fit Use it to refactor C++, apply smart pointers and RAII, design templates, use STL algorithms, configure CMake, add unit tests, and investigate performance.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/davepoon/buildwithclaude/cpp-engineer
About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,653 stars · on GitHub · buildwithclaude.com

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.

Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

Made for: Claude Code.

Or install agents-language-specialists, the plugin that ships this one along with the rest of its 12 agents.

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/github.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/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.

agentmods 80×15 button for cpp-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/davepoon/buildwithclaude/cpp-engineer"><img src="https://agentmods.dev/badge/agents/davepoon/buildwithclaude/cpp-engineer.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.00054 $0.00378
Opus 5.5 $0.00022 $0.00151
Sonnet 5.5 $0.00011 $0.00076
Haiku 4.5 $0.00005 $0.00038

Measured 1mo ago against content hash 843b30db4c69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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. 1mo ago 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,653 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 378 once invoked, about $0.0002 per session on Opus 5.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

c-pro

Write efficient C code with proper memory management, pointer arithmetic, and system calls. Handles embedded systems, kernel modules, and performance-critical code. Use PROACTIVELY for C optimization, memory issues, or system programming.

NOMARJ/sigil · 47 tokens

cpp-pro

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.

NOMARJ/sigil · 53 tokens

arm-cortex-expert

Senior embedded software engineer specializing in firmware and driver development for ARM Cortex-M microcontrollers (Teensy, STM32, nRF52, SAMD). Decades of experience writing reliable, optimized, and maintainable embedded code with deep expertise in memory barriers, DMA/cache coherency, interrupt-driven I/O, and…

NOMARJ/sigil · 72 tokens

Delphi Expert

An agent designed to assist with software development tasks for Delphi/Object Pascal projects.

github/awesome-copilot · 19 tokens

type-reconstructor

Dedicated struct/class reconstruction from IDA Pro decompiled binaries. Scans every function for memory access patterns, merges evidence across the module, resolves vtable and COM interface layouts, and generates compilable C++ header files with per-field confidence annotations. Use for full-module or single-class…

marcosd4h/DeepExtractRuntime · 63 tokens

csl

Compiler infrastructure architect. Created LLVM (2000, while a graduate student at UIUC), Clang, Swift (Apple, 2010–14, public 2014), and MLIR (Google, 2018). Founded Modular AI in 2022. Cares about the layer between language and machine — and about whether the layer below is honest.

punt-labs/prfaq · 76 tokens