workflow-spec

workflow-spec is an agent for coding agents from MarshallEriksen-Neura/ragcode. It costs 0 tokens per session (3,068 once invoked), scanned A, original, MIT.

A JSON-based specification for coordinating several AI agents through a validated directed workflow, where each step has defined inputs and outputs. A directed workflow is a sequence or branching graph of tasks with explicit connections.

In plain words
What is it for?
Building workflows where different command-line AI agents plan, analyze, implement, review, or fix work in serial or parallel stages.
Why use it?
It makes multi-agent work reviewable and predictable instead of relying on an informal sequence of prompts. It can define parallel work, review-and-fix loops, agent roles, and write permissions.

Agent

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 agents/marshalleriksen-neura/ragcode/workflow-spec
Clone the repo
git clone --depth 1 https://github.com/MarshallEriksen-Neura/ragcode

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-spec

README.md
[![agentmods](https://agentmods.dev/badge/agents/marshalleriksen-neura/ragcode/workflow-spec.svg)](https://agentmods.dev/agents/marshalleriksen-neura/ragcode/workflow-spec)
Your own site
<a href="https://agentmods.dev/agents/marshalleriksen-neura/ragcode/workflow-spec"><img src="https://agentmods.dev/badge/agents/marshalleriksen-neura/ragcode/workflow-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,068 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.03068
Opus 5 $0.00000 $0.01534
Sonnet 5 $0.00000 $0.00614
Haiku 4.5 $0.00000 $0.00307

Measured 3d ago against content hash 9cd530972eaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workflow-spec 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 3d 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.

docs/agents/workflow-spec.md · 216 lines

How it starts

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

RagCode Agent Workflow Spec (v1)

RagCode Agent Workflows orchestrate multiple AI agents (codex, claude, gemini, grok, or any CLI in .ragcode/agents/agents.json) through a validated DAG. A workflow is a JSON file: explicit, reviewable, and validation-friendly.

This is a flexible workflow engine, not a fixed multi-agent command. The presets (consult, plan-execute-review, gemini-claude-codex-review) are convenience starting points — the engine supports arbitrary role-to-agent assignment, serial and parallel stages, review/fix loops, and explicit write permissions.

File location

Workflow specs live in .ragcode/agents/workflows/. Create the structure with:

ragcode agents init .

Spec shape

{
  "version": 1,
  "name": "gemini-claude-codex-review",
  "description": "Gemini plans, Claude analyzes and breaks down, Codex implements, Claude reviews.",
  "agents": {
    "planner":  { "provider": "gemini", "adapter": "cli", "role": "planning" },
    "analyst":  { "provider": "claude", "adapter": "cli", "role": "analysis_and_breakdown" },
    "executor": { "provider": "codex",  "adapter": "cli", "role": "implementation" },
    "reviewer": { "provider": "claude", "adapter": "cli", "role": "code_review" }
  },
  "workflow": [
    { "id": "plan",      "agent": "planner",  "kind": "plan",      "mode": "read_only", "output": "plan.md",
      "memoryPolicy": { "read": { "mode": "auto", "maxItems": 5, "maxChars": 6000 } } },
    { "id": "breakdown", "agent": "analyst",  "kind": "breakdown", "mode": "read_only", "dependsOn": ["plan"], "input": ["plan.md"], "output": "tasks.json" },
    { "id": "implement", "agent": "executor", "kind": "implement", "mode": "write", "dependsOn": ["breakdown"], "input": ["tasks.json"],
      "output": ["patch.diff", "test-report.json"],
      "writePolicy": { "mode": "workspace", "allowedPaths": ["src/**", "tests/**", "docs/**"] } },
    { "id": "review", "agent": "reviewer", "kind": "review", "mode": "read_only", "dependsOn": ["implement"], "input": ["patch.diff", "test-report.json"],
      "output": "review.json",
      "memoryPolicy": { "read": { "mode": "required" }, "write": { "mode": "verified", "allowedTypes": ["decision", "feedback"], "maxCandidates": 2 } },
      "toolPolicy": { "requiredCapabilities": ["ragcode.memory.read"] },
      "completionPolicy": { "requiredStructuredFields": ["verdict", "usedMemoryIds"], "requiredToolCalls": ["memory_query"], "requireMemoryContribution": true, "resultArtifactFormat": "json" },
      "resultArtifact": { "source": "final_text", "name": "review-result.json", "required": true },
      "gate": { "type": "review", "passRequired": true, "onFail": "implement_fix", "maxLoops": 3 } },
    { "id": "implement_fix", "agent": "executor", "kind": "fix", "mode": "write", "dependsOn": ["review"], "input": ["review.json"],
      "output": ["patch.diff", "test-report.json"],
      "writePolicy": { "mode": "workspace", "allowedPaths": ["src/**", "tests/**", "docs/**"] } }
  ],
  "finalGate": { "type": "verification", "commands": ["npm run check", "npm test"], "required": true }
}

Read the full file on GitHub · 216 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. 3d ago First seen · 216 lines · 0 tokens per session scan A 9cd530972eaf

Subscribe to this mod's changes

workflow-spec is an agent published in the GitHub repository MarshallEriksen-Neura/ragcode (11 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,068 tokens. 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-30.

Related

Other agents, from other repositories