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.
npx agentmods add agents/marko-php/marko/codexgit clone --depth 1 https://github.com/marko-php/markoWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00027 | $0.00731 |
| Opus 5 | $0.00014 | $0.00365 |
| Sonnet 5 | $0.00005 | $0.00146 |
| Haiku 4.5 | $0.00003 | $0.00073 |
Grade A, and why
codex 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.
How it starts
The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenAI Codex CLI is OpenAI's agentic coding tool. devai:install configures it with an AGENTS.md project guidelines file, MCP server registration via the codex mcp add CLI, and Marko skills distributed to .agents/skills/.
Prerequisites
- Codex CLI installed:
npm install -g @openai/codex - Authenticated:
codex auth login marko/devaiinstalled (see Installation)
What devai:install writes
Running marko devai:install with Codex detected produces the following:
AGENTS.md # Project guidelines for Codex
.agents/skills/ # Marko skill files distributed for Codex
MCP registration is performed via the Codex CLI (codex mcp add) rather than by writing a config file.
AGENTS.md
The root AGENTS.md receives Marko project guidelines inside a <!-- BEGIN/END marko:devai --> marker block: created if absent, and on later runs only the marked region is refreshed, so anything you add outside the markers is preserved. Remove the markers to take full ownership — devai then leaves the file alone (see Editing generated files). It contains:
- Marko module conventions and project structure overview
- Available MCP tools and their descriptions
- Project-specific guidelines from every installed package's
resources/ai/guidelines.md
MCP registration
The installer calls codex mcp add <serverName> -- <command> [args] to register marko mcp:serve as an MCP server. Codex stores this registration in its own configuration; no .codex/mcp.json file is written by devai:install.
Skills
Marko skill bundles are written to .agents/skills/ so Codex can reference them during agentic tasks.
Manual verification
- Open a terminal in your project root.
- Run
codex "What Marko MCP tools are available?"— Codex should list the registered tools frommarko/mcp. - Run
codex "Search docs for routing"— thesearch_docstool should return Marko documentation results. - Verify
AGENTS.mdexists in the project root and.agents/skills/contains skill files.
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.
- 2d ago First seen · 58 lines · 27 tokens per session scan A 9485c4d3889c
codex is an agent published in the GitHub repository marko-php/marko (393 stars, last pushed 3d ago), licensed MIT. It adds 27 tokens to every session and 731 once invoked, about $0.0001 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.
Other agents, from other repositories
fixture-reviewer
Audits .test integration fixtures under tests/php/Integration/Fixtures for drift against the current compiler output. Use after lexer, parser, analyzer, or emitter changes.
module-docs-sync
Audits and updates CLAUDE.md files in src/php/ modules to match the actual code. Use after large refactors, new modules, or periodic maintenance.
tdd-coach
Guides test-driven development with red-green-refactor discipline. Use when implementing features or fixes with TDD.
quick-syntax
One-screen cheatsheet. For exhaustive rules see RULES.md; for typing details see tasks/typed-defn.md.
index
Agent "index" from phel-lang/phel-lang, covering agent index, intent map and examples.
changelog-keeper
Maintains CHANGELOG.md by analyzing commits since last release. Use when updating changelog, preparing releases, or reviewing what changed.