agent-workflows: Instructions file for Codex

AGENTS.md

agent-workflows AGENTS.md is an instructions file for Codex, OpenCode from sjarmak/agent-workflows. It costs 1,005 tokens per session, scanned C, original, MIT.

A set of instructions for coding agents working on an AI-workflow project that uses beads, a tool for tracking tasks. It includes commands for claiming and closing work and rules for keeping quality judgments with the AI model.

In plain words
What is it for?
Use it to pick up and complete tracked work, review workflow skills, and check whether code is making a mechanical change or a quality decision.
Why use it?
It gives agents a shared way to manage issues and prevents simple formulas or keyword checks from making decisions that need human-like judgment.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: names the TodoWrite tool.

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

Reuse

Borrowing it

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

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 agent-workflows AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sjarmak/agent-workflows/agents-md"><img src="https://agentmods.dev/badge/instructions/sjarmak/agent-workflows/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,005 This file is loaded in full into every session.
When invoked 1,005 The same file — it is already loaded in full.
Security scan C 1 finding. 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.01005 $0.01005
Opus 5.5 $0.00402 $0.00402
Sonnet 5.5 $0.00201 $0.00201
Haiku 4.5 $0.00101 $0.00101

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

Security

Grade C, and why

agent-workflows AGENTS.md scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf directory # NOT: rm -r directory
AGENTS.md · 119 lines

How it starts

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

Agent Instructions

This project uses bd (beads) for issue tracking. Run bd onboard to get started.

Quick Reference

bd ready              # Find available work
bd show <id>          # View issue details
bd update <id> --claim  # Claim work atomically
bd close <id>         # Complete work
bd dolt push          # Push beads data to remote

ZFC Enforcement

This project is AI-orchestration code. Apply Zero Framework Cognition at two levels:

  1. L2 (tooling): workflow skills must not use heuristics for semantic judgment
  2. L3 (product): patterns embedded in workflow outputs shape how users approach their own AI-mediated work

Review checklist for agents

When reviewing or writing workflow skills, flag:

  • Synthesis phases that use scoring formulas instead of model judgment
  • Hardcoded classification of agent outputs (keyword matching for "done"/"failed")
  • Winner selection via metric formula instead of model comparison
  • Any code that makes a quality or relevance judgment without a model call

Ask: "Is this a mechanical/structural operation, or is it making a judgment a model should make?"

Compliant patterns to preserve

  • Spawn independent agents → model synthesizes (core architecture)
  • Convergence/divergence as signal, not as scored metric
  • Agents provide semantic inputs (severity, likelihood), math is mechanical

Justified exceptions

  • brainstorm/scripts/similarity.py — calibrated duplicate detection with --force escape hatch
  • Risk Score multiplication — deterministic math on agent-provided semantic inputs
  • Task readiness via bd ready — pure status-field logic

Non-Interactive Shell Commands

ALWAYS use non-interactive flags with file operations to avoid hanging on confirmation prompts.

Shell commands like cp, mv, and rm may be aliased to include -i (interactive) mode on some systems, causing the agent to hang indefinitely waiting for y/n input.

Use these forms instead:

# Force overwrite without prompting
cp -f source dest           # NOT: cp source dest
mv -f source dest           # NOT: mv source dest
rm -f file                  # NOT: rm file

# For recursive operations
rm -rf directory            # NOT: rm -r directory
cp -rf source dest          # NOT: cp -r source dest

Read the full file on GitHub · 119 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 · 119 lines · 1,005 tokens per session scan C c70cf168a674

Subscribe to this mod's changes

agent-workflows AGENTS.md is an instructions file published in the GitHub repository sjarmak/agent-workflows (10 stars, last pushed 3mo ago), licensed MIT. It adds 1,005 tokens to every session, about $0.0040 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). 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