Skip to content

Add approval configuration for the delegated agents. #3421

@harleylrn

Description

@harleylrn

Checks

Operating system

macOS 15.7.2 (24G325)

Expected behaviour

Configurable option to allow some of the agents to run through delegate tool without additional approval.
Very useful for non interactive sessions

Actual behaviour

Delegate tool requires additional approvals, which stops non-interactive sessions.

Steps to reproduce

Example:

....
  Using tool: todo_list (trusted)
 ⋮
 ● TODO:
[x] Delegate to github-pr-agent: commit changes, create PR with template, reference issue, assign review group
[ ] Delegate to github-issues-agent: link PR to issue, move to 'In Review', set end date ⋮
 ● Completed in 0.0s


> Now I need to delegate to the github-pr-agent to create pull requests for the changes. Based on the terraform-agent output, there are changes
in two repositories that need PRs:

1. XXX1 repository
2. XXX2 repository


  Using tool: delegate (trusted)
 ⋮
 ● Delegating task to agent
Agent: github-pr-agent
Description: Specialized agent for GitHub Pull Request operations
Task: Create pull requests for issue #72: ENI and Network Interface Tagging Compliance.

REPOSITORIES WITH CHANGES:
1. XXX1 repository - branch: feat/72-feature
2. XXX2 repository - branch: feat/72-feature

REQUIREMENTS:
- Create PR using template from adr repo
- Use conventional commit format for PR title: "feat: CDES-72 Feature Compliance"
- Reference issue: "Resolves ORG/REPO#72"
- Assign review group: "ORG/TEAM"
- Include testing details and validation results
- Document the ENI tagging compliance implementation

CHANGES SUMMARY:
- Added mandatory owner and customer variables for AWS tagging compliance
- Updated NAT gateway and VPC endpoint tagging with all mandatory tags
- Implemented AWS naming convention compliance
- Created ENI tagging compliance test that passes
- Updated module documentation
Tools: execute_bash, knowledge, thinking, todo_list, @github, @coder, fs_read, delegate, fs_write

! This task will run with the agent's specific tool permissions.

Continue? [y/N]: y
....

Environment

<This will be visible to anyone. Do not include personal or sensitive information>

[q-details]
version = "1.19.3"
hash = "9146a5c9dd3fafcfb4eda5f27f7e3a27a002ab34"
date = "2025-10-29T20:38:27.970829Z (13d ago)"

[system-info]
os = "macOS 15.7.2 (24G325)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"

[environment]
cwd = "/Users/USER/AmdocsCloudStudio-Platform-Engineering"
cli-path = "/Users/USER/AmdocsCloudStudio-Platform-Engineering"
install-method = "unknown"

[env-vars]
PATH = "/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/local/bin:/usr/sbin:/sbin:/Users/USER/.local/bin:/Users/USER/bin:/Users/USER/.bun/bin:/System/Cryptexes/App/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/sbin:/Users/USER/.cargo/bin:/Applications/Ghostty.app/Contents/MacOS"
SHELL = "/opt/homebrew/bin/bash"
TERM = "xterm-ghostty"
__CFBundleIdentifier = "com.mitchellh.ghostty"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions