Im getting context too large errors how do I reset or compact
Use one of these:
Compact (keeps the conversation but summarizes older turns):
/compact
or /compact <instructions> to guide the summary.
Reset (fresh session ID for the same chat key):
/new
/reset
If it keeps happening:
Enable or tune session pruning (agents.defaults.contextPruning) to trim old tool output.
Use a model with a larger context window.
Docs: Compaction, Session pruning, Session management.