aws / aws/amazon-q-developer-cli

Feature Request: Enable automatic tool trust for delegated agents

Aperta
#3,432 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Problem
The `delegate` tool launches sub-agents with `--no-interactive` but not `--trust-all-tools`, causing tool approval failures when sub-agents try to use MCP tools.

**Error message:**

Tool approval required but --no-interactive was specified. Use --trust-all-tools to automatically approve tools.

This makes delegation unusable for agents that need MCP tools.

## Steps to Reproduce
1. Launch parent agent: `q chat --agent parent-agent --trust-all-tools`
2. Delegate task to sub-agent with MCP tools configured:
bash
delegate launch --agent research-agent --task "Research using MCP tools"

3. Sub-agent fails when attempting to use any MCP tool due to approval requirement

## Expected Behavior
When a parent agent is launched with
--trust-all-tools
, delegated sub-agents should inherit this trust setting automatically.

**Proposed solution:** Add configuration option in agent JSON:

json
{
"name": "research-agent",
"allowedTools": ["*"],
"delegateSettings": {
"trustAllTools": true
}
}

Or automatically inherit `--trust-all-tools` from parent agent.

## Current Workaround
Run sub-agents manually in separate terminal: `q chat --agent research-agent --trust-all-tools`

## Impact
- Breaks multi-agent workflows that rely on MCP tools
- Forces manual intervention for research/analysis agents
- Limits usefulness of delegate feature for complex tasks

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dai punti di ingresso `q chat --agent ... --trust-all-tools` e `delegate launch --agent ...`, quindi traccia come vengono gestite l'impostazione di attendibilità del parent e `delegateSettings` nel JSON dell'agent. Riproduci il fallimento dell'approvazione dello strumento MCP e definisci il completamento come l'utilizzo degli strumenti MCP da parte degli agent delegati senza approvazione interattiva quando l'impostazione di attendibilità è abilitata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
ai, cli
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.