Docs Autonomous Coder

Autonomous Coder

Autonomous mission controls require Agent work on a self-hosted installation. If that licence lapses, you can still read previously retained mission history. Interactive coding sessions remain available.

The Autonomous Coder turns one plain-language goal into working, deployed code. You describe what to build and point at a git repository — Mockarty decomposes the goal into sub-tasks, dispatches them to a fleet of coder runners, reviews every result with its own acceptance gate, reruns red work until it is green, and (optionally) deploys the accepted code to a target you configured. A human stays in the loop exactly where it matters: clarifying questions, and the deploy approval.

Open Autonomous Missions (/ui/missions?view=coder). The unified cockpit shows coder missions together with their runner capacity, job queue, evidence, economics, knowledge and per-component model routing.

Autonomous work is available on a self-hosted server with an active Enterprise licence that includes Agent Work (A2A). Deploy approval and delivery configuration also require the workspace owner or administrator role. Previously saved sessions remain available to authorized readers.

When a coding mission belongs to a tracker task, the coder reads the task’s
acceptance checks and allowed write paths together before dispatch. If the
contract cannot be read, or if a managed run’s contract was deleted, restore
the intended contract before retrying. Standalone goals and manual tasks
without a contract can still use advisory acceptance.

Reading files and changes

In a session’s file list, the file type icon, name and directory help distinguish
files with the same name. Expand a file to read its recorded changes and related
links. Added and removed lines keep their + and − signs as well as colour;
very large patches use a plain text view to keep scrolling responsive. A
truncation notice means the saved preview is incomplete: use the provided
repository or merge-request link for the rest. Previewing a file does not run it.

In the local Harness chat, the changed-files card groups changes by message. Hover over a file for a short patch, or select it for a resizable comparison with before and after line numbers. A path may be reported before its patch is available. If a Task tool invocation has an Open subagent action, it opens the latest visible messages and expandable tool calls from that child. The most recent saved child histories can also be reopened from the parent chat after restarting Desktop. While a child is running, its window offers a Stop button that stops only that child; the parent session remains available. Saved history has no Stop control. Tool details include the recorded input, result and status; they stay separate from the parent conversation. You can use both controls in Desktop and in its local browser view.

A child can show recorded tool calls even when it has not written a reply. If the saved history reaches its display or storage limit, the transcript indicates that some details are omitted.

When a subagent can accept a new message, use the paperclip in its composer to
attach a file. In the Desktop window, this opens the system file picker. The
attachment is sent to that subagent when you send the message. PNG, JPEG, GIF,
WebP, PDF and supported text files can be attached, up to 16 MiB per file.

In the child composer, type /model or /effort to set its next message.
In a browsable local workspace, type @ followed by part of a file name
to insert its relative path. Select a folder to keep browsing inside it.

While a local session is working, the birds circle beside the progress text and regroup into the Mockarty logo.

Use Find in chat in the metadata bar to search the loaded conversation. Enter and Shift+Enter navigate matches. Escape closes search.

Desktop lists sessions by recent activity. To see your folders, select Projects in the list options. Connecting a server adds its sessions to the same list. The location icon identifies where a session runs.

For a text question in a local session, press Enter in the answer field or select Answer. The answer stays locked while Desktop checks its delivery.

The local browser view uses the same conversation and composer as the Desktop window. Select a registered project, model profile, access mode and reasoning effort before starting. Sending another message continues the selected conversation; opening history does not send a message. The browser selects from folders already registered on that computer; use the Desktop window to add a folder. Actions unavailable through the current connection are not offered. This local browser connection does not grant access to a different workspace.

For a linked Git worktree, add the main repository folder and the linked worktree folder in Desktop. Select the worktree when starting the session. Keep the main repository registered to continue that session later. If Desktop refuses access, the unsent message remains available to reuse.

In a narrow window, the new-session controls can wrap to a second row so the send button stays visible and clickable.

The context indicator describes the measurement supplied by the session’s engine.
Open its details to see the available figures. An unavailable reading is not zero;
a recorded last-request reading is not a live estimate of the next request.

When the session records token usage, the conversation header shows the total,
its input and output breakdown, and the cache hit rate when measured. The
usage total covers recorded activity. The context indicator shows one request.

Context uses a segmented, stationary ring. During active processing, a small
flock animation gathers into the Mockarty mark below the conversation. It is
an activity indicator, not an estimate of completion time.

When offered, Settings beside Send shows the options for the selected
execution environment. The model recorded by another device can be shown
without offering a model change.

A completion refused because the replay history is full does not reach the
model. When Desktop reports its own request history is full, restart Desktop,
reopen the saved conversation and send a new message. When a self-hosted
server or Cloud reports its request history is full, wait for capacity before
sending a new message. REST returns 409 coding_model_capacity_exhausted. A repeated
operation that the server still holds returns 409 coding_model_operation_repeated.

Resuming a local Harness goal

A paused goal can resume while it has room within its selected limits. Resume
is unavailable once the token or iteration limit is reached, or if the goal has a
token budget and usage is unavailable. The goal details explain the reason.
If a turn is still running, wait for it to finish. If usage remains unavailable,
archive the goal to keep its conversation and start a new goal.
REST clients and the Harness goal control tool receive a conflict if they try to
resume a goal blocked by these limits.

Mockarty tools in a runner conversation

When the runner is ready, open the conversation and select Allow Mockarty
changes for this message
if the message needs to create a mock, save a test
request, run an API collection, or start a performance test. The permission
applies to that message in the selected Space and respects your current role.
The next message starts in read mode. A retry of the same message retains the
original choice. If the checkbox is unavailable, the conversation does not
accept this setting.

For a REST client continuing an existing Git or transferred Desktop conversation,
send the optional boolean allowMockartyWrites with commandId, prompt, and
leaseGeneration in POST /api/v1/namespaces/{namespace}/coding-sessions/{sessionId}/hosted.
The acknowledgement echoes allowMockartyWrites: true when granted. Use the
same choice when retrying the same command. A change requires a new command ID.

Waiting for a runner

Jobs wait in the queue when all compatible runners are busy. A runner with one
job slot takes one job at a time; another compatible runner can take waiting work
as soon as it has capacity. Jobs requiring a different engine, label or testing
toolchain do not block compatible jobs further down the queue.

For push runners, registration and a completed job wake delivery. Heartbeats
also recover waiting work after an admin restart or an exhausted dispatch window;
this recovery is eventual, not an instantaneous scheduling guarantee. A refusing
runner does not prevent another compatible runner from receiving work. An
ambiguous delivery is not treated as proof that execution never started.

If registration omits a positive job-slot limit, the runner receives one slot. A heartbeat without a new capability advertisement keeps its previous engines, labels and job-slot limit. A runner ID already in use by another namespace cannot be claimed by a concurrent registration.

For metered jobs, heartbeat renewal does not extend the execution deadline accepted when the job was leased.

Job slots limit jobs, not the coding engine’s internal sub-agents.

For a supported native OpenCode session, at most 64 child session identities are tracked over the root session’s lifetime, including children that have finished. Reaching this limit stops the session in a controlled way; it does not silently recycle an identity. Already measured usage remains visible, while the total is marked incomplete. This is not a limit on the number of provider calls or tokens.

Check capacity

The Capacity tab shows runners and the current job queue. For scripts, the
small capacity response gives runnerCount, onlineRunners, slots, busy
and queued for the selected namespace. It can be up to two seconds old;
slots counts online runners. A missing response means capacity is unknown.

curl -H "Authorization: Bearer $MOCKARTY_API_TOKEN" \
  "$MOCKARTY/api/v1/coder/capacity?namespace=$NAMESPACE"

When you need recent job details, use /api/v1/coder/jobs?limit=50 (1–100).
Omitting limit preserves the complete existing list response.

Fair share of a shared runner pool

On installations that run a shared coder fleet — several Spaces using the same runners — an administrator can enable pool governance with MOCKARTY_CODER_POOL_ENABLED=true on the admin node. The pool then gives every Space its own share: a busy Space cannot occupy the whole fleet while another Space has queued work, and a Space that has waited too long is served before more work of a busy neighbour.

Startup defaults: MOCKARTY_CODER_POOL_PLATFORM_MAX_CONCURRENT (total jobs across all Spaces; 0 or empty means no shared ceiling), MOCKARTY_CODER_POOL_SPACE_MAX_CONCURRENT (concurrent jobs per Space, default 8), MOCKARTY_CODER_POOL_SPACE_MAX_QUEUED (queued jobs per Space, default 200), MOCKARTY_CODER_POOL_QUEUE_WAIT (how long a queued job may wait before it fails, default 2h; a negative duration disables the bound) and MOCKARTY_CODER_POOL_STARVATION_AFTER (when a Space with no running job counts as waiting too long, default 2m).

Governance does not change the runner protocol. A refused enqueue answers 429 with code pool_quota_exceeded and a Retry-After header; the pool object names the reason (queue_bound, usage_budget_exhausted) and the queue length. A job that waited past the bound finishes as failed with poolCode: "pool_capacity_exhausted" in its report and never starts. A pull runner whose Space is held back still receives the ordinary empty answer (204), and the reason is visible in the X-Coder-Pool-Code, X-Coder-Pool-Reason and Retry-After headers, so it keeps its normal polling pace.

Read the current split with the pool status endpoint. A namespace-scoped token sees its own Space; an installation administrator may ask for all Spaces with all=1:

curl -H "Authorization: Bearer $MOCKARTY_API_TOKEN" \
  "$MOCKARTY/api/v1/coder/pool/status?namespace=$NAMESPACE"

The response lists, per Space, active, queued, entitlement, canDispatch, throttleReason, oldestWaitSeconds, the estimative etaSeconds, the Space’s quota, and its durable budget headroom (usage) when the installation has one. A queued job also shows its queuePosition and the estimative etaSeconds in GET /api/v1/coder/jobs/{jobId}.

An installation administrator can change one Space’s limits without a restart: PUT /api/v1/coder/pool/spaces/{namespace} with maxConcurrentJobs, maxQueuedJobs, weight, priority and queueWaitSeconds (0 keeps the installation default, a negative queueWaitSeconds means an explicit unbounded wait). DELETE on the same path removes the override and returns the Space to the defaults. Both answer with the effective contract, and the change appears in the pool status immediately.

The pool panel (Administration → Runners)

Open Administration → Runners to see the shared pool. Installation administrators and support can read the installation-wide view from an unscoped session. A credential scoped to a Space can read that Space’s rows. Only an installation administrator can change a Space’s quota. The panel refreshes every 20 seconds.

  • Does the fleet need more capacity? When the platform ceiling is almost fully used, the queue is past its reporting threshold, or work is queued while no runner serves the pool at all, the panel says so and names the action that fixes it: connect a runner, attach another runner, or raise MOCKARTY_CODER_POOL_PLATFORM_MAX_CONCURRENT. The recommendation is derived from the counters shown beside it (activeTotal, queuedTotal, maxConcurrent, utilizationPercent), so it never suggests a change the numbers do not support. The same verdict is machine-readable as the scale object of GET /api/v1/coder/pool/status; it is advisory only and starts nothing by itself.
  • Who is using the fleet? Each row shows one Space’s running and queued jobs, its fair-share entitlement, the effective limits and the last typed refusal. Limits opens a dialog for concurrent jobs, queued jobs, weight, priority and the bounded queue wait; Use defaults drops the override. Values are checked before they are sent, a refusal from the server is shown with its typed code, and the reset asks for confirmation. On a phone the panel is read-only — the same information is readable, but tenant-wide limits cannot be changed from a narrow screen.
  • How full are the seats? Read-only meters show how many human seats, Spaces and per-module seat pools the licence covers and how close each one is to its ceiling, with an explicit warning when a pool is at or near it. This section only reports: nothing there charges, reserves or changes a seat.

