settings

Agent settings that define commands run when a session starts and which shell commands are allowed, require approval for, or denied. The listed startup commands clean an allow-list and record a session audit.

In plain words
What is it for?
Use them to configure session-start hooks and command permissions for an agent working with Bash.
Why use it?
They control automated startup checks and restrict potentially risky commands such as deployments, pushing code, rebasing, and recursive deletion.

Settings file 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 settings/astroicers/security-weekly-mcp/settings
Clone the repo
git clone --depth 1 https://github.com/astroicers/security-weekly-mcp

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 C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade C, and why

settings scanned grade C with 1 finding 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 yesterday.

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

What it actually says

{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "/home/ubuntu/.claude/asp/hooks/clean-allow-list.sh"
          },
          {
            "type": "command",
            "command": "/home/ubuntu/.claude/asp/hooks/session-audit.sh"
          }
        ]
      }
    ]
  },
  "permissions": {
    "allow": [
      "Bash(*)"
    ],
    "ask": [
      "Bash(docker deploy *)",
      "Bash(docker push *)",
      "Bash(git push *)",
      "Bash(git push)",
      "Bash(git rebase *)",
      "Bash(git rebase)",
      "Bash(rm -r *)",
      "Bash(rm -rf *)"
    ],
    "deny": [
      "Bash(docker deploy *)",
      "Bash(docker push *)",
      "Bash(git push *)",
      "Bash(git push)",
      "Bash(git rebase *)",
      "Bash(git rebase)",
      "Bash(rm -r *)",
      "Bash(rm -rf *)"
    ]
  }
}
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. yesterday First seen · 44 lines scan C 797aba44e58f

Subscribe to this mod's changes

settings is a settings file published in the GitHub repository astroicers/security-weekly-mcp (0 stars, last pushed 2d 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 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.