workflow-server AGENTS.md

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

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/m2ux/workflow-server/agents-md
Clone the repo
git clone --depth 1 https://github.com/m2ux/workflow-server

Made for: Codex, OpenCode.

Per session 2,527 This file is loaded in full into every session.
When invoked 2,527 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.02527 $0.02527
Opus 5 $0.01264 $0.01264
Sonnet 5 $0.00505 $0.00505
Haiku 4.5 $0.00253 $0.00253

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

How it starts

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

AGENTS.md

Instructions for AI coding agents working in this repository (Workflow Orchestration MCP Server).

Project overview

This repo is an MCP server for AI agent workflow orchestration (TypeScript, Node.js 18+). Agents discover, navigate, and execute structured workflows via a Goal → Workflow → Activities → Techniques → Tools model. Workflow data lives in a workflows worktree (orphan branch); engineering artifacts live in .engineering/. See README.md for overview and docs/ide-setup.md for rule setup.

Setup commands

  • Install: npm install
  • Build: npm run build
  • Run (stdio, default): npm start or npm run dev
  • Run (HTTP): npm run start:http or npm run dev:http
  • Tests: npm test (watch) / npm run test:ci (single run)
  • Typecheck: npm run typecheck
  • Guards: npm run check:all (every guard, one table) / npm run check:delta (only what your change added, against the merge-base)
  • Worktree setup: npm run worktree:provision — checks out the submodules and makes node_modules resolvable, so guards and tests measure the worktree you are editing
  • A worktree is named for the branch it holds. .worktrees/workflow/353-context-scoped-delivery holds workflow/353-context-scoped-delivery — the branch name in full, slashes and all, as nested directories. 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. Rename with git worktree move, which fixes the administrative files a mv leaves dangling.
  • Workflow data: git worktree add ./workflows workflows (see README.md, setup.md, stdio.md, http.md).

Code and doc style

  • TypeScript; follow existing patterns in src/ and schemas/.
  • Use clear, professional language; no process attribution in code comments (e.g. “Added by agent”).
  • Describe the design, not the change to it. Definitions (workflow, activity, technique, resource prose), code comments, doc comments, and commit subjects state the system as it is, in the present tense, without naming the design they replaced. A reader next year has no memory of the previous design, so naming it makes them learn a dead design just to parse the sentence — and the sentence rots the moment the thing it contrasts against is gone. Write account for token usage per dispatch, not move usage accounting off the transition and onto the dispatch; write cost travels on its own call, not a transition can only account for a dispatch it exits. Same for a value's absence: say what holds when it is missing, not what the old path did. Cut “instead of”, “no longer”, “previously”, “unchanged behaviour”, and any example that was true before the change and false after it. The workflow canon states the same discipline for definition prose as Document in Positive Present.
    • Keep a hazard that is still live, stated as an invariant. A marker is unreadable to a context that never received the bytes survives; this is why the old rule forbade it does not.
    • PR and issue bodies are the exception, and so is a commit body. They exist to explain a change against what preceded it, and stop being read once merged — a reviewer needs the before-state to judge the change. Keep the narrative there and out of everything that persists. A measurement that is a tool's reason to exist may likewise be cited with its provenance.
    • After a behaviour change, sweep for surviving descriptions of the old behaviour: doc comments, tool descriptions, technique ## Rules, resource prose, READMEs. A grep for the old phrasing finds most of them; a stale claim reads as current fact.
  • Prefer removing the thing that needs a prohibition. When a change leaves prose warning "do not also use X", that usually means two paths now do one job. Retire one and the warning has nothing left to say — along with any validation or edge-case handling that existed only to police the overlap.
  • Keep CLAUDE.md and AGENTS.md in sync by merging, never by copying. They have diverged before, each gaining content the other lacked; overwriting one with the other silently drops the difference.

Read the full file on GitHub · 105 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 · 105 lines · 2,527 tokens per session scan A 514e89e2342c

Subscribe to this mod's changes

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

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

buildNext

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

Instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,040 tokens

langchain AGENTS.md

Instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens