Repository navigation
Context handoff delivers ~0.2% of thread history — takers burn dozens of calls re-establishing state; consider sweep-oriented recovery guidance or a depth setting #38689
Replies: 3 comments
|
The task-state part is already in WorkLedger, which we build at Digital Disruptors. The agreed scope, human decisions, recorded activity, delivery evidence and next action live on the work item. Another supported coding session retrieves that record rather than depending only on the previous agent's last summary. For your stale git-log example, I'd keep the actual branch/worktree and uncommitted changes in the handover too; task history can't substitute for checking the working tree. This is a separate workflow for supported tools, not a T3 history importer or a change to AI-assisted reply. |
|
Adding data and a concrete proposal for the depth setting part. In 0.1.11, Proposal:
|
|
Your three sinks are interesting because even a much deeper tail would not reliably fix them. Each one is a fact about the current state, and in a long thread that fact is buried among the attempts that led to it. Until the handoff has a depth setting, something you can do without patching the bundle is to keep a small state file in the worktree that every agent updates as it works, not only at the moment of takeover (the old agent may already be out of context by then). Four short sections have a clear job here.
Rewrite sections 1 and 4 in place so they stay current. In section 2, remove a line once it is fixed. Otherwise the file turns into a second history that needs its own summary. The takeover rule can then live in the instruction file your engines read ( For the storyline index in your third suggestion, there is also a partial route outside the thread. I built Cloud Alter Ego, an MCP connector that logs every question automatically and keeps that journal as plain files in your own cloud storage, so another AI chat with MCP can read it. It is not a T3 history importer, it does not hold the activity items from your thread, and I have not tested it inside T3 Code. The state file above works without it. |
Uh oh!
There was an error while loading. Please reload this page.
Context handoff delivers ~0.2% of thread history — takers burn dozens of calls re-establishing state; consider sweep-oriented recovery guidance or a depth setting
Context
We hand long-running tasks between agent threads a lot (different engines/providers on the same thread). The
full_thread_summarycontext handoff is the right mechanism, but on long-lived threads the taker agent starts with almost nothing and has to re-discover the task state by other means, which is slow and error-prone.Observed behavior
Real handoff block on a long-lived thread (143 provider runs, ~6.8k activity items):
Selected 12 intact items; omitted 6,799 items→ ~0.18% coverage, newest-biased.6,793 older omitted items are not listed→ the bulk of history has no enumerable item IDs, so the documented per-ID recovery (t3_thread_read({itemId})) is impossible for it even if the taker wants to.Recover an omitted item only when the request needs it— taker LLMs comply literally. On a takeover ("take over / continue this task") the request does need the history, but nothing tells the taker that. (The same sentence is also baked into the degraded multi-handoff branch.)t3_thread_readwithview:"activity"pages the whole thread (beforePositionbackwards,afterPosition=-1from the start,itemId+textOffsetresumes). The guidance just steers away from it.Measured impact
Continuing one 143-run thread took ~30 tool calls before it was safe to do any task work. The three biggest sinks were all covered by exactly the history the handoff dropped:
git log(worktree had run far ahead of commits),A sweep of the thread (all user messages + per-run final assistant messages + recent activity) would have replaced most of that with one paging loop.
Related work (already filed)
This report is specifically about the selection size and recovery wording of the handoff block itself.
Suggested directions (any one would help)
tail snapshot(today) /sweep-oriented/durable fork.t3_thread_read view:'activity'".Workaround we ship locally (disclosure)
We patched the conservative sentence in the server bundle via a byte-length-preserving in-place edit, plus agent-layer rules that force a full sweep on takeover. Before → after:
We'd happily drop the binary patch for an upstream option.
Environment
T3 Code (Beta) for Windows, auto-update channel, observed 2026-11-19.
All reactions