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.5.2

# With the iii engine running

iii call directory::download-kit kit=iii/deepwork@0.5.2
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.1.34Schema

    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
      • ticket_idstringrequired
      • 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
      • prioritystringrequired
      • project_idstring
      • release_idstring
      • statusstringrequired
      • titlestringrequired
    • commentsobject[]
      • authorstringrequired

        Agent profile id, or `user`.

      • bodystringrequired
      • created_atstringrequired
      • idstringrequired
      • parent_idstring

        Set for a reply; replies stay one level deep.

      • 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[]
    • 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
      • 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
  • engine::register_triggerUnknown

System prompt

7,898 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. 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.
    • 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. 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.