Tasks
ConceptualObjectives, capabilities, budgets and completion criteria.
A task is the contract between caller and runtime. It states what outcome is wanted, what the agent is allowed to do, how much it may spend, and how completion will be judged.
Task object#
Fields
objectivestringrequired- The goal in natural language. State outcomes, not procedures.
capabilitiesstring[]- Requested capability scopes, intersected with key and workspace policy.
budgetobject- Limits:
steps,wallClockSeconds,toolCalls,usd. Exceeding a budget suspends rather than truncates silently. completion.criteriastring[]- Human-readable conditions evaluated by the verifier before the task may close.
approvals.requiredstring[]- Effect names that must be approved by a human before dispatch.
attachmentsAttachment[]- Files, documents or datasets available to the run.
contextobject- Structured facts injected into project memory for this task only.
scheduleobject- Optional recurrence or delayed start. See Background Execution.
webhookUrlstring- Destination for lifecycle callbacks. See Webhooks.
Writing good objectives#
Status values#
const task = await pimsy.tasks.create({
objective: class="tok-str">"Audit our public API docs against the live OpenAPI spec and file issues for every mismatch.",
capabilities: [class="tok-str">"research.web", class="tok-str">"files.read", class="tok-str">"connector.github"],
budget: { steps: class="tok-num">80, wallClockSeconds: class="tok-num">2700, toolCalls: class="tok-num">200 },
approvals: { required: [class="tok-str">"github.issue.create"] },
completion: {
criteria: [
class="tok-str">"Every endpoint in the spec is checked",
class="tok-str">"Each reported mismatch cites the spec path and doc URL",
class="tok-str">"No duplicate issues filed"
]
},
webhookUrl: class="tok-str">"https://ops.example.com/hooks/pimsy"
});Last updated 2026-09-12

