← Receivers

tasks:claim

tasks family

mcp

Take a task off the queue: blocker-gate → status picked → tag the claimant @<slug>. Address it by tid, or by the /do slug the task was created under. The claimant is the attested caller, never a body field

Effect
ask
Awaits an outcome — the call returns the response below.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/tasks:claim \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "tid": <string>, "slug": <string>, "workspace": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • tid string optional
  • slug string optional
  • workspace string optional

Response

What comes back from the call.

  • ok boolean
  • tid string
  • status string
  • claimant string
  • error string

Traffic

Every call to tasks:claim, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names tasks:claim, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 1
  • one.ie/web/src/lib/resolvers/tasks.ts:728
Agent runtime 1
  • channels/src/tools/tasks.ts:266
Workflow 2
  • one.ie/web/src/lib/factory/event.ts:5
  • one.ie/web/src/lib/factory/flow.ts:547
MCP 1
  • tasks_claim · packages/mcp/src/tools/lifecycle.ts:102
Tests 1
  • one.ie/web/src/lib/factory/gap-parity.test.ts:116
Docs 1
  • one.ie/web/src/content/blog/one-task-every-actor-no-bridge.md:52
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "tid": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "workspace": {
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "tid": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "claimant": {
      "type": "string"
    },
    "error": {
      "type": "string"
    }
  }
}