Skip to main content
ollim-bot registers nine slash commands in Discord. All commands are scoped to DMs with the bot and restricted to the bot owner (resolved via application_info() at startup). Non-owners receive “not authorized”.

Quick reference

CommandDescriptionParameters
/clearClear conversation and start freshNone
/compactCompress conversation contextinstructions (optional)
/costShow token usage for this sessionNone
/forkStart a forked conversationtopic (optional)
/modelSwitch the AI modelname (required)
/thinkingToggle extended thinkingenabled (required)
/interruptStop the current responseNone
/permissionsSet permission modemode (required)
/ping-budgetView or set ping budgetcapacity, refill_rate (both optional)

Session commands

/clear

Resets the conversation to a blank state. This:
  • Clears session-level tool approvals and cancels pending permission prompts
  • Exits any active interactive fork
  • Logs a “cleared” session event
  • Drops the active client connection
  • Deletes the persisted session ID
The next message starts a fresh session with no prior context.

/compact

Compresses conversation context using the Claude Agent SDK’s built-in compaction. Useful when a long conversation starts hitting context limits.
ParameterTypeRequiredDescription
instructionsstringNoOptional focus for the summary (e.g., “keep the routine config details”)
The command responds immediately with “compacting…” (to avoid Discord’s interaction timeout), then sends a followup with productivity stats:
15 turns · 3h 12m · 45k tokens compacted
Stats include: number of turns in the session, session age, and pre-compaction token count.
Use instructions to tell the compactor what information matters most. Without it, the SDK picks what to preserve automatically.

/cost

Returns the cumulative token usage and cost for the current session in USD.

Model commands

/model

Switches the AI model for subsequent messages. The change applies to both the main session and any active fork.
ParameterTypeRequiredChoices
namechoiceYesopus, sonnet, haiku
The active client connection is updated in-place. The next message uses the new model.

/thinking

Toggles extended thinking (chain-of-thought reasoning). When enabled, sets max_thinking_tokens to 10,000.
ParameterTypeRequiredChoices
enabledchoiceYeson, off
Changing thinking mode drops the active client connection. If you are in a fork, the fork client is interrupted and fork state is cleared.

Fork commands

/fork

Starts an interactive fork — a branched conversation that does not affect the main session history.
ParameterTypeRequiredDescription
topicstringNoOptional topic to seed the forked conversation
Returns an error if you are already inside a fork. Otherwise, creates a forked client and sends a fork entry embed with action buttons.

/interrupt

Stops the bot’s current response mid-stream. The command is silent — it defers the interaction, interrupts any in-progress generation, then deletes the deferred response.
If the bot is not actively generating a response, /interrupt does nothing.

Configuration commands

/permissions

Sets the permission mode that controls how the agent requests tool approval.
ParameterTypeRequiredChoices
modechoiceYesdontAsk, default, acceptEdits, bypassPermissions
ModeBehavior
dontAskSuppresses all prompts. Routes as default to the SDK while blocking locally.
defaultThe agent asks for approval before using tools.
acceptEditsThe agent can make file edits without asking, but other tools still require approval.
bypassPermissionsAll tools are auto-approved. No permission prompts.
Permission mode is scoped to the active client. If you are in a fork, only the fork client is affected. The main session retains its own permission mode.

/ping-budget

Views or configures the ping budget — a token-bucket rate limiter that controls how often background forks can notify you.
ParameterTypeRequiredDescription
capacityintegerNoMaximum number of pings in the bucket
refill_rateintegerNoMinutes between refills (default: 90)
Run /ping-budget with no parameters to see the current budget status.

Next steps