Skip to content

[P2] Inline post-compaction recovery content instead of a pointer #9

Description

@jsirish

From docs/AUDIT-v0.4.0.md (P2, item 8). Competitor-inspired (thepushkarp/handoff, who96/claude-code-context-handoff - both auto-inject preserved context on SessionStart(compact)).

Today onboard's compact path prints a pointer: "your buffer survived at , read it". That costs the model a post-compaction tool call it may not make, and the freshly compacted context is exactly where recall is weakest.

Proposal: on source=compact, inline the tail of the current session's buffer (last N lines, N~30, plus any compaction-boundary marker) directly into the SessionStart block, keeping the pointer for the full file. Bounded output, zero extra tool calls, same fail-open behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions