Skip to content

TokenPilot Configuration

TokenPilot settings control how aggressively it manages context. All settings have sensible defaults — you can start without changing anything.

Core Settings

SettingValuesDefaultDescription
enabledtrue, falsetrueMaster on/off switch
modeconservative, normal, aggressivenormalPreset that controls all sub-policies
logLeveldebug, info, warn, errorinfoHow much detail in logs

Mode Presets

Each mode is a preset that configures stabilizer, reduction, and eviction behavior:

ModeStabilizerReductionEviction
conservativeOn (developer target)LightOff
normalOn (developer target)BalancedOff
aggressiveOn (user target)StrongOn (earlier threshold)

See Runtime Modes for detailed behavior.

Stabilizer Settings

SettingValuesDefaultDescription
stabilizer.enabledtrue, falsetrueEnable stable-prefix rewriting
stabilizer.targetdeveloper, userdeveloperWhich message role gets the dynamic content

Reduction Settings

SettingValuesDefaultDescription
reduction.enabledtrue, falsetrueEnable context reduction
reduction.modelight, balancedbalancedHow aggressively to trim
reduction.pass.toolPayloadTrimtrue, falsetrueEnable tool output trimming

Eviction Settings

SettingValuesDefaultDescription
eviction.enabledtrue, falsefalse (off by default)Enable context eviction
eviction.thresholdToken countMode-dependentWhen to start evicting

Changing Settings

Via CLI

bash
# Change mode (applies the preset)
lightmem2 mode aggressive

# Toggle individual features
lightmem2 stabilizer off
lightmem2 reduction mode light
lightmem2 eviction on

Next

Released under the MIT License.