When a Space reaches its own pool limit (its queue bound or its usage budget), the installation administrators get a notification naming the Space and opening this panel at that Space. Fair-share contention is not announced that way — it is the capacity advisory above, which is exactly what it is for.

Starting a mission

Click New mission and fill in:

  • Mission goal — plain language, e.g. “Add a REST endpoint /health that returns build info, with tests”.
  • Target git repository URL — the repo the coder clones and works in.
  • Engine (optional) — the coding engine the runner uses (opencode is the default).

For a goal-first repository mission, two things must exist:

  • One enabled LLM profile for the namespace — the namespace default, or a
    profile pinned to the coder.decompose component. A model decomposes the
    goal into sub-tasks. If none resolves, the start request answers 503 with
    code no_profile, field: "llmProfile" and a remediation naming the
    create-profile action.
  • One admitted repository — repoUrl must exactly equal a URL in
    repos[] of the namespace’s Delivery Config (an absolute local path is
    accepted). The refusal is typed: 400 with code delivery_config_missing
    or repository_not_admitted, field: "repoUrl" and the refused URL.
    CI and a deploy target are optional: a code-only mission needs no CI
    credential and no targets[].

A running task cannot be queued for another attempt directly. Open the task and cancel its current execution before requesting a new attempt; retry is not a substitute for cancellation. For work in a connected folder, retry keeps the original computer, folder and permission selection. To choose a different folder or a newly granted permission, start a new task explicitly.

Work in a connected folder without Git

On the mobile Coder start form, choose a registered folder together with its computer instead of a repository. The computer must be connected, signed in to your account and have local coding enabled. Add the folder and grant access in Desktop first. Git is optional: this mode does not clone, initialise a repository, create a commit, push or deploy. Model usage can still be charged.

In the server workspace, the computer icon identifies a conversation running on a connected Desktop. The running indicator clears when the Desktop is ready for the next message. On a narrow screen, Sessions opens the list above the conversation without moving the message field. Pick a session or click outside the list to close it. The search icon helps find a session. Starting a new session returns focus to the message field.

The conversation shows who wrote each message and its time when available. Use the copy icon on a message to copy its text. The copy action appears on streamed replies once the reply is ready.

On a narrow browser window, Sessions opens the session list over the conversation. Use Search to find a session, then choose its row to return to the conversation.

The dedicated mobile Coder workspace opens a full conversation when you choose a session. The session title is in the toolbar, with the connected computer or runner identified below it. Completed replies display Markdown formatting. The message field stays in place while new events arrive.

The folder list is private to its owner. REST clients read GET /api/v1/coder/runners?namespace=SPACE and select an available entry from capabilities.localProjects with state active. Submit its exact authority object as localProject, the runner ID as runnerId, a goal, and optionally accessLevel and reasoningEffort to POST /api/v1/coder/missions. repoUrl and a decomposition profile are not required for this selected-folder mode. If accessLevel is omitted for a selected folder, it defaults to edit: shell commands still require confirmation on the owning computer. Explicit full remains available; repository-mode defaults do not change. A previously accepted request keeps its recorded policy when restored. Do not construct the authority object from a folder path or reuse it after changing the computer, account, Space or folder permission. A stale selection returns native_project_unavailable; refresh the list and make a new explicit selection. An unconfirmed previous request retains its original identity.

This request works only in the selected local folder. It cannot mix server tasks, deployment or server-only attached materials into that run. A task plan, if supplied, must name the same folder and use executor: "local_session". Local folder execution requires the original authenticated requester and the computer’s current permission; membership in the same server space does not grant access to somebody else’s folder. Folder details and its private Coder timeline are visible only to that requester. Membership in the same server space does not make a private folder task visible to other users.

A native client preparing confirmation on the owning computer can read GET /api/v1/coder/native-control-context?namespace=SPACE from its authenticated, trusted admin-server connection. The response contains only actorId, namespace and the opaque namespaceIncarnation. It is read-only metadata, not permission to start work or answer a confirmation. Keep these exact values with the original selection; if the space is replaced or access changes, select it again explicitly. Wildcards and extra query parameters are refused. This endpoint does not accept a SaaS runtime connection as a substitute for an admin-server session.

The curated SDK and CLI repository operations keep their existing contract. Native folder selection remains an interactive client/REST workflow; it is not added as an automatic CI or agent operation.

Unconfirmed requests in the coding workspace

On the coding page (/ui/harness?view=missions), an unconfirmed start or follow-up instruction
stays attached to the original workspace and account across page reloads.
Elapsed time does not turn an unknown result into a failed request. Use the
page’s check action to reconcile the previous request; do not create a new one
merely because its answer was lost. A later permission or rate-limit refusal
while checking does not prove the first attempt was never accepted.

An error reported during startup can also follow creation of the session.
The page checks for that session before offering a new request. An empty or
unavailable check keeps the original request pending; it does not start more work.

The page must be able to save and read its request record before submitting an
attempt. If browser site storage is unavailable, the attempt is not sent.
Restore storage access and check the existing session before retrying. Avoid
clearing site data just to unlock a retry: the earlier work may already exist.
Changing workspace, account or page does not transfer the pending request to
the new view; return to its original workspace and account to reconcile it.

Over MCP the same is one call:

{
  "tool": "coder_mission_start",
  "arguments": {
    "goal": "Add a REST endpoint /health that returns build info, with tests",
    "repoUrl": "https://git.example.com/team/app.git",
    "issueKey": "APP-42"
  }
}

issueKey ties the mission to a tracker issue: commit messages start with the key (for example, APP-42: ...), the issue panel links the mission, and the efficiency dashboard compares the issue’s estimate with the mission’s actual runtime. Mockarty does not add an auto-close verb to each sub-task commit.

A closing keyword such as fixes #APP-42 can still close a regular tracker
issue. Once Mockarty has admitted a managed run for the issue, the commit is
linked as development evidence and the managed workflow retains control of
acceptance and review. A verified run moves the issue to review for closing
through your tracker workflow.

The mission lifecycle

A mission moves through five phases, shown as a flow strip in the mission control panel:

Analyze → Plan → Build → Accept → Deploy

  • Analyze (optional, analyze: true) — the analyst produces requirements, an architecture decision record and a design document, publishes them to the wiki, files tracker issues, and authors test cases from the functional requirements. If the goal is ambiguous, the mission pauses with clarifying questions.
  • Plan — the goal (or the design) is decomposed into ordered sub-tasks.
  • Build — sub-tasks are dispatched to coder runners; each returns a branch and a structured report.
  • Accept — Mockarty starts a separate testing mission and executes the requested Mockarty functional, browser, load, fuzz, security, chaos or contract engines. A green receipt is accepted only for the exact namespace, mission, job, attempt, branch and commit, and only when every requested engine returned its own durable evidence artifact. The coder’s report and the optional model reviewer remain advice. A red independent verdict sends the sub-task back with concrete facts; this loop is bounded by the per-task attempt cap. If the independent route is unavailable, the result is kept as unverified and cannot authorize an automatic deploy.
  • Merge request — once every sub-task is accepted, Mockarty opens the merge (or pull) request for the branch it pushed and records its number, target, exact head and mergeability. A conflict or a changed head blocks the merge. The link and state appear on the mission. With an auto merge guardrail, Mockarty may merge only a conflict-free request whose head still equals the independently accepted commit and whose mission has no unverified jobs; the default remains human approval. Set openMr: "off" when your own automation owns requests. Re-running a mission never duplicates the same request, while a repaired commit receives a new exact effect identity.
  • Deploy — when a deploy target is set, the accepted code is delivered through SSH (copy artifacts to a host and run them), Compose (upload a docker-compose stack and docker compose up), or a CI pipeline (watch the company’s pipeline on GitLab, GitHub Actions, or Jenkins, and gate success on the run for the exact accepted commit). The immutable artifact is visible as mission.acceptedCommit; Mockarty refuses a mutable branch that no longer points at it. A GitOps target can commit manifests to a repository watched by Argo/Flux, but the current target deliberately remains unverified instead of claiming that the controller reconciled a healthy workload, and rollback remains unavailable until an exact GitOps deploy commit is recorded. A Kubernetes target applies the manifest from the workspace with server-side apply and gates success on kubectl rollout status for the named workload, so its verification is the rollout itself. Use CI with a health URL, SSH/Compose, or Kubernetes when the mission must finish with a verified deployment. Production-tier targets always pause for a human approval.

The execution safeguards apply to the whole mission, including recovery after an admin-node restart. maxAttempts defaults to 5 and accepts values from 1 through 20 per sub-task; invalid negative or larger values are rejected. A mission also has a durable active-time deadline and a mission-wide dispatch ceiling that failover cannot reset. Operator pause time does not consume the active deadline. Explicit human retries receive a fresh active-time window but are themselves bounded; automatic orphan adoption only resumes the remaining durable budget.

Ordinary coding intents

A mission is for a goal that needs decomposition. When the work is already a
small, well-understood patch, use an ordinary coding intent instead: you
declare the issue/specification/test-case link, the repository, the exact base,
the paths the patch may write and the checks that decide success. Mockarty
creates one coder job — it does not ask a model to plan the work.

curl -X POST "$MOCKARTY/api/v1/coder/intents?namespace=default" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "intentKey": "MK-42-rev7",
    "goal": "Make Greet() return exactly \"hello, world\".",
    "repoUrl": "https://git.example.com/shop/api",
    "baseBranch": "main",
    "baseCommit": "0123456789abcdef0123456789abcdef01234567",
    "scope": ["greeting.go"],
    "sources": [{"kind": "issue", "ref": "MK-42"}],
    "issueKey": "MK-42",
    "requiredChecks": [
      {"name": "go test", "args": ["go", "test", "./..."], "timeoutSeconds": 300}
    ]
  }'

Read the result with GET /api/v1/coder/intents/MK-42-rev7?namespace=default
(agents use coder_intent_start / coder_intent_status). The response is one
projection over the native jobs:

  • producer — the coder job that produced the patch, with headCommit and
    tree (the git tree object id of the produced bytes);
  • review — an independent job that re-ran the same checks against the
    exact produced commit. A pass requires the review to report the same tree
    as the producer; the producer’s own check output is never the acceptance
    oracle;
  • artifacts — content-addressed ids for both job reports plus the tree and
    commit;
  • issueKey / testCaseId — the native links the intent was admitted with.

status moves queued → running → reviewing → passed|failed; a canceled child
is reported as canceled with verdict unknown, never as completed. Calling
coder_intent_start again with the same intentKey returns the same jobs, so a
lost response cannot create a second paid job. The repository must be admitted
in the Delivery Config, at least one check is mandatory, and the runner refuses
to publish a commit that changed a path outside scope or that started from a
different baseCommit.

The intent also checks the Delivery Config publication policy. If
push_feature requires approval or is forbidden, it returns
intent_source_denied for repoUrl before creating a producer job. This intent
does not collect publication approvals; the coder:deploy permission alone
does not override that policy.

The mission control panel

Click any mission card (or the expand button) to open its control panel:

  • the phase flow strip with the current phase highlighted;
  • the plan with each sub-task’s live status and attempt count;
  • the timeline — everything the mission did, when, and why;
  • the deploy result with the endpoint link once deployed;
  • the mission’s exact metered consumption: model calls/tokens/cache, runner and tool resources, unpriced events, and the customer amount per currency.

The mission’s Economics tab keeps actual immutable-ledger consumption separate from the caps selected for the run. The page-wide economics summary reports spend, prefix-cache use and budget utilisation only when its accounting storage and roll-up queries are available. During an accounting outage the operational mission counters remain visible, while economics is explicitly marked unavailable; missing measurements are never displayed as zero spend.

