What
Simplify .agents/scripts/pulse-dispatch-core.sh — currently over 2000 lines. Break into smaller, focused modules.
Why
Issue #18781 is blocked by the large-file gate. Workers dispatched against this file spend most of their context budget reading it, leaving insufficient capacity for implementation.
How
- EDIT:
.agents/scripts/pulse-dispatch-core.sh
- Extract cohesive function groups into separate files
- Keep a thin orchestrator in the original file that sources/imports the extracted modules
- Verify:
wc -l .agents/scripts/pulse-dispatch-core.sh should be below 2000
Created by large-file simplification gate (pulse-dispatch-core.sh)
What
Simplify
.agents/scripts/pulse-dispatch-core.sh— currently over 2000 lines. Break into smaller, focused modules.Why
Issue #18781 is blocked by the large-file gate. Workers dispatched against this file spend most of their context budget reading it, leaving insufficient capacity for implementation.
How
.agents/scripts/pulse-dispatch-core.shwc -l .agents/scripts/pulse-dispatch-core.shshould be below 2000Created by large-file simplification gate (pulse-dispatch-core.sh)