What is prompt-guard?
prompt-guard is a Claude Code mod by AbyssCN that 拦下 prompt 里的密钥 / 密码(放回去掉密钥的文本),并丢掉几分钟内重复发送的同一条消息. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | AbyssCN |
| Repository | AbyssCN/claude-lead-harness |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Low risk (84/100) |
| Rank | #4,668 of 9,397 Claude Code mods; #548 in Security |
| License | MIT |
| Last commit | 2026-11-06 |
| Hooks | 1 events |
| Sees | every prompt |
| Draws on | nothing |
Is prompt-guard safe to install?
prompt-guard scores 84/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 6 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 no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.prompt.fill | writes the prompt box |
$.state.get | |
$.state.set |
How do I install prompt-guard?
- 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/AbyssCN/claude-lead-harness claude plugin validate ./claude-lead-harness/mods/prompt-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add AbyssCN/claude-lead-harness && claude plugin install prompt-guard@claude-lead-harness
Or ask Claude to set it up
Paste this into Claude Code and it installs prompt-guard for you:
Install the "prompt-guard" Claude Code mod from https://github.com/AbyssCN/claude-lead-harness/tree/master/mods/prompt-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from AbyssCN/claude-lead-harness
This repository has at least 9 Claude Code mods on MCPMods.
- agent-guard: 派子 agent 的守卫(0.2.0 起也拦子 agent 在主 worktree 里的 git 写):拒 isolation worktree(会共用目录);声明的 WORKTREE 必须是独立、干净、没派过的 git worktree; (Review before installing)
- board: 进度板:/board 一屏看当前仓的下一步 · GOAL 勾选 · 待拍板 · TODO · roadmap 在进行项 · 在跑的片 · 最近提交;/board myapp 看别的仓,/board all 各仓摘要。纯读文件,不调模型 (High risk)
- cache-clock: 缓存钟:每次回复后在输入框上方倒数到 prompt cache 变冷,标出现在回复与冷了重写各要多少钱;冷了先拦一次人发的消息并报价,大会话给「交接」按钮(填入 /relay go);保温只在按按钮或 /keepwarm 时发。取代 cac (High risk)
- copy-lint: MyApp 对外文案写入后自动查禁用词、标题句号和已废的片尾句,把命中提示给模型(不拦写入) (Low risk)
- cue: 提词:每次回答后,站在你的位置写好下一条完整 prompt;终端里空输入框按 1 或点 Enhance 写进草稿(不发送),手机上弹窗让你选 发送 / 方向 B / 改写 / 放弃。/enhance 把你的粗稿改写成完整结构 (High risk)
- delegate: lead 的外部 run 驾驶舱:扫描本会话的 omd-lite run($.delegate.runs)、守 launch(任务书 C-1b · 缺已重算/对外签名/安全面/不许交出去的内容 · 允许改动不重叠 · 起片间隔 · 磁盘预算 (Low risk)
- relay: 接力:/goal 把一句话写成 GOAL.md 并按 RELAY 行自动续跑到验收命令全过或真 owner 岔口才停;按 phase 切 effort;上下文到阈值自动交接并 /clear(GOAL / 定时期间跟在下一条干活 prompt (High risk)
- savvy-progress: Fork of johnnyvizz/claude-kit savvy-progress 1.2.0: the /savvy-flow bar and /agents-info panel, plus omd-lite runs this (Low risk)