Problem
Long-running builders (multi-phase ASPIR/SPIR lanes) exhaust their context window repeatedly. afx spawn --resume reattaches the SAME conversation, so a deep session resumes deep — it does not give the builder a fresh window. Today (shannon, 2026-07-27) we hand-ran a full reset on a coordinator builder that worked well, recommended by the operator:
- Architect instructs the builder: write complete working state to an UNTRACKED file at the worktree root (role, receipts, open questions, standing orders — written for a cold reader; untracked because
porch done sweeps staged files).
- Architect verifies the file exists and is substantive before proceeding (ours was 203 lines).
- Architect sends
/clear via afx send <builder> --raw.
- Architect sends a re-orientation message: role + protocol + worktree/branch, pointer to the state file, plus anything that post-dates the save.
This is ~4 manual steps with two failure modes the tooling could eliminate: clearing before the save lands (state loss), and the re-orientation omitting the role/protocol frame (builder drifts).
Ask
An afx reset <builder> (or afx spawn --reset) that automates the sequence: request save-state, wait for the file, /clear, then send a templated re-orientation assembled from the builder registry (protocol, worktree, branch) + the state-file pointer + optional architect-supplied addendum. Porch-strict lanes should re-inject the porch phase context the same way --resume does.
Related prior art: the boundary-recycle pattern (/exit + spawn --resume) that this improves on, and codev#1260's target-by-convention discussion.
Problem
Long-running builders (multi-phase ASPIR/SPIR lanes) exhaust their context window repeatedly.
afx spawn --resumereattaches the SAME conversation, so a deep session resumes deep — it does not give the builder a fresh window. Today (shannon, 2026-07-27) we hand-ran a full reset on a coordinator builder that worked well, recommended by the operator:porch donesweeps staged files)./clearviaafx send <builder> --raw.This is ~4 manual steps with two failure modes the tooling could eliminate: clearing before the save lands (state loss), and the re-orientation omitting the role/protocol frame (builder drifts).
Ask
An
afx reset <builder>(orafx spawn --reset) that automates the sequence: request save-state, wait for the file,/clear, then send a templated re-orientation assembled from the builder registry (protocol, worktree, branch) + the state-file pointer + optional architect-supplied addendum. Porch-strict lanes should re-inject the porch phase context the same way--resumedoes.Related prior art: the boundary-recycle pattern (
/exit+spawn --resume) that this improves on, and codev#1260's target-by-convention discussion.