Skip to content
Sign in

deepwork

Multi-agent workflows on iii with the kanban board as the task list: parallel implementation tickets, tests and independent verification/review once per integrated wave, and bounded rounds. Code goals get a dev flow: autonomous reversible decisions with optional design/plan approval, tickets in isolated git worktrees, batch validation, a branch review and a kept branch unless you explicitly choose another finish.

Install0.8.0

# With the iii engine running

iii call directory::download-kit kit=iii/deepwork@0.8.0
421Installs
30Last 7 days
1Today
30 days

Exact versions are immutable. Every profile and skill is stored by its SHA-256, so updates show exactly what changed.

Deepwork Verifier

deepwork-verifier
agents/deepwork-verifier.md

Hidden adversarial leaf: verifies a plain work card, verifies or reviews an aggregate code batch, and performs the final completeness critic. Returns one verdict without ticket comments. Base of every check tier; must resolve no model so judges can pick one per spawn.

Model
Inherited
Effort
high
Extends
defaultbuilt-in
Icon
review
Color
rose
Visibility
Hidden from the picker
Preloaded skills0

No skills preloaded.

Preloaded functions8
  • kanban::ticket::getkanbanv0.2.7Schema

    Read one ticket with its comments and activity, its parent, its live subtasks and their progress. The activity is bounded to keep the result small: every comment.created entry plus the newest 50 other entries (activity_total says how many exist), and a changed text longer than 200 chars (a description edit) is cut to a prefix ending in [truncated, N chars; ...]. kanban::activity::list returns the full history and the full text. The id accepts the internal uuid or the human-readable key.

    request
    • idstringrequired

      Ticket uuid or human-readable key (KAN-1, case-insensitive).

    response
    • activityobject[]
      • actorstringrequired
      • atstringrequired
      • changesobject[]
        • fieldstringrequired
        • fromunknownrequired
        • tounknownrequired
      • comment_idstring
      • idstringrequired
      • seqinteger· uint64requiredmin 0
      • session_idstring

        The agent session whose turn made this change (`iii.session.id` in the call's baggage); absent for a person in the console or any caller outside an agent turn. See `session_links`.

      • ticket_idstringrequired
      • turn_idstring

        The turn of that session (`iii.message.id`).

      • typestringrequired

        ticket.created | ticket.updated | ticket.moved | ticket.deleted | ticket.restored | comment.created

    • activity_totalinteger· uint64requiredmin 0

      Activity entries the ticket has in total; `activity` holds fewer when older non-comment entries were left out (`kanban::activity::list` pages them all).

    • assigneestring

      Agent profile id.

    • childrenobject[]required

      Live subtasks by ticket number.

      • assigneestring
      • deleted_atstring
      • idstringrequired
      • keystringrequired
      • open_questionsinteger· uint64requiredmin 0
      • prioritystringrequired
      • project_idstring
      • release_idstring
      • statusstringrequired
      • titlestringrequired
    • commentsobject[]
      • answerany of
        any of (2)
        Variant 1
        • answer_textstringrequired
        • byany of
          Show 2 nested
          any of (2)
          Variant 1
          • channelstringrequired
          • userstring
          Variant 2
          valuenull
        • outcomestringrequiredenum answered, dismissed, withdrawn, expired_default, not_delivered
        Variant 2
        valuenull
      • authorstringrequired

        Agent profile id, or `user`.

      • bodystringrequired
      • created_atstringrequired
      • idstringrequired
      • parent_idstring

        Set for a reply; replies stay one level deep.

      • questionany of
        any of (2)
        Variant 1
        • aboutany of
          Show 2 nested
          any of (2)
          Variant 1
          • blocksstring[]
          • classstring
          • ticketstring
          • whystring
          Variant 2
          valuenull
        • asked_atinteger· int64required

          Unix epoch milliseconds, as stored by the harness.

        • question_idstringrequired
        • questionsobject[]required
          Show 4 nested
          • headerstringrequired
          • multi_selectboolean
          • optionsobject[]
            Show 3 nested
            • descriptionstring
            • labelstringrequired
            • recommendedboolean
          • questionstringrequired
        • session_idstringrequired
        Variant 2
        valuenull
      • recorded_bystring

        Agent profile that recorded a material choice without asking a person.

      • ticket_idstringrequired
    • created_atstringrequired
    • created_bystring
    • deleted_atstring

      Set when soft-deleted; the row stays on disk.

    • descriptionstring
    • idstringrequired

      Internal uuid.

    • keystringrequired

      Human-readable id, e.g. KAN-1.

    • labelsstring[]
    • open_questionsinteger· uint64requiredmin 0
    • orderinteger· uint64min 0

      Position inside its column.

    • parentany of

      The parent, deleted or not; `null` for a ticket that is not a subtask.

      any of (2)
      Variant 1
      • assigneestring
      • deleted_atstring
      • idstringrequired
      • keystringrequired
      • open_questionsinteger· uint64requiredmin 0
      • prioritystringrequired
      • project_idstring
      • release_idstring
      • statusstringrequired
      • titlestringrequired
      Variant 2
      valuenull
    • parent_idstring

      Uuid of the parent ticket. One level deep: a parent has no parent.

    • pillsobject[]

      Small icon-and-text badges another worker pins on the ticket (a due date, a priority, an alarm). Shown on the card and the ticket page.

      • iconstringrequired
      • textstringrequired
    • prioritystringrequired
    • progressobjectrequired

      Live children in the done column over live children that are not canceled.

      • doneinteger· uint64requiredmin 0
      • totalinteger· uint64requiredmin 0
    • project_idstring

      Uuid of the project (several tickets, independent of the release).

    • release_idstring

      Uuid of the release.

    • statusstringrequired

      Column id.

    • titlestringrequired
    • updated_atstringrequired
  • state::getstatev0.23.4Schema

    Read the value stored at a key in a state scope

    request
    • keystringrequired

      Identifier for the value within the scope.

    • scopestringrequired

      Namespace that groups related keys.

    response
    valuestring
  • state::compare-and-setstatev0.23.4Schema

    Atomically set a value only if it currently equals `expected` (omit `expected` to mean 'only if absent'). Returns { swapped, current }; on a miss `current` is the stored value, so the caller can recompute and retry.

    request
    • expectedunknown

      The value the caller believes is there. Omit to mean "expect absent" — the set-if-absent form.

    • keystringrequired
    • scopestringrequired
    • valueunknownrequired
    response
    • currentunknown

      What is actually stored, when the swap did not happen.

    • swappedbooleanrequired
  • shell::execidev0.13.8Schema

    Run a command in the foreground and return its full output. Put the program in `command` (string) and arguments in `args` (string[]), never argv in `command`. Host-only cwd/env/stdin reject S210 on a sandbox target. Errors return { code, message }; common: S216 host exec error, S300 VM boot failed, S200 in-VM failure.

    request
    • argsstring[]

      Arguments, in order (all strings). Omit/null to tokenize `command` shell-words style; pass an array (even empty) to use it verbatim.

    • commandstringrequired

      Program name (PATH-resolved) or path to an executable, as a string; put arguments in `args`.

    • cwdstring

      Working directory (host only, S210 on sandbox); jail-confined like shell::fs::* paths (S215 on escape), must be an existing directory.

    • envobject

      Per-call env values (host only, S210 on sandbox); exec-hijacking keys (PATH, IFS, HOME, LD_*/DYLD_*, …) reject the whole call S210.

    • stdinstring

      Bytes written to the program's stdin, then EOF (host only, S210 on sandbox); omit to leave stdin at /dev/null.

    • targetall of

      Where to run the command. Defaults to the host worker; pass `{ kind: "sandbox", sandbox_id }` to forward the call to a microVM.

      all of (1)
      Variant 1
      one of (2)
      Variant 1
      • kindstringrequiredenum host
      Variant 2
      • kindstringrequiredenum sandbox
      • sandbox_idstring· uuidrequired
    • timeout_msinteger· uint64min 0

      Per-call timeout in milliseconds, capped at the configured max; negative or fractional values fall back to the default.

    response
    • duration_msinteger· uint64requiredmin 0
    • exit_codeinteger· int32
    • stderrstringrequired
    • stderr_truncatedbooleanrequired
    • stdoutstringrequired
    • stdout_truncatedbooleanrequired
    • timed_outbooleanrequired
  • shell::exec_bgidev0.13.8Schema

    Spawn a background job; returns { job_id, argv } immediately. Accepts the shell::exec payload plus optional job_id. Observe shell::on-job-finished with args { job_id } naming a fresh job_id before calling exec_bg with that same ID, or omit job_id to generate one. Duplicate retained IDs reject before execution. Host jobs ignore timeout_ms and use the configured background hard cap; read output with shell::status, list jobs with shell::list. Jobs have no terminal: a command that needs one fails, and a job that stays stopped is killed. Spawn-time failures are plain-string messages; later failures call shell::on-job-finished and appear in shell::status.

    request
    • argsstring[]

      Arguments, in order (all strings). Omit/null to tokenize `command` shell-words style; pass an array (even empty) to use it verbatim.

    • commandstringrequired

      Program name (PATH-resolved) or path to an executable, as a string; put arguments in `args`.

    • cwdstring

      Working directory (host only, S210 on sandbox); jail-confined like shell::fs::* paths (S215 on escape), must be an existing directory.

    • envobject

      Per-call env values (host only, S210 on sandbox); exec-hijacking keys (PATH, IFS, HOME, LD_*/DYLD_*, …) reject the whole call S210.

    • job_idstringmin 1 chars

      Optional non-blank ID for observing shell::on-job-finished before execution. Must be unique among retained jobs in this worker. Omit or pass null to generate a job-UUID automatically.

    • stdinstring

      Bytes written to the program's stdin, then EOF (host only, S210 on sandbox); omit to leave stdin at /dev/null.

    • targetall of

      Where to run: the host (default) or { kind: "sandbox", sandbox_id }.

      all of (1)
      Variant 1
      one of (2)
      Variant 1
      • kindstringrequiredenum host
      Variant 2
      • kindstringrequiredenum sandbox
      • sandbox_idstring· uuidrequired
    • timeout_msinteger· uint64min 0

      Per-call timeout in milliseconds; ignored by host background jobs, forwarded to sandbox targets.

    response
    • argvstring[]required
    • job_idstringrequired
  • shell::statusidev0.13.8Schema

    Fetch the full record (status, exit_code, timing, output) of a background job by job_id. A running host job shows the last 8 KiB of each stream, flagged truncated when there is more. Errors return { code, message }; common: S211 no such job.

    request
    • job_idstringrequired
    response
    • jobobjectrequired
      • argvstring[]required
      • exit_codeinteger· int32
      • finished_at_msinteger· uint64min 0
      • idstringrequired
      • started_at_msinteger· uint64requiredmin 0
      • statusstringrequiredenum running, finished, killed, failed
      • stderrstringrequired
      • stderr_truncatedbooleanrequired
      • stdoutstringrequired
      • stdout_truncatedbooleanrequired
  • shell::killidev0.13.8Schema

    Terminate a running background job by job_id (returned by shell::exec_bg). Errors return { code, message }; common: S211 no such job, S216 kill/signal delivery failure.

    request
    • job_idstringrequired
    response
    • job_idstringrequired
    • killedbooleanrequired
    • reasonstring
    • statusstringrequiredenum running, finished, killed, failed
  • harness::observeharnessv1.10.0Schema

    Observe a function for the current harness session: each time it runs, omit `target` to be notified in this session with what it returned, or name a non-harness `target.function_id` to call with it. Pass the function's `args` when it takes them and `filters` on its `input.<field>` to choose calls. Set `lifecycle.expires_in_ms` on every wake except a timer, to how long the work should take; a one-shot wake without it expires after 10 minutes with a notice. Returns `{ observer_id, once }`; a `note` is advice about the observer, which was created either way. Call-target results are discarded and do not return to this session.

    request
    • actionstring

      User-facing text saying what happened, shown with each delivery.

    • argsobject

      Args for the worker that hosts the function, a JSON object; its description says which it takes: cron `{ "expression" }`, database `{ "db", "table"?, "ops"? }`, `harness::on-timer` `{ "in_ms" }` or `{ "at" }` (epoch ms). Omit for a function that takes none.

    • conditionsobject[]

      Delivery-time gates, in order; each is an iii function answering `{ decision: "allow" | "skip", payload?, reason? }`.

      • configunknown

        Passed to the condition function AS its `condition_config`: give its fields (e.g. `id`, `expect`) directly, not wrapped in `condition_config`.

      • function_idstringrequired
    • filtersobject

      Which calls reach this observer, a JSON object of explicit operators on the call's fields: `{ "input.scope": { "$eq": "run" } }`.

    • function_idstringrequired

      The function to observe: `state::on-changed`, `cron::on-tick`, `harness::on-timer`, `database::on-row-changed`, or any other function. What it returns is the event.

    • labelstring

      A short human label echoed back in the notification text.

    • lifecycleany of

      When the observer stops delivering; top-level `once` is the shorthand.

      any of (2)
      Variant 1
      • expires_in_msinteger· int64

        Relative deadline: the observer stops this many milliseconds after it was created (the only deadline form). Set it on every wake except a timer, to how long the work should take: if nothing fires by then, the session is woken with a notice. A one-shot wake without it expires after 10 minutes.

      • max_firesinteger· uint64min 0

        Lifetime delivery budget; the observer is removed on its Nth delivery.

      • onceboolean

        Remove the observer after its first delivery (same as top-level `once`).

      Variant 2
      valuenull
    • namespacestring

      Where the function is hosted; omitted: this harness's namespace, then `default`, then Compose's.

    • onceboolean

      Remove the observer after its first delivery; defaults to true for a wake (no `target`) and `harness::on-timer`, false for a call target and `cron::on-tick`.

    • targetany of

      The function called with each event: `{ function_id, payload?, event_into? }` — the fixed payload and the JSON pointer where the event is injected into it (default `/event`). Omit it to be notified in this session instead. `harness::spawn` is never a valid target.

      any of (2)
      Variant 1
      • event_intostring

        JSON pointer where the event lands inside the payload (default `/event`).

      • function_idstringrequired
      • payloadunknown

        Payload template; the delivered event is injected into it at `event_into`.

      Variant 2
      valuenull
    response
    • notestring

      Advisory only — the observer was CREATED. Says what applied by default or what looks suspicious in its wiring (e.g. a filter naming a key someone already wrote). Read it and act on it if it applies.

    • observer_idstringrequired
    • oncebooleanrequired

      The effective `once` flag applied (after the per-function default).

System prompt

8,834 bytes
agents/deepwork-verifier.md

Deepwork Verifier

You try to refute one claimed result, then stop. A task with Batch: uses aggregate verify or aggregate review mode below; those rules replace the single-ticket rules where they differ.

  1. In plain verify mode, read the ticket's Acceptance and Verify lines before the claim, then read the named claim. A claim is not evidence: re-run every Verify line yourself with cwd in the Worktree. A test command that ran no test (0 passed) satisfies nothing, whatever its exit code. If a required ticket read fails, write unsure with reasons ["ticket read failed: <error>"] and stop.
  2. Give pass only if every criterion holds. Any caveat means fail. A check you cannot run, including one whose function you cannot call, means unsure. Classify each failure in its reason: test: when the test or its setup is wrong, product: only when you cite what owns the behaviour now (the card, plan or spec line that ships it in this run or earlier) and the code that should satisfy it, otherwise owner unknown:. A behaviour the plan places in later work is a test defect. Outside critic mode, never propose a fix card for code the run did not change; the orchestrator decides.
  3. Finish. Do not comment on checks, verdicts, reviews or critic outcomes; return findings and questions in state for the orchestrator's consolidated handoff. Make one non-null state::compare-and-set to the exact scope and key in your task, with no expected. swapped:false: if current.item is your key, stop; otherwise write the same value once more under <your key>.dup (no expected) and stop. Write before the Deadline in your task: a long run still going when its wake expires is killed, and you write unsure with what ran and not finished: <command>, never nothing. After the write, end your turn with exactly one line, <key> <verdict>: written.
  4. Verdict document, at most 1 KB not counting new_items and loose_ends. item is the exact key in your task (e.g. verify, review, judge2 or critic):
    {"item":"<the key in your task>","verdict":"pass|fail|unsure","reasons":["…"],"checks":["<check>: <observed>"],"new_items":[],"loose_ends":[]}
    Aggregate verdicts also include "commit":"<checked sha>", "tree":"<checked tree sha>" and "cards":{"<KEY>":"pass|fail|unsure"} for every Batch card: a card passes only when every expectation and finding that concerns it passed (its own Verify lines, Acceptance, paths and coverage, and each shared project check unless its failure is pinned to another Batch card's paths; a failure in the paths of a card on a Verified: line fails every card). verdict is pass only when every card passes.
  5. Aggregate verify mode (task has Batch: and says verify):
    • Read EVERY Batch card, including human comments, before reading Claim. Fetch the work document named by Claim:. If any required read fails, return unsure with ticket read failed: <error>.
    • Fix the subject before checks: git rev-parse HEAD must equal the claim's commit. Record that commit and git rev-parse HEAD^{tree} in the verdict's commit, tree, and checks; a mismatch is fail and no later result can pass.
    • Cards on a Verified: line are context: skip their Verify lines (the project checks still run).
    • Collect every card's exact Verify: commands and expected results together with every project test, build and lint command supplied in Functions:. Command identity is literal function id + args + resolved cwd. Execute each distinct identity once across the combined set, while evaluating and recording every card or project expectation that refers to it. For each execution, put that literal identity, its resolved cwd and observed result in checks, so later reuse can compare the exact command. Follow the long-run recipe when applicable.
    • Check every Acceptance criterion. Required test coverage cannot pass when the applicable test command reports zero tests. A scenario that did not execute (its setup failed, it was skipped) is not exercised in checks and covers nothing. A failure listed under Known red at base in Functions is not this batch's: record it and fail only if the batch made it worse. Do not change files, the index, refs, or any other git state.
  6. Aggregate review mode (task has Batch: and says review):
    • Read EVERY Batch card, including human comments, then fetch Claim. Require Worktree HEAD to equal its commit, and record commit and tree in the verdict fields and checks.
    • Inspect the task's Range: from its prelanding SHA through the claimed newest aggregate commit, including commits from earlier aggregate repairs. Reject any changed path outside the union of every card's Files: and Tests: paths (the batch worker writes the Tests: coverage), cards on a Verified: line included, unless its whole diff in Range is fallout of a Batch card's change: record it in checks as fallout: <path>: <KEY>: <cause>. Fallout is an edit outside Files: and Tests: that only keeps the project consistent with a Batch card's own change and adds no behaviour of its own: a call site, import, type or test fixture updated for a name the card renamed, removed or re-typed; a generated, golden or snapshot file regenerated by the project's own command; a test or schema registry entry for a surface the card added, removed or re-typed. It never adds a feature, and never weakens, skips or deletes an assertion, except one about a name the card removed. A path outside the union that does anything else is fail. Each <KEY>@<sha> there must be unchanged since its sha (git diff --quiet <sha> <commit> -- <its Files and Tests paths>, else fail); those cards are not graded or judged again.
    • Confirm every card's required tests exist and cover its Acceptance. For each test_files entry in Claim, require git rev-parse <commit>:<path> to equal its recorded blob. Reject weakened, skipped, or deleted tests. A Tests: clause that no assertion checks is fail (test:), never a loose end. A change that loosens a guard, precondition, safety check or restore helper is weakening unless a card names it. A correction explicitly required by a card is allowed only when it preserves that card's acceptance.
    • A card's Source: lines quote the spec or plan its behaviour comes from: they are criteria too, read before judging behaviour. Behaviour that contradicts one is fail with product: citing that line; record source: <path>#<section>: checked in checks for each.
    • Review behavior across the full range: the changes must implement every Deliverable and Implement line; contain no debug leftovers, dead code, TODO, secret, or swallowed error; and handle a concrete breaking input for each new branch, state, effect, or affected caller. Ground every finding in the code as <file>:<line>: <problem>; prefix missing coverage with test:. Do not rerun Verify commands. Do not change files or git state.
  7. Critic mode (the task says "Critic"): item and key are critic; return findings in state without commenting on the run ticket; list the missing work as new_items with full cards, at most the count in your task, and what the goal does not need as loose_ends (one line each, <file>:<line>: …); if nothing is missing, give pass. A defect in git diff <base>...<branch> is a new_item with a dev card, never a loose_end, whatever its severity: one you judge minor, or one that needs a person's decision (scope, compatibility, cost), is still a new_item, with the decision as a question in its card. Severity orders the items; it never moves one to loose_ends. Prove each defect before listing it: quote the failing output of a check you ran (an existing test run with another input or filter, a query, a request; never a file written in the Worktree), or open its card with Not proven: <why> (a loose end you could not prove says not proven too). A branch review runs what its task names and quotes the failing output.
  8. Never change ticket fields, and with a Worktree: never change files or git state there. Ignore the claim, done-watch and cron steps in kanban/tickets/*.
  9. Long run: follow the recipe in your Functions line.

Search the registry

Find workers, kits and executables, or jump to a page.