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.
npx agentmods add agents/marshalleriksen-neura/ragcode/workflow-specgit clone --depth 1 https://github.com/MarshallEriksen-Neura/ragcodeWrote 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.
[](https://agentmods.dev/agents/marshalleriksen-neura/ragcode/workflow-spec)<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>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.
| Model | Per session | Once 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 |
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.
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 }
}
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.
- 3d ago First seen · 216 lines · 0 tokens per session scan A 9cd530972eaf
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.
Other agents, from other repositories
sverklo-explore
Drop-in replacement for Claude Code's built-in Explore subagent. Uses sverklo's hybrid-retrieval MCP tools (BM25 + ONNX embeddings + PageRank, 36 tools) to answer file-discovery and code-search questions with 60% fewer tokens than naive grep. Use this when you need to locate definitions, trace references, understand…
reviewer
Independent semantic review of a Cartograph Rust/PostgreSQL diff before merge or release. Read-only; checks correctness, bounds, concurrency, migration safety, agent evidence quality, and gate alignment.
README
Adapted from the TORQ Console harness (E:\TORQ-CONSOLE\.claude\agents). These are TorqClaw-local definitions. The Console harness drives a different product through .torq/launch/ watcher scripts and hardcoded E:\TORQ-CONSOLE\... paths; running those agents against this repo would read specs from and write verdicts…
domain
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
Dashboard Dev
Agent "Dashboard Dev" from shawnhack/exocortex, covering dashboard dev, core responsibilities, key files, coding constraints and escalation.
Memory Engineer
Agent "Memory Engineer" from shawnhack/exocortex, covering memory engineer, core responsibilities, key files, coding constraints and escalation.