Local-Codex-Bridge AGENTS.md

Local-Codex-Bridge AGENTS.md is an instructions file for Codex, OpenCode from zoeynine/Local-Codex-Bridge. It costs 1,130 tokens per session, scanned A, original, MIT.

Project guidance for Local Codex Bridge, a small bridge that lets an AI client supervise official Codex sessions through a standard tool connection. It describes the components, security boundaries, and the limited state the bridge should keep.

In plain words
What is it for?
Working on the tool connection, Codex process communication, public tools, live session state, checkpoints, and optional Windows, macOS, or secure tunnel features.
Why use it?
It helps contributors preserve the intended design and avoid turning the bridge into a second task manager, transcript store, or authority system.

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/zoeynine/local-codex-bridge/agents-md
Clone the repo
git clone --depth 1 https://github.com/zoeynine/Local-Codex-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 Local-Codex-Bridge AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zoeynine/local-codex-bridge/agents-md.svg)](https://agentmods.dev/instructions/zoeynine/local-codex-bridge/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/zoeynine/local-codex-bridge/agents-md"><img src="https://agentmods.dev/badge/instructions/zoeynine/local-codex-bridge/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,130 This file is loaded in full into every session.
When invoked 1,130 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.01130 $0.01130
Opus 5 $0.00565 $0.00565
Sonnet 5 $0.00226 $0.00226
Haiku 4.5 $0.00113 $0.00113

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

Security

Grade A, and why

Local-Codex-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 · 67 lines

How it starts

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

AI Agent Guidance

Project intent

Local Codex Bridge is a thin MCP stdio control surface for native Codex sessions, with a shared Windows/macOS core and optional platform-specific surfaces. Its purpose is to let ChatGPT or another MCP client supervise official Codex threads without creating a second task system, transcript store, queue, retry loop, or authority layer.

Keep the bridge thin. Native Codex owns persistent threads, turns, history, final messages, and execution capabilities. Bridge-owned state is limited to bounded live supervision data, pending requests, terminal snapshots, optional bounded checkpoints, and the optional UX projection.

Architecture

The runtime chain is:

MCP client -> Local Codex Bridge (JSON-RPC stdio)
           -> official `codex app-server --listen stdio://` (JSONL stdio)
           -> native Codex sessions

src/mcp.ts owns the MCP boundary, src/app-server.ts owns the official child-process protocol, src/tools.ts owns the public tool contract, and src/runtime.ts owns ephemeral live state. src/checkpoint.ts provides the separate optional local checkpoint store. The Windows Tray and Secure MCP Tunnel integration are optional layers; the Tunnel itself is external to this repository.

The eight public tools have distinct semantics:

  • codex_threads: list/search/read persistent native threads; filters are not access control.
  • codex_models: read one bounded current model/list page on demand; it creates no catalog cache or current-model registry.
  • codex_turn: create or resume a native thread and start a turn; acceptance is not completion.
  • codex_observe: read bounded live state or explicitly degraded persisted history after Bridge state loss.
  • codex_steer: append a semantic correction to the exact active turn; do not use it as a timer or retry.
  • codex_respond: answer one real pending app-server request using its raw ID and exact scope.
  • codex_interrupt: interrupt one exact native turn; it is not process control.
  • codex_checkpoint: maintain optional bounded supervisor cognition metadata; it is not a transcript or lifecycle database.

Read the full file on GitHub · 67 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 · 67 lines · 1,130 tokens per session scan A 234aa78fd8ea

Subscribe to this mod's changes

Local-Codex-Bridge AGENTS.md is an instructions file published in the GitHub repository zoeynine/Local-Codex-Bridge (23 stars, last pushed 10d ago), licensed MIT. It adds 1,130 tokens to every session, about $0.0056 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.

Related

Other instructions, from other repositories

douyin-transcript-mcp AGENTS.md

AGENTS.md instructions for mei-shui-xing/douyin-transcript-mcp, covering instructions for ai coding agents, required workflow and non-negotiable boundaries.

mei-shui-xing/douyin-transcript-mcp · 485 tokens

enquire-mcp AGENTS.md

AGENTS.md instructions for oomkapwn/enquire-mcp, covering agents.md, tl;dr, architecture (5-minute orientation), conventions and typescript.

oomkapwn/enquire-mcp · 3,529 tokens

mcp-app-typescript-template AGENTS.md

AGENTS.md instructions for pomerium/mcp-app-typescript-template, covering repository guidelines, project overview, development commands, quick start and all available commands.

pomerium/mcp-app-typescript-template · 5,171 tokens

ThreeBrowserStudio AGENTS.md

AGENTS.md instructions for SamG-Coder/ThreeBrowserStudio: ThreeBrowser Studio is an LLM-first authoring runtime. MCP is the editor and the native WebGPU window is the shared live viewport. Preserve that product shape: do not grow a conventional inspector-heavy browser UI.

SamG-Coder/ThreeBrowserStudio · 397 tokens

PatchWarden AGENTS.md

Instructions for jiezeng2004-design/PatchWarden, covering patchwarden agent rules, commands, safety contracts, changes and release and codex memory.

jiezeng2004-design/PatchWarden · 539 tokens

sdk CLAUDE.md

Claude Code instructions for WaniWani-AI/sdk, covering waniwani sdk, public api tiers, oss (no api key required), free tier (one env var: waniwaniapikey) and internal (not part of the public api).

WaniWani-AI/sdk · 3,352 tokens