Goal System

Goals are persistent objectives that survive across sessions. They give your agent long-term direction and can trigger automatic continuation runs with budget tracking.

Goal Lifecycle

A goal moves through these states: set (active objective), paused, resumed, done (completed), or cancelled. Goal state is durable -- restarting the server preserves it.

CLI Commands

# Set a new goal
jaw goal set "Migrate the auth module to JWT tokens"

# Check goal status
jaw goal status

# Pause the current goal
jaw goal pause

# Resume a paused goal
jaw goal resume

# Mark goal as done (this is an API call, not a CLI command)
jaw goal done

# Cancel the goal
jaw goal cancel

# Reset goal state
jaw goal reset

Slash Commands

CommandDescription
/goal set <objective>Set a new goal objective
/goal statusShow current goal state
/goal run startStart a bounded auto-continuation run with budget tracking
/goal run stopStop the current goal run
/goal pausePause the goal
/goal resumeResume a paused goal
/goal doneMark the goal as completed
/goal cancelCancel the goal
/goal clearClear goal state
/goal resetFull reset

Goal Run (Auto-Continuation)

The /goal run start command begins a bounded auto-continuation session. The agent works toward the goal objective, automatically continuing after each response until the goal is marked done or the run is stopped.

Budget enforcement is currently tracking-only. The system tracks run duration and continuation count but does not yet enforce hard budget limits.

Goal Mode Rules

API Endpoints

MethodPathDescription
GET/api/goalGet current goal state
GET/api/goal/historyGet goal history
POST/api/goalSet, update, complete, cancel, pause, or resume a goal
GET/api/goal-runGet current goal-run state
GET/api/goal-run/preflightPreflight check before starting a run
POST/api/goal-runStart, pause, resume, or stop a goal run

WebSocket Events

Goal lifecycle changes emit WebSocket events that the Web UI consumes:

Goal + PABCD Integration

Goals work alongside PABCD orchestration. You can set a goal and then use PABCD phases to break it down. Goal continuation is allowed during active PABCD phases, so the agent can keep working on goal-driven tasks within the orchestration framework.

Try it:
  • 이 목표 설정해줘
  • 목표 완료 처리해줘
  • 목표 상태 보여줘