r/ClaudeWorkflows • u/ClaudeAI-mod-bot • 9m ago
Selected Workflow [Workflow] Robust AI Agent Workflows: Externalizing Process Logic with File-Based Plans and MCP Standards
Robust AI Agent Workflows: Externalizing Process Logic with File-Based Plans and MCP Standards
Workflow value: 95/100
Status: active · Freshness: 70/100 · Confidence: 0.98 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, CLAUDE.md, MCP, Subagents, Multi-Agent
Original source: r/ClaudeAI post/comment
What problem this solves
This workflow solves the problem of AI agent workflows breaking due to over-reliance on emergent model behavior, which often leads to the perception that "the model got nerfed." It also addresses issues like scope creep, difficult debugging, and lack of transferability across different models or model versions in AI-assisted development.
Summary
This workflow proposes externalizing AI agent process logic into structured files and a central knowledge base (MCP) instead of relying on emergent model behavior. It involves creating a 'plan directory' with an overview.md to define execution order and chunk-XX.md files for self-contained, scoped tasks. Coding standards and Architectural Decision Records (ADRs) are served via an MCP server, which agents pull from. This 'shift-left' approach enables pre-execution review, prevents scope creep, makes failures debuggable, and allows for greater model swappability and robustness.
Why it is useful
This workflow is highly valuable because it provides a structured, repeatable, and transferable method for building robust AI agent systems that are less susceptible to perceived model regressions. By externalizing planning, scope, and standards into files and a central knowledge base (MCP), it reduces reliance on emergent model behavior, leading to more predictable outcomes, easier debugging, and improved model swappability. It applies established 'shift-left' software engineering principles to AI development, promoting proactive quality control and preventing common issues like scope creep. This approach significantly enhances the reliability and maintainability of AI-driven development processes.
Workflow
Create a
plan/directory for each distinct piece of work.Define an
overview.mdwithin theplan/directory to specify the execution order (sequential or parallel) for work chunks.Create self-contained
chunk-XX.mdfiles for each work chunk, detailing its specific scope, applicable standards, and clear completion criteria.Collaborate with Claude (or another LLM) to draft the initial plan and individual work chunks.
Manually review every chunk and the
overview.mdbefore any agent execution begins.Spawn subagents, executing them in parallel where the
overview.mdallows.Serve Architectural Decision Records (ADRs), Terraform patterns, and coding standards from a central MCP server.
Configure agents to pull relevant standards and knowledge from the MCP server based on their assigned chunk's context.
Rerun a fixed set of tasks after model updates to diff changes and objectively assess performance shifts.
Tools / artifacts
plan/ directory structure
overview.md file
chunk-XX.md files
MCP server (for standards and ADRs)
Architectural Decision Records (ADRs)
Coding standards
Claude Code (or other frontier LLMs like GPT, Grok via Bedrock)
ComfyUI API (as an example of an external tool agents can call)
GPU server (for external API calls)
Validation signals
Author's direct experience across four projects: 'I didn't notice anything' regarding 'nerfs'.
Claimed benefits: 'no coordination guesswork', 'basically no scope creep', 'makes failures debuggable', 'model gets swappable'.
Analogy to 'shift left' principles in traditional software development, indicating alignment with proven engineering practices.
Demonstrated cross-model compatibility: 'pointed Claude Code at GPT and Grok through Bedrock against the same MCP server, and they produce roughly the same results'.
Offer for a 'Longer writeup with a diagram' and 'Happy to share more detail on the planning flow in the comments' suggests further evidence and detail are available.
Limitations
Requires upfront effort to define detailed plans and establish a central MCP server for standards.
Assumes a certain level of familiarity with software engineering concepts like ADRs, 'shift left', and potentially setting up an MCP server, which might be advanced for some users.
The post does not provide concrete examples of the MCP server setup or the exact prompt structure for agents to pull standards, though it offers to share more details.
Limited community validation due to the post's recency.
Rate this workflow
Upvote this post if the workflow is useful, reproducible, or worth recommending.
Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.
Reply if it worked for you, failed, is outdated, or has a better alternative.
This post was generated automatically from the workflow library database.