codexspec AGENTS.md

Project instructions for CodexSpec, a toolkit that uses written requirements to guide software development. They explain workflows involving specifications, designs, implementation plans, tasks, and reusable project knowledge.

In plain words
What is it for?
Use them when working on CodexSpec requirements, plans, task execution, project principles, or maintainer documentation.
Why use it?
They give an agent the project-specific rules needed to make consistent decisions while developing or maintaining CodexSpec.

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/zts0hg/codexspec/agents-md
Clone the repo
git clone --depth 1 https://github.com/Zts0hg/codexspec

Made for: Codex, OpenCode.

Per session 823 This file is loaded in full into every session.
When invoked 823 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.00823 $0.00823
Opus 5 $0.00411 $0.00411
Sonnet 5 $0.00165 $0.00165
Haiku 4.5 $0.00082 $0.00082

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

Security

Grade A, and why

codexspec 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 · 48 lines

How it starts

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

AGENTS.md

CodexSpec

This project uses CodexSpec for requirements-first spec-driven development.

Use these Codex skills when working on CodexSpec workflows:

  • $codexspec:constitution to create or update project principles.
  • $codexspec:specify to capture confirmed requirements.
  • $codexspec:generate-spec to produce spec.md.
  • $codexspec:spec-to-design to produce design.md.
  • $codexspec:spec-to-plan to produce plan.md.
  • $codexspec:plan-to-tasks to produce tasks.md.
  • $codexspec:implement-tasks to implement approved tasks.
  • $codexspec:distill to capture reusable cross-feature knowledge into .codexspec/profile/.
  • $codexspec:evolve to contribute vetted profile knowledge back upstream via a reviewed PR.

Before making workflow decisions, read .codexspec/memory/constitution.md.

Maintainer Guide (developing CodexSpec itself)

This section is hand-authored (outside the managed block above) and applies whether you use Codex or Claude Code — the two context files are equal-status entry points.

The full maintainer development guide lives in CLAUDE.md: architecture and per-feature design notes, the self-bootstrap rule (edit templates/ and src/codexspec/, never the derived .claude/commands/ or .agents/skills/), and the two-constitutions distinction. It imports the project constitution (.codexspec/memory/constitution.md) and the repository layout / packaging boundary (docs/internal/repository-layout.md).

Read CLAUDE.md and docs/internal/repository-layout.md before changing templates, packaging, or init behavior.

CodexSpec Project Profile

Project constraints (highest priority — read these FIRST): before any non-trivial work you MUST read every record under .codexspec/profile/constraints/ — the project's hard prohibitions (严禁 / 仅允许). Honor them before anything else.

Actively recall relevant knowledge before non-trivial work. Do not wait to stumble on it: scan the record headings and their scope/when (and, for strategies, trigger) lines across the categories below, and read every record whose condition matches the task you are about to start (each directory holds one record per file):

Read the full file on GitHub · 48 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 · 48 lines · 823 tokens per session scan A 12f67ff395c4

Subscribe to this mod's changes

codexspec AGENTS.md is an instructions file published in the GitHub repository Zts0hg/codexspec (5 stars, last pushed 3d ago), licensed MIT. It adds 823 tokens to every session, about $0.0041 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-31.