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.
git clone --depth 1 https://github.com/parasxos/cpp26-adapterWrote 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/commands/parasxos/cpp26-adapter/cpp26-init)<a href="https://agentmods.dev/commands/parasxos/cpp26-adapter/cpp26-init"><img src="https://agentmods.dev/badge/commands/parasxos/cpp26-adapter/cpp26-init/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.
<a href="https://agentmods.dev/commands/parasxos/cpp26-adapter/cpp26-init"><img src="https://agentmods.dev/badge/commands/parasxos/cpp26-adapter/cpp26-init.svg" alt="Reviewed on agentmods" width="80" 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.00085 | $0.01272 |
| Opus 5.5 | $0.00034 | $0.00509 |
| Sonnet 5.5 | $0.00017 | $0.00254 |
| Haiku 4.5 | $0.00009 | $0.00127 |
Grade A, and why
cpp26-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 2mo 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 — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/cpp26-init — scaffold a C++26 project
Run this once per project to wire up the toolchain expectations the cpp26-adapter plugin assumes. The command is idempotent: re-running on a configured project diffs against the desired state and only writes files that are missing or out-of-date. Existing user content is never clobbered without a backup.
What this does
-
Detect the project root. Walk up from the current directory looking for
.git,CMakeLists.txt, orpackage.json. If none exists, use the current directory. -
CMakeLists.txt — if missing, scaffold a minimal C++26 project:
cmake_minimum_required(VERSION 3.28) project(my_project LANGUAGES CXX) set(CMAKE_CXX_STANDARD 26) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Pin -std=c++2c so build is portable even when compilers don't # recognize CXX_STANDARD 26 yet. add_compile_options(-std=c++2c) add_executable(my_project main.cpp)If
CMakeLists.txtalready exists:- Check for
set(CMAKE_CXX_STANDARD 26)(or equivalent). If missing or set lower, emit a suggested patch but do not apply it without consent. - Check for
CMAKE_EXPORT_COMPILE_COMMANDS. If missing, suggest adding it (clangd-driven editing depends on this).
- Check for
-
.clangd — if missing, scaffold:
CompileFlags: Add: - "-std=c++2c" - "-Wno-unknown-pragmas" # quiet pragmas the user has opted into # If the user has clang-p2996 installed elsewhere: # CompilerPath: /opt/clang-p2996/bin/clang++ Diagnostics: UnusedIncludes: Strict MissingIncludes: Strict ClangTidy: Add: [modernize-*, performance-*] Remove: [modernize-use-trailing-return-type] -
.cpp26-adapter.yaml — write a default that opts the project into the plugin's defaults:
# cpp26-adapter project overrides. # Set skip-skill: true to disable the cpp26-idioms skill for # legacy modules that should remain pre-C++26 idiomatic. # Add anti-pattern ids to allow-list to silence specific # PostToolUse findings. skip-skill: false allow-list: [] # Optional: override the compiler the reviewer uses on this project. # compiler: clang-p2996
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.
- 2mo ago First seen · 146 lines · 85 tokens per session scan A 558e9b5e1561
cpp26-init is a command published in the GitHub repository parasxos/cpp26-adapter (4 stars, last pushed 5mo ago), licensed MIT. It adds 85 tokens to every session and 1,272 once invoked, about $0.0003 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-08-31.
Other commands, from other repositories
setup
Interactive setup for C/C++ LSP development environment.
init
Install the formatters this repository needs, with every command visible before it runs.
simplify
The over-engineering review: five tags (delete, stdlib, native, yagni, shrink), a mandatory replacement per finding, and a real null result when there is nothing to cut.
lift-class
Batch-lift all methods of a C++ class with shared type context, producing a single cohesive .cpp output file with struct definitions, constants, and all methods in dependency order. Uses assembly as ground truth to ensure 100% functional equivalence.
setup
Interactive setup for Lua LSP development environment.
lint:explain
(Ruff) Explain a ruff error and show the PROPER solution (without noqa!).