Skip to content

Commit 8c3e343

Browse files
committed
Add rule against private-repo details in public dotfiles
Also drop Bash from the auto-mode allow list so shell commands are routed through the classifier.
1 parent 2327382 commit 8c3e343

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

rc.d/agents/AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
- Keep generated verification artifacts outside repositories: the scratchpad, `/tmp`, or `~/Desktop`.
2323
- The only new files you may create inside a repository are source, tests, and docs that genuinely belong in a commit. When in doubt, put the file outside the repo and ask.
2424

25+
## No private-repo details in public dotfiles
26+
- The files under `~/.claude/` (settings.json, CLAUDE.md, hooks, skills) are symlinks into `~/dotfiles`, which is a PUBLIC repository. Never write anything there that mentions or describes a private repository: repo names, org names, internal domains, infrastructure details, locations of sensitive data, or repo-specific permission/deny rules.
27+
- When a setup flow (e.g. `/auto-mode-setup`) generates settings content that is specific to a private repository, put it in that repository's `.claude/settings.local.json` (gitignored) instead of the user-level settings.json. If it was already written to the user-level file, move it out before the dotfiles change is committed.
28+
- Knowledge or instructions specific to a private repository belong in that repository's own `CLAUDE.md` (committed there, synced via its git), never in this global file.
29+
- Before committing in `~/dotfiles`, scan the diff for private repo/org references and strip or relocate them.
30+
2531
## PR Titles
2632
- Never prefix PR titles with AI/tool labels such as `[codex]`, `codex:`, `Claude`, or generated-by markers.
2733
- Use the repository's normal PR title style and describe only the actual change.

rc.d/claude/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"WebSearch",
2121
"Search",
2222
"Monitor",
23-
"Bash",
2423
"Edit"
2524
],
2625
"ask": []

0 commit comments

Comments
 (0)