Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pipeline Plan 46

Seth Ford edited this page Feb 13, 2026 · 3 revisions

The plan has been written to .claude/pipeline-artifacts/plan.md. Here's a summary of the implementation plan:

Dynamic Team Scaling — Plan Summary

Architecture: File-based signaling protocol. Stages write scaling request JSON files; the loop monitor checks them between iterations and spawns/dismisses agent tmux panes accordingly.

New Files (2)

  • scripts/sw-scaling.sh — Core scaling engine with 12 functions: trigger evaluation, spawn/dismiss, cooldown enforcement, budget checks, context transfer
  • scripts/sw-scaling-test.sh — 18 test cases following the existing mock-based test harness pattern

Modified Files (8)

  • sw-loop.sh — Hot-add/remove agents between iterations; scaling monitor in multi-agent mode
  • sw-pipeline.sh — Source scaling engine; evaluate triggers at stage boundaries; include scaling state in write_state()
  • full.json / autonomous.json / standard.json — Add scaling config with trigger definitions
  • sw-daemon.sh — Surface scale events in metrics/health checks
  • .claude/CLAUDE.md / package.json — Documentation and test registration

Key Design Decisions

  1. Signal file (.claude/pipeline-artifacts/scaling-requests.json) — pipeline writes requests, loop reads them
  2. 6 trigger types: build iteration threshold, coverage gap, security critical, idle agents, multi-module split, consecutive failures
  3. Cooldown: 2-minute minimum between scale events
  4. Budget reserve: Configurable % reserve (default 20%) — blocks spawns when budget is low
  5. Context transfer: New agents get pipeline state, memory patterns, non-overlapping file assignments, error context, and git log

13 Tasks, 18 Tests, 12 Definition of Done criteria

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /