ctx-mod

by yadaz · ★ 7 · updated 5 days ago

Status lineGuardsCommandsPromptTools & agentsvalidates

0

Proactive context management: a task ledger, a searchable history and zero-summary window switches.

install ctx-mod

Install

/plugin marketplace add wdsewdser-bit/claude-code-mods
/plugin install ctx-mod@claude-code-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
prompt.contextsession.startcommand.runprompt.composeprompt.attachmenttool.callsession.appendagent.spawnturn.stepturn.completesession.compactprompt.submitsession.measuresession.end
API calls
$.agent.list$.clock.after$.command.register$.command.run$.env.get$.fs.exists$.fs.list$.fs.read$.fs.write$.process.spawn$.prompt.submit$.session.append$.session.cwd$.session.id$.session.messages$.session.usage$.state.get$.tool.register$.ui.invalidate$.ui.log$.ui.status
Can see
the system promptmcp__ctx-mod__context callsmcp__ctx-mod__ledger_append callsmcp__ctx-mod__ledger_read callsmcp__ctx-mod__decision_revoke callsmcp__ctx-mod__history callsevery tool callsubagent spawnscompactionevery prompt
Reach
level 2 of 3 runs processeswrites filesdrives Claudereads filesreads env varsreads the transcriptreads mod statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/wdsewdser-bit/claude-code-mods
Path in repo
ctx-mod
Source commit
d0998bb the exact code the scan read
Author
yadaz @wdsewdser-bit
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from wdsewdser-bit/claude-code-mods

away-autopilot

wdsewdser-bit/claude-code-mods

用户离开 5 分钟未回复待确认的问题时,提示模型自行决定;模型可调用工具暂停自动推进。

★ 7Status lineGuardsPrompt

cache-keeper

wdsewdser-bit/claude-code-mods

Observes prompt-cache usage, keeps the session's and its finished subagents' caches warm, and runs 5m/1h TTL A/B experiments.

★ 7BandsStatus lineGuards

cc-restart

wdsewdser-bit/claude-code-mods

让会话里的模型自己重启 Claude 桌面版,并在重启后唤醒同一个会话继续干活。

★ 7GuardsTools & agentsAutomation

delegate

wdsewdser-bit/claude-code-mods

Hand a task to a cheaper model (any OpenAI chat-protocol provider) through a local Anthropic-to-OpenAI proxy; /delegate manages providers, keys and models.

★ 7PanesBandsStatus line

dispatch-gate

wdsewdser-bit/claude-code-mods

A soft gate on the main session: reminds it, then refuses once per stretch, to hand work to a subagent; and refuses one Claude subagent per hour past three.

★ 7GuardsPromptAutomation

effort-auto

wdsewdser-bit/claude-code-mods

Adaptive thinking effort for the main conversation only: rest at low, raise it by steps when judgement is needed.

★ 7GuardsTools & agentsAutomation

ptc-run

wdsewdser-bit/claude-code-mods

Programmatic tool calling: run_code runs a JS program that calls read/glob/grep/edit/bash in a sandbox and returns only the final value; large results spill to refs.

★ 7GuardsPromptTools & agents

read-dedup

wdsewdser-bit/claude-code-mods

Re-reading a file already in the context returns a one-line notice if unchanged, or only a diff if changed, saving context tokens.

★ 7GuardsAutomation