Skip to content

Prompt memory budget indicators — show agents how full their context injection is #689

@bm-clawd

Description

@bm-clawd

Idea

Hermes renders memory with a usage indicator: MEMORY (your personal notes) [67% — 1,474/2,200 chars]. This gives the agent a clear signal about how much budget remains, encouraging curation over accumulation.

Problem

Agents using BM notes in their prompts have no visibility into how much context they're consuming. This leads to:

  • Memory files growing unbounded until they cause problems
  • No pressure to curate — agents append but rarely prune
  • Surprise context window issues when notes get too large

Proposal

When BM notes are loaded into agent context (via MCP tools or context file injection), include a budget indicator:

══════════════════════════════════════════════
KNOWLEDGE CONTEXT [3,200/8,000 tokens — 40%]
══════════════════════════════════════════════

This could be:

  1. A config option — agents or users set a token budget for BM context
  2. Returned in tool responses — search/read results include a running total
  3. A standalone toolcontext_budget returns current usage stats

The key insight: making the budget visible creates natural pressure to curate. The agent sees it's at 90% and starts pruning instead of appending.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions