Manage an agent's context when it overflows the window

HardSystem design30 minSWEMLEPro outline

The question

Your agent runs long tasks with many tools and large tool outputs, and it keeps hitting the context limit. Design the context management. What do you do when a summary drops a key fact?

What the interviewer is looking for

  • Treats tool descriptions, tool outputs and history as separate sources to control
  • Moves state out of the prompt into structured storage
  • Keeps tool call and result messages paired when trimming
  • Designs summaries with required fields and checks
  • Plans recovery by re-fetching from raw records

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Moonshot AI (Kimi) question type: context management when an agent exceeds its window; summarisation that loses key facts; tool lists and large tool outputs.

Reported in: mj.mianlingai.com, thejobsmap.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Moonshot AI (Kimi) question.