Agent skill · Audited from source
Ctx Purge
skill · mksglu/context-modeNOASSERTION licenceAudited 7 Oct 2026 · source a972bcb29455
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit a972bcb29455 and found no filesystem, network or shell access and no hard-coded secrets. What it does: 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
Cite
Cite this page
ModelsAtlas. “Ctx Purge (mksglu/context-mode)”. Retrieved 7 Oct 2026. https://modelsatlas.com/skills/mksglu/ctx-purge
Trust audit
Audit 0.4.1 · source read 7 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha a972bcb29455 · 7 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publishermksglu GitHub userOwner of the repository this skill is read from
- Source foldermksglu/context-mode/skills/ctx-purgeThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdicta972bcb29455A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: 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
---
name: ctx-purge
description: |
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
user-invocable: true
---
# Context Mode Purge
Permanently deletes session data for this project. Two scopes are supported (issue #520):
- **Project scope** (`scope: "project"`): wipes EVERYTHING — knowledge base, all session DB rows for every session, events markdown, and stats.
- **Session scope** (`sessionId: "<id>"` or `scope: "session"`): wipes ONLY the matching session's rows + FTS5 chunks. Sibling sessions, project stats, and the FTS5 store file are preserved.
## Instructions
1. **Decide the scope first** with the user:
- "Wipe just one session?" → ask for the `sessionId`.
- "Wipe the whole project?" → confirm scope:'project' (this is the destructive, irreversible default).
2. **Warn the user about scope:'project'**. 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) for ALL sessions in the project
- Session events markdown file
- In-memory session stats + persisted stats file
3. Call the `mcp__context-mode__ctx_purge` MCP tool with the chosen parameters:
- Scoped: `{ confirm: true, sessionId: "<id>" }` — implies scope:'session'.
- Project: `{ confirm: true, scope: "project" }` — explicit destructive form.
- Bare `{ confirm: true }` still works but emits a deprecation warning. Prefer the explicit forms.
4. Report the result to the user — the response lists exactly what was deleted and (for scoped purges) confirms that other sessions and project stats were preserved.
## Schema rules
- `confirm: true` is always required.
- `sessionId` and `scope: "project"` together is REJECTED as ambiguous (the sessionId implies session scope; combining with project scope contradicts intent).
- `scope: "session"` without `sessionId` throws — sessionId is required.
## When to Use
- **Scoped (per-session)**: scratch acceptance scenarios, drill replays, isolating a polluted session without losing the main working session's stats.
- **Project**: KB contains stale or incorrect content polluting search results, switching between unrelated projects in the same session, completely fresh start.
## 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.Excerpt, first 2,681 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit a972bcb
git clone https://github.com/mksglu/context-mode git -C context-mode checkout a972bcb29455
The author documents no install command, so this uses the repository directly. Our verdict covers commit a972bcb29455 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
a972bcb29455
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/mksglu/ctx-purge/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
mksglu/context-mode
Search context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. Trigger: /context-mode:ctx-search
mksglu/context-mode
Index a local file or directory into context-mode's persistent FTS5 knowledge base so future ctx_search calls can retrieve focused snippets without rereading raw files. Trigger: /context-mode:ctx-index
mksglu/context-mode
Use context-mode tools (ctx_execute, ctx_execute_file) instead of Bash/cat when processing large outputs. Triggers: "analyze logs", "summarize output", "process data", "parse JSON", "filter results", "extract errors",…
mksglu/context-mode
Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor
mksglu/context-mode
Open the context-mode Insight dashboard in your default browser. Insight is the hosted analytics layer for AI-assisted engineering teams — per-engineer productive rate, retry waste, blocker detection, role-narrowed…
mksglu/context-mode
Show how much context window context-mode saved this session. Displays token consumption, context savings ratio, and per-tool breakdown. Read-only — shows stats only, no reset capability. To wipe the knowledge base…
Add this badge to your README
[](https://modelsatlas.com/skills/mksglu/ctx-purge/)
<a href="https://modelsatlas.com/skills/mksglu/ctx-purge/"><img src="https://modelsatlas.com/skills/mksglu/ctx-purge/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Ctx Purge
What does the Ctx Purge skill do?
Is Ctx Purge safe to install?
What can Ctx Purge access on my machine?
How current is this page?
Sources
- github.com/mksglu/context-mode/tree/main/skills/ctx-purge — the audited source at commit a972bcb29455 and every finding aboveObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Ctx Purge skill do?
- Is Ctx Purge safe to install?
- What can Ctx Purge access on my machine?