Loading…
Loading…
Features · Scale · Tasks and background work
For work with many parts the model keeps a task list, changed one task at a time, where a task can block others. Commands and sub-agents can run in the background while it carries on, and it is told when they finish.
from shipit_agent.sdk import AgentOptions, querytasks = ["TaskCreate", "TaskUpdate", "TaskGet", "TaskList"]options = AgentOptions( model="claude-sonnet-5-5", tools=["Read", "Edit", *tasks], allowed_tools=["Edit", *tasks],
Plan
task_create, one per part
Start
bash(background=True), monitor
Carry on
read, edit, answer
Told when done
task_notification
Watch one run, a moment at a time.
Each step lights up as the lines it produces appear. Pause it, or step through it yourself.
0 of 6 · Plan
Plan
task_create, one per part
Start
bash(background=True), monitor
Carry on
read, edit, answer
Told when done
task_notification
The code is a checked example from the docs; the output is an example of what it prints.
from shipit_agent.sdk import AgentOptions, query
tasks = ["TaskCreate", "TaskUpdate", "TaskGet", "TaskList"]
options = AgentOptions(
model="claude-sonnet-5-5",
tools=["Read", "Edit", *tasks],
allowed_tools=["Edit", *tasks],
)
async for message in query(prompt="Plan the billing migration as tasks, then start the first one.", options=options):
print(message)4 more ways to use it
Each example is from the docs and checked against the library.
from shipit_agent.sdk import AgentOptions, query
tasks = ["TaskCreate", "TaskUpdate", "TaskGet", "TaskList"]
options = AgentOptions(model="claude-sonnet-5-5", tools=["Read", "Edit", *tasks], allowed_tools=["Edit", *tasks])
async for message in query(prompt="Plan the billing migration as tasks, then start the first one.", options=options):
print(message)A real task list
Create, update, get and list. Tasks can block one another, and ids are never reused.
Watch a command
monitor sends each line a command prints to a log the model reads, with a deadline.
Background jobs
A command or a sub-agent runs while the agent keeps working, and reports when it ends.
Stop by id
task_stop, or client.stop_task() from your code, ends any of them.
| Parameter | Default | What it does |
|---|---|---|
| tools | empty | The tools the agent may call. |
| parallel_tool_execution | True | Run a response's tool calls concurrently when every one is read-only. Writes and unknown tools always run one at a time, in order. |
| max_tool_concurrency | None | None means no cap; otherwise bound concurrent local tool calls per turn. |