Sidekick Workflows & Examples
Quick Setup
Section titled “Quick Setup”- Validate that the pack is available:
-
Initialize workspace-local storage:
-
Confirm the pack state:
Smoke Flow
Section titled “Smoke Flow”Create, update, and cancel a task
Section titled “Create, update, and cancel a task”Use dry_run first when you want to preview a destructive task transition without persistence.
Store, update, and recall workspace memory
Section titled “Store, update, and recall workspace memory”Create, stop, and inspect a plan-only routine
Section titled “Create, stop, and inspect a plan-only routine”routine:run returns the ordered plan. It does not execute the steps.
Use routine:update with enabled: false when a chat client needs to stop a routine without deleting it.
Discover channel state
Section titled “Discover channel state”channel:list returns local channel records with stable metadata such as message_count and
last_message_at.
Dry Run Pattern
Section titled “Dry Run Pattern”Write-capable and destructive tools support dry_run. Use it when you want validation and preview
without persistence:
The response should include dry_run: true, and task:list should not show a persisted task.
Approval-Gated Destructive Flows
Section titled “Approval-Gated Destructive Flows”When Sidekick runs through the kernel runtime, these tools are paused by policy evaluation until the host resolves approval:
task:cancelmemory:forgetchannel:deleteroutine:delete
Expect the first real execution attempt to return APPROVAL_REQUIRED. After approval resolution,
the tool call proceeds and the audit trail records the final delete or cancel transition.
Export and Handoff
Section titled “Export and Handoff”Use export when you need a full snapshot of Sidekick-managed state for debugging, review, or handoff.