mirror_bridge AGENTS.md

mirror_bridge AGENTS.md is an instructions file for Codex, OpenCode from FranciscoThiesen/mirror_bridge. It costs 2,538 tokens per session, scanned A, original, Apache-2.0.

Project-specific instructions for setting up and working on mirror_bridge, a C++ tool that generates Python, Lua, and JavaScript bindings from C++ code. It explains the required experimental C++26 compiler and container setup.

In plain words
What is it for?
Use it when preparing the mirror_bridge environment, choosing or overriding a compiler, pulling its Docker image, or handling common repository tasks.
Why use it?
It prevents setup failures caused by using a compiler without C++26 reflection support. It also documents compiler-specific limits and the recommended environment.

Instructions file for CodexOpenCode

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 instructions/franciscothiesen/mirror_bridge/agents-md
Clone the repo
git clone --depth 1 https://github.com/FranciscoThiesen/mirror_bridge

Made for: Codex, OpenCode.

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 mirror_bridge AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/franciscothiesen/mirror_bridge/agents-md.svg)](https://agentmods.dev/instructions/franciscothiesen/mirror_bridge/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/franciscothiesen/mirror_bridge/agents-md"><img src="https://agentmods.dev/badge/instructions/franciscothiesen/mirror_bridge/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,538 This file is loaded in full into every session.
When invoked 2,538 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02538 $0.02538
Opus 5 $0.01269 $0.01269
Sonnet 5 $0.00508 $0.00508
Haiku 4.5 $0.00254 $0.00254

Measured 5d ago against content hash 2b5b5cf10ec7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mirror_bridge AGENTS.md 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 5d 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.

AGENTS.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

mirror_bridge is a C++26 reflection-based binding generator: it inspects C++ structs/classes at compile time (via P2996 reflection) and emits zero-overhead Python, Lua, and JavaScript bindings — no hand-written binding code. The one critical constraint: it requires a C++26 reflection compiler — either stock GCC 16+ (g++ -std=c++26 -freflection) or Bloomberg's clang-p2996 (with libc++ and the <meta> header). A pre-reflection distro compiler will fail with "no member named 'meta'" or an unknown -freflection flag. Unless your host already has GCC 16+ or clang-p2996, compile inside the project's Docker container (or a GitHub Codespace). The CLI auto-detects whichever compiler is present; override with MB_CXX. Editing, searching, and reading code on the host is always fine.

Note: P3394 field annotations ([[=exclude{}]], [[=readonly{}]]) are currently clang-p2996 only. On GCC they are silently ignored (all members bound) until GCC implements P3394.

Environment setup

The reflection compiler lives in the Docker image. Prefer pulling the pre-built image over building from source (~45–90 min).

# Pull + tag the pre-built image (interactive helper, choose option 1)
./start_dev_container.sh

# Or pull directly
docker pull ghcr.io/franciscothiesen/mirror_bridge:latest
docker tag  ghcr.io/franciscothiesen/mirror_bridge:latest mirror_bridge:latest

start_dev_container.sh creates a persistent container named mirror_bridge_dev with the repo mounted at /workspace (host edits are immediately visible inside, and vice versa).

To run a command inside the container non-interactively (scriptable for an agent):

# One-off, throwaway container with the repo mounted:
docker run --rm -v "$(pwd):/workspace" -w /workspace mirror_bridge:latest \
    bash -lc './tests/run_all_tests.sh'

# Or exec into the long-lived dev container if it's already running:
docker exec -w /workspace mirror_bridge_dev bash -lc 'tools/mirror_bridge version'

Read the full file on GitHub · 200 lines

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. 5d ago First seen · 200 lines · 2,538 tokens per session scan A 2b5b5cf10ec7

Subscribe to this mod's changes

mirror_bridge AGENTS.md is an instructions file published in the GitHub repository FranciscoThiesen/mirror_bridge (86 stars, last pushed 3d ago), licensed Apache-2.0. It adds 2,538 tokens to every session, about $0.0127 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.