Skip to main content
Architecting Multi-Agent
Developer Workflows
Felipe Hlibco
01/26/2026
Ex-Google, Ex-TaskRabbit
The Ask/Answer is a dead-end architecture.
It doesn't scale, doesn't learn and doesn't self-correct.
Also, Large Language Models (LLMs) suffer from context drift
and hallucination when tasks become too complex.
The Ceiling of Single-Prompting
The Ceiling of Single-Prompting
What is the alternative?
We move from Linear Interaction (You ↔ LLM) to
Orchestrated Workflows (You ↔ Orchestrator ↔ Specialized Agents)
Parallel Agents - co-workers
Parallel Agents - clones
The Mental Model
Developers as orchestrators, not prompters.
Every IC becomes a manager of a fleet of agents capable of
running the PDCA lifecycle.
Anatomy of a Self-correcting Loop
Plan → Execute → Validate → Refine
The Planner: Deconstructs a high-level goal into a Directed Acyclic Graph (DAG) of tasks.
The Executor: Specialized agents (e.g., a "Security Agent" vs. a "Unit Test Agent").
The Critic/Reviewer: An agent whose only job is to find flaws in the Executor's work.
Exit conditions: How do you know when you're done?
Error budgets: When to bail vs. when to retry
1. Have the right Skills in place - https://github.com/obra/clank
2. Tool: AskUserQuestion
3. Scrutinize the PRD invoking specialized agents
4. Build an action plan with Tasks
A Plan is Everything
Architecture Patterns
Router Pattern: A central hub sends tasks to the best-fit agent.
Sequential Chain: Output of Agent A is the input for Agent B.
Multi-Agent Debate: Two agents argue different solutions.
Challenges & Guardrails
Infinite Loops: What happens when agents keep "fixing" each
other's fixes?
State Management: How do you pass the "memory" of a
50-step workflow without blowing the context window?
Cost & Latency: Multi-agent flows are slower and more
expensive. Is it worth it?
Determinism: Structured outputs, Checkpoints, Tool access
The token budget problem: Surviving large codebases
Context pollution: When more context = worse results
Hierarchical context loading
- Start with structure (file trees, README, CLAUDE.md)
- Lazy-load on demand (Grep → Read | e.g.: PRD refs)
- Summarize before injecting (let agents do the compression)
Context Injection Strategies
Context Injection Strategies
Subagent isolation as a context strategy
- Each subagent gets a fresh context window
- Only return what matters to the parent
- Parallel research without cross-contamination
Persistent context layers
- Project-level: .claude/ configs, CLAUDE.md files
- User-level: ~/.claude/ for cross-project patterns
- Runtime: Memory systems, conversation history
Tool Augmentation
The tool spectrum
- Native: Bash, file I/O, Grep/Glob
- Extended: MCP servers, custom CLIs
- External: APIs, databases, third-party services
MCP as the integration layer
- Quick primer: What is Model Context Protocol?
- Examples: Stripe MCP Server, Prisma MCP Server, Playwright MCP Server
- Security considerations: Scoped permissions, audit trails (MCP builders: Check out https://www.safemcp.org/)
Building compound tools
- CLI wrappers that return structured output
- "Skill" patterns — reusable, documented capabilities
- When to build a tool vs. when to let the agent improvise
bash <<'EOF'
echo "🔧 Installing Claude MCP servers (latest versions)…"
# Sequential Thinking — Claude's chain‑of‑thought engine
claude mcp add sequential-thinking -s user 
-- npx -y @modelcontextprotocol/server-sequential-thinking || true
# Filesystem — give Claude access to local folders
claude mcp add filesystem -s user 
-- npx -y @modelcontextprotocol/server-filesystem 
~/Documents ~/Desktop ~/Downloads ~/Projects || true
# Playwright — modern multi‑browser automation
claude mcp add playwright -s user 
-- npx -y @playwright/mcp-server || true
# Fetch — simple HTTP GET/POST
claude mcp add fetch -s user 
-- npx -y @kazuph/mcp-fetch || true
echo "--------------------------------------------------"
echo "✅ MCP registration finished."
echo "--------------------------------------------------"
claude mcp list
EOF
Github Projects
Superpowers
- https://github.com/obra/superpowers
Claude Code Plugins: Orchestration and Automation
- https://github.com/wshobson/agents
Claude-mem
- https://github.com/thedotmack/claude-mem
Claude-Flow v3: Enterprise AI Orchestration Platform
- https://github.com/ruvnet/claude-flow
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=50000
export CLAUDE_CODE_BLOCKING_LIMIT_OVERRIDE=197000
https://code.claude.com/docs/en/settings#environment-variables
Felipe Hlibco
linkedin.com/in/hlibco
Thank you.