project-init: Settings file for Claude Code

.claude/settings.json

project-init is a settings file for Claude Code from whchoi98/project-init. Its token cost is not measured, scanned D, original, MIT.

A project-startup settings file with hooks that run when a session begins, before commands, after file edits, and when notifications appear.

In plain words
What is it for?
It loads session context, scans shell commands for secrets, checks edited files against documentation, and denies commands such as forced pushes, hard resets, and recursive deletion.
Why use it?
It adds checks for secrets, documentation synchronisation, and several dangerous commands before or after the agent acts.

Settings file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths.

This is whchoi98/project-init's own configuration. It tells Claude Code how to work on project-init itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything project-init configures →

One of 4 entries in settings.json upstream. Installing this one merges just its entry into your config; the other 3 are separate, each on its own page.

Reuse

Borrowing it

Nothing to install: this file belongs to whchoi98/project-init. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/whchoi98/project-init/main/.claude/settings.json
Clone the repo
git clone --depth 1 https://github.com/whchoi98/project-init

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-init

README.md
[![agentmods](https://agentmods.dev/badge/settings/whchoi98/project-init/settings/github.svg)](https://agentmods.dev/settings/whchoi98/project-init/settings)
Your own site
<a href="https://agentmods.dev/settings/whchoi98/project-init/settings"><img src="https://agentmods.dev/badge/settings/whchoi98/project-init/settings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for project-init

Your own site · 80×15
<a href="https://agentmods.dev/settings/whchoi98/project-init/settings"><img src="https://agentmods.dev/badge/settings/whchoi98/project-init/settings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade D, and why

project-init scanned grade D with 3 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 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

"Bash(chmod 777:*)",

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

"Bash(rm -rf:*)",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

"Bash(curl*| bash*)",
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • settings — 86% identical, 29 lines differ
.claude/settings.json · 53 lines

What it actually says

{
  "permissions": {
    "allow": [],
    "deny": [
      "Bash(rm -rf:*)",
      "Bash(rm -r:*)",
      "Bash(git push --force:*)",
      "Bash(git reset --hard:*)",
      "Bash(git clean -f:*)",
      "Bash(chmod 777:*)",
      "Bash(curl*| bash*)",
      "Bash(wget*| bash*)",
      "Bash(eval:*)",
      "Bash(python3 -c*import os*)"
    ]
  },
  "hooks": {
    "SessionStart": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "bash .claude/hooks/session-context.sh 2>/dev/null || true"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "bash .claude/hooks/secret-scan.sh"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [
          {
            "type": "command",
            "command": "bash .claude/hooks/check-doc-sync.sh 2>/dev/null || true"
          }
        ]
      }
    ]
  }
}
Same file

What else settings.json configures

This page is one entry in a file that holds 4. Installing the file brings all of them; each is measured and scanned on its own page.

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. 1mo ago Changed · -11 lines dd3b19549a62
  2. 2mo ago First seen · 64 lines scan D bdd3ef51cfe1

Subscribe to this mod's changes

project-init is a settings file published in the GitHub repository whchoi98/project-init (2 stars, last pushed 5d ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.