codex-lb AGENTS.md

A repository instruction file that tells a coding agent about the project environment, coding rules, and development workflow.

In plain words
What is it for?
It helps agents find specifications, follow code conventions, use the correct Python setup, and validate changes with OpenSpec.
Why use it?
It gives the agent project-specific guidance, reducing guesswork about how to edit code, handle GitHub access, and manage behavior changes.

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/soju06/codex-lb/agents-md
Clone the repo
git clone --depth 1 https://github.com/Soju06/codex-lb

Made for: Codex, OpenCode.

Per session 1,906 This file is loaded in full into every session.
When invoked 1,906 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.01906 $0.01906
Opus 5 $0.00953 $0.00953
Sonnet 5 $0.00381 $0.00381
Haiku 4.5 $0.00191 $0.00191

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

Security

Grade A, and why

codex-lb 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 2d 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 · 140 lines

How it starts

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

AGENTS

Environment

  • Python: .venv/bin/python (uv, CPython 3.13.3)
  • GitHub auth for git/API is available via env vars: GITHUB_USER, GITHUB_TOKEN (PAT). Do not hardcode or commit tokens.
  • For authenticated git over HTTPS in automation, use: https://x-access-token:${GITHUB_TOKEN}@github.com/<owner>/<repo>.git

Code Conventions

The /project-conventions skill is auto-activated on code edits (PreToolUse guard).

Convention Location When
Code Conventions (Full) /project-conventions skill On code edit (auto-enforced)
Git Workflow .agents/conventions/git-workflow.md Commit / PR

Workflow (OpenSpec-first)

This repo uses OpenSpec as the primary workflow and SSOT for change-driven development.

How to work (default)

  1. Find the relevant spec(s) in openspec/specs/** and treat them as source-of-truth.
  2. If the work changes behavior, requirements, contracts, or schema: create an OpenSpec change in openspec/changes/** first (proposal -> tasks).
  3. Implement the tasks; keep code + specs in sync (update spec.md as needed).
  4. Validate specs locally: openspec validate --specs
  5. When done: verify + archive the change (do not archive unverified changes).

Source of Truth

  • Specs/Design/Tasks (SSOT): openspec/
    • Active changes: openspec/changes/<change>/
    • Main specs: openspec/specs/<capability>/spec.md
    • Archived changes: openspec/changes/archive/YYYY-MM-DD-<change>/

Documentation & Release Notes

  • OpenSpec is the SSOT for feature/behavior documentation. User-facing rendering lives under docs/ (the published docs pages), and each spec-governed page MUST link back to the owning openspec/specs/<capability>/ entry. Do not create docs/ content that has no OpenSpec counterpart, and do not add feature docs as new README sections. Keep normative requirements in openspec/specs/<capability>/spec.md and free-form rationale in the capability's context.md (or change-level context under openspec/changes/<change>/context.md).
  • Do not edit CHANGELOG.md directly. Leave changelog updates to the release process; record change notes in OpenSpec artifacts instead.

Read the full file on GitHub · 140 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. 2d ago First seen · 140 lines · 1,906 tokens per session scan A 5d64b99feea3

Subscribe to this mod's changes

codex-lb AGENTS.md is an instructions file published in the GitHub repository Soju06/codex-lb (2,907 stars, last pushed yesterday), licensed MIT. It adds 1,906 tokens to every session, about $0.0095 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.