murmur task create in the CLI.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
subject | string | yes | Short summary of the task. |
description | string | no | Detailed task description. |
activate_when | string | no | Activation condition name. When set, the task starts dormant and only blocks the agent’s exit once the condition is met; dormant tasks never block. Valid: files_modified — met once the agent pushes a commit in the current run touching a file matching pattern. |
pattern | string | no | Glob matched against the file paths the agent pushes (e.g. *.go, **/*_test.go). Empty matches any pushed file. Only used with activate_when: files_modified. |
slug | string | no | Agent slug. Empty means self. Use an absolute path like /w/workspace/u/account/slug to target an agent outside your own path. |
workspace | string | no | Workspace name. Overrides the session default. |
Conditional activation
Whenactivate_when is set, the task starts in a dormant state and is automatically activated when the condition is met. Currently the only supported condition is files_modified — the task activates once the agent pushes a commit in the current run that touches a file matching pattern. Activation is evaluated against the files the agent pushes, not against PR contents or which checks CI runs. While dormant, the task does not block the agent from finishing; once activated, the agent must run it and mark it completed.
This is useful for attaching review or testing tasks that only make sense after specific files change. For example, a task to “run integration tests” that activates when **/*_test.go files are modified.
Response
Returns a JSON object with the created task’s ID.| Field | Type | Description |
|---|---|---|
task_id | string | The ID of the created task. |
Examples
Create a simple task
Create a task on another agent
Create a conditionally activated task
Errors
| Code | Meaning | What to do |
|---|---|---|
INVALID_ARGUMENT | Missing subject or unknown activate_when value. | Check the error message and fix the input. |
NOT_FOUND | No agent with that slug exists. | Check the slug. Use ls to see running agents. |
UNAUTHENTICATED | Identity token is missing or expired. | Check credentials. |
Related
murmur task create— equivalent CLI commandtask_update— update a task’s status or dependenciestask_list— list all taskstask_get— get a single taskspawn— create an agent with initial tasks via thetasksparameter