Context & Compaction
A long session eventually fills the model's context window. Sapling watches this automatically:
- At 75% of the model's context limit, Sapling automatically summarizes older turns into a compact checkpoint - the real turns stay in your session history, only what's actively sent to the model shrinks.
- This also runs once at startup, so a session that was already over the limit gets fixed before you can even type.
- Run
/compact any time to trigger it manually, regardless of how full the context currently is.