Controls available from the panel, depending on state:

Control What it does
Pause / Resume Holds the mission at its next step; in-flight work finishes.
Cancel Uses the common durable Mission cancellation receipt, then stops the exact active Coder execution and queued sub-tasks (confirmation required). A 202 means the command is still reaching its owner or a remote child; it is not a false claim that all work has stopped.
Skip Force-accepts one sub-task. A reason is required and recorded in the timeline and the audit log.
Add sub-tasks Appends follow-up instructions to a live mission; each chains onto the latest pushed branch.
Retry Re-drives a failed, canceled or interrupted mission from its saved plan.
Restart from here Re-drives from a specific sub-task; earlier accepted deliverables are kept.
Reconcile job effect Records whether a sub-task job actually produced a deliverable. applied adopts it and keeps the branch; not_applied cancels the job and unblocks Retry.
Reconcile deployment outcome Records whether an unverified deployment was actually applied. Only not_applied unblocks Retry.

When a retry is refused

If a mission stopped while its deployment outcome could not be verified — the
commit may have been pushed, the pipeline may already be running — Retry and
Restart from here are refused with a message naming the target. Re-driving
would apply that deployment a second time, and Mockarty will not guess what
happened on the other side.

Check the target yourself, then record exactly what happened. If the effect did
not land and retry is safe:

curl -X POST "$MOCKARTY/api/v1/coder/missions/$MISSION_ID/deploy-outcome" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"outcome":"not_applied"}'

Use applied instead when inspection proves that the original deployment did
land. In that case Mockarty settles a failed or interrupted mission as completed
and does not redispatch the deployment. An operator-canceled mission stays
canceled, while still recording that its deployment was applied. The outcome is
mandatory, recorded in the audit log with your name, and an exact repeated
statement is harmless; a contradictory second statement is refused. Only
owners/admins with deployment permission may make this decision. An agent uses
coder_mission_reconcile_deploy with the same explicit outcome. The CLI
equivalent is mockarty coder-delivery missions reconcile-deploy MISSION_ID not_applied.

For a CI pipeline target you do not have to inspect anything yourself: send
{"outcome":"provider"} and Mockarty asks the CI system (GitLab, GitHub or
Jenkins) about the exact pipeline, run or build it recorded when it dispatched
the deployment. A finished successful execution settles the mission as applied
from the provider’s own record; a cancelled or skipped execution settles it as
not_applied. A job that is still running is reported back so you can wait, and
a failed job is deliberately left to you — a failed deploy job may have applied
part of its steps. SSH, Compose, GitOps and Kubernetes targets have no such
record and keep the explicit applied / not_applied statement.

When a sub-task job’s effect is unknown

A mission can also stop because a sub-task job is still leased: a runner may be
executing it, and it may already have pushed a branch. Retry and Restart from
here
are refused in that case, because fresh jobs would publish a second effect
from an unverified one. Inspect the repository, then record what the job did:

curl -X POST "$MOCKARTY/api/v1/coder/missions/$MISSION_ID/jobs/$JOB_ID/reconcile" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"outcome":"not_applied","evidence":"origin has no branch for this job"}'

evidence is mandatory: it is stored with the decision in the timeline and the
audit log. Use applied when the deliverable exists. Mockarty then adopts the
job’s terminal report through the same acceptance gate failover uses; the
published branch is kept, never deleted. applied requires a finished
successful report — a job that is still leased must be canceled or completed
first. Use not_applied when you have proved nothing landed: a queued or leased
job is canceled so it cannot execute later, and Retry / Restart from here become
available again (the decision does not retry the mission by itself).

Both statements require coder:write (owner/admin control, the same permission
as Retry). An exact repeated statement is harmless, and a contradictory second
statement is refused. A finished (failed, canceled, interrupted or completed)
mission can be reconciled: a leased or unknown job is exactly what leaves a
mission at rest, and refusing here would contradict Retry, which sends the
operator to this control. not_applied is refused when the job’s own report
proves a deliverable (pushed:true or a reported branch/commit) — that report
is evidence, and the verdict cannot erase it.

In a multi-node installation the statement is applied by the mission’s owning
node. A request that lands elsewhere is refused with
reconcile_requires_owner_node, whose error names the owner; re-issue it there.
The decision is read from durable storage, so repeating it on a node holding an
out-of-date copy remains harmless.

In a multi-node installation a control action may return the note “the command was queued and will be applied by its owner” — the mission is driven by another node and applies your command on its next tick (typically under a second).

The human in the loop

Missions that need you surface at the top of the page as attention cards, count into the Waiting for you indicator, and arrive as notifications in your inbox (and any channel you subscribed, e.g. Slack or Telegram):

  • Needs input — the analyst asked clarifying questions. Answer them in the card (or via coder_mission_answer) and the mission resumes.
    An answer is retry-safe: send the same Idempotency-Key with the same text and Mockarty replays the recorded receipt (Idempotent-Replay: true) instead of applying it twice. The same key with different text is 409 answer_idempotency_conflict; an answer after the gate already moved on is 409 answer_not_pending and never changes the run. If the admin restarts while the mission is parked, the accepted answer resumes the same mission — no second task is created.
    When the analyst asks another set of questions, use a new Idempotency-Key for that answer. Reusing an earlier key returns its earlier receipt and does not answer the new questions.
    A question may offer options instead of (or alongside) free text: single-choice accepts exactly one option, multi-choice accepts a bounded set. An answer with an unknown option, a duplicate option, or a count outside the bounds is refused with a typed code (answer_option_unknown, answer_option_duplicate, answer_selection_count) and the gate is left unchanged. The chosen values are stored on the mission (analysisAnswerSelections) and survive a restart.
    An accepted answer can be edited (PATCH /api/v1/coder/missions/{id}/answers) or rolled back to an earlier revision (POST /api/v1/coder/missions/{id}/answers/rollback, coder_mission_rollback_answer) until its plan is dispatched. Every accepted answer, edit and rollback adds one revision and one receipt — history is append-only. Once the plan is dispatched both operations are refused with 409 answer_dispatch_started; an accepted answer is never silently overwritten.
  • Awaiting credential — deployment needs an existing credential entry. Read the current mission’s credentialGate.gateId and credentialGate.revision, then call coder_mission_answer with credential: {"ref":"existing-entry-id","gateId":"observed-gate-id","revision":7} and a stable idempotencyKey. Use the actual revision you read. The same body is accepted by POST /api/v1/coder/missions/{id}/answers. Send an entry reference, never a secret value, and omit answers and selections. Only the mission actor, a namespace owner, or a system administrator may supply it. A replaced gate returns 409 credential_gate_stale: read the current gate before making a new decision. Repeating the accepted reference and key acknowledges the original release without starting another deployment. A historical credential gate does not replace a later clarification question.
  • Awaiting approval — a deploy is ready. Approve or deny from the card (or via coder_mission_approve). Only owners/admins can approve.
  • Paused — an operator deliberately held the mission. Resume it when the dependency is ready, or cancel it if the work is no longer needed.
  • Interrupted — the previous execution cannot safely continue after a lost owner or an ambiguous effect. Retry the active node to create a fresh fenced attempt, or cancel the mission. Mockarty never labels this state as failed or silently replays the old effect.

If the attention queue cannot be read, the page shows a retryable error instead of an empty healthy queue.

You also get a notification when a mission completes or fails.

Honest verdicts

If the independent testing mission could not run or could not return an exact typed receipt, the build is kept — but it is counted as unverified, shown as a ⚠ badge on the mission and in the Unverified accepts indicator. An automatic deploy is downgraded to requiring human approval in that case. Not checked is never presented as passed.

Who executes a sub-task

By default every sub-task is built by the coder-runner fleet. But one mission plan can weave in other capabilities — set a sub-task’s executor:

  • runner (default) — a coder runner writes the code.
  • agent — an internal Mockarty specialist drives the sub-task instead of writing code: a browser UI test (agentName: web_ui_tester), test-case authoring (test_planner), and so on. Its result is accepted (or reruns) exactly like a coder job.
  • remote — an external agent attached over A2A (Admin → Remote Agents), selected by the sub-task’s skillId and optional selector labels (e.g. region=eu). This is how you extend the fleet with third-party agent networks.

An unknown executor safely falls back to the runner. Over MCP, coder_mission_add accepts executor / agentName / skillId / verify / requiredChecks per task; the decomposer can also route a step to a specialist on its own.

How a sub-task must be proven

A sub-task can name the testing engine that has to confirm it, instead of asking for it in prose inside the prompt. Add verify to the sub-task:

{
  "prompt": "Add the /orders endpoint …",
  "verify": [
    {"engine": "functional", "ref": "orders smoke", "target": "http://localhost:8080", "note": "every request answers 2xx"},
    {"engine": "load", "note": "p95 under 300 ms"}
  ]
}

engine is one of functional, load, fuzz, chaos, contract, ui_test, test_case, temporal_probe, bot_scenario. An engine this installation cannot run is refused when the sub-task is dispatched and the reason appears in the mission timeline — it is never quietly promised. The coder receives the directive as concrete Mockarty tool calls it must quote in its report; where its toolset cannot reach the engine, it is required to say so rather than claim the check.

The coder reaches those engines through Mockarty’s own tools: by default the runner is handed the team-knowledge, mocking, API-testing, test-plan, deployed-system-observability and computer-control tool groups, filtered by what your licence includes. An administrator can change that set with the MOCKARTY_CODER_MCP_GROUPS environment variable on the admin node (a comma-separated list of group ids, e.g. processing,mocker,tester,testplan,observability,perf); the group ids are the ones GET /api/v1/mcp/groups returns.

For deterministic local verification, add requiredChecks to the sub-task. Each check is an executable plus arguments, not a shell string:

{"requiredChecks":[
  {"name":"Go unit tests","args":["go","test","./..."],"timeoutSeconds":900},
  {"name":"Go vet","args":["go","vet","./..."]}
]}

The admin dispatches the task only to a runner that advertised the required toolchain. The runner executes the checks against the committed head before push. A non-zero exit blocks publication and returns a typed result (name, exit code, timestamps, and output digest); diagnostic text is bounded and redacted. Shell wrappers are refused because the queue cannot prove which toolchain they hide.

The same payload can be appended to a live mission with the CLI:

mockarty-cli coder-delivery missions add MISSION_ID --file follow-up.json

Go SDK

mission, err := client.CoderDelivery().AddToMission(ctx, missionID, mockarty.CoderMissionAddRequest{
    Tasks: []mockarty.CoderSubTask{{Prompt: "Run and fix the unit suite", RequiredChecks: []mockarty.CoderRequiredCheck{{Name: "Go unit tests", Args: []string{"go", "test", "./..."}}}}},
})

Python SDK

mission = client.coder_delivery.add_to_mission(mission_id, {
    "tasks": [{"prompt": "Run and fix the unit suite", "requiredChecks": [{"name": "Go unit tests", "args": ["go", "test", "./..."]}]}]
})

Java SDK

Map<String, Object> mission = client.coderDelivery().addToMission(missionId, Map.of(
    "tasks", List.of(Map.of("prompt", "Run and fix the unit suite", "requiredChecks", List.of(
        Map.of("name", "Go unit tests", "args", List.of("go", "test", "./...")))))));

Watching what you deployed

A deploy that answered “OK” is not a system that works. If your installation has an observability source configured, the coder — and you, and any agent — can ask the deployed system directly:

curl -s -X POST http://localhost:5770/api/v1/observability/query \
  -H "X-API-Key: mk_your_token_here" -H "Content-Type: application/json" \
  -d '{"source":"prometheus",
       "expression":"sum(rate(http_requests_total{code=~\"5..\"}[1m]))",
       "correlation":{"environment":"staging"}}'

