← Catalog

pi-markdown-preview-lean

pi-markdown-preview without the preview_export tool in the default context

Extension

Install

Install with PiG

pig install npm:pi-markdown-preview-lean

Install with Pi

pi install npm:pi-markdown-preview-lean
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 0.1.0 (README.md). PiG does not review it.

pi-markdown-preview-lean

A thin wrapper around pi-markdown-preview that keeps the default model context unchanged.

The upstream extension registers the preview_export tool (name, description, full JSON schema, prompt snippet and guidelines). This wrapper forwards all registration to upstream but marks that tool defaultActive: false, so it contributes nothing to the default context.

Everything else is unchanged:

  • /preview, /preview-browser, /preview-pdf, /preview-clear-cache work exactly as upstream (slash commands are not part of the model context).
  • The browser watchers, terminal preview, PDF export and cache clearing behave as upstream.

Enabling the export tool

The tool is still registered, just inactive. Opt in per project in ~/.pi/agent/settings.json:

{
  "defaultTools": ["+preview_export"]
}

or for one invocation:

pi --tools +preview_export

Once active, it returns to the upstream behavior and context footprint.

Install

pi install npm:pi-markdown-preview-lean

Then remove npm:pi-markdown-preview from your packages so only one copy is loaded.

For local development:

pi --extension ~/Code/pi-markdown-preview-lean/index.ts