What is ctx?
ctx is a Claude Code mod by afterever that context window details like the Desktop app's panel: /ctx opens a pane that docks beside the transcript, and a ๐ button above the prompt toggles it. It is listed under Context & memory and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | afterever |
| Repository | afterever/claude-mods |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | Review before installing (64/100) |
| Rank | #2,508 of 5,272 Claude Code mods; #237 in Context & memory |
| License | MIT |
| Last commit | 2026-10-18 |
| Hooks | 11 events |
| Sees | compaction, every prompt, every tool call |
| Draws on | AbovePrompt, SessionMode, Pane |
Is ctx safe to install?
ctx scores 64/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.process.run | runs processes |
$.session.compact | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.turns | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install ctx?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/afterever/claude-mods claude plugin validate ./claude-mods/ctx
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add afterever/claude-mods && claude plugin install ctx@afterever-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs ctx for you:
Install the "ctx" Claude Code mod from https://github.com/afterever/claude-mods/tree/master/ctx. Run claude plugin validate on it first and show me what it can access before you enable it.
More from afterever/claude-mods
This repository has 7 Claude Code mods on MCPMods.
- agent-pulse: A box above the prompt that always says what the agent is doing right now, alive with color and motion: an animated stat (Low risk)
- arsenal: A menu for the tool mods in this repo: a button right above the prompt box opens a menu pane, docked on the right, with (Low risk)
- prompt-upgrade: Turns a rough prompt into a great one before it is sent: /better opens a pane that asks up to three quick questions, rew (Low risk)
- subagent-progress: Progress bar above the prompt plus an agents panel (/agents-info) for any subagent work: running, finished and planned s (Low risk)
- waypoints: A route for /goal and any multi-step work, built from Claude's own task plan: the plan drawn as a line of nodes and legs (High risk)
- work-report: A pane that shows what Claude has done for you: tasks finished, an estimate of the hours that saved you, and what that t (Low risk)