settings-setup

settings-setup is a command for Claude Code from bengous/claude-code-plugins. It costs 9 tokens per session (1,365 once invoked), scanned B, original, MIT.

A setup workflow for managing Claude Code settings in JSONC, a JSON format that allows comments. It keeps an editable commented file and generates the standard settings file from it.

In plain words
What is it for?
Use it to inspect a repository, set up the JSONC workflow, and configure hooks or dotfile layouts when needed.
Why use it?
It prevents direct edits to the generated settings file from drifting away from the commented source.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-settings-manager plugin — 2 commands shipped together

Good fit Use it to inspect a repository, set up the JSONC workflow, and configure hooks or dotfile layouts when needed.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add bengous/claude-code-plugins
Claude Code
/plugin install claude-settings-manager

Made for: Claude Code.

Or install claude-settings-manager, the plugin that ships this one along with the rest of its 2 commands.

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 settings-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/bengous/claude-code-plugins/settings-setup"><img src="https://agentmods.dev/badge/commands/bengous/claude-code-plugins/settings-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.01365
Opus 5.5 $0.00004 $0.00546
Sonnet 5.5 $0.00002 $0.00273
Haiku 4.5 $0.00001 $0.00136

Measured 24d ago against content hash 63441637dc33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

settings-setup scanned grade B 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 24d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Read(~/.claude/settings.json)
claude-settings-manager/commands/settings-setup.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Settings Setup Wizard

You are setting up a JSONC workflow for Claude Code settings in this repository.

The JSONC Workflow

Claude Code's settings.json doesn't support comments. This workflow:

  1. Maintains __settings.jsonc as the editable source (supports // and /* */ comments)
  2. Auto-generates settings.json via hooks
  3. Blocks direct edits to prevent drift

Your Task

Step 1: Analyze the Repository

Explore the repo to understand its structure. Check:

  1. Repo type detection:

    • Is there a .chezmoi.yaml.tmpl, .chezmoi.toml.tmpl, or .chezmoiroot? (chezmoi dotfiles)
    • Are there dot_* prefixed directories? (chezmoi dotfiles)
    • Is there a stow or package-based structure? (stow dotfiles)
    • Otherwise: regular project repo
  2. Existing settings:

    • Does .claude/settings.json exist?
    • Does ~/.claude/settings.json exist (global)?
    • Is there already a __settings.jsonc file?
  3. Hook system:

    • Is there a lefthook.yml or lefthook.yaml?
    • Is there a .husky/ directory?
    • For chezmoi: hooks aren't needed (uses run_onchange_)
  4. Project structure:

    • What's the scripts directory pattern? (scripts/, bin/, etc.)
    • Is there a package.json?

Use ls, Glob, and Read to explore. Example commands:

ls -la
ls -la .claude/ 2>/dev/null || echo "No .claude directory"

Step 2: Determine Configuration

Based on your analysis, determine the appropriate flags:

For regular projects:

  • --source .claude/__settings.jsonc
  • --target .claude/settings.json
  • --hook-system lefthook (or husky if .husky/ exists)
  • --scripts-path scripts/claude

For chezmoi dotfiles:

  • --source dot_claude/__settings.jsonc
  • --target dot_claude/settings.json
  • --hook-system chezmoi
  • --install-global (optional, installs settings-manager to PATH)

For stow dotfiles:

  • --source <package>/__settings.jsonc (e.g., claude/__settings.jsonc)
  • --target <package>/settings.json
  • --hook-system lefthook
  • --scripts-path <package>/scripts

Read the full file on GitHub · 192 lines

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. 24d ago Changed 63441637dc33
  2. 1mo ago Changed · -3 lines b1e7ce8f0644
  3. 1mo ago First seen · 195 lines · 9 tokens per session scan B 2303d7da98bb

Subscribe to this mod's changes

settings-setup is a command published in the GitHub repository bengous/claude-code-plugins (5 stars, last pushed today), licensed MIT. It adds 9 tokens to every session and 1,365 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.