Skip to content

System prompt: include the session transcript path so the model can grep its own pre-compaction history #410

Description

@justrach

From the prime-agent analysis. They emit Conversation log: <path> in the system prompt; since the on-disk transcript keeps everything compaction discards, the model can recover any detail with grep instead of losing it forever.

Proposal: when a durable session exists, add one line to the system prompt with the session file path and a note on its format (JSONL) plus the caveat that it lags the live turn. Pairs with the post-compaction note issue: after compaction the model knows where the full history lives.

Nearly free; biggest win right after an aggressive compaction.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions