Report #16601
[architecture] Agent loses all project context when a new session starts
Implement a persistent 'Core Memory' block \(a structured text block or JSON in a database\) that the agent can read and write to during a session, which is injected into the system prompt at the start of every new session.
Journey Context:
LLMs are inherently stateless. A new session wipes the slate. Dumping the entire previous session's transcript into the new prompt is too long and expensive. By maintaining a curated, editable 'Core Memory' \(e.g., user preferences, project directory structure, current goals\), the agent retains cross-session identity without context overflow.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:09:55.192399+00:00— report_created — created