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 statusbecomes a short summary. playwright testshows only the failures;ctestshows a pass/fail summary with failure details.eslintgroups violations by rule;mypygroups errors by file.prettierlists only the files that need formatting.gh pr list,docker psandkubectl get podsbecome 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.
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 --> MReduce Token is off by default. It changes only what agents see; your own terminal is never filtered.
Turn it on#
-
Open the settings page Open Settings → Reduce Token.
-
Turn on the master switch Turn on Reduce Token. The Command Types list appears.
-
Choose command types Turn on the command types you want compressed, or choose Enable all. Every type is off until you turn it on.
-
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 type | Commands |
|---|---|
| Git | git status, diff, log, show, add, commit, checkout, push, pull, branch, fetch, stash, worktree |
| GitHub CLI, GitLab CLI | gh pr, issue, run, repo, api; glab mr, issue, ci, pipeline, release, api |
| Rust | cargo test, build, clippy, check, install, nextest |
| Python | pytest, mypy, pip, ruff, sqlfluff, uv |
| JavaScript, TypeScript | npm, npx, pnpm, bun, deno, vitest, tsc, eslint, prettier, playwright test, prisma, next build, ng build |
| Go | go test, build, vet; golangci-lint run |
| JVM, Scala | gradle/gradlew, mvn/mvnw, sbt |
| Ruby | rake test, rspec, rubocop |
| .NET | dotnet build, test, restore, format |
| PHP | php, phpunit, pest, paratest, phpstan, pint, ecs, phpt |
| Cloud and network | aws, docker, kubectl, curl, wget, psql |
| Files and search | ls, find, tree, wc, grep, rg, ast-grep, ctest |
| Other tools | About 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#
| Setting | Values | Default |
|---|---|---|
izcode.rtk.enabled | true, false | false |
izcode.rtk.categories.<type> | true, false, one key per command type, for example izcode.rtk.categories.git or izcode.rtk.categories.cargo | false |
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.