agent-workflows AGENTS.md

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

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/sjarmak/agent-workflows/agents-md
Clone the repo
git clone --depth 1 https://github.com/sjarmak/agent-workflows

Made for: Codex, OpenCode.

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. 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.01005 $0.01005
Opus 5 $0.00502 $0.00502
Sonnet 5 $0.00201 $0.00201
Haiku 4.5 $0.00101 $0.00101

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

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. 2d 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 (9 stars, last pushed 1mo ago), licensed MIT. It adds 1,005 tokens to every session, about $0.0050 per session on Opus 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