rails_ai_agents: Settings file for Claude Code

.claude/settings.json

rails_ai_agents is a settings file for Claude Code from ThibautBaissac/rails_ai_agents. Its token cost is not measured, scanned A, original, MIT.

A settings file that configures a Rails-focused coding-agent setup, including team mode and hooks for session start, file formatting, command safety, and task completion.

In plain words
What is it for?
Use it to configure an agent workflow for Rails projects with startup context, automatic formatting, safety checks, and final test reminders.
Why use it?
It gathers several project checks and workflow rules in one configuration instead of setting them up separately.

Settings file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions Claude Code.

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

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

Reuse

Borrowing it

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

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 rails_ai_agents

README.md
[![agentmods](https://agentmods.dev/badge/settings/thibautbaissac/rails_ai_agents/settings.svg)](https://agentmods.dev/settings/thibautbaissac/rails_ai_agents/settings)
Your own site
<a href="https://agentmods.dev/settings/thibautbaissac/rails_ai_agents/settings"><img src="https://agentmods.dev/badge/settings/thibautbaissac/rails_ai_agents/settings.svg" alt="Measured on agentmods" 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 A 0 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 A, and why

rails_ai_agents scanned grade A with 0 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • nosia — 94% identical, 6 lines differ
.claude/settings.json · 76 lines

How it starts

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

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  },
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "echo \"Project: $(basename $(git rev-parse --show-toplevel 2>/dev/null || pwd)) | Branch: $(git branch --show-current 2>/dev/null || echo 'N/A') | Ruby: $(ruby -v 2>/dev/null | cut -d' ' -f2 || echo 'N/A') | Rails: $(bundle exec rails -v 2>/dev/null | cut -d' ' -f2 || echo 'N/A') | Pending migrations: $(bundle exec rails db:migrate:status 2>/dev/null | grep -c 'down' || echo '0')\"",
            "timeout": 15,
            "statusMessage": "Loading project context..."
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "FILE=$(cat | jq -r '.tool_input.file_path // empty') && [ -n \"$FILE\" ] && [[ \"$FILE\" == *.rb ]] && bundle exec rubocop -a \"$FILE\" > /dev/null 2>&1 || true",
            "timeout": 30,
            "statusMessage": "Auto-formatting with RuboCop..."
          },
          {
            "type": "command",
            "command": "FILE=$(cat | jq -r '.tool_input.file_path // empty') && [ -n \"$FILE\" ] && [[ \"$FILE\" == *.erb ]] && bundle exec erblint --autocorrect \"$FILE\" > /dev/null 2>&1 || true",
            "timeout": 30,
            "statusMessage": "Auto-formatting ERB..."
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "CMD=$(cat | jq -r '.tool_input.command // empty') && if echo \"$CMD\" | grep -qiE '(rm\\s+-rf\\s+[/~]|DROP\\s+TABLE|DROP\\s+DATABASE|git\\s+push\\s+.*(-f|--force)\\s+.*(main|master|production)|chmod\\s+777)'; then echo 'Blocked: This command is potentially destructive. Please confirm with the user before proc

Read the full file on GitHub · 76 lines

Same file

What else settings.json configures

This page is one entry in a file that holds 6. 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. 3d ago First seen · 76 lines scan A 19ec83d0c9f3

Subscribe to this mod's changes

rails_ai_agents is a settings file published in the GitHub repository ThibautBaissac/rails_ai_agents (659 stars, last pushed 3mo 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 A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.