-
-
Notifications
You must be signed in to change notification settings - Fork 227
docs(install): per-agent install matrix + first-run welcome #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7e2342a
f9a328c
e8aac47
089f579
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ cat ~/.claude/settings.json 2>/dev/null | grep -A 20 "permissions" | |
|
|
||
| ### Step 2: Identify Safe Patterns | ||
|
|
||
| **Auto-approve candidates** (low risk): | ||
| **Allow-list candidates** (low risk): | ||
| - `Read` — all file reads (read-only, no side effects) | ||
| - `Glob` — file pattern matching (read-only) | ||
| - `Grep` — content search (read-only) | ||
|
|
@@ -44,14 +44,14 @@ cat ~/.claude/settings.json 2>/dev/null | grep -A 20 "permissions" | |
| - `Bash(npm run lint*)` — linting | ||
| - `Bash(npm run typecheck*)` — type checking | ||
|
|
||
| **Ask candidates** (medium risk — auto-approve only if user confirms): | ||
| **Ask candidates** (medium risk — prompt user every time): | ||
| - `Edit` — file modifications | ||
| - `Write` — new file creation | ||
| - `Bash(git add*)` — staging changes | ||
| - `Bash(git commit*)` — creating commits | ||
| - `Bash(npm install*)` — dependency changes | ||
|
|
||
|
Comment on lines
+47
to
53
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolve medium-risk policy conflict with the report example. Line 47 says medium-risk actions should prompt every time, but the report example still auto-approves medium-risk operations (Line 98 onward). Please align the output example to “keep asking” for medium-risk items so the guidance is consistent and safer. 🤖 Prompt for AI Agents |
||
| **Never auto-approve** (high risk): | ||
| **Deny-list candidates** (high risk): | ||
| - `Bash(git push*)` — affects remote | ||
| - `Bash(git reset --hard*)` — destructive | ||
| - `Bash(rm -rf*)` — destructive | ||
|
|
@@ -112,7 +112,7 @@ Estimated prompts saved per session: ~[N] | |
|
|
||
| ## Rules | ||
|
|
||
| - Never auto-approve destructive operations | ||
| - Destructive operations must stay in the deny list | ||
| - Always present rules for user approval before applying | ||
| - Group rules by risk level (safe/medium/dangerous) | ||
| - Include estimated prompt savings | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don’t silently swallow first-run marker write failures.
If directory creation or marker write fails, users will repeatedly see “first run” with no clue why. Log a warning in these catch blocks so setup issues are diagnosable.
Suggested patch
📝 Committable suggestion
🤖 Prompt for AI Agents