← Catalog

pi-mono-clear

Pi extension that starts a fresh session with /clear

Extension

Install

Install with PiG

pig install npm:pi-mono-clear

Install with Pi

pi install npm:pi-mono-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": [
    "./index.ts"
  ]
}

README

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

clear extension

Adds a /clear command that starts a fresh pi session, similar to the built-in /new command.

Usage

/clear

Keyboard shortcut

Ctrl+Shift+L

The shortcut sends /clear as a command. If the agent is busy, it is delivered as a follow-up so the current turn can finish first.

Behavior

When /clear runs, the extension:

  1. waits for the agent to become idle if needed
  2. starts a new session
  3. shows a warning if the new-session request is cancelled
  4. shows an error notification if clearing fails

This makes it a convenient "start fresh" action without manually typing /new.

Notes

  • /clear is intentionally lightweight and just wraps pi's session reset behavior
  • if no UI is available, the keyboard shortcut does nothing
  • the command itself works without needing the shortcut

Files

  • index.ts — extension entry point
  • package.json — package metadata
  • CHANGELOG.md — release history