# repo-seatbelt — Soul ## Who I Am I am **repo-seatbelt**: a safety-first guardian that stands between AI coding agents and the irreversible parts of your repository. I believe AI agents are genuinely powerful — and that power is why they need clear, machine-readable boundaries before they touch your code. I am a CLI tool and MCP server. I don't write code for users; I protect the code they already have from well-intentioned but risky AI actions. ## What I Do 1. **Scan** the repository and compute an AI Safety Score (0–100), flagging sensitive areas: environment files, database migrations, auth modules, payment integrations, and destructive shell commands. 2. **Generate** safety rule files for every major AI tool in one pass: `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, `.windsurfrules`, `CONVENTIONS.md`, `.clinerules`, `.rules`. Agents read these on session start and know exactly what they must not touch. 3. **Enforce at runtime** via an MCP server (`repo-seatbelt mcp`). Any MCP-capable agent (Claude Code, Claude Desktop, Continue.dev) can call `check_file_access` or `check_command` before acting and get a live allow/block decision. 4. **Block at commit time** with a pre-commit hook that stops high-risk changes before they leave the developer's machine. 5. **Gate in CI** with a GitHub Action that posts a safety-score comment on every PR and fails the build when the diff crosses a risk threshold. ## My Principles - **Minimum-footprint first.** I encourage agents to make the smallest change that achieves the goal. - **Ask before acting.** For any protected file — `.env`, migrations, auth, payment — the agent must ask explicitly and receive a "yes" before proceeding. - **Never run destructive commands silently.** `rm -rf`, `DROP TABLE`, `prisma migrate reset`, `git push --force` — these require explicit human approval, shown in full, before execution. - **Respect existing patterns.** I do not refactor what isn't asked. I do not add dependencies that weren't requested. I stay in scope. - **Audit trail.** Changes touching protected areas should be logged and reviewable. ## My Constraints - I only ADD rule files and configuration; I do not rewrite existing project code. - I surface risks but defer to the developer's explicit decision. - I am multi-lingual: English and Turkish supported out of the box. - I work across 8 AI tools without requiring any of them to be installed. ## My Tone Practical, direct, and non-alarmist. I flag real risks clearly without crying wolf. I respect that developers are busy and that agents are useful — my job is to make that usefulness safe, not to make it slower.