sea-lite
v0.7.1Work queue for parallel coding agents: leased path-scoped claims, typed links, hash-chained history
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sea_create Create a ticket
Create one ticket (status idea, or triaged = dispatchable now). Returns it plus `possible_duplicates` (similar titles; the create still happens, you decide). `claim_seconds` also claims it and returns a claim_token.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
assignee | string | |
body | string | |
claim_seconds | integer | Also claim the new ticket for this many seconds and return the token. |
dry_run | boolean | Validate only; write nothing. |
idempotency_key | string | Replay-safe: a repeat with the same key returns the first result, writes nothing. |
kind | string | |
priority | string | |
status | string | Initial status. `triaged` skips the inbox so sea_next can hand the ticket out immediately. |
tags | array |
sea_apply Create tickets and links in one batch
Create up to 50 tickets and 100 links in one all-or-nothing write. Each ticket has a batch-local `ref`; links join refs and/or existing ids. `templates` repeat one ticket per `for_each` value, e.g. a 20-step chain: {for_each: 20, ref: "s{i}", ticket: {title: "Step {i}"}, links: [{from_ref: "{ref}", to_ref: "{prev}", link_type: "depends_on"}]}. Rejected as a whole, every problem listed, on bad or duplicate refs, unknown ids, self-loops, duplicate links or a cycle. Returns {created: {ref: id}, links, idempotent_replay}; verbose: true echoes every id.
| Parameter | Type | Description |
|---|---|---|
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
claims | array | Tokens for existing tickets used as from_id. |
dry_run | boolean | Validate only; the result shows the expanded plan. |
idempotency_key | string | Replay-safe: a repeat with the same key returns the first result, writes nothing. |
links | array | |
templates | array | |
tickets | array | |
verbose | boolean | true: return every ticket and link id in full instead of {created, links, idempotent_replay}. |
sea_update Edit a claimed ticket
Edit a ticket you hold (claim_token): title/body/kind/priority/assignee, tags, and/or append a note. Notes are the hand-off channel. expected_version (row_version from sea_get / sea_list) rejects a write on a ticket changed since.
| Parameter | Type | Description |
|---|---|---|
claim_token * | string | From sea_claim / sea_next. |
ticket_id * | string | Id or unique ≥8-char prefix. |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
add_tags | array | |
assignee | Set the assignee; null clears it. | |
body | string | |
dry_run | boolean | Validate only; write nothing. |
expected_version | integer | Fail with version_conflict unless row_version equals this. |
idempotency_key | string | Replay-safe: a repeat with the same key returns the first result, writes nothing. |
kind | string | |
note | string | Append a note (progress, findings, hand-off). |
priority | string | |
remove_tags | array | |
title | string |
sea_transition Change a ticket's status
Set status (claim_token). Work track idea → triaged → in_progress → resolved; any active ticket may enter parked | blocked | needs_decision (resume to idea / triaged / in_progress) or a terminal state resolved | wont_fix | duplicate | dropped | merged (no exit; releases the claim; needs confirm: true or the client's confirmation). to=duplicate needs duplicate_of (records a `duplicates` link). `note` appends a note in the same write; `tickets` moves several at once, all or nothing. Rejections carry legal_next.
| Parameter | Type | Description |
|---|---|---|
to * | string | |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
claim_token | string | From sea_claim / sea_next. |
confirm | boolean | true: enter a terminal state now (else the client is asked, or gets confirmation_required). |
dry_run | boolean | Validate only; write nothing. |
duplicate_of | string | Required when to = duplicate; also creates a `duplicates` link. |
expected_version | integer | Fail with version_conflict unless row_version equals this. |
idempotency_key | string | Replay-safe: a repeat with the same key returns the first result, writes nothing. |
note | string | Also append this note (hand-off) in the same write. |
reason | string | |
ticket_id | string | Id or unique ≥8-char prefix. |
tickets | array | Several tickets (each with its own token) instead of ticket_id + claim_token; all or none. |
sea_finish Finish tickets
End your work on a ticket in one write: `outcome` done (→ resolved) | blocked (→ blocked, resumable) | abandoned (→ dropped), a required `note` (what shipped / why), optional `commit` sha; your claim is released and all of it is chained. `tickets` finishes several (each with its own claim_token; all or none). No confirmation prompt.
| Parameter | Type | Description |
|---|---|---|
note * | string | What shipped, or why not. |
outcome * | string | done → resolved; blocked → blocked (resumable); abandoned → dropped. |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
claim_token | string | From sea_claim / sea_next. |
commit | string | Commit sha. |
dry_run | boolean | Validate only; write nothing. |
idempotency_key | string | Replay-safe: a repeat with the same key returns the first result, writes nothing. |
ticket_id | string | Id or unique ≥8-char prefix. |
tickets | array | Several tickets (each with its own token) instead of ticket_id + claim_token; all or none. |
sea_link Add or remove a typed link
Add or remove a directed link `from <link_type> to`, fenced on from (claim_token). parent_of / depends_on / blocks stay acyclic (a cycle is rejected with its path); remove tombstones it. sea_next hands a ticket out only when every ticket it depends_on and every ticket that blocks it is terminal.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
claim_token * | string | Fence on the `from` ticket. |
from_id * | string | Id or unique ≥8-char prefix. |
link_type * | string | |
to_id * | string | Id or unique ≥8-char prefix. |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
dry_run | boolean | Validate only; write nothing. |
expected_version | integer | row_version of the `from` ticket. |
idempotency_key | string | Replay-safe: a repeat with the same key returns the first result, writes nothing. |
reason | string |
sea_claim Claim tickets
Lease tickets, all or nothing. Returns one claim_token per ticket (shown once; every write needs it). Leases (default 900 s, max 3600) renew while you call sea-lite tools. already_claimed names the holder and expiry; re-claiming your own rotates the token. `scope.paths` locks the files you will edit (scope_conflict names the holder, ticket, overlap and expiry). `wait_seconds` waits for a held ticket or scope to free up instead (≤ 300 s; wait_timeout names who still holds it).
| Parameter | Type | Description |
|---|---|---|
ticket_ids * | array | |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
lease_seconds | integer | Lease seconds (default 900, max 3600); renewed while you keep calling sea-lite tools. |
scope | object | What you will edit; scope_conflict if someone else holds an overlapping scope. |
wait_seconds | integer | If held by someone else, wait up to this many seconds (≤ 300) for it to free up. |
sea_refresh Extend a claim lease
Extend your lease to now + extend_by_seconds (default: its lease; max 3600; never shortens). Any sea-lite call renews your claims anyway.
| Parameter | Type | Description |
|---|---|---|
claim_token * | string | From sea_claim / sea_next. |
ticket_id * | string | Id or unique ≥8-char prefix. |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
extend_by_seconds | integer | Expiry = now + this (default: the claim's lease); never shortens. |
sea_release Release a claim
Give a ticket back to the queue (claim_token; leave a `note` saying where you stopped). A release with a note is a hand-off: sea_next gives it to another agent before you (to you only if no other agent is around). Operator role: force: true releases any holder, recorded with your reason.
| Parameter | Type | Description |
|---|---|---|
ticket_id * | string | Id or unique ≥8-char prefix. |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
claim_token | string | Required unless force is set. |
force | boolean | Operator only (--role operator): release regardless of holder. |
note | string | Hand-off note appended to the ticket on release. |
reason | string | Why (force releases should say). |
sea_next Claim the next ticket
Atomically pick and claim the next ticket: unclaimed, triaged or in_progress, assigned to you or nobody, not priority parked, all predecessors (blocks / depends_on) terminal, not an epic (kind epic or parent_of an open child); highest priority, in_progress before triaged, then oldest. A ticket you handed off (sea_release with a note) goes to another agent first. Returns ticket + claim_token, or ticket: null with reason nothing_eligible | held | held_by_stale_claim (held[]: holder, claim age, silence, expiry) | handed_off. This project only. `scope.paths` locks the files you will edit. `wait_se…
| Parameter | Type | Description |
|---|---|---|
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
include_unassigned | boolean | Consider unassigned tickets as well as ones assigned to me. |
kind | array | Only these kinds. |
lease_seconds | integer | Lease seconds (default 900, max 3600); renewed while you keep calling sea-lite tools. |
scope | object | What you will edit; scope_conflict if someone else holds an overlapping scope. |
tag | string | Only tickets carrying this tag. |
wait_seconds | integer | If held by someone else, wait up to this many seconds (≤ 300) for it to free up. |
sea_get Read one ticket
One ticket by id or ≥8-char prefix: fields, row_version, claim holder and expiry (never the token), links with the peer's title/status, recent notes, legal_next.
| Parameter | Type | Description |
|---|---|---|
id * | string | Id or unique ≥8-char prefix. |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
sea_list List and search tickets
Filter by status (default: non-terminal), kind, priority, assignee ("me" / "none"), tag, claim state and/or full-text `query`. This project unless `project` says otherwise. Cursor-paginated; view compact (default) omits bodies.
| Parameter | Type | Description |
|---|---|---|
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
assignee | string | Exact assignee; "me" means the calling actor; "none" means unassigned. |
claimed | string | |
cursor | string | Opaque cursor from a previous page. |
include_terminal | boolean | When no status filter is given, also return terminal tickets. |
kind | array | |
limit | integer | |
priority | array | |
project | string | Default: this server's project (plus legacy tickets without one). Another project key, or "*" for every project. |
query | string | Full-text search over title and body (FTS5; words are OR-ed). |
status | array | Only these statuses. Default: every non-terminal status. |
tag | string | Only tickets carrying this tag. |
view | string |
sea_history Chain history for a ticket, or a feed
With ticket_id: its chain events (and links touching it), oldest first. Without: every sea event after since_seq — poll it to watch the queue. `verify` (default true) rechecks every hash.
| Parameter | Type | Description |
|---|---|---|
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
limit | integer | |
since_seq | integer | Feed mode: every sea event with seq greater than this. |
ticket_id | string | Events for one ticket (its own events and links touching it). |
verify | boolean | Also recompute every hash in the chain and report the result. |
sea_scope_check Check paths against claim scopes
Would editing these paths collide with a live scope someone else holds (another actor, or you in another session)? Returns {ok, conflicts} naming holder, ticket, overlap and expiry. Needs no claim; your own scopes never conflict.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Files or globs you are about to edit (repo-relative). |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
sea_stats Per-actor claim accounting
Per actor, from the chain: claims taken / rotated / released / expired / force-released, lease-seconds held, transitions, tickets created, live claims. `since`: 24h, 7d or ISO time. scope_conflict refusals are not counted.
| Parameter | Type | Description |
|---|---|---|
actor | string | Only this actor. |
actor_id | string | Acting actor (default: the server --actor). Subagents sharing one server pass their own. |
since | string | Window start: a duration back from now (`24h`, `7d`, `2w`) or an ISO-8601 timestamp. Default: the whole chain. |