workflow-server: Instructions file for Codex

AGENTS.md

workflow-server AGENTS.md is an instructions file for Codex, OpenCode from m2ux/workflow-server. It costs 1,057 tokens per session, scanned A, original, Apache-2.0.

Project instructions for the Workflow Orchestration MCP Server, a TypeScript and Node.js service that helps AI agents discover and run structured workflows.

In plain words
What is it for?
Use them when installing, building, running, testing, type-checking, or validating changes in this project.
Why use it?
They collect the repository overview, setup commands, style rules, and checks in one place.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

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

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 workflow-server AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/m2ux/workflow-server/agents-md"><img src="https://agentmods.dev/badge/instructions/m2ux/workflow-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,057 This file is loaded in full into every session.
When invoked 1,057 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.01057 $0.01057
Opus 5.5 $0.00423 $0.00423
Sonnet 5.5 $0.00211 $0.00211
Haiku 4.5 $0.00106 $0.00106

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

Security

Grade A, and why

workflow-server 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 · 61 lines

How it starts

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

Project Instructions

Project instructions for this repository.

  • Here: rules that change what an agent does on an ordinary turn. A how-to for one kind of task lives in the doc that task already has.
  • A rule that names a path on this machine, or a tool not in package.json, belongs here rather than the repo.
  • Edits to this file shall be succinct. State the rule, not the reasoning behind it. Keep an example only where it makes the rule followable.
  • When building, testing, or changing a checkout, follow development.md.

Worktrees

  • Work a branch in its own worktree. .worktrees/workflows stays on workflows; a feature branch lives at .worktrees/<branch>. Switching the shared dest moves the corpus under whatever is reading it — a guard sweep, a coverage walk, another agent — and the result reads as a defect in the change.
  • Name a worktree for its branch in full, slashes as nested directories: .worktrees/workflow/353-context-scoped-delivery. git worktree list then reads as a branch index, and a path in a command or a stack trace says which branch it belongs to without anyone inspecting its HEAD.
  • Provision, rename, and a corpus-only sweep: guards/README.md.

Dependencies

  • Never delete the lockfile or run npm update. An install-time payload runs before any of this repo's code, so the lockfile is the last point a build can refuse.
  • Adding a dependency, exact versions, and the known-bad denylist: development.md.

Boundaries

  • Do not modify server source (src/, schemas/) or workflow YAML unless the user explicitly asks.
  • Call discover first and follow what it returns. A fresh start_session passes working_directory as the checkout under work. The rest of the sequence is setup.

Issues and PRs

  • Shape: See the reference example: #394
  • Explain the situation before naming it. Ordinary sentences first, then the concept's name. Never open with a term of art the reader hasn't been handed.
  • Title: Name: plain description. No conventional-commit prefixes, no abbreviations ("references", not "refs"), no anti-pattern numbers, no code tokens unless the token is the subject.
  • No file:line citations in the body. Evidence reads as prose.
  • Spell out jargon. "Phase 0/1/2" becomes named stages; shorthand like fold-by-reference gets a sentence or a definition on first use. Reference an anti-pattern by name with its meaning stated, so the reference corroborates rather than being required reading.
  • One paragraph per stage, and no section that restates another. Where a "what was verified" section states what was proved, an acceptance-criteria list repeats it. Cut the prose around the counts, never the counts.
  • These bodies narrate against what preceded them. They are the one sanctioned home for before/after; everything persisting past merge stays in positive present tense.
  • Prefer replacement over accretion. When updating PR bodies. Don't narrate history. Don't add changes as comments. Replace the body with the version correct today.
  • Code lives on main, definitions on workflows. They are separate long-lived branches, so a change to code and a change to definitions never share a branch.
  • A branch is absorbed when its content is on the target, not its commits. The same change arriving by another route leaves the branch reading as unmerged. git diff <target> <branch> -- <paths> settles it; a commit count does not.

Read the full file on GitHub · 61 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 Changed · -39 tokens per session a6578e17e524
  2. 1mo ago Changed · -29 lines · -860 tokens per session 197304c1325f
  3. 1mo ago Changed · -2 lines · -809 tokens per session c4f32154dbdc
  4. 1mo ago Changed · +1 lines · +39 tokens per session cf8bfe3b3ba3
  5. 1mo ago Changed · +34 tokens per session 058349ffc3fa
  6. 1mo ago Changed · +53 tokens per session 36fbd6e1339e
  7. 1mo ago Changed · +129 tokens per session 9cf0f26f642f
  8. 1mo ago Changed · +17 tokens per session 9dc9fc639a46
  9. 1mo ago Changed · +33 tokens per session cd17de4d750e
  10. 1mo ago First seen · 91 lines · 2,460 tokens per session scan A 1249bc1c542a

Subscribe to this mod's changes

workflow-server AGENTS.md is an instructions file published in the GitHub repository m2ux/workflow-server (2 stars, last pushed today), licensed Apache-2.0. It adds 1,057 tokens to every session, about $0.0042 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

workflow-server AGENTS.md compared with instructions from other repositories

workflow-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
workflow-server AGENTS.mdm2ux/workflow-serverInstructions file2todayApache-2.0A1,057Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode