tokenjuice is an optional external 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 Apus embedded runs and Apus dynamic tools in the Codex app-server harness. Tokenjuice hooks Apus's tool-result middleware and trims the output before it goes back into the active harness session.

Enable the plugin

Install once:

apus plugins install clawhub:@openclaw/tokenjuice

Then enable it:

apus config set plugins.entries.tokenjuice.enabled true

Equivalent:

apus plugins enable tokenjuice

If you prefer editing config directly:

{
  plugins: {
    entries: {
      tokenjuice: {
        enabled: true,
      },
    },
  },
}

What tokenjuice changes

Verify it is working

  1. Enable the plugin.
  2. Start a session that can call exec.
  3. Run a noisy command such as git status.
  4. Check that the returned tool result is shorter and more structured than the raw shell output.

Disable the plugin

apus config set plugins.entries.tokenjuice.enabled false

Or:

apus plugins disable tokenjuice

Related