ctx-purge

Solid

Purge the context-mode knowledge base. Permanently deletes all indexed content and resets session stats. This is destructive and cannot be undone. Trigger: /context-mode:ctx-purge

AI & Automation 15,664 stars 1120 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 84/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
55
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Context Mode Purge Permanently deletes ALL session data for this project: knowledge base, session events, analytics, and stats. ## Instructions 1. **Warn the user**: This is irreversible. Everything will be deleted: - FTS5 knowledge base (all indexed content from `ctx_index`, `ctx_fetch_and_index`, `ctx_batch_execute`) - Session events DB (analytics, metadata, resume snapshots) - Session events markdown file - In-memory session stats 2. Call the `mcp__context-mode__ctx_purge` MCP tool with `confirm: true`. 3. Report the result to the user — the response lists exactly what was deleted. ## When to Use - When the KB contains stale or incorrect content polluting search results. - When switching between unrelated projects in the same session. - When you want a completely fresh start for this project. ## Important - `ctx_purge` is the **only** way to delete session data. No other mechanism exists. - `ctx_stats` is read-only — shows statistics only. - `/clear` and `/compact` do NOT affect any context-mode data. - There is no undo. Re-index content if you need it again.

Details

Author
mksglu
Repository
mksglu/context-mode
Created
3 months ago
Last Updated
today
Language
TypeScript
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

ctx-compact

Archive completed tasks and trim context. Use when context files are growing large.

67 Updated yesterday
ActiveMemory
AI & Automation Featured

ck

Persistent per-project memory for Claude Code. Auto-loads project context on session start, tracks sessions with git activity, and writes to native memory. Commands run deterministic Node.js scripts — behavior is consistent across model versions.

192,199 Updated today
affaan-m
AI & Automation Solid

ctx-doctor

Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor

15,664 Updated today
mksglu
AI & Automation Solid

code-mode

Add a "code mode" tool to an existing MCP server so LLMs can write small processing scripts that run against large API responses in a sandboxed runtime — only the script's compact output enters the LLM context window. Use this skill whenever someone wants to add code mode, context reduction, script execution, sandbox execution, or LLM-generated-code processing to an MCP server. Also trigger when users mention reducing token usage, shrinking API responses, running user-provided code safely, or adding a code execution tool to their MCP server — in any language (TypeScript, Python, Go, Rust, etc.).

19 Updated 2 months ago
chenhunghan
AI & Automation Featured

treat

Prune bloated session with a prescription. Removes progress ticks, stale reads, duplicate content, and more.

318 Updated 3 days ago
Ruya-AI