omp packages

pi-markdown-preview-lean0.1.0

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

developer380 Published 8 days ago MIT ~329 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

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