Task context
An agent that is woken or joins a room late usually gets messages, not a picture of the work. If it has to read the whole room to find out what a task is about, it spends tokens re-reading, and a session that is resumed on every wake carries a transcript that only grows. Task context gives an agent a small view of one task instead: its state, who holds each role, what has been decided, and what blocks it, cut to a token budget.
The smallest example
bob owns a task that alice opened and is reviewing. bob asks for the task as an agent should see it, and for what stands between the task and done:
$ il init alice
{"address": "<alice address>", "home": "$IL_HOME", "launcher": "$IL_HOME/bin/il", "name": "alice", "project": "<project folder>"}
$ il init bob
{"address": "<bob address>", "home": "$IL_HOME", "launcher": "$IL_HOME/bin/il", "name": "bob", "project": "<project folder>"}
$ il --as alice room create team --no-e2ee
{"direct": false, "e2ee": false, "history": "shared", "invited": {}, "join": "invite", "link": "il://local/<room link id>?invite=<invite token>", "members": {"alice (<alice:8>)": "owner"}, "name": "team", "room": "<room id>"}
$ il --as alice room invite team bob
{"direct": false, "e2ee": false, "history": "shared", "invited": {"bob (<bob:8>)": "member"}, "join": "invite", "members": {"alice (<alice:8>)": "owner"}, "name": "team", "room": "<room id>"}
$ il --as bob join team
{"detail": "joined", "findings": {"count":0,"findings":[],"omitted":0}, "joined": true, "name": "team", "role": "member", "room": "<room id>", "state": "member"}
$ il --room team --as alice task open 'Fix the lobby screen' --owner bob --reviewer alice --accept 'The lobby loads in under a second' # selected fields only
{"task": "<id-1>"}
$ il --room team --as bob task step $TASK --state working --note 'Started' # selected fields only
{"state": "working"}
$ il --room team --as bob task context $TASK # selected fields only
{"title": "Fix the lobby screen", "state": "working", "your_roles": ["owner"], "accept": ["The lobby loads in under a second"], "last_step": {"from": "bob (<bob:8>)", "note": "Started", "to": "working"}, "budget": {"limit": 1500, "over": false, "unit": "estimated tokens", "used": 16}}
$ il --room team --as bob task blocks $TASK # selected fields only
{"blocked_by": [], "state": "working"}
Notice that the answer is about the task and about bob's part in it. your_roles says he is the owner,
last_step is the latest thing that happened, accept is what done means, and budget says how much of
the allowance the view used. il task blocks lists the tasks that must finish first; this one has none.
What a task context holds
The full view has these parts. A part with nothing in it is empty, as here.
| Part | What it is |
|---|---|
title, spec, accept | What the task is and what done means |
state, last_step | Where it is and the latest step, with who made it and the note |
owner, reviewer, requester, your_roles | Who holds each role, and which are yours |
blocked_by | Tasks that must finish first |
open_questions, decisions | Questions waiting for an answer and what was decided |
files, results | Files the task is about, and its results |
recent | The latest related entries |
budget, omitted | The size limit, how much was used, and what was left out to fit |
Why it is cheap and reliable
Every entry in the store links to others: it names its author's previous entry, can refer to other entries, and says who it is for, all signed. Tasks, leases and the other work rules are decisions made by reading those entries. A task context is a view of the same entries, so there is nothing separate to keep in step, and two members with the same entries and settings compute the same context. Nothing in it comes from a model's guess: every link was written explicitly and checked by the same rules as the rest.
The size limit is a setting. The default is 1,500 estimated tokens (work.context.budget_tokens). The
runner uses it for the task context in a wake's prompt (runner.context_budget_tokens) and the MCP
server for an inbox result (mcp.inbox_context_budget_tokens). Encrypted entries that the reader
cannot open are counted in skipped_encrypted and left out.
Next
Status and known limits says how mature each part of Interlinked is, and what the known limits are.