Summary
Update the loop executor to work with Amp SDK's native tool invocation and stream format.
Linear: ENG-1463
Changes
- Update
runAgent() in src/loop/agents.ts to handle Amp's output stream format
- Map Amp's tool-use responses to ralph-starter's validation pipeline
- Handle Amp's sub-agent spawning within the loop
- Ensure iteration tracking works with Amp's execution model
Current Architecture
src/loop/executor.ts (900+ lines):
runLoop(): Main loop that spawns agents per iteration
- Handles
stream-json format for Claude Code
- Validation pipeline: lint → build → tests
- Iteration feedback loop
Files
src/loop/executor.ts
src/loop/agents.ts
Depends On
- Issue K (Research)
- Issue L (Agent abstraction refactor)
Summary
Update the loop executor to work with Amp SDK's native tool invocation and stream format.
Linear: ENG-1463
Changes
runAgent()insrc/loop/agents.tsto handle Amp's output stream formatCurrent Architecture
src/loop/executor.ts(900+ lines):runLoop(): Main loop that spawns agents per iterationstream-jsonformat for Claude CodeFiles
src/loop/executor.tssrc/loop/agents.tsDepends On