Skip to content

feat: reorganize memory injection sections and tool hints#1728

Merged
MatthewZhuang merged 1 commit into
mem-agent-0514from
mem-agent-0512-zgm
May 14, 2026
Merged

feat: reorganize memory injection sections and tool hints#1728
MatthewZhuang merged 1 commit into
mem-agent-0514from
mem-agent-0512-zgm

Conversation

@MatthewZhuang
Copy link
Copy Markdown
Collaborator

Summary

This change reorganizes tier-2 memory injection output so episode rollups and trace memories are easier to read, and it adds explicit follow-up tool guidance for expanding injected snippets.

Changes

  • Split ## Memories into ### Similar Past Tasks and ### Relevant Trace Memories.
  • Rename episode titles from Sub-task to Past task.
  • Add per-snippet memos_timeline / memos_get hints for episode, trace, experience, and world-model snippets.
  • Generate follow-up tool footers from the snippet kinds present in the injected packet.
  • Keep episode and trace entries in the same packet without suppressing member traces.

Testing

  • npm test -- tests/unit/retrieval/injector.test.ts

Made with Cursor

Split episode rollups and trace memories under ## Memories, rename
episode titles to Past task, add per-snippet memos_get and
memos_timeline hints, and generate follow-up tool footers from the
injected snippet kinds.

Co-authored-by: Cursor <cursoragent@cursor.com>
@MatthewZhuang MatthewZhuang merged commit b7c55ee into mem-agent-0514 May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant