Learn/Core Concept What is context window optimisation? Context window optimisation involves reducing the amount of text sent to language models while preserving relevant information. Techniques include filtering command outputs, sandboxing tool responses, and using retrieval methods to include only necessary context. This matters because context windows cost money and affect performance. Tools like rtk cut token usage by 60-90% by filtering CLI outputs, while context-mode achieves 98% context reduction through smart sandboxing. Mastering these techniques keeps our AI integrations fast and affordable. TokenizationRetrieval |