Goal-Driven Autonomy
Set a goal with --goal and the agent works autonomously until it's done.
Usage
bash
swust-code run --goal "fix all TypeScript errors" "start working"How It Works
- User sets a goal
- Agent begins working
- When agent tries to stop, Goal Gate triggers
- Goal Judge (independent LLM) evaluates the conversation
- If goal not met: injects synthetic message, agent continues
- If goal met or impossible: stops normally
Goal Judge
Independent LLM evaluator that reads the full conversation transcript and returns { ok, impossible, reason }.
Re-entry Control
| Role | Max Re-entries |
|---|---|
| Main Agent | 12 |
| Subagent | 3 |