Codex-web: Instructions file for Codex

AGENTS.md

Codex-web AGENTS.md is an instructions file for Codex, OpenCode from bproject07/Codex-web. It costs 11,733 tokens per session, scanned A, original, MIT.

A repository guide for coding agents working on Codex Web, a web interface that provides authenticated browser access to command-line coding agents. It defines the project's mission, layout, and rules for changing it.

In plain words
What is it for?
Use it before modifying the Codex Web repository to understand its architecture, important invariants, and required checks.
Why use it?
It gives agents the constraints they must follow to preserve terminal behavior, session handling, security, and reliable launches.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is bproject07/Codex-web's own configuration. It tells Codex and OpenCode how to work on Codex-web itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Codex-web configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bproject07/Codex-web. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bproject07/Codex-web/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/bproject07/Codex-web

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 Codex-web AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/bproject07/codex-web/agents-md/github.svg)](https://agentmods.dev/instructions/bproject07/codex-web/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/bproject07/codex-web/agents-md"><img src="https://agentmods.dev/badge/instructions/bproject07/codex-web/agents-md/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 Codex-web AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bproject07/codex-web/agents-md"><img src="https://agentmods.dev/badge/instructions/bproject07/codex-web/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11,733 This file is loaded in full into every session.
When invoked 11,733 The same file — it is already loaded in full.
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.11733 $0.11733
Opus 5.5 $0.04693 $0.04693
Sonnet 5.5 $0.02347 $0.02347
Haiku 4.5 $0.01173 $0.01173

Measured 4d ago against content hash 68574c9e2ff7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Codex-web 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 4d 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 · 965 lines

How it starts

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

Repository Guide for Coding Agents

This file is the operational contract for agents working in this repository. Read it before editing. Human-facing build and runtime details live in BUILDING.md and OPERATIONS.md.

Mission

Codex Web Terminal exposes real Codex CLI, Claude Code, Google Antigravity CLI (agy), and Kilo Code CLI (kilo) PTYs through an authenticated web interface. It must preserve terminal semantics rather than reimplement any agent UI.

The most important properties are:

  • raw PTY bytes remain raw;
  • terminal input reaches exactly the selected managed session;
  • reconnect replays bounded output and then resumes live output without gaps;
  • tokens and terminal content never enter structured tracing;
  • Windows and Unix command launch remain independently correct;
  • a browser disconnect never terminates a managed PTY;
  • production changes do not silently replace or restart a live server;
  • agent discovery is read-only and never installs or updates host software;
  • workspace browsing returns directories only and never reads file content;
  • each selected working directory is validated by the server before PTY launch.

Repository map

.
├── AGENTS.md                  Agent workflow and invariants
├── CLAUDE.md                  Claude-specific pointer and no-local-build rule
├── BUILDING.md                Windows/Linux build, test, and package guide
├── OPERATIONS.md              Runtime, UI, Tailscale, service, and upgrade guide
├── TODO.md                    Deliberately unimplemented, security-scoped ideas
├── README.md                  Product overview, architecture, API, and protocol
├── CONTRIBUTING.md            Contribution workflow and validation contract
├── SECURITY.md                Private vulnerability reporting policy
├── CODE_OF_CONDUCT.md         Community behavior and enforcement
├── THIRD_PARTY_NOTICES.md     Dependency licensing and attribution
├── LICENSE
├── .github/
│   ├── workflows/
│   │   ├── ci.yml             Windows/Linux continuous integration
│   │   └── release.yml        Immutable, attested Windows/Linux releases
│   └── ISSUE_TEMPLATE/        Privacy-safe issue forms
├── docs/
│   └── screenshots/           Sanitized, reproducible product screenshots
├── scripts/
│   ├── build.ps1              Windows production package
│   ├── run.ps1                Windows launcher
│   ├── build.sh               Linux production package
│   ├── run.sh                 Linux launcher
│   ├── fixtures/              Deterministic, synthetic demo PTY
│   ├── agent-catalog-regression.py
│   ├── android-ime-input-regression.py
│   ├── desktop-slash-regression.py
│   ├── mobile-codex-smoke.py  Browser/mobile smoke test
│   ├── mobile-resize-regression.py  Chrome wheel/mobile viewport regression
│   ├── peer-review-regression.py  Native PTY/helper peer workflow
│   ├── updater-supervisor-regression.py  Stable-root update/restart/rollback fixture
│   ├── generate-release-package-manifest.py  Updater package identity marker
│   ├── generate-third-party-licenses.py  Release license/NOTICE gate
│   ├── validate-release-archive.py  Bounded archive/layout/binary validation
│   ├── verify-github-release.py  Exact immutable asset/digest verification
│   ├── session-tabs-regression.py
│   ├── session-cache-regression.py  Synthetic tab retention and routing regression
│   ├── terminal-flow-regression.py  Output flow control, restore retry, and IPv6
│   ├── transfer-regression.py  Context transfer API, helper verbs, claims, lifecycle
│   └── workspace-picker-regression.py  Auth/CWD/persistence/mobile regression
├── server/
│   ├── Cargo.toml
│   ├── Cargo.lock
│   ├── examples/
│   │   └── updater-supervisor-fixture.rs  Native update/restart/rollback fixture
│   ├── src/
│   │   ├── agents.rs          Agent discovery and install-guidance catalog
│   │   ├── auth.rs            Token validation, throttling, Origin checks
│   │   ├── config.rs          CLI/environment parsing and static asset lookup
│   │   ├── filesystem.rs      Native path IDs and bounded directory browsing
│   │   ├── main.rs            Startup, listener, URLs, graceful Ctrl+C path
│   │   ├── peer.rs            Bounded peer thread/turn state and capabilities
│   │   ├── peer_cli.rs        Hidden loopback helper client
│   │   ├── peer_routes.rs     Public workflow and private bridge routes
│   │   ├── process_tree.rs    Cross-platform child-process containment
│   │   ├── protocol.rs        Browser control-message limits and parsing
│   │   ├── registry.rs        Configurable managed terminal capacity
│   │   ├── routes.rs          Protected HTTP API and static serving
│   │   ├── session.rs         PTY lifecycle, replay buffer, process management
│   │   ├── terminal.rs        Command resolution and platform-specific PTY launch
│   │   ├── transfer.rs        Context transfer coordinator: states, attempts, grants
│   │   ├── transfer_routes.rs Bearer-protected transfer API
│   │   ├── update_bootstrap.rs  Stable-root worker activation and recovery
│   │   ├── update_fs.rs       Hardened updater state and filesystem operations
│   │   ├── update_manifest.rs Signed-package identity and target validation
│   │   ├── updater.rs         Release discovery, staging, and activation API
│   │   ├── websocket.rs       Authenticated attach, replay, input, live output
│   │   └── workspaces.rs      Persistent Favorites and Recent workspace state
│   └── tests/
│       ├── server_contract.rs
│       └── workspace_api.rs   Auth, browsing, persistence, and selected-CWD API
└── web/
    ├── package.json
    ├── package-lock.json
    ├── vite.config.ts
    └── src/
        ├── AgentPicker.tsx    Responsive agent discovery/start dialog
        ├── App.tsx            Main UI, sessions, settings, lifecycle actions
        ├── api.ts             Token/session storage and HTTP API client
        ├── api.token.test.ts  Token continuity and explicit-forget regression
        ├── peer/              Peer composer, state, API, and unit tests
        ├── transfer/          Continue-in composer, controller, API, and unit tests
        ├── sessions/          Header session tabs and navigation helpers
        ├── updates/           Update UI, API model, state, and unit tests
        ├── workspaces/        Folder picker, model, DTOs, and unit tests
        ├── terminal/
        │   ├── TerminalDeck.tsx  Bounded retained views and selected-tab routing
        │   ├── TerminalView.tsx
        │   ├── viewCache.ts
        │   ├── androidImeGuard.ts
        │   ├── MobileToolbar.tsx
        │   ├── mobileKeys.ts
        │   ├── mobileResize.ts
        │   ├── protocol.ts
        │   ├── reconnect.ts
        │   ├── replay.ts
        │   └── settings.ts
        └── styles/app.css

Read the full file on GitHub · 965 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. 4d ago Changed · +2 lines · +31 tokens per session 68574c9e2ff7
  2. 9d ago Changed · +10 lines · +151 tokens per session ba5efe769cc4
  3. 10d ago Changed · +131 lines · +1,805 tokens per session 65a4dc52485d
  4. 11d ago Changed · +14 lines · +221 tokens per session 82dd634b0d52
  5. 1mo ago Changed · +75 lines · +1,117 tokens per session 12cae5ce86d0
  6. 1mo ago Changed · +8 lines · +141 tokens per session cf68d743e825
  7. 2mo ago First seen · 725 lines · 8,267 tokens per session scan A 29919f893430

Subscribe to this mod's changes

Codex-web AGENTS.md is an instructions file published in the GitHub repository bproject07/Codex-web (4 stars, last pushed 5d ago), licensed MIT. It adds 11,733 tokens to every session, about $0.0469 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.

Related

Codex-web AGENTS.md compared with instructions from other repositories

Codex-web AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Codex-web AGENTS.mdbproject07/Codex-webInstructions file45d agoMITA11,733Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode