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

Abierto
#3,469 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, kubernetes
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

📋 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
Lenguaje dominante
Go
Estrellas
4.5k
Forks
937
Merge medio
1 d 10 h
PR fusionados (30 d)
150

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de kagent-dev/kagent

Todos los issues de kagent-dev/kagent

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.