[BUG] Issue where I can't chain subAgents higher than depth 2

Aperta
#3,469 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, kubernetes
Ambito
backend

Direzione di ricerca

The failure is in the Controller Service and shows the error text "consecutive Shared AgentTemplate tools exceed the kagent runtime boundary". Search the codebase for that message to find where the depth check happens, then reproduce the three-level chain (Orchestrator, Specialist, Memory) from the steps. Done means a subAgent chain deeper than two either works or fails with a documented limit. The maintainers have not yet said whether this is intended, so confirm that before writing a fix.

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

Descrizione

📋 Prerequisites
  • I have searched the existing issues to avoid creating a duplicate
  • By submitting this issue, you agree to follow our Code of Conduct
  • I am using the latest version of the software
  • I have tried to clear cache/cookies or used incognito mode (if ui-related)
  • I can consistently reproduce this issue
🎯 Affected Service(s)

Controller Service

🚦 Impact/Severity

Blocker

🐛 Bug Description

I have a memory subAgent connected to MemGraph MCP server (KMCP)

When I use the chain:
Orchestrator -> Specialist -> Memory
I get a failure in the interface:
"consecutive Shared AgentTemplate tools exceed the kagent runtime boundary Conversations still use the last good revision."

🔄 Steps To Reproduce
  1. Create a subAgent with an MCP tool: Agent1
  2. Create a subAgent that uses Agent1 as a subAgent, call it Agent2
  3. Create an Agent that uses Agent2 as a subAgent.
🤔 Expected Behavior

If A2A communication works from agent to subAgent, I would expect it to work for subAgent to subAgent. It's unfortunately not clear in the interface that this is a limitation.

📱 Actual Behavior

subAgent to subAgent seems to break. Not sure if this is an arch limitation.

💻 Environment

Fedora 41
K3s v1.37.1
Kagent v1

🔧 CLI Bug Report

No response

🔍 Additional Context

No response

📋 Logs

📷 Screenshots

No response

🙋 Are you willing to contribute?
  • I am willing to submit a PR to fix this issue
Lingua principale
Go
Stelle
4.5k
Fork
937
Merge medio
1g 10h
PR unite (30g)
150

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kagent-dev/kagent

Tutte le issue di kagent-dev/kagent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.