v0.198.0Release

Slash commands and context compaction in the Agent panel

Pekan now reads the slash commands a connected ACP provider advertises instead of discarding them. Typing / at the start of the Agent composer opens an accessible, keyboard-navigable picker listing every command the active Codex ACP or Claude ACP session currently offers, along with its description and, where relevant, a hint for the text it expects. Selecting a command inserts it into the composer, adding a trailing space only when the command takes further input, so a command like /compact is left ready to send and one that expects an argument is left ready to type. Typing and sending plain text still works exactly as before: the picker is a shortcut, not a requirement.

When the connected provider advertises a command literally named compact, a new "Compact context" control appears beside the session's context usage reading. Activating it submits /compact through the same prompt path as any typed message, so Codex ACP and Claude ACP each handle it with their own compaction behavior; Pekan does not implement compaction itself, and it never infers support from which provider is connected or from a built-in command list. The control only appears when the adapter actually offers a compact command, and it is disabled while a turn is already running, so activating it can never be mistaken for compacting mid-turn. It becomes available again once the session goes idle.

Advertised command lists are tracked per session and replace the previous list wholesale each time the provider sends an update, so switching between sessions or reconnecting never shows commands left over from a different conversation. An empty, malformed, or duplicated command list is handled without crashing the session or leaving stale entries behind in the picker.

Highlights

  • Typing / opens an accessible picker of the commands the connected provider actually advertises.
  • Selecting a command inserts it, adding a trailing space only when it expects further input.
  • A "Compact context" control appears only when the provider advertises a compact command, and submits /compact through the normal prompt path.
  • The control is disabled while a turn is active, so it never implies immediate compaction while merely queued.
  • Advertised commands are tracked per session and never leak between sessions.

← Browse all Pekan releases