anomalyco / anomalyco/opencode

[FEATURE]: /handoff — continue a long session in a fresh context, without LLM re-summarization

Open
#49,286 2 comments 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Sep 16, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

Long sessions eventually get noisy enough that the model starts tripping over its own history. /compact helps but keeps you in the same session; forking copies everything. What I keep wanting is a fresh session that starts with just enough to continue the work.

This has come up before — #26757 and #21760 asked for essentially this and both went stale; #40578 implemented it on top of LLM compaction and got caught by the PR cleanup bot before review. My take differs in one way: instead of re-summarizing with an LLM, assemble the handoff deterministically from what's already in the session — recent user messages, the closing notes from each turn, todos, git state. Verbatim, instant, nothing hallucinated.

I have a small prototype of this running locally and it's been surprisingly useful. Happy to share details or a PR if the team thinks this belongs in core.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.