task Power

Manage personal todos, agent work, inbox items, and schedules

task captures work, runs agents, and schedules recurring occurrences in one task model. TaskPower owns domain behavior without a renderer. The Desktop app provides native Inbox, Todo, and Calendar; agents can create and handle the same tasks from chat.

Task identity

Each task has a stable task_id. Titles are editable and may repeat. create returns the ID; list includes IDs and workflow properties. Prefer IDs for subsequent operations.

Existing actions use a selector named title. Pass a stable task ID or a unique title. Ambiguous titles fail explicitly.

Actions

ActionPurpose
generateUse an internal model to generate a task, validate and save it, and directly apply its arrangement. Pass task_id to revise or retry.
createValidate and save structured task fields without an internal model or another confirmation.
listList the current agent's execution tasks and personal todos.
updateEdit the title, instructions, or schedule.
runStart agent/script execution; optionally retry a recurring occurrence_id.
history / run_detailRead execution records and deliverables.
inboxRead unorganized work and unresolved items without resolving them.
workOrganize, start, complete, reopen, accept, request changes, or handle a specific item.
status / enable / disableControl scheduling independently of work completion.
deleteDelete work and its history; active executions prevent deletion.

For natural language, call generate, for example { "text": "Prepare Friday's demo" }. Desktop and Agent generation share this action. Successful generation directly saves and applies the arrangement. Recording work does not start it; explicit immediate-execution requests start work, while timed or recurring work waits for its trigger. Generation failures preserve task_id; reuse a client submission_id when retrying a new submission. Prefer create when structured fields are already known; manual work starts through run only when requested. One-time triggers must include a timezone and be in the future. The originating session and delivery target are captured automatically.

Create a personal todo:

{ "title": "Prepare Friday's demo", "kind": "user" }

Create scheduled agent work:

{
  "title": "Daily report",
  "kind": "agent",
  "when": "0 9 * * *",
  "description": "Summarize daily progress",
  "body": "Read project records and deliver progress, blockers, and next steps. The final reply must be the report body itself."
}

Accept a result using the task and original Inbox item IDs:

{ "task_id": "task_example", "command": "accept", "item_id": "review:example" }

Accept only after explicit user confirmation. Agents should not approve their own deliverables.

Work and execution

Personal work (kind=user) needs no Agent or Workspace. Scheduled personal work creates a reminder. Agent/script work uses its configured execution targets. One-time agent work awaits human acceptance; recurring work completes each successful occurrence by default, with optional per-occurrence acceptance in task details.

when supports @manual, time:<ISO datetime with timezone>, and Cron. Use 0 20 * * * or cron:0 20 * * * for a daily trigger at 20

in the task timezone; the cron: prefix is removed when saved. Enter stars as * without backslash escaping. Due dates do not trigger execution. Each recurring occurrence has an independent completion record.

Agent tasks execute in independent Sessions. The executor acts as a Work Main and can use session.start to dispatch multiple Work Children. Children and simulated reviewers cannot dispatch further work. The execution Session keeps origin.type = "task", which is separate from task configuration kind=user/agent/script. The Main incorporates Child results within its original execution and can receive follow-up input and pass it to Children while waiting.

A Child's public question notifies its Main while the pending state remains in the Child's original interaction. The Main can ask the user and relay the actual answer. Approvals and secret questions use only their original trusted entry points; the Main cannot approve or relay private answers. The Task page does not provide a general reply entry point for questions in active executions.

Automatic scheduling requires a running City. Missed one-time plans appear in Inbox; missed offline recurring triggers are not replayed. Active tasks cannot yet be edited or cancelled from the Task page. Stopping, failing, or closing a Main winds down its Children; late results cannot wake the original execution.

Agent work created in chat can return results to its original Session. Results can still be queued for asynchronous handling after the original Chat Turn has finished or been stopped. Stopping Chat's current reply does not cancel the background Main. Changing execution targets does not change the delivery destination. Tasks created without a Session retain results in execution history. Explicitly instruct the executing agent to use Messenger when external delivery is required.

Host integration

In browsers and Electron renderers, import task_status_label from @downcity/powers/task/presentation to display task status consistently. This entry contains only presentation functions and types, without Node.js scheduling dependencies. Import TaskPower from @downcity/powers/task in Node.js or the Electron main process; use import type for frontend type references to that entry.

Read Task Power for workspace and scheduling guidance.