devkit AGENTS.md

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

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/5uck1ess/devkit/agents-md
Clone the repo
git clone --depth 1 https://github.com/5uck1ess/devkit

Made for: Codex, OpenCode.

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. 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.00581 $0.00581
Opus 5 $0.00291 $0.00291
Sonnet 5 $0.00116 $0.00116
Haiku 4.5 $0.00058 $0.00058

Measured yesterday against content hash eafc290fb685, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 13d ago), licensed MIT. It adds 581 tokens to every session, about $0.0029 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.