Reduce Token

Reduce Token compresses the output of noisy shell commands before an agent reads it. A long git status, a full cargo test log or a page of lint warnings becomes a short summary, so the agent spends fewer tokens and keeps more room for your code.

What it does#

When an agent runs a command through IZ Code's command tool, the output normally goes back to the model as is. Build logs, test runs and package-manager output are often thousands of lines, most of it progress bars, passing tests and repeated paths. That costs tokens on every turn and pushes useful context out of the window.

With Reduce Token on, IZ Code recognises supported commands, runs them itself and hands the agent a compact version of the output instead. For example:

  • A long git status becomes a short summary.
  • playwright test shows only the failures; ctest shows a pass/fail summary with failure details.
  • eslint groups violations by rule; mypy groups errors by file.
  • prettier lists only the files that need formatting.
  • gh pr list, docker ps and kubectl get pods become compact lists.

The command still runs for real, in the agent's working folder, and its exit code is kept. If a command fails and the compact output would hide why, the last lines of the real output are attached.

Only supported commands with their type switched on are compressed
flowchart TD
  A[Agent runs a command] --> S{"Supported and switched on?"}
  S -- No --> N[Runs in a normal shell]
  N --> F[Full output]
  S -- Yes --> R[Runs and is filtered]
  R --> C["Short output, same exit code"]
  F --> M([Model])
  C --> M

Reduce Token is off by default. It changes only what agents see; your own terminal is never filtered.

Turn it on#

  1. Open the settings page Open Settings → Reduce Token.

  2. Turn on the master switch Turn on Reduce Token. The Command Types list appears.

  3. Choose command types Turn on the command types you want compressed, or choose Enable all. Every type is off until you turn it on.

  4. Run an agent The next commands an agent runs are compressed. The setting applies to the open workspace; with several folders open, IZ Code writes it to every folder.

Supported commands#

Command typeCommands
Gitgit status, diff, log, show, add, commit, checkout, push, pull, branch, fetch, stash, worktree
GitHub CLI, GitLab CLIgh pr, issue, run, repo, api; glab mr, issue, ci, pipeline, release, api
Rustcargo test, build, clippy, check, install, nextest
Pythonpytest, mypy, pip, ruff, sqlfluff, uv
JavaScript, TypeScriptnpm, npx, pnpm, bun, deno, vitest, tsc, eslint, prettier, playwright test, prisma, next build, ng build
Gogo test, build, vet; golangci-lint run
JVM, Scalagradle/gradlew, mvn/mvnw, sbt
Rubyrake test, rspec, rubocop
.NETdotnet build, test, restore, format
PHPphp, phpunit, pest, paratest, phpstan, pint, ecs, phpt
Cloud and networkaws, docker, kubectl, curl, wget, psql
Files and searchls, find, tree, wc, grep, rg, ast-grep, ctest
Other toolsAbout 60 more with built-in filters, such as make, terraform, helm, gcc, xcodebuild, poetry, shellcheck, df, du and ps

The settings page lists each type with the exact subcommands it covers. Commands that start long-running processes, such as cargo run, go run, dotnet run, uv run or next dev, are passed through unchanged.

Simple chains work too: cd app && cargo test or a; b is compressed when every part is a supported command, every type involved is on, and every cd stays inside the workspace. Commands with pipes, redirects, variables or globs run in a normal shell, unfiltered.

Settings#

SettingValuesDefault
izcode.rtk.enabledtrue, falsefalse
izcode.rtk.categories.<type>true, false, one key per command type, for example izcode.rtk.categories.git or izcode.rtk.categories.cargofalse

Settings are read from the folder's .izcode/settings.json first, then from your user settings, key by key. Changes apply to the next command; no restart is needed.

Last updated: December 1, 2026Was this page helpful?