The SDKs use the client’s namespace automatically. For a direct HTTP request,
add ?namespace=your-space to query a particular space; your account or API key
must have access to it. A namespace-bound key cannot query another space.

Go

sources, err := client.CoderDelivery().ObservabilitySources(ctx)
evidence, err := client.CoderDelivery().QueryObservability(ctx, mockarty.CoderObservabilityQuery{
    Source: "prometheus", Expression: "up",
    Correlation: mockarty.CoderObservabilityCorrelation{MissionID: mission.ID},
})

Python

sources = client.coder_delivery.observability_sources()
evidence = client.coder_delivery.query_observability({
    "source": "prometheus", "expression": "up",
    "correlation": {"missionId": mission["id"]},
})

Java

Map<String, Object> sources = client.coderDelivery().observabilitySources();
Map<String, Object> evidence = client.coderDelivery().queryObservability(Map.of(
    "source", "prometheus", "expression", "up",
    "correlation", Map.of("missionId", mission.get("id"))));

For the CLI, mockarty coder-delivery observe sources lists the bound sources. Put the same JSON body as the REST example into a local file and run mockarty coder-delivery observe query --file query.json.

GET /api/v1/observability/sources?namespace=sandbox lists what that namespace can be asked, with the defaults it applies (the last 15 minutes, 200 rows). Over MCP the same pair is observability_sources and observability_query. Your account must be allowed to read the reliability module in the actual namespace being queried. If a POST body names a different namespace from the URL, permission is checked for the body namespace too; access in another workspace does not authorize it.

Every answer is bounded and read-only, and it comes back with a evidenceDigest — a sha256 over the query and its result — so a reading can be cited later instead of retold. At least one correlation field (mission, deployment run, release digest, test run, trace, environment) is required: evidence nobody can attribute is refused rather than stored. Correlation labels must be plain identifiers — a label shaped like a credential or personal data is refused with a validation error, never stored. Log lines that quote a credential come back with the credential masked in place; one noisy log line never voids the whole reading.

Nothing configured is a valid answer. An installation with no observability stack returns an empty source list and answers a query with source_not_configured. A configured source that fails returns source_error (502); repair it and retry. Neither response is evidence of health.

An administrator configures sources in Admin → Audit → Observability sources (add a source, choose its namespace, give the base URL and, if needed, a token). A saved list is applied immediately. The list is authoritative: the environment variables below are an advanced first-run seed read once on a fresh installation, and a variable added to a service unit later does not attach a second source.

Variable (seed) Meaning
MOCKARTY_OBSERVABILITY_PROMETHEUS_URL Prometheus HTTP API root, e.g. http://prometheus:9090. Unset = no source.
MOCKARTY_OBSERVABILITY_PROMETHEUS_TOKEN Bearer token, when the source requires one.
MOCKARTY_OBSERVABILITY_PROMETHEUS_ID Name this source is recorded under in evidence (default prometheus).
MOCKARTY_OBSERVABILITY_PROMETHEUS_NAMESPACE Exact namespace allowed to use this source (default sandbox). A source is never shared implicitly between namespaces.
MOCKARTY_OBSERVABILITY_LOKI_URL Loki HTTP API root. Enables bounded log reads.
MOCKARTY_OBSERVABILITY_LOKI_TOKEN Optional bearer token when the source requires one.
MOCKARTY_OBSERVABILITY_LOKI_ID Name this source is recorded under in evidence (default loki).
MOCKARTY_OBSERVABILITY_LOKI_NAMESPACE Exact namespace allowed to use this source (default sandbox).
MOCKARTY_OBSERVABILITY_TEMPO_URL Grafana Tempo HTTP API root. Enables bounded OpenTelemetry trace search.
MOCKARTY_OBSERVABILITY_TEMPO_TOKEN Optional bearer token when the source requires one.
MOCKARTY_OBSERVABILITY_TEMPO_ID Name this source is recorded under in evidence (default tempo).
MOCKARTY_OBSERVABILITY_TEMPO_NAMESPACE Exact namespace allowed to use this source (default sandbox).
MOCKARTY_OBSERVABILITY_SENTRY_URL Sentry HTTP API root. Enables bounded error/debug event reads.
MOCKARTY_OBSERVABILITY_SENTRY_TOKEN Optional bearer token when the source requires one.
MOCKARTY_OBSERVABILITY_SENTRY_ID Name this source is recorded under in evidence (default sentry).
MOCKARTY_OBSERVABILITY_SENTRY_NAMESPACE Exact namespace allowed to use this source (default sandbox).
MOCKARTY_OBSERVABILITY_SENTRY_ORGANIZATION Sentry organization identifier, when the API needs one.
MOCKARTY_OBSERVABILITY_SENTRY_PROJECT Sentry project identifier, when the API needs one.

These sources are registered in Admin → Audit → Observability sources; the variables above are the advanced first-run seed, not the primary control. The Incidents page lists the sources that are already registered. With none configured, observability queries honestly answer source_not_configured.

The namespace binding is a security boundary, not a label. Mockarty does not rewrite arbitrary PromQL to add a tenant matcher, so a configured Prometheus endpoint must contain only data that members of the bound namespace are allowed to read. Use separate admin-node installations for namespaces with different monitoring access.

Prometheus queries preserve the requested time boundaries, including fractions of a second in short deployment checks.

After a coder deployment, Mockarty runs up to three behavioral health probes across a bounded window. On a failed probe it briefly reads the compatible observability sources for the mission namespace before rollback, while the failing candidate is still present. If the probes hold, Mockarty reads those sources before acceptance. Explicit error/fatal events or an unhealthy up metric also trigger rollback. A bounded repair/redeploy attempt is allowed only after the restored target passes its own health window; an unavailable rollback is reported as impossible, and an unverified rollback requires reconciliation before retry. The mission keeps source counts and frozen evidence digests, including a timeline record of diagnostic digests from a failed candidate before a successful repair replaces its result. Raw observability responses and credentials are not copied into repair instructions. No configured source or an empty/truncated answer remains not_evaluated; it is never rewritten as healthy.

If Mockarty cannot record the deployment or rollback result, or cannot update its deployment history, automatic repair and redeployment stay blocked even after a successful target health check. Restore storage access and reconcile the unresolved deployment before retrying.

Team skills

Beyond the coder’s built-in skills, a mission can pull in your team’s installed agent-marketplace skills so the coder works the way your team does. Pass skills (a list of skill names) to coder_mission_start — each named skill you have installed is materialised into the coder’s sandbox alongside its built-ins, and the coding engine loads it on demand. Only skills your namespace has installed and is licensed for are provisioned. Selection is fail-closed: once you name a skill, a name that is not installed, not licensed or not descriptive (a composite step-chain has no meaning inside the coding engine) makes the mission fail before a runner is leased, rather than silently running without it.

Skill sets

A skill set is a named, deterministic assembly of built-in playbooks that a mission can request instead of listing individual skills. Runners include the following sets:

Set What it provides
architecture-review Architecture discipline, boundaries and dependency direction, design trade-offs, code quality.
frontend-feature Design floor, frontend quality, framework playbook, UX writing, browser check. Requires the Playwright tool.
fullstack-feature One end-to-end user journey: fullstack discipline, architecture, test-first, quality, verification.
mockarty-extension-development Prepare and review skills, Mockarty plugins and local OpenCode plugins. Requires skill-resource support.
mockarty-remote-work Inspect execution placement, start on a connected runner, and move a session. Requires Mockarty MCP.
mockarty-team-work Work with issues, boards, wiki, knowledge, Rooms and discussions. Requires Mockarty MCP.
mockarty-testing Verify mocks, APIs, contracts, test plans, load, and web or mobile UI. Requires Mockarty MCP.
skill-authoring Prepare a reusable text skill package with local starter assets and explicit human review.
brainstorm Turn a rough idea into a small agreed design before code.
superpowers (alias superpower) The full delivery discipline: brainstorm, plan, test first, debug systematically, review, verify.

Mockarty MCP lets the workflow check its tool catalogue. Access to individual modules and actions still depends on the workspace, connection and permissions. Selecting the extensions set does not install a plugin.

Pass skillSets to coder_mission_start (mission-wide) or to an explicit task (per sub-task). Resolution is deterministic: requested order is preserved, each set contributes its members in a fixed order, and duplicates collapse. Selection fails closed — an unknown set is refused with 400 unknown_skill_set before dispatch, a set whose required tool the session’s own mcpServers selection excludes is refused with 400 skill_set_tool_unavailable before any runner is leased, and a set whose required tool is missing on the selected runner fails the task instead of provisioning a smaller method. Read the catalogue with the coder_skill_sets_list tool or GET /api/v1/coder/skill-sets; the available/missing flags it returns are the admin node’s probe, while the runner re-checks the same requirements in its own environment. The session-setup panel therefore judges a skill set or MCP server on the TARGET runner’s advertisement: a remote runner that reports the capability makes it selectable even when the admin node lacks the tool, a runner that reports it as absent disables it, and a runner that reports nothing is shown as unverified rather than ready.

When a job is leased, the admin also mints a per-job delegated credential for the coder’s own Mockarty MCP endpoint. It is scoped to that job’s namespace and to read/write/delete, expires with the job, and is revoked as soon as the job’s result is recorded. It is not the runner’s registration token: administrative routes, token minting and other namespaces are refused, so a compromised job cannot widen its access.

What the runner receives

A mission or a local session can choose its toolkit. The selection is persisted with the work and materialised before the engine starts, so a remote runner gets the same set as a local one:

Selection Field What it does
Skills skills Namespace-installed marketplace skills (licensed, fail-closed).
Skill sets skillSets The deterministic assemblies above.
MCP servers mcpServers Exact list from mockarty, playwright; omit for the runner default, [] for none. An unknown name or an unavailable prerequisite is refused before dispatch.
Quality quality fast or thorough (specialist subagents/instructions).
Access level accessLevel read_only, edit or full — the same vocabulary a local session uses. It only narrows the engine’s frozen permission set: read_only denies edit and shell, edit asks a person before a shell command in an interactive session, full is the historical repository-mode default; a selected native folder defaults to edit. external_directory stays denied at every level. An unknown value is a typed 400 invalid_access_level; it is never silently treated as full.
Reasoning effort reasoningEffort auto, off, low, medium or high. auto (the default) sends no parameter. A level reaches the model request only for a provider whose API publishes it; for any other provider it is recorded on the mission but not sent. An unknown value is a typed 400 invalid_reasoning_effort.
Runner pin runnerId Pins every sub-task to one runner the namespace may use. The job is then leasable by that runner only — an idle runner is never preferred. An unknown, foreign, inactive or incapable runner is a typed 400 (runner_unknown, runner_foreign, runner_unavailable, runner_incapable) naming the reason; Mockarty never silently falls back to another runner.
Model engine + the namespace LLM profile (mission); provider/model/baseUrl (local session) Which model runs the work.

accessLevel, reasoningEffort and runnerId are stored on the mission record and on every sub-task’s job, so a resume, a read-back after a lost response, or a retry re-drives the same policy instead of falling back to a default. They are part of the idempotency fingerprint: the same Idempotency-Key with a different policy or pin is 409 idempotency_conflict.

Read the catalogue with GET /api/v1/coder/toolkit (or coder_toolkit_get): it lists the built-in playbooks, the skill sets, each MCP server and what it needs, what the admin node can reach, and what each registered runner advertises. For a runner-console session, the same choices are accepted by POST /api/coding-sessions on the runner console (skillSets, mcpServers, provider, model, baseUrl); they are stored on the session record and reported back on reconnect. Changing them for a live session starts a new session — the running backend’s config is frozen and is not silently widened. The autonomous Desktop Harness uses its own local-profile flow: Mockarty MCP is connected automatically with the current account permissions. The runner-console toolkit fields are not a way to add arbitrary MCP servers to a native Desktop session.

