Home / Claude Code mods / Games / agent-guard

agent-guard

agent-guard is a Claude Code mod by AbyssCN that 派子 agent 的守卫(0.2.0 起也拦子 agent 在主 worktree 里的 git 写):拒 isolation worktree(会共用目录);声明的 WORKTREE 必须是独立、干净、没派过的 git worktree;写代码的仓库要求非只读子 agent 必须带 WORKTREE 行;0.3.2 起(G-R):配置仓库的主 worktree 里 git.

Updated 2026-11-06

What is agent-guard?

agent-guard is a Claude Code mod by AbyssCN that 派子 agent 的守卫(0.2.0 起也拦子 agent 在主 worktree 里的 git 写):拒 isolation worktree(会共用目录);声明的 WORKTREE 必须是独立、干净、没派过的 git worktree;写代码的仓库要求非只读子 agent 必须带 WORKTREE 行;0.3.2 起(G-R):配置仓库的主 worktree 里 git. It is listed under Games and has no public popularity data yet.

TypeClaude code mod
AuthorAbyssCN
RepositoryAbyssCN/claude-lead-harness
Popularityno public popularity data yet
CategoryGames
SecurityReview before installing (72/100)
Rank#4,662 of 9,397 Claude Code mods; #74 in Games
LicenseMIT
Last commit2026-11-06
Hooks1 events
SeesAgent calls, Bash calls
Draws onnothing

Is agent-guard safe to install?

agent-guard scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. 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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.env.getreads env vars
$.fs.readreads files
$.fs.statreads files
$.process.runruns processes
$.session.cwd
$.session.id
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.toastdraws interface

How do I install agent-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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/agent-guard
  3. 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 agent-guard@claude-lead-harness

Or ask Claude to set it up

Paste this into Claude Code and it installs agent-guard for you:

Install the "agent-guard" Claude Code mod from https://github.com/AbyssCN/claude-lead-harness/tree/master/mods/agent-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.

  • 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)
  • prompt-guard: 拦下 prompt 里的密钥 / 密码(放回去掉密钥的文本),并丢掉几分钟内重复发送的同一条消息 (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)