Skip to content

fix: preserve full content in handoff-type memories#375

Merged
CalebisGross merged 1 commit intomainfrom
fix/handoff-content-preservation
Apr 3, 2026
Merged

fix: preserve full content in handoff-type memories#375
CalebisGross merged 1 commit intomainfrom
fix/handoff-content-preservation

Conversation

@CalebisGross
Copy link
Copy Markdown
Collaborator

Summary

  • Handoff memories (create_handoff MCP tool) were being LLM-compressed by the encoding agent, reducing structured session notes to a one-line summary and losing all detail (file paths, commands, known issues, comparison data)
  • Handoff-type memories now skip LLM compression entirely and preserve the raw content verbatim
  • Summary extracted from first line, "handoff"/"session" concepts added for retrieval, salience set to 0.95

Test plan

  • make build passes
  • make test passes — all encoding agent tests green
  • Live tested: created a handoff memory via the API, verified full 771-char content preserved in query results (previously would have been compressed to ~80 chars)

🤖 Generated with Claude Code

The encoding agent was LLM-compressing handoff memories like any other
type, reducing structured session notes (completed tasks, pending items,
known issues, file paths, commands) to a one-line summary. This caused
cross-session handoffs to lose critical detail.

Handoff memories now skip LLM compression entirely and preserve the raw
content verbatim. A short summary is extracted from the first line, and
"handoff"/"session" concepts are added for retrieval. Salience is set to
0.95 to ensure handoffs surface in recall_project.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CalebisGross CalebisGross merged commit 831a9fe into main Apr 3, 2026
@CalebisGross CalebisGross deleted the fix/handoff-content-preservation branch April 3, 2026 15:44
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