You can read this catalogue, GET /api/v1/coder/skill-sets (or coder_skill_sets_list), and GET /api/v1/coder/harness/options with coder read permission in the selected workspace. These reads are available without Agent Work, even before you connect a runner. Starting or managing an autonomous mission still requires Agent Work.

Computer Use is an agent tool when the namespace’s coder endpoint includes the computer_use group (it is in the default group set). The coder calls computer_use_execute; the request passes the SAME authority as a human/grid request — the operator kill switch, the runner’s enablement/allowlist and the mandatory approval classes — and a refusal is the typed policy answer, not a retry hint. Server and SaaS missions do not accept per-session plugin selection; their plugins are provisioned by the operator. In Desktop local projects, you can select up to eight eligible installed plugins for the next local session. The backend verifies the exact installation pins before starting, and this selection does not change running sessions.

Delivery config

Delivery config (page header) is where you describe how your company ships: the repositories the coder may use, the deploy targets (SSH / Compose / GitOps / CI pipeline / Kubernetes), protected branches, and infrastructure notes the coder reads as context. Credentials are referenced by secret-store id — they are never entered or displayed here. Target commands are screened against a dangerous-command list before the config is saved.

Only an owner or administrator can change this configuration, start a mission that may deliver, or approve its deployment. Add each allowed repository explicitly; the mission must use one of those exact URLs. Do not put credentials in a repository URL. Select an Approval policy for each target in the UI. A review written by an AI model alone does not authorize automatic deployment: without a separate, trusted quality check (AQC), Mockarty asks a person to approve the deployment.

GitOps currently records the manifest-repository effect but does not have an Argo CD or Flux status connection. A commit alone is not evidence that the cluster reconciled it, so the Delivery Config API rejects a GitOps deploy target before saving it. Keep GitOps repository metadata for planning if useful, but use a supported target with real verification for autonomous deployment until controller observation is available.

SSH and Compose targets must define healthCmd; CI targets must define healthUrl; a Kubernetes target is verified by the rollout of the workload it names and needs neither. The API rejects an unverifiable target before storing the configuration. The deploy-time check remains as protection for older stored rows. This is intentional: a completed upload, process start, or green build is not by itself proof that the delivered application is reachable and healthy.

For GitLab CI, GitHub Actions and Jenkins, Mockarty retains the provider’s exact, credential-free execution identity as soon as the provider accepts the launch. A cancellation can therefore find the same pipeline, workflow run, queue item or build after an admin-node restart. An accepted cancel request is still not treated as completion: Mockarty waits for that exact provider execution to become terminal. If correlation, lookup or terminal confirmation is ambiguous, the mission stays unknown and requires reconciliation; Mockarty does not silently launch the deployment again.

The default Compose start (docker compose up -d) has an exact bounded inverse against the same target directory and Compose file: if verification is cancelled or fails, Mockarty runs docker compose down even though the mission context is already cancelled. If you provide a custom startCmd, also provide its exact rollbackCmd; Mockarty does not guess how to undo an operator-defined command.
After the default Compose rollback, Mockarty checks three times that the same stack has no containers. If it cannot confirm this state, the rollback remains unverified and automatic retry is held. A custom rollback is checked with healthCmd; configure it to check the intended restored state.

The Product autonomy settings section sets two defaults for every
autonomous mission in the workspace: the guard policy (pause the mission
and ask a person, or warn and continue) and the run window in minutes (a
mission running past it hits the time wall). A single product can override
them: an agent writes that product’s own delivery-config group via
coder_delivery_config_set with productId (or over the REST API), and it
wins over the workspace default for that product’s missions. The layer order:
a mission-level value wins, then the product’s, then the workspace’s, then
the instance’s.
The product context chips on the missions page — or the
mission_settings_effective agent tool — show each selected setting together
with the level that set it and runtimeApplied. Journal retention is applied as
a live namespace/instance cleanup policy, not as a product or per-mission
override. Configure it in Autonomous Missions → Limits and settings, leave a field blank
to inherit, or use mockarty-cli autonomy settings set. Active legal holds
preserve matching coder missions, jobs, intake evidence and journal rows even
after the normal horizon expires.

The CI/VCS section — {"system":"gitlab","baseUrl":"https://gitlab.company.internal","credRef":"…"} — is what lets Mockarty talk to your forge: it opens the merge request for a finished mission and, with autoReviewMRs: true, reviews every request your team opens. Add "openMr":"off" to keep request creation to yourself.

Each target carries a small JSON config. Examples:

  • SSH / Compose — {"host":"deploy.example.com","user":"deploy","targetDir":"/opt/app","mode":"compose","composeFile":"docker-compose.yml","hostKey":"…","healthCmd":"curl -sf localhost:8080/health"}
  • CI pipeline — {"system":"gitlab","baseUrl":"https://gitlab.company.internal","project":"team/app","healthUrl":"https://app.example.com/health"} (system is gitlab | github | jenkins; the branch defaults to the delivered one). GitLab uses the exact pipeline ID returned by the trigger. GitHub requires workflow, a workflow input named mockarty_delivery_id, and run-name: ${{ inputs.mockarty_delivery_id }}; Mockarty correlates that run name and the accepted commit. Jenkins follows the queue item returned by the trigger to its exact executable number and checks MOCKARTY_COMMIT. MOCKARTY_COMMIT is a Jenkins job parameter, not a Mockarty environment variable: Mockarty passes the accepted commit into the job and reads the value the job reports back, so the job must accept that parameter. Mockarty waits for that bound run and the health check before the deploy counts as done. Put the CI API token in the target’s credential reference; inline tokens in JSON are rejected.
  • Kubernetes — {"context":"prod","namespace":"payments","manifestPath":"deploy/app.yaml","workloadKind":"deployment","workloadName":"payments-api","rollbackRevision":7,"timeoutSeconds":300}. workloadKind is deployment | statefulset | daemonset; manifestPath is relative to the delivered workspace and at most 4 MiB; rollbackRevision is required and must name an existing rollout revision, because that is what a rollback returns to. fieldManager defaults to mockarty, timeoutSeconds to 300 (10-900). The kubeconfig goes in the target’s credential reference; set "inCluster": true instead when Mockarty runs inside the cluster it deploys to. Rollback runs rollout undo to that exact revision and then re-checks the rollout — an unconfirmed rollout is reported as unknown, never as a successful rollback. A Kubernetes target needs kubectl on the machine running Mockarty; without it the deploy is reported as not having reached the cluster, not as an uncertain outcome.

For SSH and Compose, targetDir must be absolute and must not resolve to the filesystem root (for example, /opt/app/../.. is refused).

The REST surface is /api/v1/coder/delivery-config and /api/v1/coder/missions. The Go, Python, and Java SDKs expose it as CoderDelivery() / coder_delivery / coderDelivery(). The CLI mirrors the bounded operations:

mockarty-cli coder-delivery config get
mockarty-cli coder-delivery config put --file delivery-config.json
mockarty-cli coder-delivery config delete --product-id PRODUCT_ID
mockarty-cli coder-delivery missions start --goal "Ship the accepted commit" --repo https://git.example/app.git --target staging --product-id PRODUCT_ID
mockarty-cli coder-delivery missions list
mockarty-cli coder-delivery missions get MISSION_ID
mockarty-cli coder-delivery missions add MISSION_ID --file follow-up.json
mockarty-cli coder-delivery missions approve MISSION_ID
mockarty-cli coder-delivery missions deny MISSION_ID

The same start request is available through REST and every supported SDK. The
repository URL must exactly match a repository in the selected Delivery Config;
productId selects a product-specific config when one exists.

An optional tasks[] plan skips decomposition and dispatches the named sub-tasks in order. A repository plan still needs an admitted repoUrl, but no decomposition profile. Native folder tasks require the original selected localProject and runnerId described above; executor: "local_session" and a bare folder UUID alone do not grant local access. They cannot carry server-side verification or mix server tasks into a selected-folder run, and are never pushed. The SDK operations keep their goal-first repository form; use REST for an explicit plan.

The Runner settings page saves a start identifier in browser storage before submitting. If the response is lost, it blocks another start and looks up the original session when you refresh or reopen the page. Keep browser storage enabled. An empty lookup does not prove the original request was rejected. For read-only recovery, GET /api/v1/coder/missions?namespace=default&intentKey=YOUR_START_KEY returns missions and echoes intentKey; the key must match the original Idempotency-Key, account and namespace. This recovery does not submit work.

REST

curl -X POST "$MOCKARTY_URL/api/v1/coder/missions?namespace=default" \
  -H "X-API-Key: $MOCKARTY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"goal":"Ship the accepted commit","repoUrl":"https://git.example/app.git","deployTarget":"staging","productId":"PRODUCT_ID"}'

Go SDK

mission, err := client.CoderDelivery().StartMission(ctx, mockarty.CoderMissionStartRequest{
    Goal: "Ship the accepted commit", RepoURL: "https://git.example/app.git",
    DeployTarget: "staging", ProductID: "PRODUCT_ID",
})

Python SDK

mission = client.coder_delivery.start_mission({
    "goal": "Ship the accepted commit",
    "repoUrl": "https://git.example/app.git",
    "deployTarget": "staging",
    "productId": "PRODUCT_ID",
})

Java SDK

Map<String, Object> mission = client.coderDelivery().startMission(Map.of(
    "goal", "Ship the accepted commit",
    "repoUrl", "https://git.example/app.git",
    "deployTarget", "staging",
    "productId", "PRODUCT_ID"
));

Models and runner capacity

Open Capacity in Autonomous Missions. The same panel shows connected runners, available slots, queued jobs and the model assigned to each component — decomposition, acceptance, code review, and the build model runners use. A workspace owner can add its write-only model profile directly there and assign it immediately; installation-wide profiles remain administrator-managed. Coding requests use Mockarty’s LLM gateway. Guard masks sensitive data only when enabled in Enforce mode with applicable rules; Ghost mode observes without masking. The selected execution profile and its version are fixed for the job. If that profile changes or becomes unavailable, start a new explicitly reviewed attempt instead of silently switching an existing job to another model.

When starting a session from the setup panel, a response belongs to the page and namespace that sent it. If you switch pages or namespaces while it is starting, the old response does not replace the new view. Leaving the panel does not cancel the mission; check its state in the harness.

OpenCode browser checks

On Desktop, the Harness can open a local browser through the Mockarty tools ui_session_start, ui_session_inspect and ui_session_stop. Check the available engines with ui_runners_list. This path uses the Desktop UI testing engine and can work without a separate Playwright MCP server.

OpenCode browser tools use a preinstalled Playwright MCP launcher (mcp-server-playwright or playwright-mcp), Node.js, and a Chromium executable. Install these prerequisites before starting the runner; a coding session does not download MCP packages automatically. A directory named after Chromium or an installed npx command is not enough.

The runner detects the standard Playwright browser cache. Both Chromium and Chrome for Testing distributions are supported, including their standalone headless shell. If you installed browsers elsewhere, set PLAYWRIGHT_BROWSERS_PATH to that exact cache directory before startup. For package-local installations, specify the actual browser directory rather than 0. MOCKARTY_CODER_PLAYWRIGHT_MCP=0 disables the integration; setting it to 1 still requires the installed prerequisites.

The browser starts headlessly with an isolated temporary profile and the selected executable. It does not attach to your personal browser profile or disable Chromium’s sandbox. Finding prerequisites does not mean a page was checked: review the browser actions and the resulting verification evidence. If the local operating system or container cannot start that browser, resolve its browser prerequisites and sandbox support rather than reporting a successful UI check.

Built-in coding playbooks

The runner includes task-focused coding playbooks for investigation, tests, implementation, review, interface design and reporting. It selects the relevant stack guidance and loads detailed instructions when needed. These instructions do not install language frameworks, grant additional permissions or prove that a check ran.

Local sessions and server sessions running directly on their host keep Mockarty-managed instructions in separate private session state. They do not replace the project’s AGENTS.md or existing skill files. Container sessions use their workspace-local skill placement; an existing conflicting skill is preserved and provisioning is refused. Correct the conflict before starting another session.

Commit, push, deployment and browser actions remain limited to the task’s existing authority and available tools. Existing uncommitted work must be preserved. If a required capability is unavailable or an earlier external action has an uncertain outcome, inspect the reported blocker and saved result before repeating it.

Runner output and recovery

If Desktop cannot confirm that it started a local session, it keeps your draft. Check the session list before starting another session.

Use the image button in the Desktop Development composer to attach images before sending a message, including the first message of a local session. A message can contain up to eight images, up to 16 MiB per image and 32 MiB in total. If an upload fails, the composer keeps the text and selected images while you stay on the page. Retry in the same session. Sent images appear under the text of the message in the local conversation, including when you reopen it. Select a thumbnail to open the gallery and use the arrow keys or navigation buttons to switch images.

To create a goal from a local Harness chat, ask the agent to set a goal for the current conversation with Full access selected. With the built-in Mockarty tools, use the harnessGoalSession reference from current_namespace as body.session in harness_goal_set. For harness_goals_list, pass here as sessionId. The tools resolve here within the active conversation.

The Working row shows the current activity when the agent reads or changes files, runs a command, uses a tool, or dispatches a subagent.

In the Desktop local session panel, Finish cleanup means the session has ended but its cleanup is not yet confirmed. Use that action before starting another session. If the outcome is unknown, choose Reconnect to read the current state first. If session details are still loading, wait for them or reconnect before choosing Stop again. Cleanup is never retried automatically; repeat it explicitly only after the refreshed panel offers the action again.

A finished or cancelled session releases its working folder only after its own engine process has stopped. If termination cannot be confirmed, that running host keeps the folder busy and the session shows that uncertainty. Restarting the host does not confirm that the previous process stopped. Inspect that session and the execution host before starting another coder against the same folder; do not treat an unknown stop as permission to retry.

Checkpointed file edits require ordinary files inside the declared workspace. Symbolic links and hard links are refused; keep shared files outside the editable scope. After an interruption, review the saved report before retrying or rolling back. Matching file contents alone do not establish that an earlier operation completed.

Each execution uses a separate private working directory. A retry does not overwrite files retained from an earlier attempt. The runner keeps unpublished commits and failed work after checkout for recovery. Successful published work, or a successful run with no changes, can be cleaned up after its terminal report has been saved outside that directory.

For one-shot CLI runs, use --report with a path outside the working directory. Without an external report destination, the working directory is retained. --keep-workspace also disables automatic removal. Retained directories consume disk space and may contain sensitive task files or logs: restrict access and recover any needed code and logs before removing them. They are not an automatic remote artifact backup.

Undelivered results also consume runner capacity. If durable result storage fails, the runner stops admitting new work rather than discarding results to make room. Restore storage and connectivity before retrying work; do not delete pending result files as a disk-cleanup shortcut.

Measuring the payoff

Two dashboard data sources (Dashboards → add widget → Autonomous Coder) quantify the autonomous work:

  • Coder mission LLM cost — tokens per mission over a period, top consumers first.
  • Coder missions: human-hours saved — the linked issues’ estimates minus the missions’ runtime to completion. The period is based on when a mission completed, so later updates do not move it to another period. Missions without a linked estimate contribute their actual runtime but no assumed human estimate; the net value can be negative.

Prometheus counters (/metrics) cover missions by status, durations, reruns and unverified accepts for your own monitoring stack.

Publishing a local coding session

Publication uses the push destination of the session repository. If you explicitly supply a forge project, it must match that destination. A mismatch is refused before the branch is pushed; correct the project before trying again.

MCP tools

The full mission lifecycle is drivable by agents: coder_mission_start, coder_mission_status, coder_mission_answer, coder_mission_approve, coder_mission_pause / resume / skip / add / retry / restart_from / reconcile_deploy / cancel, coder_mission_diagnose, plus coder_analyze, coder_review_mr, coder_ingest_artifact and the delivery-config pair. A live session’s move between this workspace and a coder runner is drivable with coder_session_transfer (status / request / cancel).

Runner distributions with bundled OpenCode

A distribution built with bundled OpenCode includes the pinned engine for its operating system and CPU. It needs no separate OpenCode installation or engine download at startup. Ordinary runner distributions retain the existing external-engine setup.

The engine version is not chosen in the interface: it is fixed by the distribution. To move to a newer OpenCode line, update the runner distribution and read the new version back with the command below.

Use mockarty-coder-runner --bundled-engine-info to read the bundled version, provenance, redistribution notices and dependency inventory. A runner without a bundle reports that this information is unavailable. The bundled build omits OpenCode’s web interface; Mockarty provides the user interface. The engine runtime and terminal components remain included, so package size depends on the platform.

Bundled sessions use their own configuration and state. They load the Mockarty-provided tools and repository skills, and do not adopt personal OpenCode login, configuration or plugins. Automatic engine updates, model-catalog refresh and language-server downloads are disabled; install the required language tools on the execution host or image. Provider calls and explicitly configured remote tools still require network access.

A macOS engine runs locally; it cannot be used inside a Linux execution container. Use a Linux runner distribution for that placement. Bundling does not change the runner’s namespace permissions, required consent, task cancellation or containment guarantees.

Skill packages with supporting files

The runner checks the complete prepared skill library before starting the engine. Each prepared file is limited to 128 KiB, including any generated Markdown header, and the whole library to 2 MiB. A size refusal leaves project skill files and Git exclusions unchanged. Shorten the selected instructions or select fewer skills before retrying.

The skill-authoring set contains the coder-skill-authoring playbook and its local CSS, SVG and HTML starter materials. It is also available in the assistant’s skill library. It guides review and explicit human import or publication; selecting the set does not publish or activate another skill.

For a namespace-installed text bundle selected through a coder mission’s skills list, a supported server runner receives the complete reviewed package, including references/ and assets/. Its files keep their relative paths. Before launch the runner rereads the exact current installation; changed, disabled, unavailable or unauthorized packages refuse instead of falling back to the instruction body. Older runners cannot lease tasks requiring this format. Ordinary skills containing only a body keep working.

Desktop local sessions can use the embedded authoring set and exact references to published text packages in the current workspace. First review the package and explicitly import it through the existing human bundle import flow. This does not create an accepted assistant-result record. Binary images, fonts and office templates remain outside the text-bundle format.

To select an installed package, pass skills in the existing local-session start request. Each item contains name, skillId, bundleDigest, skillVersion and namespaceIncarnation; retain the last four values exactly from the current resource API response. Discover the skill’s digest first, then read GET /api/v1/agent-skills/resource with name, digest and path=SKILL.md. The start request carries no instruction body, files, paths or additional permissions. Omitting skills keeps the ordinary start behavior.

Desktop resolves those references using the current installation and the signed-in owner’s access to the selected workspace. It checks the source again before launch and when resuming a waiting turn. Changed, disabled or unavailable packages, lost workspace access and changed local-host consent refuse before sending the instruction or answer to the model. A saved session shows its original references; reopening does not substitute a newer version. A host without this source resolver does not advertise the capability.

Specialist work in a live session

Supported specialist agents use the current session and execution host. Only work launched directly by that session is admitted. Their questions and requests for an effect approval use the same human response flow; an answer does not grant tool permissions. A specialist finishing does not finish the parent session. Background specialist tasks are not supported by this integration.

Specialist work requires the packaged engine with the required runtime checks. An external OpenCode binary without those checks is limited to primary-session work. A changed owner, consent, host identity or workspace invalidates the old specialist scope; returning to the previous workspace does not restore it. Cancellation stops the owned parent and admitted specialist work. If stopping cannot be confirmed, the outcome remains unknown and does not authorize a replay.

A queued answer is confirmed only by the backend delivery receipt. After an uncertain delivery, inspect the same session rather than sending the answer again. Usage that the engine has reported remains recorded when work fails. If the measurement limit is exceeded or counters cannot be represented, coverage is shown as unknown; no zero or complete total is invented.

Search the conversation

The harness also shows Last request context when the latest runner report contains a completed main-agent request and a confirmed model limit. Open the ring to inspect its token counts, model and measurement time. This is a recorded request, not a live estimate or accumulated spend. A newly queued or running sub-task does not inherit the preceding sub-task’s percentage; missing measurements show —.

Open Find in conversation (the magnifying glass) and enter text. Press Enter for the next match, Shift+Enter for the previous one, and Esc to return to the conversation. Search covers the messages loaded in the current conversation.

The file list shows file types and directories. Open files, folded directories and diff scroll positions stay in place when the same session refreshes; another session starts with its own view. Added and removed line counts describe only an available, complete displayed patch. Delegation details keep their recorded parent/child tree and open with Enter or Space; an ordered plan is not presented as proof that subagents ran in parallel. The Automations workspace tab contains the existing schedule and process controls. Lists and actions use the current Space. Switching accounts or Spaces retires the previous controls and clears the creation form. Leaving the page stops status polling; it does not cancel schedules or work already sent to the server.

Inspect recorded results

The session list can filter the sessions already loaded on the page by their goal, identifier, issue or repository. The Results section opens one recorded result inside the same session. Text and supported images have a read-only preview; HTML is shown as source. Images without a confirmed safe preview size, including very large or animated images, remain available through Download original. Use Download original for formats without an inline viewer or for larger files. Closing the preview leaves the session running. Switching sessions, changing the Space or leaving the page clears the preview. After a Space change, reopen the harness in the current Space to continue.

Name, archive and fork a session

Each session has a name you choose. Rename opens a dialog pre-filled with the current name; leaving it empty clears the custom name and the session shows its goal instead. The list shows the name, the planning model, when it last changed and a badge for its state. A session that is waiting for your answer or approval carries a dot on that badge.

In the Development composer, choose a Repository, write the goal and press
Enter or the send arrow. Shift+Enter adds a line. The composer frame highlights keyboard focus. Paste a PNG, JPEG, GIF
or WebP image, or use Attach images, to preview it before starting. Choose
a product before sending a session with attachments.

Archive hides a finished session from the default list without deleting anything: its plan, transcript, checks and commit stay readable, and the Archived filter brings it back. You can restore it from the same button. Archiving a session that is still running is refused — stop it first, so live work is never hidden behind a filter.

Fork starts a new run with the same goal, repository, engine, planning model, access level, reasoning effort, runner and skills. The transcript, plan, checks and approvals stay with the original session; the fork does not replay them as if they had happened twice. Use it to try a different approach from the same starting point.

If the browser loses the response, choose Check fork status from the original session to check the same request. Keep browser storage enabled to recover the request after reload. For an API request, send POST /api/v1/coder/missions/{id}/fork with a unique Idempotency-Key. Keep the same account, space, source session and key when checking the result. Reusing that key for a different source returns 409 idempotency_conflict.

The icons next to the workspace tabs open Plugins, Refresh the list, and open New session with the blue plus. In the new-session composer, the model selector shows the model of an explicitly selected profile, and Auto leaves reasoning effort to the selected provider.

Press ⌘K (or Ctrl+K) to open the session palette: type to search sessions, use the arrow keys to move and Enter to open one. The palette also offers New session and Refresh. Esc closes the palette, the handoff panel or the start form; it never stops a running session — use Stop for that. In the instruction box, Enter queues the instruction and Shift+Enter adds a new line. Changing the account or leaving the harness closes the palette and clears its previous session entries.

When a live update cannot be read, the page shows Reconnecting… and keeps the last recorded state visible. It does not pretend the session is still streaming; the next successful read removes the notice. Delayed updates from an earlier session, account or refresh do not replace the connection state of the current session.

When starting a session, the goal suggestions offer a starting point for a fix, a review or a small change. They fill the goal only while it is empty. Edit the text and choose the repository before submitting; choosing a suggestion does not start work.

Draft boxes grow as you type and shrink when you remove text. Long drafts scroll inside the box so the conversation stays usable. Recorded events appear as messages with their reported author, event type and time. When the same event appears in both the journal and the execution details, it stays one message and keeps the reported author, answer and failure marker. On a phone, starting a session gives the form the available width without keeping the session list above it.

When repositories are already admitted for this Space, select one by name in the start form. The URL is filled without starting a session or changing trust. Choose Paste a repository URL to enter a different URL; starting it still requires the existing repository admission checks.

The Conversation tab keeps the instruction box below the recorded messages. When you scroll back, new updates leave your reading position alone; Latest messages returns to the end of the conversation. Session capabilities and limits opens the details when you need them.

Unsent instructions and decision notes stay with their own session in the current browser tab, including after a reload. They are not synchronized with other tabs or devices. Switching sessions never sends a draft. If the browser cannot keep an unsent draft, the harness keeps the current session open so you can copy or send the text first. Enter used to confirm text in an input method does not queue an instruction; normal Enter sends and Shift+Enter adds a line. An instruction whose delivery is unconfirmed stays locked to its original text and can only be checked again with the same request.

Sessions on this computer (Desktop)

When Harness asks a question or requests permission, the notification bell shows a notice for your local session. Open the notice to read and answer the current question or choose Allow or Deny. The notice shows when the engine confirms your answer. Use Review in conversation to open the conversation from any notice and check the current state if delivery is unconfirmed.

In local and remote conversations, a spinner in the session list marks work in progress. Waiting for a reply means there is a question or approval to answer. Open that session to respond. A session ready for its next instruction has neither indicator.

The compact metadata row shows the current branch beside the search icon when the folder is a Git repository. Long names are shortened visually and shown in full on hover. The branch is refreshed after a turn, including changes made by a command.

In an offline Desktop session, the coder can discover the Mockarty tools allowed by your account through search, description and execution tools. Availability is checked again when a tool is called. In Read only and Edit modes this connection permits reads; Mockarty operations that change data require Full access and the corresponding account permissions. This does not grant access to features unavailable to the account or connect an offline session to a server profile.

The built-in coder-browser-use skill guides web search and browser work using the executors actually available to the selected host. It distinguishes lightweight page reading, a full browser and Computer Use. Installing a skill alone does not install a browser or enable a tool. The coder should discover the available capabilities before reporting that a browser or search tool is missing.

The saved local conversation includes an accepted instruction even if Desktop restarts before the answer finishes. Repeated instructions remain separate turns. Stopping a response keeps the partial answer when it can be read from the engine; it is not recorded as a completed answer. An instruction whose delivery is still unconfirmed is not shown as delivered in the saved conversation.

If the model connection ends before the answer is confirmed, Harness keeps the accepted instruction and shows an unconfirmed result. Before sending a new instruction in the same conversation, check the tool results that were already recorded.

In Desktop, the local workspace lists the sessions this computer remembers. Each row shows the folder, your instruction, the model, the recorded token usage and cost, the state and the last change time. The list survives a Desktop restart. Opening a row reconnects to a running session or opens the durable record of one that has stopped; a stopped session can still be reviewed, committed and published. Usage the engine did not report is shown as such, never as zero.

Choosing Continue on… in the harness moves your resume pointer to another registered device or to the server. The durable session does not move or copy: the receiving device opens the same record. A pending approval and a paused session travel with it, so the next device does not see an apparently idle session. A coder session continues in the harness (/ui/harness?mission=…); an autonomous mission continues in the mission viewer (/ui/missions). Continuing a coder session needs the coder read permission, and continuing an autonomous mission needs mission read — either way in addition to the device-mesh permission that owns the handoff route.

Continuing a session on a runner

The same Continue on… panel carries a second part: Move to a runner. It
moves the live coding session itself — the machine that owns the engine exports the
session’s transcript, and the receiving runner imports it and continues the same
conversation. Open a coding session in the harness, choose Continue on…, and
read the Move to a runner block.

In connected Company Desktop, open Development in the Space that holds the
session. If the visible session is already linked to a connected coding project
and your account can manage it, open Move session above the composer. Select a
coder runner and choose Send conversation to runner. This sends the linked
conversation through the selected Space. After admission, Return to originating
Desktop
requests the reverse move. When the runner is offline and the server
offers a saved copy, choose a compatible replacement and Restore conversation
on runner
. A transfer in progress can be cancelled from the same section. The
link stays attached after admission so later moves address the same conversation.
After the runner accepts a Desktop conversation, the repository approval panel closes.
Keep writing in the same dialog after the runner accepts the transfer.
If a return is interrupted, reopen that session and check the saved request before starting another transfer.
Once the return completes, you can prepare a fresh transfer from the same Local conversation in the original Company Space. Review the new copy and select a runner again.

Once the runner accepts an imported Desktop conversation, the owner can read
the original messages before new runner replies in Development. The history
stays visible if that runner temporarily goes offline. The hosted status API
includes the imported message text only when the owner requests
?importedHistory=true.

Stop targets the runner’s pending turn. When the runner confirms the stop, the
conversation shows Stopped. If the reply to sending is lost, the composer
keeps that same instruction for a retry, and the runner’s answer appears in the
conversation history when received.

In Development on the server, choose Start from Git, select a
project, repository and runner, and enter a branch name. An updated runner
uses the latest commit on that branch when it starts. Open Use a specific
commit
to pin an exact version. Older runners require the full commit SHA.
Use all 40 or 64 lowercase characters, depending on the repository.
Write your message and press Enter to send it. Shift+Enter adds a line.

When a runner reports its default model, Development shows it beside
Send. If the runner offers several models, select one for your next
message. The control is available when starting from Git and in the opened
Git session. The runner’s default applies when you leave the first option
selected.

An operator can start Coder Runner with its usual --hosted-model-base-url,
--hosted-model-provider and --hosted-model flags and add
--hosted-model-options=model-b,model-c. Use up to seven additional model
IDs supported by the same endpoint. These models all use the configured
provider and credential. Older runners continue to show their default
model when it is available.

For Git sessions, use --hosted-image-models=model-a,model-b to list the configured models that accept images on that endpoint. Use the exact model IDs from the hosted catalogue. The first or a later Git prompt can carry up to eight PNG, JPEG, GIF or WebP images (4 MiB in total). When sending a Git prompt through the API, add promptImages with name, mime and base64 data, and append !images to the model selection after any effort and Plan options, for example provider/model#high!plan!images. A model without image support rejects the request.

In the server Harness, select a model that accepts images and use Attach images in the composer. To revisit the images, select View images under the sent message. Use the arrow buttons or the arrow keys to move between images. The session owner can reopen them after reloading the conversation or when the runner is offline. API clients can read the accepted turn’s images with GET /api/v1/namespaces/{namespace}/coding-sessions/{sessionId}/prompt-images?commandId={commandId}.

For providers and models that accept reasoning effort, the operator can
add --hosted-reasoning-levels=low,high. Use the subset of off, low,
medium and high supported by all models configured on that runner.
The Auto option uses the normal provider settings. An explicit level
applies to the next Git message. A retry keeps the original model and
level. API clients can append #high to the selected provider/model
in the existing message field.

You can use /model and /effort inside a draft when the current runner
offers those choices. Selecting an option keeps the rest of the draft.

On compatible Git runners, choose Plan or Build in the composer,
or type /plan or /build in your draft. Plan can inspect the project
and use Mockarty read tools. Workspace writes and shell commands are
blocked. Build uses the runner’s normal workspace policy. API clients
request Plan with provider/model!plan or provider/model#high!plan.

To recover a Git conversation, open Restore session above the composer.
The panel tells you whether the original runner is still online, the latest
work has no verified copy, or the workspace has no available replacement.
If the verified copy is missing, reconnect the original runner to check the
last message. When a replacement is available, select it to restore the saved
conversation and move messages the assistant has yet to start.

If the runner disappeared while processing a message, the panel may offer
Restore last verified copy. Confirm after reviewing the warning. The
message with the unknown outcome stays in the history and runs only if you
send a new instruction. Check any files or external systems the lost message
may have changed before deciding what to send next. Messages that were still
queued move to the replacement runner.

On Android, open a conversation in Coder. The badge shows where it
runs. Write and send messages from the bottom bar. Open Session details
to see the branch, access and transfer options. If the server offers a saved
copy, choose Restore session, pick an available runner and confirm.
Messages that the assistant has not started move with the conversation.
Choose Cancel recovery while the runner is preparing the copy.

The block shows where the work lives (the mission the session is bound to, or that
the session is standalone) and the last admitted continuation with its direction.
The actions are:

  • Continue on with the runner’s name records a durable request for one
    registered coder runner of this Space. Only a runner that is currently accepting
    sessions is offered; another one is listed with the reason it cannot take the
    session. When no runner is registered, the panel says so and points to the runner
    settings.
  • Bring it back to this workspace asks for the return move after the session
    was continued on a runner.
  • Cancel request withdraws a request that has not been admitted yet. An
    admitted move cannot be cancelled: the engine session already moved.

The move happens asynchronously and the panel reports the server’s durable state:
requested (the side that owns the engine has been asked to export),
exported (the transcript was sealed and is waiting for the receiving side) and
admitted (a continuation receipt exists — the move happened). A refused or
withdrawn request ends as cancelled. Receipts survive an admin restart when the
installation has a database; on a node without one the panel says the receipts are
process-local.

Requirements and limits:

  • The session must be live and belong to a Git repository with a checked-out
    branch: a stopped session and a non-repository folder have nothing to
    materialize on the receiving side.
  • The receiving machine must be able to continue the session. A target that cannot
    host the imported session settles the request with that reason instead of
    pretending the move happened; while no host has picked the request up it stays
    pending and you can cancel it.
  • One move at a time per session. The server derives the generation itself, so a
    stale or duplicated request is refused; if the panel reports that the transfer
    state could not be read, read it again before starting a second move.
  • The buttons are the actions the server currently allows for you, and reopening
    the panel does not resend a request that was already recorded.

The runner executes one turn at a time per session. A queued prompt expires
after 45 minutes. If the runner reconnects after that point, the turn is recorded
as failed in the session history. You can send a new prompt in the same session.

After three consecutive model execution failures, the runner waits before
starting another turn in that session. New prompts stay queued during the wait.
Other sessions keep running, and Stop turn can still cancel a queued turn.
A successful turn resets the wait. A session can hold up to 32 queued turns.
If the queue is full, you can wait for a turn to start or stop a queued turn
and then submit your prompt. Each running turn can send up to 24 requests to its
model provider, including retries. If the turn reaches the limit, you can send
a new prompt in the same session to continue.

In the hand-off panel, Stop turn shows the number of the turn it will stop.
It selects the running turn first. If there is only queued work, it selects the
first turn in the queue. Stopping turn means the runner still needs to confirm
the result. Reopening the panel shows the current state.

Agents use the coder_session_transfer MCP tool. status, request and cancel
manage the move. continue queues a prompt on the runner. To stop one turn, use
stop_turn with the commandId and leaseGeneration from status.continueStop.
To address a specific turn, take both values from the same status.continueCommands
entry. A queued turn stops immediately. When a runner has
claimed the turn, check status again to see the confirmed result. The session
stays available for the next prompt. See Local workspace in Desktop
for the HTTP endpoints.

