mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
2.0 KiB
2.0 KiB
summary, title, read_when
| summary | title | read_when | |||
|---|---|---|---|---|---|
| Compact noisy exec and bash tool results with an optional bundled plugin | Tokenjuice |
|
tokenjuice is an optional bundled plugin that compacts noisy exec and bash
tool results after the command has already run.
It changes the returned tool_result, not the command itself. Tokenjuice does
not rewrite shell input, rerun commands, or change exit codes.
Today this applies to Pi embedded runs, where tokenjuice hooks the embedded
tool_result path and trims the output that goes back into the session.
Enable the plugin
Fast path:
openclaw config set plugins.entries.tokenjuice.enabled true
Equivalent:
openclaw plugins enable tokenjuice
OpenClaw already ships the plugin. There is no separate plugins install
or tokenjuice install openclaw step.
If you prefer editing config directly:
{
plugins: {
entries: {
tokenjuice: {
enabled: true,
},
},
},
}
What tokenjuice changes
- Compacts noisy
execandbashresults before they are fed back into the session. - Keeps the original command execution untouched.
- Preserves exact file-content reads and other commands that tokenjuice should leave raw.
- Stays opt-in: disable the plugin if you want verbatim output everywhere.
Verify it is working
- Enable the plugin.
- Start a session that can call
exec. - Run a noisy command such as
git status. - Check that the returned tool result is shorter and more structured than the raw shell output.
Disable the plugin
openclaw config set plugins.entries.tokenjuice.enabled false
Or:
openclaw plugins disable tokenjuice