Long Running Task
Use this when work spans many files, phases, or validation loops.
Intake Gate
Confirm or infer:
- Goal
- Context
- Constraints
- Done when
- Validation
- Stop condition
- Checkpoint cadence
- Out of scope
If a missing field blocks safe work, ask one focused question. Otherwise infer from repo files and continue.
Loop
- Read host rules, command registry, project memory, specs, and active files.
- Write a short plan: phases, files likely touched, validation commands.
- Work one phase at a time.
- Use at most one subagent at a time when it saves context or provides review.
- Review subagent output before trusting it.
- After each phase, self-review diff and run the smallest relevant check.
- If validation fails, fix introduced failures before moving on.
- Stop only at the stop condition, a true blocker, or explicit user redirect.
Safety Defaults
- No commit, push, PR, deploy, publish, production write, migration against production, or secret output unless explicitly approved.
- No invented commands. Use
agent-compass.commands.json,package.json, or documented equivalents. - No broad rewrite when a narrow fix satisfies the goal.
Handoff
Use the Completion Gate:
- Goal
- Mode
- Files changed
- Commands run
- Validation result per command
- Risks
- Next step