Skip to content

Reduce repeated full-context injection for agent turns #3242

Description

@YusufLisawi

Describe the bug

The Buzz ACP harness appears to inject the full Buzz base instructions, workspace/AGENTS guidance, and broad skill catalog into every agent turn, including simple follow-up messages. The ChatGPT context view shows thousands of repeated tokens per event.

This makes each turn unnecessarily heavy and can increase input cost, latency, and active-context pressure. It also risks reduced prompt-cache effectiveness when dynamic context is interleaved with the repeated static material.

Steps to reproduce

  1. Start an agent session in a Buzz channel.
  2. Send several short follow-up messages.
  3. Open the associated agent context view in the ChatGPT app.
  4. Inspect the context attached to each turn.
  5. Observe that the full Buzz guide/instructions are injected repeatedly, rather than only the minimal relevant runtime context.

Expected behavior

Use a small, stable runtime prefix plus only the event/thread context required for the turn. Discover/load skills and detailed guides on demand instead of injecting a broad catalog and full operational guidance into every request. Keep stable content before dynamic content to preserve cache locality.

Actual behavior

Each turn appears to carry thousands of tokens of repeated Buzz guidance and instructions, even for lightweight interactions.

Version and platform

  • Buzz version: unknown
  • OS: macOS (exact version unknown)

Logs / additional context

This report is based on the agent context view in the ChatGPT app. No API token-usage or prompt-cache telemetry was available to confirm cache-hit rates, so the cost/cache impact is an observed risk rather than a measured value.

Suggested telemetry: input tokens, cached input tokens, cache-write tokens, output tokens, and prompt-compaction rate per turn.

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