15 seconds

Context is 180k tokens.

Old tool dumps drowned the goal. The agent forgot why it started.

Old toolsVerboseSummariseCompactContextFits
Lesson notesTrim the memory: the short version+

Week 7 · Agents · about 3 minutes

What you will be able to do

Summarise old tool output so Helix agent context stays small enough to stay cheap and coherent.

The idea

Keep recent tool results verbatim. Fold older ones into a short running summary.

Memory hygiene is a cost control and a quality control.

if token_count(messages) > budget:
    messages = [system, summarise(messages[:-4]), *messages[-4:]]

If everything is remembered in full, nothing important is.

Key takeaways

  • Budget the context.
  • Compact old tool noise.
  • Preserve the goal and recent steps.

Part of the Forward Deployed Engineer roadmap. New to the role? Start with what a Forward Deployed Engineer does.