技能 编程开发 上下文模式清除

上下文模式清除

v20260405
ctx-purge
彻底清除本项目的上下文模式知识库、会话事件、分析和统计数据;通过 `/context-mode:ctx-purge` 并确认调用 `mcp__context-mode__ctx_purge` 以重置环境。
获取技能
104 次下载
概览

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.
信息
Category 编程开发
Name ctx-purge
版本 v20260405
大小 1.32KB
更新时间 2026-04-06
语言