Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Autopilots
An autopilot is not an agent. It is a rule that dispatches work to an agent, or to a squad's leader agent.
Core model
The chain is: trigger fires (schedule, webhook, or manual) → an autopilot
run is recorded → execution_mode decides the output → assignee readiness check
→ issue/task execution → run status sync.
Webhooks have a durable admission step in front: HTTP ingress stores a queued
webhook delivery, synchronously creates or reuses its idempotent run, and
returns 200 with status=accepted|skipped plus run_id; a leased worker then
resumes accepted runs and owns recoverable issue/task dispatch.
Execution modes:
create_issuecreates a Multica issue, making the run visible as issue state.run_onlycreates an agent task directly. No issue is created; any durable report location has to come from other task context or instructions.
issue-title-template only supports {{date}}. Do not invent {{trigger_id}},
{{branch}}, or other variables.
CLI
multica autopilot list --output json
multica autopilot get <autopilot-id> --output json
multica autopilot create --title "<title>" --description "<task prompt>" --agent <agent-name-or-id> --mode create_issue|run_only --output json
multica autopilot create --title "<title>" --description "<task prompt>" --squad <squad-name-or-id> --mode create_issue|run_only --output json
multica autopilot update <autopilot-id> --squad <squad-name-or-id> --output json
multica autopilot update <autopilot-id> --status active|paused --output json
multica autopilot runs <autopilot-id> --output json
multica autopilot deliveries <autopilot-id> --output json
multica autopilot trigger-add <autopilot-id> --kind schedule --cron "0 9 * * *" --timezone Asia/Shanghai --output json
multica autopilot trigger-add <autopilot-id> --kind webhook --label "ci" --output json
multica autopilot trigger-add <autopilot-id> --kind webhook --event-filters-file ./filters.json --output json
multica autopilot trigger-update <autopilot-id> <trigger-id> --event-filters-file ./filters.json --output json
multica autopilot trigger <autopilot-id> --output json
multica autopilot trigger-rotate-url <autopilot-id> <trigger-id> --yes --output json
The assignee flags --agent, --squad, and --squad-id are mutually exclusive,
and create requires exactly one of them.
On update, any of them retargets the autopilot (--agent moves a squad
autopilot back to a single agent); leave them all out to keep the current
assignee.
A CLI that answers unknown flag: --squad predates squad assignees: assign the
squad in the web app, or ask the user to update the CLI.
Do not run trigger, delete, trigger-delete, or trigger-rotate-url to
test — those are real side effects. Use trigger only when the user explicitly
asks for a manual run, and trigger-rotate-url only when rotating a webhook
URL; the old URL stops being valid immediately.
trigger exits non-zero when the run did not start. Only issue_created and
running mean work was dispatched; a skipped run — admission refused, runtime
offline, quota exhausted, a duplicate already in flight — dispatched nothing, and
its failure_reason says which. Do not report a manual run as done without
seeing one of those two statuses.
The default multica autopilot list table includes LAST_STATUS. Treat a
healthy-looking STATUS=active row with LAST_STATUS=failed as a failing
autopilot; inspect multica autopilot runs <id> --output json for the failure
reason.
A webhook trigger accepts every event until it has event filters.
--event-filters-file takes a JSON array of rows; a delivery is accepted when
any row matches. A row matches when event equals the event name, actions
(omit for any action) contains the action, and every one of its optional
conditions holds on the payload:
[
{
"event": "pull_request",
"actions": ["opened", "synchronize"],
"conditions": [
{ "path": "pull_request.draft", "op": "equals", "value": false },
{ "path": "pull_request.labels.*.name", "op": "equals", "value": "needs-review" },
{ "path": "pull_request.base.ref", "op": "in", "values": ["main", "release"] }
]
}
]
path is dot-separated; a number indexes an array and * matches any element.
op is equals, not_equals, contains (text), in (takes values), or
exists (takes no value; a JSON null counts as absent); ignore_case applies to text. Values are compared
with their JSON type, so "false" does not match false. A missing path never
matches. A row holds at most 20 conditions. trigger-update without a filter
flag keeps the current filters; --clear-event-filters removes them.
A schedule trigger without --timezone runs in UTC. Name the zone whenever
a human confirmed a wall-clock time, or they will confirm a morning job and
receive an afternoon one.
autopilot get redacts webhook_token, webhook_path, and webhook_url by
default while reporting whether a token exists and its non-sensitive hint. Only
add --show-secrets when the user explicitly asks to retrieve the live webhook
credential; the command warns on stderr. Do not paste webhook tokens or signing
material into comments, logs, docs, or PRs.
Debugging "why didn't it run"
multica autopilot get <id> --output json— status, mode, assignee, triggers.multica autopilot runs <id> --output json— run status and failure reason.- If assigned to a squad, inspect the squad:
multica squad get <squad-id> --output json; execution goes to the leader. - Inspect the target agent/runtime:
multica agent get <agent-id> --output jsonandmultica runtime list --output json. - For webhooks, inspect deliveries with
multica autopilot deliveries <id> --output json:queuedmeans the worker has not completed dispatch;failedcarries the worker error. A provider retry with the sameX-GitHub-Delivery/Idempotency-Keyreuses the original delivery. Anignoreddelivery created no run, sorunsshows nothing for it.trigger_disabled,autopilot_paused, andautopilot_archivedare recorded in itserror;quota_exceeded,event_filtered, andpayload_filteredin itsreason_code.event_filteredmeans no row matched the event or action, andpayload_filteredmeans a row matched but one of itsconditionsfailed —payload_condition_failurenames that condition and the payload value it saw. - For
create_issue, inspect the created issue if the run records one.
Access
Reads (list / get / runs / deliveries) are open to any workspace member, but
get redacts the webhook token for callers without write access — the token
alone can trigger the autopilot.
Editing, deleting, triggering, replaying deliveries, and managing
triggers/webhook secrets require the autopilot's creator, a workspace
owner/admin, or an explicit collaborator. Granting or revoking a collaborator is
narrower still: creator or workspace owner/admin only, so a granted collaborator
keeps write/execute but cannot re-grant or revoke peers. get stamps two
per-caller booleans — can_write and the narrower can_manage_access — read
those rather than inferring from role.
When YOU do any of this — trigger, create, update, delete, the
trigger-* commands, or a webhook-secret or collaborator change over the API —
the request is authorized as the human who asked you to (your run's originator),
not as the owner of the machine you execute on, whose grants are not consulted.
So the person who gave you the instruction needs that write access, and you
cannot change or trigger an autopilot they could not themselves. The same human
is stamped into what you write: an autopilot you create is theirs, and a trigger
you add fires as them for as long as it exists.
A run that carries no originator cannot write here at all: the server
answers 403 naming the missing originator rather than failing quietly, and the
CLI prints that reason instead of a generic permission error. Reads are
unaffected — except that get redacts the webhook token unless the human you
act for may write, since holding that token is equivalent to being able to
trigger.
Side effects
These mutate durable state or start work: create, update, delete, trigger
add/update/delete/rotate, trigger, and webhook calls to
/api/webhooks/autopilots/{token}.