agent-context-doctor: Settings file for Claude Code

.claude/settings.json

agent-context-doctor is a settings file for Claude Code from alipajand/agent-context-doctor. Its token cost is not measured, scanned C, original, MIT.

A set of agent permissions for a project. It allows selected package-manager and read-only Git commands, asks before risky changes, and blocks secret-file reads, network commands, and destructive operations.

In plain words
What is it for?
Use it to control commands for development checks, Git inspection, package changes, file access, and potentially dangerous shell actions.
Why use it?
It limits what an automated coding agent can do, reducing the chance of exposing secrets or making unwanted repository changes.

Settings file for Claude Code

Written for Claude Code: installed under .claude/.

This is alipajand/agent-context-doctor's own configuration. It tells Claude Code how to work on agent-context-doctor 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 agent-context-doctor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to alipajand/agent-context-doctor. 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/alipajand/agent-context-doctor/main/.claude/settings.json
Clone the repo
git clone --depth 1 https://github.com/alipajand/agent-context-doctor

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 agent-context-doctor

README.md
[![agentmods](https://agentmods.dev/badge/settings/alipajand/agent-context-doctor/settings/github.svg)](https://agentmods.dev/settings/alipajand/agent-context-doctor/settings)
Your own site
<a href="https://agentmods.dev/settings/alipajand/agent-context-doctor/settings"><img src="https://agentmods.dev/badge/settings/alipajand/agent-context-doctor/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 agent-context-doctor

Your own site · 80×15
<a href="https://agentmods.dev/settings/alipajand/agent-context-doctor/settings"><img src="https://agentmods.dev/badge/settings/alipajand/agent-context-doctor/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 C 2 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 C, and why

agent-context-doctor scanned grade C with 2 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.

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:*)",
.claude/settings.json · 37 lines

What it actually says

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "permissions": {
    "allow": [
      "Bash(pnpm format)",
      "Bash(pnpm format:check)",
      "Bash(pnpm typecheck)",
      "Bash(pnpm lint)",
      "Bash(pnpm test)",
      "Bash(pnpm test:*)",
      "Bash(pnpm build)",
      "Bash(pnpm dev audit:*)",
      "Bash(pnpm dev checks)",
      "Bash(git status:*)",
      "Bash(git diff:*)",
      "Bash(git log:*)",
      "Bash(git show:*)"
    ],
    "ask": [
      "Bash(git commit:*)",
      "Bash(git push:*)",
      "Bash(pnpm add:*)",
      "Bash(pnpm install:*)",
      "Bash(pnpm update:*)"
    ],
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Bash(curl:*)",
      "Bash(wget:*)",
      "Bash(rm -rf:*)",
      "Bash(git push --force:*)",
      "Bash(git reset --hard:*)"
    ]
  }
}
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 First seen · 37 lines scan C 3251669000fe

Subscribe to this mod's changes

agent-context-doctor is a settings file published in the GitHub repository alipajand/agent-context-doctor (1 stars, last pushed 4d 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 C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.