devkit: Instructions file for Codex

AGENTS.md

devkit AGENTS.md is an instructions file for Codex, OpenCode from 5uck1ess/devkit. It costs 581 tokens per session, scanned A, original, MIT.

A workflow engine for Codex that follows a YAML-defined sequence of work steps and stores the current state through MCP tools. It tells the coding assistant how to handle command, prompt, and loop steps.

In plain words
What is it for?
Use it to start and advance structured development workflows, carry out requested prompt steps, handle small repeated tasks, and keep scratch notes for loop steps.
Why use it?
It prevents work from skipping, reordering, or combining steps that the workflow requires. It also keeps command execution under the workflow engine instead of leaving it to the assistant.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions subagents; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/5uck1ess/devkit/agents-md"><img src="https://agentmods.dev/badge/instructions/5uck1ess/devkit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 581 This file is loaded in full into every session.
When invoked 581 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.00581 $0.00581
Opus 5.5 $0.00232 $0.00232
Sonnet 5.5 $0.00116 $0.00116
Haiku 4.5 $0.00058 $0.00058

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

Security

Grade A, and why

devkit 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 1mo 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 · 44 lines

How it starts

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

Devkit For Codex

devkit is a deterministic workflow engine. In this repo, treat the YAML workflow and MCP state as the source of truth: start a workflow, execute only the current step, report the step result, then advance.

Workflow Discipline

  • Use devkit_start to begin a workflow and devkit_advance to move to the next step.
  • Do not skip, reorder, or merge workflow steps unless the engine returns a branch/loop transition that does so.
  • For command steps, do not run the command yourself. Call devkit_advance; the engine owns command execution.
  • For prompt steps, do the requested work, summarize the result as the step output, then call devkit_advance.
  • For loop steps, keep the iteration small and use .devkit/scratchpads/current.md when the step asks for it.
  • If an active workflow exists, finish or explicitly stop it before starting a different workflow.

Tool Mapping

  • Claude Bash maps to Codex shell execution.
  • Claude Read, Grep, and Glob map to shell reads, rg, and file inspection.
  • Claude Edit and Write map to apply_patch for manual edits.
  • Claude Agent and Task map to Codex subagents when the current environment exposes them; otherwise use external CLI runners or stop and report that model-diverse dispatch is unavailable.
  • Claude WebFetch and WebSearch map to Codex web tools only when browsing is available and allowed.

Enforcement Notes

Claude Code installs lifecycle hooks from hooks/hooks.json and can hard-block out-of-step tools. Codex-specific lifecycle hooks, prompt bridges, and config are planned for the separate devkit-codex adapter, which points Codex at this repo's MCP engine once released. Follow the same workflow policy voluntarily here, and rely on Codex sandbox/approval boundaries plus the MCP engine for stateful workflow control.

Hard guarantees that still hold under Codex:

  • The MCP engine controls step order.
  • Command steps execute inside the engine.
  • Session state, branches, loops, gates, and reports remain engine-owned.

Read the full file on GitHub · 44 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. 1mo ago First seen · 44 lines · 581 tokens per session scan A eafc290fb685

Subscribe to this mod's changes

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

Other instructions, from other repositories