Skip to content

Measure compaction cost and retrieval-backed alternatives #2471

Closed

Description

@sentry-junior

Junior's compaction approach is modeled on Codex, but its frequency and cost have not been measured. Explore the tradeoffs of retaining full context in storage and letting the agent retrieve relevant history on demand, rather than relying exclusively on summarized context. Inspired by this discussion.

  • Quantify current compaction frequency, duration, and token/cost impact.
  • Compare retrieval-backed context for conversation history and large tool outputs, including latency, cache cost, continuity, and extra tool calls.
  • Related work: #431 and #872.

via @thomasjiangcy.

--

View Session [Sentry]

Activity

  1. sentry-junior commented on Nov 9, 2026

    @sentry-junior
    ContributorAuthor

    Folding into #2942, which answers the measurement half and proposes the retrieval-backed reduction (recommendation 4).

    Closed during a tracker cleanup. Reopen if this still needs separate tracking.

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