Stop Merging Conflicts. Start Planning Them Away.

Body

You open three terminals. Three Claude Code sessions. Three agents working the same codebase. The plan is simple: parallelize and ship faster. The result is never simple. Two agents edit the same file. The merge produces garbage. You spend longer fixing the mess than if you had done the work one agent at a time.

This is the multi-agent coordination problem. Everyone hitting it right now reaches for the same toolbox: better prompts, more infrastructure, smarter merge strategies. Scout-and-Wave takes a different approach. It solves the problem before code gets written, not after.

What Is Scout-and-Wave?

Scout-and-Wave (SAW) is a coordination protocol for running multiple AI coding agents on the same codebase in parallel. It prevents merge conflicts by assigning every file to exactly one agent before any code is written. It runs as a /saw skill inside Claude Code. No framework. No SDK. No binary dependency. The entire protocol lives in markdown prompt files.

The project lives on GitHub at blackwell-systems/scout-and-wave. A companion Go engine (scout-and-wave-go, currently v0.98.0) provides a CLI tool called sawtools with 75+ commands and support for Anthropic, OpenAI, and local (Ollama) backends. A web UI (scout-and-wave-web) offers browser-based monitoring. All three implement the same protocol and produce identical output.

The Reddit post introducing SAW landed in r/PromptEngineering in April 2026. It sparked discussion because it made a claim most multi-agent tools avoid: zero merge conflicts, guaranteed structurally.

The Core Insight

Most parallel agent tools treat coordination as a runtime problem. You launch agents, they work, and you discover conflicts when you merge. SAW treats coordination as a planning problem. The Scout phase runs first, analyzes the codebase, and assigns file ownership before any agent writes a line of code.

This is the key distinction. Conflicts are prevented at planning time, not discovered at merge time.

Two structural guarantees make this work:

Disjoint file ownership. The Scout assigns every file that will change to exactly one agent. No two agents in the same wave can edit the same file. The merge step is always conflict-free because the work never overlaps.

Worktree isolation. Each agent works in its own git worktree. A separate directory with an independent file tree. Concurrent builds, test runs, and tool cache writes do not interfere with each other. No racing on shared state.

Either guarantee alone is insufficient. Disjoint ownership without worktrees means safe merges but flaky concurrent builds. Worktrees without disjoint ownership means isolated execution but merge disasters. You need both.

How It Works

The protocol has seven participant roles. You interact with two: the Orchestrator (your Claude Code session) and the Scout (an async agent that analyzes the codebase). The other five run automatically.

Here is the flow:

Scout phase. You run /saw scout "add a caching layer to the API client". The Scout analyzes the codebase, runs a five-question suitability gate, and produces an IMPL doc. This YAML file defines file ownership, interface contracts, and wave structure. The Scout can also say NOT SUITABLE and stop. That is a feature, not a bug.

Human review. You read the IMPL doc. You see exactly which files each agent will touch, what interfaces they will implement, and how the waves are structured. This is the last cheap point to change the architecture.

Scaffold phase. If the IMPL doc specifies shared types that multiple agents need, the Scaffold Agent creates those type definitions from the approved contracts. It compiles them and commits to HEAD. If compilation fails, the wave stops before worktrees are created.

Wave phase. You run /saw wave. Parallel agents launch in background worktrees. Each agent implements against frozen interface contracts and touches only its assigned files. The Orchestrator coordinates execution.

Merge and verify. The Orchestrator merges sequentially. Conflicts are structurally impossible because of disjoint ownership. Tests run. Worktrees get cleaned up.

A two-agent wave takes five to seven minutes from start to clean merge, according to the project's documentation.

The Suitability Gate

This is the part that separates SAW from tools that force every task into parallel execution. The Scout asks five questions before producing any agent prompts:

  • Does the work decompose into independent files?
  • Can we avoid investigation-first blockers?
  • Are the interfaces discoverable upfront?
  • Has the work been pre-scanned for already-implemented items?
  • Does parallelization provide actual value?

If any precondition fails, the Scout emits NOT SUITABLE with a reason. This prevents bad decompositions from producing expensive failures.

Good fits for SAW: work with clear file seams, interfaces definable upfront, agents owning two to five minutes of work each, and build/test cycles over 30 seconds. Bad fits: investigation-heavy work, tightly coupled changes, and tasks where interfaces emerge during implementation.

The IMPL Document

The IMPL doc is the persistent coordination artifact. It records the suitability assessment, dependency graph, file ownership table, interface contracts, wave structure, agent prompts, and completion reports. Six months later, you can reconstruct exactly what was parallelized and why.

This matters. Task lists and chat histories do not survive. IMPL docs do.

Prompt-Driven Protocol

SAW is not a framework or a runtime. It is markdown prompt files. The coordination protocol lives in natural language. Invariants like disjoint ownership, frozen contracts, and wave sequencing are embedded in the prompts. A capable LLM follows them.

This makes SAW portable. Today it runs in Claude Code. Tomorrow it could run in Cursor, GitHub Copilot, or any Agent Skills-compatible tool. The project follows the Agent Skills open standard. Zero vendor lock-in.

The /saw command set:

  • /saw scout "feature" — analyze codebase, produce IMPL doc
  • /saw wave — execute next pending wave
  • /saw wave --auto — execute all remaining waves unattended
  • /saw auto "feature" — scout, confirm, and wave in one command
  • /saw status — show current wave and agent progress
  • /saw bootstrap "project" — design new project structure from scratch
  • /saw interview "description" — structured requirements gathering
  • /saw program --impl slug1 slug2 slug3 — bundle queued IMPLs into a parallel program
  • /saw amend --add-wave/--redirect-agent/--extend-scope — modify active IMPL

