Comparing PRD Execution: Bash Loop vs. Agent Teams in Claude Code

✍️ OpenClawRadar📅 Published: February 14, 2026🔗 Source
Comparing PRD Execution: Bash Loop vs. Agent Teams in Claude Code
Ad

A developer tested moving a 14-task PRD through Claude Code using two methods: a bash loop and the new Agent Teams feature. The tasks involved developing a CLI tool for trade data analysis in Python. Both methods used the same project and model (Haiku) but differed in orchestration.

Ad

Key Details

  • Bash Loop (ralph.sh): Each task initiates a fresh Claude CLI session in serial order. It reads the PRD, implements the task using TDD, marks it as complete, writes learnings to a progress file, commits, and exits, continuing with the next task in the subsequent iteration.
  • Agent Teams Approach: Uses a team consisting of a Team Lead and three Haiku agents (Alpha, Beta, Gamma). Tasks are distributed in parallel using a Shared TaskList. Dependencies are handled in waves.
  • Speed: The Agent Teams method took about 10 minutes, achieving a 3.8x speedup over the bash approach, which took 38 minutes.
  • Parallelism: The bash loop is a serial execution method, while the Agent Teams utilized a 2-way parallel execution.
  • Code Quality: Both methods delivered identical results with a 100% pass rate on all tests and a 98% code coverage.
  • Cost: The bash loop potentially incurs lower costs due to less coordination overhead compared to Agent Teams. The Agent Teams setup faced overheads such as managing messages between the team lead and agents, maintaining separate contexts, and frequent TaskList polling.

Notable issues with the Agent Teams method included unequal task distribution due to polling frequency, lack of push notifications resulting in idle agents, and race conditions leading to about 14% of redundant work in the second run. The bash loop's learning repository spanned 914 lines, while Agent Teams accumulated a sparse 37 lines due to defaults lacking shared progress files.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

OpenClaw Agent Implements Autonomous Self-Improvement Loop with Nightly Dream Cycles
Use Cases

OpenClaw Agent Implements Autonomous Self-Improvement Loop with Nightly Dream Cycles

An OpenClaw user has configured their agent to run a nightly 'dream cycle' that scans AI research, reflects on performance, and implements safe improvements autonomously. The cycle costs approximately $0.40 per night using model routing with Haiku for scanning and Opus for judgment.

OpenClawRadar
OpenClaw user shares architecture for 43-agent production system
Use Cases

OpenClaw user shares architecture for 43-agent production system

A branding consultancy with 1,000+ clients has been running a 43-agent OpenClaw system in production for months, featuring a layered architecture with specialized agents across command, intelligence, content, tech, and sales functions.

OpenClawRadar
Reddit user shares spec-driven approach to reduce Claude Code hallucinations
Use Cases

Reddit user shares spec-driven approach to reduce Claude Code hallucinations

A developer on r/ClaudeAI describes using a structured specification method to significantly reduce hallucinations with Claude Code. The approach involves creating REQUIREMENTS.md, IMPLEMENTATION_PLAN.md, and CLAUDE.md files to maintain context through multiple compactions.

OpenClawRadar
OpenClaw Family Gateway: Token Budgets, Memory Tuning, and Custom Plugins
Use Cases

OpenClaw Family Gateway: Token Budgets, Memory Tuning, and Custom Plugins

A developer built a family AI gateway using OpenClaw on a Mac and QNAP NAS, implementing strict token budgets, tuning memory recall with re-ranking and contextual embeddings, and creating 12 custom plugins with 175+ commands.

OpenClawRadar