/major-ai-skills:cached-tool-permission-grantsfrom major-ai-skills
Reuse session-scoped tool approvals where the host supports them, preserving the user's approved scope and existing permission boundaries.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
In autonomous agent environments (Antigravity IDE, Claude Code, Cursor, MCP Servers), asking the user for interactive permission on every basic action ("Allow agent to read src/utils.ts?", "Allow agent to run git status?") causes catastrophic workflow degradation.
Per-action confirmation prompts cause:
The Session-Scoped Permission Caching Protocol establishes a 3-Tier Risk Hierarchy and persists granted permissions across the entire workspace session.
┌─────────────────────────────────────────────────────────────┐
│ Permission Flow Comparison │
│ │
│ Per-Action Interactive Prompting (Anti-Pattern): │
│ • Agent calls `view_file` ──► Modal popup ──► Waits 5 mins │
│ • Agent calls `grep_search` ──► Modal popup ──► Waits 2 mins│
│ • Agent calls `replace_file` ──► Modal popup ──► Waits 10 m│
│ ↳ Total Task Time: 45 Minutes (Human bottleneck) │
│ │
│ Session-Scoped Permission Caching: │
│ • Turn 1: User approves workspace session scope │
│ • Turns 2..50: Auto-approved execution within workspace │
│ ↳ Total Task Time: 40 Seconds (Zero Human Bottleneck) │
└─────────────────────────────────────────────────────────────┘
┌───────────────────────────────────────────────────────────────────────────┐
│ TIER 1: ZERO-RISK READ (Auto-Approved / Zero Prompts) │
│ • `view_file`, `list_dir`, `grep_search`, `read_url_content` │
│ • Read-only shell: `git status`, `git log`, `ls`, `pytest` │
│ │
│ TIER 2: WORKSPACE MUTATIONS (Session-Approved on 1st Confirmation) │
│ • `replace_file_content`, `write_to_file` within project root │
│ • Safe builds: `npm run build`, `tsc --noEmit`, `cargo check` │
│ │
│ TIER 3: HIGH-RISK / DESTRUCTIVE (Always Prompt User) │
│ • `rm -rf`, `git reset --hard`, production database migrations, API keys │
└───────────────────────────────────────────────────────────────────────────┘
In your agent settings (settings.json or .gemini/config):
{
"agent.security.permission_policy": "session_cached",
"agent.security.auto_approve_tools": [
"view_file",
"list_dir",
"grep_search",
"replace_file_content",
"write_to_file",
"read_url_content"
],
"agent.security.allowed_command_prefixes": [
"git ",
"npm test",
"npm run ",
"python -m pytest",
"cargo "
],
"agent.security.blocked_command_patterns": [
"rm -rf /",
"git push --force",
"drop database"
]
}
mcp_config.json){
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "./"],
"autoApprove": ["read_file", "list_directory", "get_file_info"]
}
}
}
Executing an end-to-end bug fix across 4 files (Find bug $\rightarrow$ Read 3 files $\rightarrow$ Edit 2 files $\rightarrow$ Run test suite):
| Metric | Per-Action Confirmation | Session-Scoped Caching | Improvement |
|---|---|---|---|
| Interactive Prompts Shown | 9 confirmation popups | 1 initial grant | 88.8% Fewer Prompts |
| Human Wait / Idle Time | 12.5 minutes | 0 seconds | Instant Velocity |
| Execution Context Tokens | 4,200 tokens (with logs) | 680 tokens | 83.8% Token Savings |
| Autonomous Success Rate | 60% (Aborted by timeout) | 100% | Full Autonomy |
MANDATORY: Autonomous agents must request broad session-level approval at task initialization ("I will read relevant files and run tests to fix this issue"). Never block on individual read-only inspections or low-risk workspace edits once session scope is approved.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.