Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add hooks/cacr92/wereply/session-startgit clone --depth 1 https://github.com/cacr92/WeReplyGrade A, and why
SessionStart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the commands this hook runs, not an audit. A hook is shell that executes on your machine at the event it names, which is why every command in it is printed with what was found.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
{
"SessionStart": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "cat <<'EOF'\n=========================================\n🦀 饲料配方系统 - Tauri + Rust + React\n=========================================\n\n📋 开发规范提醒:\n ❌ 禁止 console.log - 使用 message 组件\n ❌ 禁止 as any - 使用精确类型断言\n ✅ 修改代码后更新 CHANGELOG.md\n ✅ Rust 修改后会自动生成类型绑定\n\n⚠️ AI 执行流程规范(强制遵守):\n 1️⃣ 需求分析 - 按序号列出(1. 2. 3. ...)\n 2️⃣ 任务分解 - 带任务编号(任务1、1.1、1.2...)\n 3️⃣ 创建TodoWrite - 立即创建任务追踪清单\n 4️⃣ 说明每一步 - 执行前必须说明在做什么\n 5️⃣ 标记完成状态 - 逐项标记 ✓已完成/✗未完成\n 6️⃣ 逻辑验证 - 检查逻辑和数据流\n 7️⃣ 代码审查 - 运行lint检查\n\n❗ 如果AI偏离以上流程,请立即打断!\n=========================================\nEOF"
},
{
"type": "command",
"command": "echo \"\n当前分支: $(git branch --show-current)\nGit 状态: $(git status --short | wc -l | tr -d ' ') 个变更\""
}
]
}
]
}What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 17 lines scan A dc285ccae4fd
SessionStart is a hook published in the GitHub repository cacr92/WeReply (6 stars, last pushed 7mo ago), licensed MIT. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other hooks, from other repositories
PostToolUse
Runs after a tool call finishes for Write and Edit tool calls, executing format_and_lint.sh. From supabase/supabase.
SessionStart
Runs when a session starts, executing on-start.js via node. From google-gemini/gemini-cli.
SessionStart
Runs when a session starts on startup, executing install_pkgs.sh. From supabase/supabase.
PreToolUse
Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From apache/superset.
PreToolUse
Runs before the agent uses a tool, executing pre-write.sh and pre-bash.sh (2 commands). From anthropics/claude-cookbooks.
SessionStart
Runs when a session starts, executing session-start.sh. From anthropics/claude-cookbooks.