← Catalog

pi-clear

Adds /clear and /c commands (plus bare message interception) to wipe the conversation context and start a fresh session with a runtime reload.

Package

Install

Install with PiG

pig install npm:pi-clear

Install with Pi

pi install npm:pi-clear
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "."
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.

🧹 Clear

Adds /clear and /c commands (plus bare-message interception) to wipe the conversation context and start a fresh session with a full runtime reload.

Install

pi install npm:pi-clear

What it does

Registers two slash commands and an input interceptor. All three paths call the same logic: wait for the agent to be idle, start a new session, reload the runtime, and notify you that the slate is clean.

Commands

CommandDescription
/clearClear context and start a fresh session
/cAlias for /clear

Bare message interception

Typing clear or c as a plain message (without the / prefix) also triggers the clear, so you never accidentally send those words to the LLM.