The Formal Specification

The project ships a formal protocol specification with six invariants (I1 through I6), 47 execution rules (E1 through E47), state machine definitions, message format schemas, and step-by-step merge procedures.

This is not hand-waving. The spec defines correctness guarantees that every implementation must satisfy. Invariant I1 enforces disjoint file ownership. Invariant I2 requires that interface contracts precede parallel implementation. The full set covers state transitions, agent launches, verification gates, failure recovery, and integration wiring.

You do not need to read the spec to use SAW. The tooling enforces the rules automatically. But it exists for anyone who wants to build a new implementation or verify correctness.

Why This Matters Now

The multi-agent coding problem is real and getting more urgent. Every developer who uses Claude Code, Cursor, or Codex eventually tries running multiple agents on the same project. The current options are:

  • Run agents sequentially. Safe but slow.
  • Run agents in parallel and hope. Fast but broken.
  • Use a coordination framework like Agent Teams, ccswarm, or code-conductor. These solve execution and infrastructure. They do not solve the planning problem.

SAW fills the gap between "just run them" and "hope for the best." It answers two questions that other tools skip: should you parallelize this work at all? And if so, how do you guarantee the agents will not conflict?

The protocol has been dogfooded on over 50 features, according to the creator's Reddit post. It addresses a problem the creator experienced directly: spawning multiple Claude Code sessions in separate terminals and watching them step on each other.

Getting Started

Install takes three steps:

git clone https://github.com/blackwell-systems/scout-and-wave.git ~/code/scout-and-wave
~/code/scout-and-wave/install.sh

Then install the sawtools CLI via Homebrew or Go:

brew install blackwell-systems/tap/sawtools
# or
go install github.com/blackwell-systems/scout-and-wave-go/cmd/sawtools@latest

Initialize your project:

cd your-project
sawtools init

Restart Claude Code, then run:

/saw scout "add a caching layer to the API client"

One important note: add "Agent" to your allow list in ~/.claude/settings.json before starting. Otherwise you will need to manually approve each agent launch.

Limitations

SAW works best when work decomposes cleanly along file boundaries with definable interfaces. It is not suited for every task. Investigation-heavy work, tightly coupled changes, and tasks where interfaces emerge during implementation are poor fits. The Scout will tell you when SAW is not suitable. That honesty is more useful than a tool that claims to handle everything.

The project is young. Zero stars on GitHub as of mid-April 2026. The Go engine is at v0.98.0, which suggests an imminent 1.0 release. The Reddit post is fresh. The protocol spec is thorough but the ecosystem around it is still forming.

The Bigger Picture

SAW demonstrates something important: you can encode coordination protocols in natural language prompts and get structural safety guarantees. No runtime enforcement. No type system. Just prompts that a capable LLM follows consistently.

This is a different approach than most multi-agent systems take. The conventional path is to build more infrastructure: orchestrators, schedulers, conflict resolution engines. SAW builds more planning. The infrastructure is git worktrees and markdown files. The intelligence is in the protocol design.

Whether this approach scales to larger teams, more complex codebases, and less clean decompositions remains an open question. But for the common case of running two to five agents on well-structured work, SAW offers something rare: a guarantee that merge conflicts will not happen, backed by a formal specification you can read and verify.

Citations

  1. GitHub repository: blackwell-systems/scout-and-wave — primary source for all technical details, protocol specification, and implementation documentation
  2. Go engine: scout-and-wave-go v0.98.0 and pkg.go.dev listing — companion SDK with sawtools CLI
  3. Reddit post: Scout-and-Wave: Coordination Protocol as Prompt (No Framework, No Binary) — creator's introduction and dogfooding details (50+ features)
  4. Agent Skills standard: agentskills.io — open standard for portable agent capabilities
  5. Web UI: scout-and-wave-web — browser-based dashboard with real-time SSE updates
  6. Protocol specification files: protocol/participants.md, protocol/preconditions.md, protocol/invariants.md

Word Count

1,489

Fact-Check Notes

  • "5-7 minutes for a 2-agent wave" — sourced directly from the Reddit post and GitHub README. Not independently verified. Should confirm with the creator or a live test.
  • "Dogfooded on 50+ features" — sourced from the Reddit post author's comment. Not independently verified.
  • "Zero stars on GitHub" — accurate as of web search on April 18, 2026. This will change. Update before publishing.
  • "47 execution rules (E1–E47)" — sourced from GitHub README reference to protocol/execution-rules.md. Did not count them independently. Verify the exact number.
  • "Six invariants (I1–I6)" — sourced from GitHub README reference to protocol/invariants.md. Verify the exact count.
  • "sawtools CLI with 75+ commands" — the Go module listing shows extensive packages (orchestrator, pipeline, scaffold, suitability, worktree, etc.) but I did not count exact commands. Verify the "75+" claim or soften to "extensive CLI command set."
  • "v0.98.0" — confirmed from pkg.go.dev, published March 25, 2026. Likely approaching 1.0.
  • "Agent Skills open standard" — linked from GitHub README to agentskills.io. Did not verify the standard's scope or adoption beyond SAW's own use.
  • The Reddit post title says "No Framework, No Binary" but SAW also ships a Go binary (sawtools) and a web UI. The core protocol is prompt-driven, but the ecosystem includes binaries. Worth clarifying this distinction in the article rather than repeating the absolute claim uncritically.