codex-bee: Instructions file for Codex

AGENTS.md

codex-bee AGENTS.md is an instructions file for Codex, OpenCode from usulpro/codex-bee. It costs 1,560 tokens per session, scanned A, original, MIT.

A set of project instructions for working on codex-bee, an autonomous wrapper around the Codex command-line tool. It documents the project goals, technology choices, hook setup, and working agreements.

In plain words
What is it for?
Use it when modifying the Node.js and TypeScript wrapper, its stop hook, terminal interface, or development configuration.
Why use it?
It gives coding agents the repository context and rules needed to make compatible changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads ~/.codex paths; mentions AGENTS.md; mentions Codex.

This is usulpro/codex-bee's own configuration. It tells Codex and OpenCode how to work on codex-bee 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-bee configures →

Reuse

Borrowing it

Nothing to install: this file belongs to usulpro/codex-bee. 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/usulpro/codex-bee/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/usulpro/codex-bee

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/usulpro/codex-bee/agents-md"><img src="https://agentmods.dev/badge/instructions/usulpro/codex-bee/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,560 This file is loaded in full into every session.
When invoked 1,560 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.01560 $0.01560
Opus 5.5 $0.00624 $0.00624
Sonnet 5.5 $0.00312 $0.00312
Haiku 4.5 $0.00156 $0.00156

Measured 2mo ago against content hash 2c9566c15236, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-bee 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 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.

AGENTS.md · 98 lines

How it starts

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

AGENTS.md

Project summary

codex-bee is an autonomous wrapper for Codex CLI. It should preserve the regular Codex terminal workflow while adding automatic continuation after each completed assistant turn.

Product goals

  • Keep the Codex TUI transparent to the user.
  • Detect completed turns through the Codex Stop hook system.
  • Route hook payloads back to the wrapper process without cross-talk between parallel sessions.
  • Support both simple continuation prompts and later AI-assisted follow-up generation.

Current stack

  • Node.js 20+
  • TypeScript in strict mode
  • tsup for bundling the CLI entry point
  • Plain CommonJS for hooks/stop-hook.cjs

Working agreements

  • Keep generated artifacts in English.
  • Do not compile hooks/stop-hook.cjs; it must stay directly executable by Codex hooks.
  • During development, prefer the disposable sandbox-local Codex hook configuration under CODEX_BEE_SANDBOX_DIR/.codex/ over changes to ~/.codex/hooks.json.
  • For terminal UI work, use the official documentation for Ink and @inkjs/ui as the primary references instead of relying on memory.
  • Official Ink docs: https://github.com/vadimdemedes/ink
  • Official @inkjs/ui docs: https://github.com/vadimdemedes/ink-ui and https://www.npmjs.com/package/@inkjs/ui
  • Read docs/tui-isolated-development.md before starting a new TUI iteration. The current Ink renderer is the active TUI surface; iterate on what exists instead of restarting the UI direction.
  • Prefer incremental experiments that validate PTY behavior, hook payloads, IPC routing, and timing before deeper implementation.
  • Every code or documentation change that reaches a logical completion point must be committed immediately. Do not leave completed fixes or finished edits uncommitted in the working tree.
  • After the branch is in a committed state, push it to the remote repository instead of leaving completed work only in the local git history.
  • Record meaningful findings, hypotheses, and implementation results back to Trello so later agents do not repeat the same work.
  • Every hypothesis that was actually tested must end with a Trello comment that states the outcome clearly enough to tell whether it was confirmed, rejected, or only partially verified.
  • After a hypothesis or experiment has a result comment, move its Trello card out of ideas & backlog into the appropriate results-oriented list so the first column stays readable.
  • Before pausing, stopping, or asking the user for the next step, do a Trello cleanup pass: check the first column, confirm completed work is commented, and make sure cards are in the right lists.

Read the full file on GitHub · 98 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. 2mo ago First seen · 98 lines · 1,560 tokens per session scan A 2c9566c15236

Subscribe to this mod's changes

codex-bee AGENTS.md is an instructions file published in the GitHub repository usulpro/codex-bee (1 stars, last pushed 6mo ago), licensed MIT. It adds 1,560 tokens to every session, about $0.0062 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-bee AGENTS.md compared with instructions from other repositories

codex-bee AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-bee AGENTS.mdusulpro/codex-beeInstructions file16mo agoMITA1,560Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode