optimus-claude: Settings file for Claude Code

.claude/settings.json

optimus-claude is a settings file for Claude Code from oprogramadorreal/optimus-claude. Its token cost is not measured, scanned F, original, MIT.

A configuration of agent permissions, hooks, and allowed tools. Hooks are actions that run before or after a tool is used.

In plain words
What is it for?
Use it to configure an agent’s tool access and safety restrictions.
Why use it?
It sets guardrails around what the agent may do, including blocking risky commands such as force-pushing or destructive deletion.

Settings file for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable. Also seen: names the NotebookEdit tool.

This is oprogramadorreal/optimus-claude's own configuration. It tells Claude Code how to work on optimus-claude 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 optimus-claude configures →

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

Reuse

Borrowing it

Nothing to install: this file belongs to oprogramadorreal/optimus-claude. 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/oprogramadorreal/optimus-claude/master/.claude/settings.json
Clone the repo
git clone --depth 1 https://github.com/oprogramadorreal/optimus-claude

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 optimus-claude

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

Your own site · 80×15
<a href="https://agentmods.dev/settings/oprogramadorreal/optimus-claude/settings"><img src="https://agentmods.dev/badge/settings/oprogramadorreal/optimus-claude/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 F 5 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Security

Grade F, and why

optimus-claude scanned grade F with 5 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 18d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

"Bash(curl * -d @*)"

Asks for rootmediumPrivilege escalation

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

"Bash(sudo *)",

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

"Bash(curl * | bash*)",

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

What it actually says

{
  "claudeMdExcludes": [
    "**/test/evaluations/fixtures/**"
  ],
  "permissions": {
    "allow": [
      "Bash",
      "Read",
      "Edit",
      "MultiEdit",
      "Write",
      "NotebookEdit",
      "Glob",
      "Grep",
      "WebFetch",
      "WebSearch",
      "Task",
      "Agent",
      "TodoWrite",
      "Skill"
    ],
    "deny": [
      "Bash(git push --all*)",
      "Bash(git push --mirror*)",
      "Bash(*git push --force)",
      "Bash(*git push --force *)",
      "Bash(*git push -f *)",
      "Bash(*git push -f)",
      "Bash(*git reset --hard*)",
      "Bash(git clean *)",
      "Bash(git stash drop*)",

      "Bash(rm -rf /*)",
      "Bash(rm -rf ~*)",

      "Bash(sudo *)",

      "Bash(curl * | bash*)",
      "Bash(curl * | sh*)",
      "Bash(wget * | bash*)",
      "Bash(wget * | sh*)",

      "Bash(docker system prune*)",
      "Bash(docker compose down -v*)",
      "Bash(kubectl delete *)",

      "Bash(npm publish*)",
      "Bash(cargo publish*)",
      "Bash(twine upload*)",
      "Bash(gem push*)",
      "Bash(dotnet nuget push*)",
      "Bash(mvn deploy*)",
      "Bash(mvnw deploy*)",
      "Bash(./mvnw deploy*)",
      "Bash(gradle publish*)",
      "Bash(./gradlew publish*)",

      "Bash(npx npm-cli-login*)",
      "Bash(curl * -d @*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|MultiEdit|Write|NotebookEdit|Bash",
        "hooks": [
          {
            "type": "command",
            "command": "bash \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/restrict-paths.sh",
            "timeout": 5
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|MultiEdit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "bash \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/format-python.sh",
            "timeout": 30
          }
        ]
      }
    ]
  }
}
Same file

What else settings.json configures

This page is one entry in a file that holds 3. 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. 18d ago Changed · +3 lines 7ea42bc7873d
  2. 1mo ago Changed · +1 lines 1bc122513949
  3. 1mo ago First seen · 85 lines scan F 49d4089dbbc3

Subscribe to this mod's changes

optimus-claude is a settings file published in the GitHub repository oprogramadorreal/optimus-claude (74 stars, last pushed 19d 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 F with 5 findings (sends data to an external url, asks for root, downloads and executes remote code). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.