Skip to content

upstream port: managed auto-memory / dream system — XL evaluate vs ours (#3087, #3722) #192

@mabry1985

Description

@mabry1985

Upstream added a substantial agent-driven memory subsystem: /remember, background extraction agent, and 4-phase LLM-guided dream consolidation (Orient → Gather → Consolidate → Prune).

Upstream PRs

Why

Complementary to (but architecturally different from) what our fork already has — we have memoryStore, memoryExtractor, memoryAge, etc. Upstream's design splits extraction and consolidation into agents with permission scoping.

Scope / effort

XL. Per investigation:

  • ~15,010 lines changed across 137 files
  • New files: manager.ts (+900), extractionAgentPlanner.ts (+349), dreamAgentPlanner.ts (+246), extract.ts (+195), dream.ts (+147)
  • Critical bug fix inside feat(memory): managed auto-memory and auto-dream system QwenLM/qwen-code#3087 worth lifting standalone: saveCacheSafeParams extract trigger path in client.ts (extract was never running before this PR due to early returns)

Recommendation

Don't port wholesale. Two-step approach:

  1. Quick win (S): Cherry-pick the saveCacheSafeParams fix from feat(memory): managed auto-memory and auto-dream system QwenLM/qwen-code#3087 alone — verify our memory subsystem doesn't have the same latent bug.
  2. Long-term (XL): Decide whether our memory model (file-based, age-tracking, store/extractor split) should converge with upstream's (agent-driven, permission-scoped, dream consolidation). If converging, port feat(memory): managed auto-memory and auto-dream system QwenLM/qwen-code#3087 + fix(memory): use project transcript path for dream QwenLM/qwen-code#3722 as a dedicated effort. If not, document the divergence.

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestupstream-portBackport from QwenLM/qwen-code upstream

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions