Complete reference for all sabbatical CLI commands.
Print system status. Works without the API server - reads directly from the database and PID files.
sabbatical statusOutput:
API: running (PID 12345)
Dispatcher: running (PID 12346)
Active Workers: 2 / 4
Tasks: 3 open, 1 in_progress, 0 failed, 12 done, 1 canceled
Tokens: In=245000 Out=89000
Total Cost: $1.23
Install the Sabbatical SKILL.md reference file to a target directory. Useful for giving AI agents (Claude Code, Cursor) knowledge of how to use Sabbatical.
sabbatical install-skill [--path PATH]| Option | Default | Description |
|---|---|---|
--path, -p |
. |
Target directory. SKILL.md is written to <path>/sabbatical/SKILL.md. |
Start the Sabbatical MCP server using stdio transport. Intended to be called by MCP clients, not directly by users.
sabbatical mcpAPI server management commands.
Start the Sabbatical API server as a background process. The dispatcher daemon starts automatically.
sabbatical api up- Starts uvicorn with the configured host and port.
- Writes PID to
~/.sabbatical/server.pid. - Uvicorn process output goes to
~/.sabbatical/server.log. - Structured application logs go to
~/.sabbatical/logs/api.log(this is the fileapi logstails). - Fails if the server is already running.
Gracefully stop the API server. The dispatcher continues running.
sabbatical api down- Sends a shutdown request to the
/api/shutdownendpoint. - Falls back to SIGTERM if the server is unresponsive.
- Removes the PID file.
Tail the API server log file.
sabbatical api logs [--follow/--no-follow] [--lines N]| Option | Default | Description |
|---|---|---|
--follow, -f |
True |
Follow log output in real time. |
--lines, -n |
50 |
Number of lines to show. |
Dispatcher daemon management commands.
Stop the dispatcher daemon.
sabbatical dispatcher stop- Sends SIGTERM and waits for graceful shutdown.
- Falls back to SIGKILL after 10 seconds.
Tail the dispatcher log file.
sabbatical dispatcher logs [--follow/--no-follow] [--lines N]| Option | Default | Description |
|---|---|---|
--follow, -f |
True |
Follow log output in real time. |
--lines, -n |
50 |
Number of lines to show. |
Organization management commands.
Create a new organization.
sabbatical organization create NAME --workspace-path PATH [--description TEXT]| Argument/Option | Required | Description |
|---|---|---|
NAME |
Yes | Unique snake_case identifier. |
--workspace-path |
Yes | Absolute path to the working directory. |
--description |
No | Brief purpose statement. |
List all organizations.
sabbatical organization listOutput: Table with columns: Name, Description, Workspace, Agents, Cost ($).
Display an organization's details and agent hierarchy tree.
sabbatical organization view NAMEModify an organization's metadata.
sabbatical organization edit NAME [--description TEXT] [--workspace-path PATH]At least one option must be provided.
Delete an organization and all associated data (agents, tasks, runs).
sabbatical organization delete NAME [--yes]| Option | Default | Description |
|---|---|---|
--yes, -y |
False |
Skip confirmation prompt. |
This is a destructive operation. All agents, tasks, comments, and runs belonging to the organization are permanently deleted.
Agent management commands.
Add a new agent to an organization.
sabbatical agent add NAME --organization ORG --instructions PATH [--boss AGENT] [--max-iterations N] [--model MODEL]| Argument/Option | Required | Description |
|---|---|---|
NAME |
Yes | Unique within the organization (snake_case). |
--organization |
Yes | Organization name. |
--instructions |
Yes | Path to the agent's .md instructions file. |
--boss |
No | Name of the supervising agent. |
--max-iterations |
No | LLM turn limit (defaults to config value). |
--model |
No | LLM model override (e.g., anthropic/claude-3-5-sonnet-20241022). |
If an agent with the same name was previously soft-deleted in the organization, it is reactivated.
List all agents in an organization.
sabbatical agent list --organization ORG [--include-removed]| Option | Default | Description |
|---|---|---|
--organization |
Required | Organization name. |
--include-removed |
False |
Include soft-deleted agents. |
Output: Table with columns: Name, Description, Boss, Model, Max Iterations, Cost ($).
Display an agent's full profile including instructions content.
sabbatical agent view NAME --organization ORGOutput: Name, organization, boss, subordinates, model, instructions path, max iterations, total cost, and full instructions content.
Modify an agent's profile.
sabbatical agent edit NAME --organization ORG [--boss AGENT] [--instructions PATH] [--max-iterations N] [--model MODEL]| Option | Description |
|---|---|
--boss |
Reassign boss agent. Use none to promote to root (no boss). |
--instructions |
New path to instructions file. |
--max-iterations |
New LLM turn limit. |
--model |
New model override. Use default to clear the override. |
At least one option must be provided. The agent must not be assigned to any in_progress tasks.
Soft-delete an agent from an organization.
sabbatical agent remove NAME --organization ORG- The agent is marked as removed but preserved for historical reference.
- Subordinates are promoted to root (boss set to NULL).
- The agent must not have any active (open or in_progress) tasks.
Task management commands.
Create a new task.
sabbatical task create TITLE --organization ORG [--description TEXT] [--description-file PATH]| Argument/Option | Required | Description |
|---|---|---|
TITLE |
Yes | Brief description of the work. |
--organization |
Yes | Organization name. |
--description |
No | Detailed specification (inline). |
--description-file |
No | Path to a file containing the detailed spec. Overrides --description if both are provided. |
The task is automatically assigned to the organization's root agent and queued for dispatch.
List tasks with optional filters.
sabbatical task list [--organization ORG] [--status STATUS] [--assignee AGENT]| Option | Description |
|---|---|
--organization |
Filter by organization. |
--status |
Filter by status: open, in_progress, failed, done, canceled. |
--assignee |
Filter by assignee (agent name or user). |
Output: Table with columns: ID, Title, Status, Assignee, Created, Cost ($). If no organization filter is applied, the Org column is also shown.
Duration is displayed for in_progress tasks (elapsed) and completed tasks (total).
Display a task's full details and timeline.
sabbatical task view IDOutput: Task ID, title, organization, status, assignee, total cost, description, and a chronological timeline of comments and run summaries.
Append a comment to a task.
sabbatical task comment ID MESSAGEInclude @agent_name in the message to route the task to that agent. The task must not be in_progress, done, or canceled.
Interrupt an in-progress task.
sabbatical task preempt IDStops the current agent execution and assigns the task to the user. The running run is marked as preempted.
Mark a task as completed.
sabbatical task done IDThe task must be open or failed and assigned to user.
Reopen a completed or failed task.
sabbatical task reopen IDSets the task back to open with assignee='user'.
Retry a failed or done task by requeuing it for agent execution.
sabbatical task retry ID [--assign AGENT]| Option | Description |
|---|---|
--assign |
Agent to assign. Defaults to the agent from the most recent run. |
Cancel a task. This is irreversible.
sabbatical task cancel IDIf the task is in_progress, the running execution is stopped. The task enters the canceled state permanently.
Run inspection commands.
List all runs for a specific task.
sabbatical run list --task IDOutput: Table with columns: Run ID, Agent, Model, Status, Duration (s), Cost ($).
Display full execution details of a run.
sabbatical run view ID [--full]| Option | Default | Description |
|---|---|---|
--full |
False |
Show full untruncated tool outputs. By default, outputs are truncated to 500 characters. |
Output: Run ID, task, agent, organization, status, token consumption, cost, and all execution steps (LLM reasoning, tool calls with arguments and outputs, final output).