claude-code - 💡(How to fix) Fix [FEATURE] first-class session handoff + per-session token budgets for unattended runs

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Claude Code gives great primitives (CLAUDE.md, slash commands, memory, auto-compaction) but leaves two recurring needs to be hand-assembled by each user:

  1. Session continuity. When a session ends, useful state (what's done, what's next, open decisions) lives only in the transcript. The next session starts cold or drags the whole history forward. Most users never build a handoff ritual, so they silently lose context between sessions.

  2. Cost/context guardrails for agentic use. For "leave it running on a task," there's no proactive per-session token budget, no hard ceiling, and only a thin readout of how much context is left. Spend and context can run away on autonomous runs before the user notices.

Proposed Solution

  1. Built-in session handoff. An optional, first-class handoff artifact a session can write on exit and the next session reads on start — treated as a proposal to verify, not a command, and invalidated/flagged when the repo state has moved on (e.g. stamped with the commit it was written at).

  2. Per-session budgets. Configurable soft + hard limits (token and/or cost) per session or task, with graceful degradation and a clear "X% of budget / context used" readout, rather than account-level caps only. Especially needed as workflows move toward unattended/agentic runs.

Alternative Solutions

No response

Priority

High - Significant impact on productivity

Feature Category

Other

Use Case Example

No response

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING