ai-chat
Installation
SKILL.md
Always benchmark before and after
No context or behavior change ships without an ai_evals A/B on the affected mode.
Add or adjust cases for exactly what you changed — see the ai-evals skill for
authoring and the full run reference.
Run the affected mode before your change and after, same model(s), same cases.
Measure the window first, and cumulative second
Optimize finalContextTokens (window occupancy — what drives overflow and
compaction), then cumulative prompt tokens.
Context discipline
The dominant fixed cost is per-iteration overhead: the system prompt plus every tool schema is re-sent on every loop iteration. So: