Grant Carthew

@grantcarthewUnclaimed · imported

Open-source enthusiast, seasoned technologist, and AI expert

This profile was created from github.com/grantcarthew so the prompts could be credited. Are you Grant Carthew?

Claim this profileRequest removal

github.com/grantcarthewJoined Nov 29, 20260 points0 followers·0 following
Grant Carthew@grantcarthewCoding

Favor principled long-term fixes over smallest-diff patches in code

Directs the model to implement the principled long-term solution that reduces maintenance and improves quality, rather than defaulting to the smallest-diff fix.

Imported·via prompts.chat·Unclaimed·CC0
Bias implementation toward the principled long-term solution that reduces maintenance and improves quality. Do not default to the smallest-diff fix.
Grant Carthew@grantcarthewMeta

Identify the single most valuable addition to a project

A open-ended prompt asking the model to name the one most innovative, useful, and compelling addition that would most improve a project at its current stage.

Imported·via prompts.chat·Unclaimed·CC0
What's the single smartest and most radically innovative and accretive and useful and compelling addition you could make to the project at this point?
Grant Carthew@grantcarthewCoding

Audit and grant read-only agent permissions for Claude Code and Gemini CLI

Audits commands used in the conversation and adds only read-only, individually listed commands to Claude Code and Gemini CLI permission configs after user approval, excluding destructive and restricted commands.

Imported·via prompts.chat·Unclaimed·CC0
# Task: Update Agent Permissions

Please analyse our entire conversation and identify all specific commands used.

Update permissions for both Claude Code and Gemini CLI.

## Reference Files

- Claude: ~/.claude/settings.json
- Gemini policy: ~/.gemini/policies/tool-permissions.toml
- Gemini settings: ~/.gemini/settings.json
- Gemini trusted folders: ~/.gemini/trustedFolders.json

## Instructions

1. Audit: Compare the identified commands against the current allowed commands in both config files.
2. Filter: Only include commands that provide read-only access to resources.
3. Restrict: Explicitly exclude any commands capable of modifying, deleting, or destroying data.
4. Update: Add only the missing read-only commands to both config files.
5. Constraint: Do not use wildcards. Each command must be listed individually for granular security.

Show me the list of commands under two categories: Read-Only, and Write

We are mostly interested in the read-only commands here that fall under the categories: Read, Get, Describe, View, or similar.

Once I have approved the list, update both config files.

## Claude Format

File: ~/.claude/settings.json

Claude uses a JSON permissions object with allow, deny, and ask arrays.

Allow format: `Bash(command subcommand:*)`

Insert new commands in alphabetical order within the allow array.

## Gemini Format

File: ~/.gemini/policies/tool-permissions.toml

Gemini uses a TOML policy engine with rules at different priority levels.

Rule types and priorities:
- `decision = "deny"` at `priority = 200` for destructive operations
- `decision = "ask_user"` at `priority = 150` for write operations needing confirmation
- `decision = "allow"` at `priority = 100` for read-only operations

For allow rules, use `commandPrefix` (provides word-boundary matching).
For deny and ask rules, use `commandRegex` (catches flag variants).

New read-only commands should be added to the appropriate existing `[[rule]]` block by category, or a new block if no category fits.

Example allow rule:
```toml
[[rule]]
toolName = "run_shell_command"
commandPrefix = ["command subcommand1", "command subcommand2"]
decision = "allow"
priority = 100
```

## Gemini Directories

If any new directories outside the workspace were accessed, add them to:
- `context.includeDirectories` in ~/.gemini/settings.json
- ~/.gemini/trustedFolders.json with value `"TRUST_FOLDER"`

## Exceptions

Do not suggest adding the following commands:

- git branch: The -D flag will delete branches
- git pull: Incase a merge is actioned
- git checkout: Changing branches can interrupt work
- ajira issue create: To prevent excessive creation of new issues
- find: The -delete and -exec flags are destructive (use fd instead)