Token Optimization
Token Optimization reduces the amount of terminal output sent back to the AI agent. This preserves more of the model's context window during long sessions without changing the commands you ask the agent to run.
How it works
Supercode combines its Token Saver with a managed RTK installation. It installs and updates the optimizer automatically, validates it before use, and keeps it isolated from your shell configuration. If optimization is unavailable or unsafe for a command, the original command runs normally.
Enable Token Optimization
- Open the Supercode menu and use the Token Optimization switch.
- Alternatively, select Settings in the same menu. On the General page, find Command Optimization and use the Token optimization switch.
- The Settings page shows installation, update, and retry status when action is required.

