cc-sentinel
CLAUDE.md4 starsChanged 5 months agoMITView on GitHub
STOP. Do not run diagnostic commands. Do not list files. Do not fetch web pages. Do not explore the repo structure. Read this file and follow the steps below — they are the entire installation process. You are installing cc-sentinel, a modular governance package for Claude Code. This file is a step-by-step script. Execute each step in order. When the user installs this package (by saying "Install" followed by this repo's URL), follow these steps exactly. Do not improvise, skip…
- Deletes or force-pushes
- Installs packages
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
35 rules. About 0 are common, 14 are distinctive, and 21 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
21
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 3
STOP: Do not run diagnostic commands.
- Distinctive: line 9
When the user installs this package (by saying "Install" followed by this repo's URL), follow these steps exactly.
- Very specific: line 20
Existing hooks: Read (or cat) on ~/.claude/settings.json (or .claude/settings.json).
- Distinctive: line 24
Ask ALL discovery questions in a single AskUserQuestion call with multiple questions.
- Very specific: line 26
Use AskUserQuestion with the following questions array.
- Distinctive: line 70
If git was not detected, remove the "Commits" question entirely (3 questions total).
- Distinctive: line 115
If Sprint Pipeline was selected, ask via AskUserQuestion:
- Very specific: line 128
Before running the installer or setup scripts, add allow rules to the target settings.json so cc-sentinel scripts execute without manual …
- Very specific: line 134
Read the current settings.json (create {"permissions":{"allow":[]}} if it doesn't exist).
- Distinctive: line 212
If the Verification module was selected (directly or via dependency), ask:
- Very specific: line 220
If Yes: Run the setup script immediately (no further configuration questions — but the flow may pause for user action like running codex …
- Distinctive: line 222
Probe: Run the platform-appropriate setup script:
- Distinctive: line 247
Never loop more than once on any step.
- Distinctive: line 256
Before running the installer (which installs governance hooks that protect CLAUDE.md), inject behavioral rules now while no hooks are …
- Very specific: line 258
Read modules/core/claude-md-rules.md from this repository and inject its contents into the user's CLAUDE.md:
- Very specific: line 260
Check if CLAUDE.md exists in the target (project root or ~/.claude/).
- Very specific: line 261
If it exists, check if cc-sentinel rules are already present (search for <!-- cc-sentinel rules start -->).
- Distinctive: line 262
If not present, append the rules block wrapped in delimiters:
- Distinctive: line 270
If CLAUDE.md doesn't exist, create it with the rules block.
- Very specific: line 296
If Sprint Pipeline was installed and spawn_startup_delay was captured, write the startup delay to spawn config using built-in tools (no …
- Very specific: line 299
Read spawn.json with the Read tool (if it doesn't exist, start with {}).
- Distinctive: line 301
Write the updated JSON with the Write tool.
- Distinctive: line 309
After the installer runs, tell the user:
- Very specific: line 323
If user picks A: proceed. If user picks B: append *.m4a, *.wav, *.ogg, *.flac, *.aac, *.sqlite, *.db, *.woff, *.woff2, *.ttf, *.otf to the …
- Very specific: line 324
If user picks B: append *.m4a, *.wav, *.ogg, *.flac, *.aac, *.sqlite, *.db, *.woff, *.woff2, *.ttf, *.otf to the .claudeignore file.
- Very specific: line 325
If user picks C: say "Edit .claudeignore in your project root any time.
- Distinctive: line 326
If user picks D: make the requested changes.
- Very specific: line 352
If they accept, re-run the installer with --deny-rules appended to the command.
- Very specific: line 357
Do NOT include *.png, *.jpg, *.jpeg, *.gif, *.webp, *.svg, *.pdf, or *.docx — these are formats Claude can usefully read.
- Very specific: line 361
If the Sprint Pipeline module was installed, recommend complementary plugins.
- Very specific: line 377
Use built-in tools (Read, Glob) when available.
- Very specific: line 405
If all checks above PASS: Say "cc-sentinel is installed and verified.
- Very specific: line 407
If any check FAILs: Report the failures, suggest running /self-test in a new session to diagnose.
- Very specific: line 411
If the user asks to uninstall cc-sentinel, use the uninstaller — never manually rm -rf.
- Very specific: line 438
Add --dry-run (Unix) or -DryRun (Windows PowerShell) to preview what would be removed without removing it.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
cc-sentinel
STOP. Do not run diagnostic commands. Do not list files. Do not fetch web pages. Do not explore the repo structure. Read this file and follow the steps below — they are the entire installation process.
You are installing cc-sentinel, a modular governance package for Claude Code. This file is a step-by-step script. Execute each step in order.
Installation Instructions
When the user installs this package (by saying "Install" followed by this repo's URL), follow these steps exactly. Do not improvise, skip ahead, or run commands not specified here.
Path rule: In ALL commands you run, use resolved literal paths — never $env:USERPROFILE, $HOME, or ~. Resolve these to the actual directory (e.g., C:\Users\username or /Users/username) before constructing any command. Shell variables make commands "dynamic expressions" that Claude Code cannot match against allow rules, causing unnecessary permission prompts.
Step 1: Detect Environment
Before asking any questions, silently detect. Use built-in tools (Glob, Read) when available — they require no permission and produce no prompts. If Glob or Grep are not in your tool index (some platforms omit them), use ls for directory listings, cat for file reads, and find for recursive file searches instead — these are read-only commands that cannot modify anything. If prompted to approve them, do so — they will be added to permanent allow rules in Step 4c.
- OS: Claude Code already knows the platform from session metadata (
win32,darwin,linux). No shell call needed — read the platform from your system context. - Existing .claude/: Glob (or
ls) for.claude/settings.jsonand~/.claude/settings.json. - Git: Glob (or
ls) for.git/in the current directory. - Project type: Glob (or
ls) forpubspec.yaml,package.json,Cargo.toml,go.mod,setup.py,pyproject.toml,Makefile. - Existing hooks: Read (or
cat) on~/.claude/settings.json(or.claude/settings.json). Check for"hooks"key.
Step 2: Discovery Questions (single bundled prompt)
Ask ALL discovery questions in a single AskUserQuestion call with multiple questions. Do NOT ask them one at a time. Bundle them so the user sees everything at once and answers in one interaction.
Use AskUserQuestion with the following questions array. If git was NOT detected in Step 1, omit the "Commit verification" question (max 4 questions per call):
questions: [
{
question: "What do you use Claude Code for?",
header: "Use case",
options: [
{ label: "Software development", description: "Building and maintaining codebases" },
{ label: "Research & analysis", description: "Exploring data, papers, or technical topics" },
{ label: "Writing & content", description: "Documentation, articles, or creative work" }
],
multiSelect: false
},
{
question: "Do you work on long, multi-step projects that span multiple sessions?",
header: "Workflow",
options: [
{ label: "Yes", description: "The sprint pipeline (/audit → /design → /build → /perfect → /finalize) is designed for this" },
{ label: "No", description: "Mostly single-session tasks" }
],
multiSelect: false
},
{
question: "Do you want commits verified automatically?",
header: "Commits",
options: [
{ label: "Yes (Recommended)", description: "Adversarial agents review every commit diff and block unverified code" },
{ label: "No", description: "Skip commit verification" }
],
multiSelect: false
},
{
question: "Would you like a project-level or global install?",
header: "Scope",
options: [
{ label: "Global (Recommended)", description: "Installs to ~/.claude/ — applies to every Claude Code session" },
{ label: "Project only", description: "Installs to .claude/ in the current directory only" }
],
multiSelect: false
}
]If git was not detected, remove the "Commits" question entirely (3 questions total). The user can always type a custom answer via "Other" for any question.
Step 3: Present Problem Table + Module Selection (same turn)
MANDATORY: You MUST output the problem table below as text BEFORE asking the module question. The user needs to understand what each module does before choosing. Do NOT skip the table. Do NOT substitute your own module bundles. Use the EXACT options below verbatim — do not invent alternatives, regroup modules, or change the recommended option. If AskUserQuestion fails, present the 4 options as numbered text and ask the user to type a number.
In a single response, output the problem table as text AND immediately follow with an AskUserQuestion for module selection. Do NOT split these into separate turns.
First, output this table:
| # | Problem | Solution |
| 1 | "It said it was done, but it wasn't." | Verification — multi-model verification squad (Sonnet + Codex interleaved) |
| 2 | "It slammed into auto-compact and lost its work." | Context Awareness — visual status bar with 5 graduated warnings |
| 3 | "It deferred instead of fixing." | Core — anti-deferral hook scans every write |
| 4 | "After compaction, it forgot everything." | Core — CURRENT_TASK.md state survives compaction |
| 5 | "It committed untested code." | Commit Enforcement — tests, formatting, adversarial diff review |
| 6 | "Complex work has no structure." | Sprint Pipeline — structured /1 through /5 workflow |
| 7 | "It modified files it shouldn't." | Governance Protection — blocks mid-session edits to rules |
| 8 | "I walked away and missed the finish." | Notification — desktop alerts when done |
Then in the SAME response, call AskUserQuestion with these EXACT options (do not modify):
questions: [
{
question: "Which modules would you like to install?",
header: "Modules",
options: [
{ label: "All modules (Recommended)", description: "Core + Context Awareness + Verification + Commit Enforcement + Sprint Pipeline + Governance Protection + Notification" },
{ label: "Core only", description: "Context loss prevention, anti-deferral, state management — the minimum install" },
{ label: "Core + Verification", description: "Adds multi-agent verification squad for completion claims" },
{ label: "Core + Verification + Commit Enforcement", description: "Adds commit gating with adversarial diff review" }
],
multiSelect: false
}
]Auto-include dependencies: Sprint Pipeline requires Core + Verification + Commit Enforcement. Notification and Governance Protection require Core.
Step 4b: Spawn Configuration (if Sprint Pipeline selected)
Sprint Pipeline is only included when sprint-pipeline appears in the user's final module selection (currently only the "All modules" option includes it). If sprint-pipeline was not selected, skip this step entirely.
If Sprint Pipeline was selected, ask via AskUserQuestion:
"Sprint Pipeline includes /spawn for launching parallel Claude Code sessions. How long does Claude Code take to start on your machine?"
Options:
- 5 seconds (Recommended) — "Default. Works for most machines."
- 3 seconds — "Fast machines with SSD and few startup hooks."
- 8 seconds — "Slower machines or heavy startup configuration."
Store the selected value as spawn_startup_delay. If the user picks "Other", parse their number. Default 5.
Step 4c: Configure Permissions
Before running the installer or setup scripts, add allow rules to the target settings.json so cc-sentinel scripts execute without manual approval. Without these, every hook and script triggers a permission prompt — defeating the purpose of automation.
Determine the settings file:
- Global:
~/.claude/settings.json - Project:
.claude/settings.json
Read the current settings.json (create {"permissions":{"allow":[]}} if it doesn't exist). Merge these entries into permissions.allow — never overwrite existing rules:
Global install:
"Bash(bash ~/.claude/hooks/*)",
"Bash(bash ~/.claude/scripts/*)",
"Bash(bash ~/.claude/cc-context-awareness/*)",
"Bash(python3 ~/.claude/tools/*)",
"Bash(python ~/.claude/tools/*)",
"Bash(python *.claude?tools?*)",
"Bash(git *)",
"Bash(ls *)",
"Bash(cat *)",
"Bash(find *)",
"Bash(echo *)",
"Bash(powershell *setup-codex*)",
"Bash(powershell -File *setup-codex*)",
"Bash(powershell -ExecutionPolicy Bypass *setup-codex*)",
"Bash(mkdir -p verification_findings/*)",
"Bash(mkdir -p verification_findings/*/*)",
"PowerShell(git *)",
"PowerShell(python *.claude?tools?*)",
"PowerShell(python ~/.claude/tools/*)",
"PowerShell(python3 ~/.claude/tools/*)",
"PowerShell(*setup-codex*)",
"PowerShell(*flash.ps1*)",
"PowerShell(*install.ps1*)",
"PowerShell(*uninstall.ps1*)",
"PowerShell(mkdir *verification_findings*)",
"PowerShell(*verification_findings*)",
"Write(CURRENT_TASK*)",
"Edit(CURRENT_TASK*)",
"Write(verification_findings/*)",
"Write(verification_findings/*/*)",
"Edit(verification_findings/*)",
"Edit(verification_findings/*/*)"Project install:
"Bash(bash .claude/hooks/*)",
"Bash(bash scripts/*)",
"Bash(bash .claude/cc-context-awareness/*)",
"Bash(python3 ~/.claude/tools/*)",
"Bash(python ~/.claude/tools/*)",
"Bash(python *.claude?tools?*)",
"Bash(git *)",
"Bash(ls *)",
"Bash(cat *)",
"Bash(find *)",
"Bash(echo *)",
"Bash(powershell *setup-codex*)",
"Bash(powershell -File *setup-codex*)",
"Bash(powershell -ExecutionPolicy Bypass *setup-codex*)",
"Bash(mkdir -p verification_findings/*)",
"Bash(mkdir -p verification_findings/*/*)",
"PowerShell(git *)",
"PowerShell(python *.claude?tools?*)",
"PowerShell(python ~/.claude/tools/*)",
"PowerShell(python3 ~/.claude/tools/*)",
"PowerShell(*setup-codex*)",
"PowerShell(*flash.ps1*)",
"PowerShell(*install.ps1*)",
"PowerShell(*uninstall.ps1*)",
"PowerShell(mkdir *verification_findings*)",
"PowerShell(*verification_findings*)",
"Write(CURRENT_TASK*)",
"Edit(CURRENT_TASK*)",
"Write(verification_findings/*)",
"Write(verification_findings/*/*)",
"Edit(verification_findings/*)",
"Edit(verification_findings/*/*)"Announce briefly: "Configuring permissions so cc-sentinel scripts run without manual approval..." then write the rules. No user prompt or confirmation needed — just the one-line announcement so it doesn't look like improvisation. The installer will also add these rules mechanically as a safety net.
Step 4d: Dual-Architecture Verification (if Verification module selected)
If the Verification module was selected (directly or via dependency), ask:
"Do you want dual-architecture verification? This runs OpenAI Codex agents alongside Claude Sonnet during verification rounds. Different model architectures catch different bug classes — issues one model misses, the other catches. Requires an OpenAI account with Codex access (Plus, Pro, Team, or an API key with credits — check OpenAI's current pricing)."
Options: Yes / No, Sonnet-only
If No: Skip to Step 5. Codex is not configured for cc-sentinel; verification runs Sonnet-only.
If Yes: Run the setup script immediately (no further configuration questions — but the flow may pause for user action like running codex login). The script probes, installs if needed, and tests auth:
- Probe: Run the platform-appropriate setup script:
- macOS/Linux:
bash "<this-repo-path>/modules/verification/scripts/setup-codex.sh" --probe-only - Windows:
& "<this-repo-path>\modules\verification\scripts\setup-codex.ps1" -Mode ProbeOnly
- macOS/Linux:
- Handle probe result:
STATUS: FOUND→ proceed to auth verification (step 3)STATUS: NOT_FOUND→ attempt install:- macOS/Linux:
bash "<this-repo-path>/modules/verification/scripts/setup-codex.sh" --install - Windows:
& "<this-repo-path>\modules\verification\scripts\setup-codex.ps1" -Mode Install
- macOS/Linux:
- Result handling:
STATUS: FOUNDorSTATUS: INSTALLED→ proceed to auth verification (step 3)STATUS: INSTALL_NEED_SUDO→ tell user: "Codex needs elevated permissions to install globally. Run this in a separate terminal (not here — sudo needs a password prompt that Claude Code can't provide):" and show theCMD:line verbatim (e.g.,sudo npm install -g @openai/codex). Do NOT prefix with!— sudo requires a real TTY for password entry. Wait for user to confirm they've run it, then re-run--probe-onlyon the same platform script. If FOUND → proceed to auth verification (step 3). If still NOT_FOUND → bail: "Codex installation didn't complete. You can finish later withnpm install -g @openai/codex && codex login." Skip to Step 5.STATUS: INSTALL_NO_NODE→ tell user: "Codex requires Node.js. Run this in a separate terminal:" and show theCMD:line from output. "Once installed, type anything here and I'll retry." After user's next message: re-run--install. If stillINSTALL_NO_NODE→ bail: "Node.js isn't visible in the current session. Restart Claude Code after installing Node, then re-run the installer." Skip to Step 5.STATUS: INSTALL_FAILED→ tell user: "Codex installation didn't complete. You can set this up later by runningnpm install -g @openai/codex && codex login. Once installed, verify with: (Windows)& "<this-repo-path>\modules\verification\scripts\setup-codex.ps1" -Mode VerifyAuthor (macOS/Linux)bash "<this-repo-path>/modules/verification/scripts/setup-codex.sh" --verify-auth. Continuing without dual-architecture verification." Skip to Step 5.
- Verify auth:
- macOS/Linux:
bash "<this-repo-path>/modules/verification/scripts/setup-codex.sh" --verify-auth - Windows:
& "<this-repo-path>\modules\verification\scripts\setup-codex.ps1" -Mode VerifyAuth - Result handling:
STATUS: AUTH_OK→ "Codex verified and working." Proceed to Step 5.STATUS: NOT_FOUND→ Codex binary not visible (stale PATH after install). Bail: "Codex installed but not visible in current session. Restart Claude Code, then re-run installer to complete setup." Skip to Step 5.STATUS: AUTH_FAILED→ tell user: "Codex needs authentication. Type this:" and show theCMD:line prefixed with!(e.g.,! codex login). Explain: "This opens a browser for OAuth. Let me know and I'll verify the connection." After user's next message (regardless of content), re-run--verify-auth. Do NOT say "press Enter when done" — on an empty prompt, Enter may do nothing or confuse the user.- Second auth failure → "Codex auth didn't complete. You can finish setup later with
codex login, then verify with: (Windows)& "<this-repo-path>\modules\verification\scripts\setup-codex.ps1" -Mode VerifyAuthor (macOS/Linux)bash "<this-repo-path>/modules/verification/scripts/setup-codex.sh" --verify-auth. Continuing with Sonnet-only verification." Skip to Step 5.
- macOS/Linux:
Design notes:
- Never loop more than once on any step. Two failures = bail gracefully.
- The script handles OS-appropriate install paths internally.
INSTALL_NEED_SUDOis Unix-only (macOS/Linux). On Windows, npm global installs go to%AppData%— no elevation needed, so the Windows script never emits this status.- On macOS with Homebrew Node, no sudo needed (Homebrew prefix is user-writable). On Linux with system Node (apt/dnf/pacman), sudo is typical.
- Never use
!withsudo— Claude Code's!prefix does not provide a PTY, so sudo cannot prompt for a password. Always direct the user to run sudo commands in a separate terminal. - User-action pauses are sequential: install confirmation first (re-probe to confirm), then auth if needed. This ensures each step's success is verified before proceeding. Aim for minimal pauses (typically 0–2 total), not batching commands that depend on each other's success.
Step 5: Inject CLAUDE.md Rules
Before running the installer (which installs governance hooks that protect CLAUDE.md), inject behavioral rules now while no hooks are active.
Read modules/core/claude-md-rules.md from this repository and inject its contents into the user's CLAUDE.md:
- Check if
CLAUDE.mdexists in the target (project root or~/.claude/). - If it exists, check if cc-sentinel rules are already present (search for
<!-- cc-sentinel rules start -->). - If not present, append the rules block wrapped in delimiters:
<!-- cc-sentinel rules start -->
[contents of claude-md-rules.md]
<!-- cc-sentinel rules end -->- If CLAUDE.md doesn't exist, create it with the rules block.
Step 6: Run Installer
Reassure the user: "The installer merges additively — it will not overwrite or remove your existing hooks, skills, or settings (on reinstall, locally-modified files are preserved; use --force-overwrite (Unix) or -ForceOverwrite (Windows) to replace them with canonical versions). It also auto-configures permissions so cc-sentinel scripts run without manual approval."
Permissions are already configured. Step 4c wrote all necessary allow rules (both Bash(...) and PowerShell(...) patterns). Do NOT add any additional bare rules here — rules without a Tool(pattern) wrapper (like "codex *" or "*cc-sentinel*") are invalid and trigger CC settings warnings. The installer also writes these same rules as a safety net, so permissions are double-covered.
Determine the correct installer command based on OS. Use the full path to the installer scripts in this repository (the directory containing this CLAUDE.md file):
Windows:
& "<this-repo-path>\install.ps1" -Modules "<selected>" -Target "<target>"macOS/Linux:
bash "<this-repo-path>/install.sh" --modules "<selected>" --target "<target>"Replace <this-repo-path> with the resolved literal absolute path to this cloned repository. Do NOT use $env:USERPROFILE, ~, $HOME, or any shell variable — use the actual path (e.g., C:\Users\username\.claude\cc-sentinel or /Users/username/.claude/cc-sentinel). Shell variables in the command make it a "dynamic expression" that Claude Code cannot statically validate, triggering a permission prompt that defeats the allow rules configured in Step 4c.
For the initial install run, use only these arguments. Additional flags: -DenyRules / --deny-rules (Step 6c covers when to append this), -ForceOverwrite / --force-overwrite (forces replacement of locally-modified files — use when a previous install left stale files that should be updated to the canonical version). The <selected> value is a comma-separated list with NO spaces (e.g., core,context-awareness,verification,commit-enforcement,sprint-pipeline,governance-protection,notification).
Step 6b: Configure Spawn (if Sprint Pipeline selected)
If Sprint Pipeline was installed and spawn_startup_delay was captured, write the startup delay to spawn config using built-in tools (no Bash needed — avoids permission prompts):
- Determine spawn.json path:
<home>/.claude/tools/spawn.json(resolve<home>to the literal home directory per the path rule above). - Read spawn.json with the Read tool (if it doesn't exist, start with
{}). - Set
startup_delayto the user's value (default: 5). - Write the updated JSON with the Write tool.
Then run the setup command to auto-detect terminal and key sender (the installer runs this automatically, but re-running is safe). Use the resolved literal path — try python3 first; if not found, fall back to python:
- macOS/Linux:
python3 <home>/.claude/tools/spawn.py --setup(orpythonifpython3is unavailable) - Windows:
python3 <home>\.claude\tools\spawn.py --setup(orpythonifpython3is unavailable)
Step 6c: Review .claudeignore
After the installer runs, tell the user:
".claudeignore controls what Claude can see. It works like .gitignore — matching files are excluded from Claude's context window. This matters because context is finite: every binary, build artifact, or media file Claude loads is space that could hold your actual code.
Based on your [detected project type] project, the installer created .claudeignore with these exclusions:"
Show the contents of the generated .claudeignore file.
"Options: A) Keep this list (recommended for most projects) B) Expand it — add common media/binary types (*.m4a, *.wav, *.sqlite, *.db, *.woff, *.ttf) C) I'll customize it myself — just tell me where the file is D) Something specific — tell me what patterns to add or remove"
If user picks A: proceed.
If user picks B: append *.m4a, *.wav, *.ogg, *.flac, *.aac, *.sqlite, *.db, *.woff, *.woff2, *.ttf, *.otf to the .claudeignore file.
If user picks C: say "Edit .claudeignore in your project root any time. It uses the same syntax as .gitignore."
If user picks D: make the requested changes.
For global installs (--target global): Skip .claudeignore generation. Instead, offer deny rules with this exact explanation:
".claudeignore is project-level — no global equivalent. For global exclusions, deny rules in ~/.claude/settings.json block the Read() tool from loading specific file types into context.
Important: Deny rules only block Read(). They do NOT block Bash() — Claude can still execute files, unzip archives, and process files with CLI tools. However, denying image formats (*.png, *.jpg) WILL block Claude's built-in image viewing and OCR, since those work through Read().
Conservative (Recommended): Block media, video, archives, and binaries. Keep images and PDFs readable for OCR."
Then call AskUserQuestion with a SHORT question (long text renders unreadably in some terminal themes):
questions: [
{
question: "Add deny rules?",
header: "Deny rules",
options: [
{ label: "Yes, add them (Recommended)", description: "Re-runs installer with -DenyRules; blocks media/video/archives/binaries; keeps images and PDFs readable for OCR" },
{ label: "Skip", description: "Don't add deny rules — you can re-run later with -DenyRules" }
],
multiSelect: false
}
]If they accept, re-run the installer with --deny-rules appended to the command. The installer handles the edit automatically (governance hooks do not block the installer's own settings writes):
Windows: append -DenyRules to the powershell command
macOS/Linux: append --deny-rules to the bash command
Do NOT include *.png, *.jpg, *.jpeg, *.gif, *.webp, *.svg, *.pdf, or *.docx — these are formats Claude can usefully read.
Step 7: Plugin Suggestions
If the Sprint Pipeline module was installed, recommend complementary plugins. Present each with its purpose and install command. Do NOT modify settings.json — plugin installation requires the user to run /plugins themselves.
"The sprint pipeline works best with these community plugins. You can enable any of them with /plugins:"
- superpowers (
superpowers@claude-plugins-official) — brainstorming, planning, TDD, verification workflows - context7 (
context7@claude-plugins-official) — library documentation lookup - feature-dev (
feature-dev@claude-plugins-official) — guided feature development - pr-review-toolkit (
pr-review-toolkit@claude-plugins-official) — comprehensive PR review - claude-md-management (
claude-md-management@claude-plugins-official) — CLAUDE.md maintenance - ralph-loop (
ralph-loop@claude-plugins-official) — re-feed until completion - claude-code-setup (
claude-code-setup@claude-plugins-official) — automation recommendations
Step 8: Run Self-Test
Skills installed during this session are not loadable until the next session — do NOT invoke /self-test.
Use built-in tools (Read, Glob) when available. If Glob is not in your tool index, use ls and find instead — these are pre-approved read-only commands in the permission rules and will not trigger prompts. Resolve ~ to the literal home directory per the path rule.
- Read (or
cat) the target settings.json. In the JSON content, count hook event types (keys underhooks) and total hook entries. Check thatpermissions.allowcontains cc-sentinel rules. Check forstatusLinekey. - Glob (or
ls) for hook files:<home>/.claude/hooks/*(or.claude/hooks/*for project). Count results. - Glob (or
ls) for skill directories:<home>/.claude/skills/*/SKILL.md(or.claude/skills/*/SKILL.md). Count results. - Read (or
cat) the target CLAUDE.md. Search forcc-sentinel rules startin the content. - Glob (or
ls) for reference files:<home>/.claude/reference/*.md(or.claude/reference/*.md). Confirm key files present. If verification module was installed:verification-behavior.md. If governance-protection was installed:audit-pointer-rules.md.
Present results as a table: each check PASS or FAIL with count. Exact counts depend on which modules were selected — do not compare to hardcoded expected values. Example format:
Hooks registered: N/N PASS
Hook files on disk: N/N PASS
Skills: N/N PASS
CLAUDE.md rules: PASS
Permissions: PASS
Reference files: N/N PASSStep 9: Getting Started
Based on installed modules, suggest first commands:
- Core only: "Try
/coldto see how CURRENT_TASK.md orientation works." - With Verification: "Try
/grillafter your next piece of work to see adversarial self-checking." - With Sprint Pipeline: "Start your next project with
/auditto see the full pipeline." - With Context Awareness: "Watch the status bar - it shows your context window usage in real time."
If all checks above PASS: Say "cc-sentinel is installed and verified. Your sessions are now governed."
If any check FAILs: Report the failures, suggest running /self-test in a new session to diagnose. Do NOT claim "verified" when checks failed.
Uninstall
If the user asks to uninstall cc-sentinel, use the uninstaller — never manually rm -rf. Determine the correct command based on OS:
macOS/Linux:
bash "<this-repo-path>/uninstall.sh" --target "<target>"Windows:
& "<this-repo-path>\uninstall.ps1" -Target "<target>"Replace <this-repo-path> with the cloned repo location (typically ~/.claude/cc-sentinel or /tmp/cc-sentinel). If the repo was already deleted, clone it first:
macOS/Linux:
git clone https://github.com/turqoisehex/cc-sentinel /tmp/cc-sentinel
bash /tmp/cc-sentinel/uninstall.sh --target globalWindows (PowerShell):
git clone https://github.com/turqoisehex/cc-sentinel cc-sentinel-temp
& .\cc-sentinel-temp\uninstall.ps1 -Target global
Remove-Item -Recurse -Force cc-sentinel-tempAdd --dry-run (Unix) or -DryRun (Windows PowerShell) to preview what would be removed without removing it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

