What is ctx-mod?
ctx-mod is a Claude Code mod by wdsewdser-bit that proactive context management: a task ledger, a searchable history and zero-summary window switches. It is listed under Context & memory and has 7 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | wdsewdser-bit |
| Repository | wdsewdser-bit/claude-code-mods |
| Popularity | 7 GitHub stars |
| Category | Context & memory |
| Security | High risk (48/100) |
| Rank | #1,183 of 9,397 Claude Code mods; #125 in Context & memory |
| License | MIT |
| Last commit | 2026-11-28 |
| Hooks | 14 events |
| Sees | compaction, every prompt, every tool call, mcp__ctx-mod__context calls, mcp__ctx-mod__decision_revoke calls, mcp__ctx-mod__history calls, mcp__ctx-mod__ledger_append calls, mcp__ctx-mod__ledger_read calls, subagent spawns, the system prompt |
| Draws on | nothing |
Is ctx-mod safe to install?
ctx-mod scores 48/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 3 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 files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.after | |
$.command.register | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.process.spawn | |
$.prompt.submit | drives Claude |
$.session.append | |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.usage | |
$.state.get | |
$.tool.register | drives Claude |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.status | draws interface |
How do I install ctx-mod?
- 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/wdsewdser-bit/claude-code-mods claude plugin validate ./claude-code-mods/ctx-mod
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add wdsewdser-bit/claude-code-mods && claude plugin install ctx-mod@claude-code-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs ctx-mod for you:
Install the "ctx-mod" Claude Code mod from https://github.com/wdsewdser-bit/claude-code-mods/tree/main/ctx-mod. Run claude plugin validate on it first and show me what it can access before you enable it.
More from wdsewdser-bit/claude-code-mods
This repository has at least 9 Claude Code mods on MCPMods.
- away-autopilot: 用户离开 5 分钟未回复待确认的问题时,提示模型自行决定;模型可调用工具暂停自动推进。 (Low risk)
- cache-keeper: Observes prompt-cache usage, keeps the session's and its finished subagents' caches warm, and runs 5m/1h TTL A/B experim (High risk)
- cc-restart: 让会话里的模型自己重启 Claude 桌面版,并在重启后唤醒同一个会话继续干活。 (High risk)
- delegate: Hand a task to a cheaper model (any OpenAI chat-protocol provider) through a local Anthropic-to-OpenAI proxy; /delegate (Low risk)
- dispatch-gate: A soft gate on the main session: reminds it, then refuses once per stretch, to hand work to a subagent; and refuses one (Review before installing)
- effort-auto: Adaptive thinking effort for the main conversation only: rest at low, raise it by steps when judgement is needed. (Review before installing)
- ptc-run: Programmatic tool calling: run_code runs a JS program that calls read/glob/grep/edit/bash in a sandbox and returns only (High risk)
- read-dedup: Re-reading a file already in the context returns a one-line notice if unchanged, or only a diff if changed, saving conte (Low risk)