The panel reads destinations for the selected session. Switching sessions or reopening the panel clears the previous destinations while the new list loads. Closing the panel retires its pending read, so a late response cannot restore an old destination list. Closing the panel does not cancel a handoff already sent to the server; its late response cannot replace the reopened panel, and it is not sent again automatically.

A coding-session record can be linked to the open local session that serves it, so
moving between the mission and the computer always lands on the same work. Open the
record in the harness and choose Link Desktop session. If multiple local
sessions are open, select the one you want to link. One record pairs with one local session;
a session that already serves another record is refused, and a finished session
cannot be linked. Reading the link needs the coder read permission; linking and
unlinking need coder write, in addition to Space access and the Agent work
(A2A)
module. The local-session rail shows the reverse address — the mission a
local session serves, linking back to its record.

The link chip on the record shows its confirmed state:

  • open — the owning Desktop published the session and reports it running.
    Selecting the chip opens that local session; this address resolves in the Desktop
    app only.
  • waiting for owner confirmation — the link exists, but the owning Desktop has
    not published the session yet. The chip is text, not a link: it opens nothing
    until the owner confirms, and its tooltip says the session has not been published.
  • closed — the session has finished; it can no longer be opened or continued.
  • unconfirmed — this node has no session-resume surface for the session, or the
    session belongs to a device your account may not act on.

The address /ui/harness?localSession=<id> opens a linked local session. A browser
or server harness cannot open a Desktop-local session, so there the chip stays plain
text with that explanation instead of a link. Unlinking removes the pair; it does not
stop or change the session.

Following a coding session in the browser

The browser harness catches up on retained messages and tool activity when it reconnects. You can continue a stopped session from its history. While new activity arrives, any tool card you opened stays expanded. The composer stays visible while you scroll through the conversation. If you scroll up to read earlier messages, the view stays at your position. Use the down-arrow button to return to the latest activity.

When the conversation names another device as its current presenter, you can keep reading. Leaving the conversation within the app releases your presentation. After closing the tab, it may take up to 90 seconds for another device to take over.

In connected Desktop, opening Development starts in the selected Company workspace. New session opens a draft in your current execution mode. The placement menu in a conversation shows its current environment and the destinations available for that session. A session running on a connected Desktop stops showing the activity ring when its confirmed state is ready for the next message.

In Development on the server, type / in the message field to open the command menu. You can do this after typing part of a message. Use the arrow keys and Enter to select a command, or Esc to close the menu. Use /new to open a new session and /stop when the current action can be stopped. Use /help to see the commands. Selecting a command leaves the rest of your draft ready to edit.

While the runner is working, you can draft the next message. Sending becomes available when the runner can accept another message. If your last submission is still awaiting confirmation, its text stays in the composer until the server confirms it.

Exchange files with a runner

In Development, open a session started on a runner from Git, or reopen a Desktop session after transferring it to a runner. Expand Runner files above the composer. In connected Company Desktop, select the workspace that holds the session. For a session opened in the Coder workbench, use Runner files in the execution panel. The session owner can upload a file of up to 4 MiB. When the runner confirms the upload, the panel shows its relative path in the checkout under mockarty-inbox. Refer to that path in your next instruction.

To retrieve an artifact, ask the agent to place it in mockarty-outbox in the runner checkout. Enter its relative path in that directory, for example reports/checks.json. Select Retrieve, then Save to device after the artifact is available. Each request retrieves one regular file. The resulting copy is available for 30 minutes from the request.

The panel explains when the runner is offline, the workspace is moving, or the session does not support file exchange, such as in a Cloud Sandbox. Files are tied to the current runner workspace. If a different runner takes over, request the file again from that workspace. The mobile app does not offer these file actions yet.

Use an updated server and Coder Runner that support file exchange. The runner must still hold this session. A file request waits while a turn is active. The exchange preserves existing files and keeps the file contents out of the conversation history.

Reuse lessons from a coding session

After completing a task, ask the Harness to review a recurring mistake or a manual step. The built-in coder-mockarty-self-improve skill helps the agent use the session evidence, prepare a change to an existing skill, or plan a new skill or plugin. Ask for a small example that verifies the improvement and for the exact revision to review. Installation, publication and activation use the controls available in your workspace.

Plugin catalogue in the harness

Open Plugins in the coder harness to inspect the catalogue available to the current namespace. In Desktop, the same button is available beside the local project folders. Select a catalogue source to read its packages. A failed read is shown as an error; it is not an empty catalogue.

Installed plugins lists the package names, versions and status for the selected backend. Installation on a backend does not establish availability to a selected runner. Running sessions retain their pinned versions. If verified state is unavailable, the panel does not offer installation or session selection. On server and SaaS, plugin installation is managed by the operator; this panel does not offer session plugin selection or Desktop installation there.

On a supported local Desktop backend, choose Review beside a catalogue package. The package must pass exact package review before an installation action is offered. Continue to Desktop confirmation opens the native confirmation for the displayed package, version, backend and action. The normal catalogue installer cannot approve engine code. An installed package is shown once on that backend; this installer does not offer version replacement.

Installed packages can offer Enable, Disable or Remove when the local backend permits the exact action. Versions in use by sessions cannot be changed through these controls. A lost response leaves the operation unresolved: Read outcome checks the same recorded operation without repeating the change. After reconnect or restart, recorded operations are read back using their original facts. If operation history is incomplete, changes remain blocked while installed versions remain visible.

In Desktop local projects, select Use in the next local session for up to eight eligible installed plugins. The selection is checked again immediately before a new local session starts. A changed version, missing installation receipt or unavailable backend blocks that start and asks you to review the selection. The selection does not change a running session and is not attached to server mission requests.

Author a custom Faker

In a new Harness chat, ask it to load coder-mockarty-faker-plugin. The built-in skill includes a local starter for a synthetic name and checks which build tools are on the selected execution host. TinyGo and the CLI are separate tools installed on the execution host. With TinyGo and Python installed, you can compile and package the example offline without the CLI. Without TinyGo you can prepare the manifest and source for review. Import a compiled Faker bundle through Desktop panel → Plugins or Admin → Plugins on the server, then verify the response of a disposable mock. Writing plugins

For installed and active state in the current Space, ask the Harness to read plugin_status. A Marketplace preview can identify your account as an administrator while an installed-plugin read through the chat returns HTTP 401. Use Plugins for administrator review of a package and its manifest.

For a general Harness capabilities question, ask for a capability check. When the workspace exposes get_coder_capabilities, the agent can request its bounded diagnostic and summarize what it observes. A short catalogue sample can be incomplete.

Recorded usage and unresolved changes

A local coding turn can use more than one provider or model. Desktop keeps confirmed usage for each model visible when a later usage correction is unresolved or coverage becomes incomplete. The correction or missing coverage has no confirmed price; it does not mean that further work was free. If saving fails, read the existing session after reconnecting rather than starting the model task again.

In Android, a server session with recorded tokens but no price shows that the price is unavailable. A zero cost is displayed only when the server explicitly confirms a priced record. Android server sessions do not expose the local Desktop usage-correction details.

Choose execution settings in the harness

Open Tools, files and execution when starting a session. Choose an access level, reasoning effort and an exact runner there. The model and autonomy remain next to the task. Empty selections keep the server defaults; the current default access is full and runner sandbox limits still apply.

Access and reasoning choices come from the server. If the choices cannot be read, the selectors stay unavailable rather than displaying an empty catalogue as a valid result. Reasoning effort reaches the execution provider only when it supports it. An exact runner choice never silently falls back to another device; an unavailable or incompatible choice is refused.

A saved unconfirmed request keeps these exact settings, including a runner that is no longer listed. Reloading the form does not submit a new operation or broaden its permissions.

Use the toolkit search to find skill sets and MCP servers by name, description or requirement. Filtering only hides rows: checked tools remain selected and are still included in the session. Unavailable choices stay disabled. The selection count distinguishes a locked saved request from a new editable selection.

Open Recorded execution settings beside the session conversation to inspect the engine, access level, reasoning effort and exact runner pin saved by the server. Missing fields in older records say Not recorded; the view does not infer full access or current device health from missing data.

Use Left/Right arrows to switch session sections, and Home/End to reach the first or last section. Tab enters the selected section tab once.

The coder opens on Sessions. With no sessions yet, the session rail stays visible and the message input is ready for your goal. Start opens the repository form before any work begins. Use Profile, model and access to choose the next session settings. In an existing session, Session model and access beside the input shows its recorded settings; changing new-session preferences does not change the running session.

Open Session settings for Materials, Skills and toolkit, or Execution and permissions. The disclosure does not change your selections or execution rights. Autonomy contains the existing scheduled test runs and process information; it does not schedule coding sessions. The sidebar groups missions, the coder, automations, knowledge and runner settings under Autonomy, subject to your existing access and licence.

Installed plugins are in a collapsible section. Package checksums are available when reviewing an operation. If an operation needs readback or backend state is unavailable, the section opens automatically; unresolved operations are not hidden by the compact view.

Runner settings places the task before execution setup. Skills, tools and built-in capabilities keeps all optional selectors available without filling the initial screen. The existing effective-session summary and start refusals stay visible. Choices are sent when a new session starts; changing the form does not reconfigure a running session.

On Desktop, Connection settings on this computer opens the existing provider and saved-key controls. Save and Clear saved key keep their existing behavior. These computer-local settings are shared connection settings, not overrides for an individual coding session.

Stopping a runner

During a graceful stop, the runner stops accepting new jobs and keeps heartbeats for already accepted work while it finishes and delivers results. The task execution deadline still applies. If result delivery cannot be confirmed, the runner reports an incomplete drain rather than a clean settlement.

Deleting an Assistant artifact stops access through its artifact card and signed links. It does not promise immediate physical erasure of bytes that may also be used by another report or attachment.

Scheduling requests in a coding conversation

For a request to run later or repeat, use Mockarty automations that are available to your account and Space. The managed coder is instructed to use the advertised Mockarty scheduling tools, rather than create an invisible job in the computer’s scheduler. If the tools or requested action are unavailable, it must explain the limitation. The current personal scheduled-goal profile creates text plans; it does not run arbitrary coding sessions, scripts, tests or send mail. Existing scheduled test runs have their own controls.

Specify the time or recurrence, time zone, deadline and token budget. After saving, check the returned schedule ID, next run time and enabled or paused state in Mockarty. A timeout does not prove that creation failed: the coder must reconcile the original request before reporting its outcome, without creating a replacement schedule.

Mission plan and recorded session steps

The plan tab preserves the main mission tree. When the latest terminal job report contains an OpenCode checklist, a Last recorded session checklist block appears alongside it. This is a report snapshot, not the current plan of a working runner. A new job does not inherit the previous job’s checklist. Checklist marks do not mean that the mission passed verification or was accepted.

Refresh and the existing automatic refresh re-read runner availability. A selected runner that disappears or becomes unavailable stays selected and is labelled unavailable; it is never silently replaced with automatic placement. Refresh does not re-dispatch a start with an unknown outcome or change its saved parameters.

Guard in the harness

Open Guard beside the message input to inspect the current server policy. An administrator can enable or disable it there. This changes the policy for all model requests on that server, including other chats; it is not a per-message option. The switch keeps the current mode, rules and failure policy. Use Rules and settings to configure them. An enabled switch in Observation mode does not mean that traffic is masked.

Users without administration rights see a configuration snapshot and cannot change the policy. On Desktop, when local coding uses a connected server model, the panel shows that server’s Guard configuration and leaves local controls disabled. Change remote policy in that server’s administration. If the policy cannot be read, the panel shows an unconfirmed state rather than assuming protection. After an interrupted save it reads the policy again and does not automatically repeat the write.