DEFINITION
Context Clearing
Context Clearing Between Agent Steps
Definition
A technique in agent workflows where the conversation or working context is explicitly reset between major phases (e.g., after spec generation, after subtask implementation) to reduce token consumption, prevent context pollution, and maintain focus on the current task phase.
Examples in the Wild
- Example 1:Clearing context after requirements specification is complete
- Example 2:Resetting context between subtask implementations
- Example 3:Starting fresh context for design phase after code analysis