Memory · Software component

Trajectory Pruner

Software componentMemoryCognition & Memoryarc:TrajectoryPruner

A context window manager that removes useless (dead-end), redundant (restated) and expired (no-longer-relevant) information from an agent's accumulated reasoning trajectory before it is re-sent to the model.

Responsibility. Prunes waste from the agent trajectory carried in the prompt.

Also known as: Trajectory reduction, Trajectory cleaning, Context pruning

Variant of Context Window Manager abstract

When to choose. Choose for multi-step agents whose trajectories accumulate dead ends, restatements and stale turns.

reads; writessends data tospecializesis target of alternativeTois target of alternativeToWorking Memory Buffer: reads; writesWorking Memory BufferPrompt Context Builder: sends data toPrompt Context BuilderContext Window Manager: specializesContext Window ManagerSummarizing History Compressor: is target of alternativeToSummarizing History Comp…Sliding-Window History Truncator: is target of alternativeToSliding-Window History T…
Direct neighbourhood (hover for relationship types)

Relationships

reads dependency

writes dependency

sends data to dynamic

alternative to variability

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
Trajectory reduction (AgentDiet)
Technologies
AgentDiet
Quality attributes
Cost efficiencyPerformance efficiency (ISO/IEC 25010)
Risks mitigated
Trajectory bloatContext window overflow

Sources

  1. Ch3.10: T. Nguyen, "Efficiency Metrics," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.10. ISBN: 9798244538229.