ZiChuanLan/pi-purge

pi extension: /purge swaps pi's built-in assistant persona for your own prompt file

Open original source ↗

Older snapshot: check the original source for current information.

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

English | 中文 A pi extension for system-prompt experiments: /purge switches which system prompt a session runs with — pi's stock prompt, a trimmed variant, or only a persona prompt. It is meant for prompt engineering work: comparing how the same request behaves when the harness prompt is present, trimmed, or absent; regression-testing your own instructions; and studying instruction-following and prompt-injection robustness under controlled conditions. With it off, nothing changes — no prompt rewrite, no disk reads. pi behaves exactly as if the extension were not installed. Then, inside a session: That is all. A short example prompt ships inside the package, so a fresh install works with no extra files. To run your own instructions instead: /purge source embedded switches back to the bundled persona. replace finds both sections by exact wording. If a pi update rewords them, it leaves the prompt intact rather than cutting the wrong text…

ZiChuanLan/pi-purge on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-10-27T19:32:46.416Z

Inside the original README — Document outline
  1. pi-purge
  2. Install
  3. Commands
  4. Modes
  5. Session scope and defaults
  6. Upgrading from 0.1.x
  7. Notes for experiments
  8. Development
  9. Credits
  10. Legal and compliance notice
  11. License

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the README

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. Reported project/model license: MIT. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

pi extension: /purge swaps pi's built-in assistant persona for your own prompt file

Repository facts

Owner
ZiChuanLan
Primary language
JavaScript
Stars
303
Forks
132
Open issues + pull requests
1
License
MIT
Archived
No
Default branch
main
Created
2026-10-18T16:11:03.000Z
Last push
2026-10-20T07:18:29.000Z

Topics and intended use

No topics were included in the latest source metadata.

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-10-25T12:13:46.029Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

affaan-m/ECC

react/react

trekhleb/javascript-algorithms

CyC2018/CS-Notes

DietrichGebert/ponytail

Snailclimb/JavaGuide