Skip to content

feat: give the agent a short card of the thread's facts (Labs, off) - #31

Merged
mayberuk merged 7 commits into
mainfrom
thread-facts
Dec 4, 2026
Merged

mayberuk merged 7 commits into
mainfrom
thread-facts

Conversation

@mayberuk

@mayberuk mayberuk commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Problem

An agent often does not know which worktree, branch, pull requests and issues belong to its thread, and loses what it did know when its context is compacted.

Fix

A Labs setting, off by default. Each turn carries a short server-built card with the thread's worktree, branch, linked pull requests and issue keys. For Claude, a SessionStart hook sends it again right after a compaction.

  • Values are encoded so none can close the wrapper that marks the card as external data or add lines, and each value and the whole card are size-capped.
  • A mid-turn steer keeps the record of the card already sent.
  • With the setting off, what providers receive is unchanged.

Verified

Opt-in real-process probes on Claude Code 2.1.336 showed the card arriving after a compaction, both through the turn's app context and through the hook.

Known limit

Untested: a compaction that lands while a steer is being prepared, followed by that steer being dropped.

Built by Claude Sonnet 5.5 and Codex under Claude Code, reviewed with Codex.

🤖 Generated with Claude Code

mayberuk and others added 7 commits December 3, 2026 16:32
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ecord across a steer

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* origin/main:
  fix(gitlab): a stream that never answers times out and reconnects
  fix(shared): a patched stream host map replaces the saved one, so it can be cleared
  fix(gitlab): keep the stream reconnect delay and back off until a frame arrives
  feat(gitlab): document and register the merge request change stream
  refactor(gitlab): keep the stream frame error private
  feat(gitlab): watch merge requests through a change stream when a stream host is configured
@mayberuk
mayberuk marked this pull request as ready for review December 4, 2026 00:14
@mayberuk
mayberuk merged commit 4cccd1b into main Dec 4, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant