claudemods

All Claude Code modsAbyssCN/claude-lead-harness

agent-guard

A Claude Code mod in AbyssCN/claude-lead-harness

派子 agent 的守卫(0.2.0 起也拦子 agent 在主 worktree 里的 git 写):拒 isolation worktree(会共用目录);声明的 WORKTREE 必须是独立、干净、没派过的 git worktree;写代码的仓库要求非只读子 agent 必须带 WORKTREE 行;0.3.2 起(G-R):配置仓库的主 worktree 里 git merge 碰敏感路径的分支,要有最新判词 SHIP / MERGE;0.3.9 起(S9):specGateRepos 里合 omdl/* 分支,要有一份绑到同一个被审提交的规格判词(spec-verdict.json);0.3.10 起:那份判词要判官问够 3 遍取并集、判完之后任务书没被改过、missing · extra · wrong 都空(或带理由接受过);0.3.11 起:devstackGuardRepos 里跑 supabase db reset 要带 --db-url 指向隔离栈(端口不是 54322),或由主会话带 DEVSTACK_RESET_ACK='<理由>' 前缀,其余一律拒(共享开发栈多会话共用);0.3.12 起:heavyRouteRepos 里的重命令(vitest · tsc / typecheck · eslint / lint · node --test · next build / npm run build · playwright test · gate-slice.sh)改写成经 remote-run 在 build box 上跑(送走的命令带 CI=1 PLAYWRIGHT_HTML_OPEN=never,命令里自己写了同名赋值的不覆盖),操作本机栈 / 发版 / clients/ / 读 .env* 的、会改本机文件的(--fix · 快照更新 · 报告 / 产物写到文件 · tsc 产物)、要本机窗口 / 调试器 / 常驻的(--ui · --headed · --debug · --watch · --inspect · PWDEBUG 等;旗标按 --名 · --名=值 · -短 · -短=值 · 短名簇认,命令前或 env / export 的环境变量对所有重命令都认),以及主会话带 LOCAL_RUN_ACK='<理由>' 开头的照本机跑(子 agent 带了不认);重命令混着别的本机命令、写文件的重定向或 tee、命令替换的拒;每次命中记一行 ~/.omd-lite/readings/heavy-route.jsonl;0.3.14 起(t1102-05):补认 tsgo · tsrs · bun test · deno test/check · pytest · vite build · expo export · semgrep · npm test / test* / verify* / check:* · vitest-slot.sh;MyApp 里原本放本机的结论(读 .env · 打本机栈 · clients/ · 开窗口 / 常驻 / 写文件)一律拒并给 remote-run 替代命令(替代命令去掉写文件 / 开窗口 / 常驻的写法,watch 换成 run;碰 .env* / clients/ / 本机栈的不给替代命令),只留发版检查 · 合并前打戳 · 执行体沙箱 · 非 MyApp 仓 · 主会话 LOCAL_RUN_ACK 照本机跑并记账;0.3.15 起(DeepSeek 审 e08522d):发版 / 打戳例外只认被跑的脚本、cd 与 cwd 在 myapp-release,不扫整行;读 .env / 连栈按命令的词判;补认 bun run · pnpm/yarn <bin>,sudo / doas 前缀拒

agent-guard reaches L2 (writes or runs) and passed claude plugin validate with warnings.

Install hint

/plugin install agent-guard --marketplace AbyssCN/claude-lead-harness

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsruns processes, reads files, reads env vars, persists state, draws

Validation

Passed with warnings

View the source on GitHub Back to the list

What the scan recorded

Observed events
Bash calls, Agent calls
Hooks
tool.call {tool=Bash}, tool.call {tool=Bash}, tool.call {tool=Bash}, tool.call {tool=Agent}
API calls
$.env.get, $.fs.read, $.fs.stat, $.process.run, $.session.cwd, $.session.id, $.store.get, $.store.set, $.ui.toast
Validation
Passed with warnings
Scanned revision
2f708774163a
Marketplace warnings
claude-lead-harness

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

More from AbyssCN/claude-lead-harness

Badge for your README

Reach badge for agent-guard Validation badge for agent-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/AbyssCN--claude-lead-harness--agent-guard-reach.svg)](https://mods.aidojo.si/mods/AbyssCN--claude-lead-harness--agent-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/AbyssCN--claude-lead-harness--agent-guard-validates.svg)](https://mods.aidojo.si/mods/AbyssCN--claude-lead-harness--agent-guard/)