mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
d4ec756ce5
Crush's proven 4-block strategy: 1. Last system message (if present) 2. Last 2 conversation messages 3. Last tool definition This stays exactly at Anthropic's 4-block limit without exceeding it. Previous implementation could exceed the limit in certain edge cases. Now matches Crush's battle-tested approach.