SessionStart

A hook that runs automatically when a coding session starts. It prints project rules, useful commands, the current Git branch, and the number of changed files.

In plain words
What is it for?
Showing startup instructions, reminding the agent about coding and review requirements, and displaying basic Git status information.
Why use it?
It puts the project's working rules and current repository state in front of the agent before work begins.

Hook for Claude Code

Install

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.

agentmods
npx agentmods add hooks/cacr92/wereply/session-start
Clone the repo
git clone --depth 1 https://github.com/cacr92/WeReply

Made for: Claude Code.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade 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.

.claude/settings.json · 17 lines

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 ' ') 个变更\""
        }
      ]
    }
  ]
}
Changes

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.

  1. 2d ago First seen · 17 lines scan A dc285ccae4fd

Subscribe to this mod's changes

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.