feat: add WORKING.md as opt-in bootstrap file for working memory#46367
feat: add WORKING.md as opt-in bootstrap file for working memory#46367Br1an67 wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR adds The one gap is in test coverage: the Confidence Score: 4/5
|
openclaw#9386) Add DEFAULT_WORKING_FILENAME (WORKING.md) to the workspace bootstrap system. When users create a WORKING.md in their workspace, it is automatically injected into every session — including post-compaction sessions — giving agents persistent working memory across context compactions. This is fully opt-in: workspaces without WORKING.md are unaffected. WORKING.md is excluded from the minimal bootstrap allowlist, so subagent and cron sessions do not receive it. Co-authored-by: Copilot <[email protected]>
|
Closing to manage active PR count. Will reopen when slot is available. |
Summary
Add
WORKING.mdto the workspace bootstrap file system, enabling persistent working memory that survives context compaction.Problem
After session compaction, agents lose all active task state, decisions in progress, and working context. The only memory files (
MEMORY.md) are designed for long-term facts, not session-scoped working state. Agents have no reliable way to maintain context across compaction boundaries for long-horizon tasks.Solution
Add
DEFAULT_WORKING_FILENAME(WORKING.md) as an opt-in bootstrap file:WorkspaceBootstrapFileNameunionVALID_BOOTSTRAP_NAMESfor runtime validationloadWorkspaceBootstrapFiles()includes it when present (opt-in, likeMEMORY.md)MINIMAL_BOOTSTRAP_ALLOWLIST(subagent/cron sessions don't receive it)When users create
WORKING.mdin their workspace, it is automatically injected into every session — including post-compaction sessions — giving agents persistent working memory.Non-breaking
WORKING.mdare completely unaffectedValidation
Fixes #9386