claude-code - 💡(How to fix) Fix [Feature Request] Add persistent agent sessions with pre-configured knowledge that survives context clearing [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#52323Fetched 2026-04-24 06:10:12
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

Feature Request It would be nice to have an agent property or cli argument that we can load a pre-configured agent/session without the need to load that knowledge multiple times. I have a node graph where I have agents and the same agent is used in different stages of the graph, and is an agent/new session all the time.

it would be nice to be able to create sessions that have knowledge pre-baked and then reuse that. Like having one session where you can do a /clear but the knowledge of the role/skills remain

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.114
  • Feedback ID: a530003a-ac09-4e43-ba26-4d556d887812

extent analysis

TL;DR

Implementing a feature to load pre-configured agent sessions could simplify the process of reusing agent knowledge across different stages of a node graph.

Guidance

  • Consider adding an agent property or CLI argument to support loading pre-configured sessions, allowing for the reuse of agent knowledge without needing to reload it multiple times.
  • Evaluate the feasibility of creating sessions with pre-baked knowledge that can be reused, potentially by introducing a mechanism to persist and load agent sessions.
  • Investigate the possibility of implementing a /clear command that resets the session state while preserving the agent's role and skill knowledge.

Notes

The implementation details of such a feature are not provided, and the existing version (2.1.114) may not support this functionality.

Recommendation

Apply workaround: Implement a custom solution to manage and reuse agent sessions, as the current version may not support the requested feature.

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