Skip to content

Agent Tree Command#602

Open
szmania wants to merge 4 commits into
cecli-dev:mainfrom
szmania:cli-54-agent-tree-command-2
Open

Agent Tree Command#602
szmania wants to merge 4 commits into
cecli-dev:mainfrom
szmania:cli-54-agent-tree-command-2

Conversation

@szmania

@szmania szmania commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Adds a new /agent-tree command that displays the hierarchy of active agents in a tree format.

Changes

  • New file: cecli/commands/agent_tree.py (95 lines)
    • TreeNode class — represents a node in the agent hierarchy tree with parent-child relationships
    • AgentTreeCommand — the /agent-tree command implementation
      • Collects the primary coder and all sub-agents from the AgentService
      • Builds a tree structure by linking agents via parent_uuid
      • Renders the tree with Unicode box-drawing characters (├──, └──, │)
      • Displays agent name, status, and UUID for each node

Design

  • Uses the existing SubAgentInfo and AgentService infrastructure
  • Builds a tree from the flat list of agents by resolving parent_uuid relationships
  • Renders output using standard tree-drawing characters for readability
  • Gracefully handles cases with no sub-agents (shows "No active sub-agents found.")

Testing

  • Manual testing via /agent-tree command in agent mode
  • Verified correct tree rendering with nested agent hierarchies

@szmania

szmania commented Jul 14, 2026

Copy link
Copy Markdown
Author

This is ready, not sure what this failure is, a dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant