ctx-purge

Purge context-mode knowledge base content and session data with confirmation.

2|Updated May 5, 2026
One-click install
npx skills add https://github.com/OrestesK/pi --skill ctx-purge-orestesk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ctx-purge
Source: https://github.com/OrestesK/pi/tree/main/packages/context-mode/skills/ctx-purge
Command: npx skills add https://github.com/OrestesK/pi --skill ctx-purge-orestesk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes stale, incorrect, or unwanted context-mode data when a project needs a completely clean knowledge base and session history.

Core Features & Use Cases

  • Complete Data Purge: Permanently deletes indexed content, session events, analytics, resume snapshots, and session statistics.
  • Explicit Confirmation: Requires the context-mode purge operation to run with confirmation enabled because the deletion cannot be undone.
  • Use Case: Use this Skill when switching between unrelated projects or when outdated indexed content is polluting context-mode search results.

Quick Start

Ask the context-mode skill to permanently purge all context-mode data for the current project and confirm the irreversible deletion.

Frequently Asked Questions about ctx-purge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I permanently delete session data and reset my project context knowledge base?

To permanently delete session data and reset your project context knowledge base, you must call the context-mode purge MCP tool with explicit confirmation. This irreversible action removes all indexed content, analytics, session events, and resume snapshots.

What gets deleted when I purge context-mode data for a project?

Purging context-mode data permanently deletes indexed content, session events, analytics, resume snapshots, and session statistics. This complete data purge removes all stored project context history and knowledge base artifacts.

When should I clear context knowledge base content before starting fresh?

You should clear context knowledge base content when switching between unrelated projects or when outdated indexed content is polluting context-mode search results. A clean reset removes stale session data and prevents incorrect context from affecting your workspace.

Can I undo a context-mode purge once the deletion is confirmed?

No, a context-mode purge cannot be undone once explicitly confirmed. The permanent deletion removes all indexed content, session statistics, and resume snapshots entirely, requiring you to start fresh with a completely clean knowledge base.

Does purging context knowledge base content require explicit confirmation?

Yes, purging context knowledge base content requires explicit confirmation because the deletion is irreversible. The context-mode purge MCP tool enforces this confirmation step before permanently removing all session data and indexed project content.

Why does stale indexed content pollute my context-mode search results?

Stale indexed content pollutes context-mode search results when outdated session events and resume snapshots from previous projects remain in the knowledge base. Purging this context data permanently removes the incorrect artifacts and resets the search index.