Skip to content

[FEATURE] Agent-Level Permission Auto-Approval #13459

Closed

Description

@colinboey

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Currently, permissions (like WebFetch(domain:*)) can only be configured globally in settings.json or settings.local.json. This means if I want one specific agent to auto-approve all website visits, I must either:

  1. Manually approve each domain during agent execution (which defeats the purpose of automation)
  2. Enable global auto-approval for all WebFetch calls across all Claude Code sessions (too permissive)
  3. Pre-populate a list of specific domains (impractical for agents that need to visit arbitrary company websites)

The key issue is that I can't set and forget this agent, as I have to constantly approve visiting the company website.

Proposed Solution

dd support for an auto_approve or permissions field in agent YAML frontmatter that allows agent-specific permission rules:

---
name: my-agent
description: Agent that needs to fetch arbitrary websites
model: sonnet
permissions:
  auto_approve:
    - "WebFetch(domain:*)"
    - "WebSearch:*"
---

This would allow fine-grained control where specific agents can have elevated permissions without affecting the global security posture.

Alternative Solutions

No response

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

Use Case
I have a VC deal analysis agent that needs to visit company websites as part of its workflow. These websites are different every time (whatever company is being analysed). I want this specific agent to auto-approve all WebFetch calls without requiring manual confirmation, but I don't want to enable global WebFetch auto-approval for my entire Claude Code environment.

Additional Context

No response

Activity

  1. github-actions commented on Dec 9, 2025

    @github-actions

    Found 3 possible duplicate issues:

    1. [FEATURE] Allow specifying tool permissions in agents and plugins #10093
    2. [Feature Request] Implement Fine-Grained Tool Permissions for Agent Constraints #7514
    3. [FEATURE] Add fine-grained permissions to SKILL.md using "tools" NOT "allowed-tools" #11088

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  2. github-actions commented on Dec 17, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  3. locked as resolved and limited conversation to collaborators on Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions