Skip to content

Agent Tree Command#602

Open
szmania wants to merge 1 commit into
cecli-dev:v0.100.13from
szmania:cli-54-agent-tree-command-2
Open

Agent Tree Command#602
szmania wants to merge 1 commit into
cecli-dev:v0.100.13from
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?

dwash96 added a commit that referenced this pull request Jul 15, 2026
fix: Register AgentTreeCommand to fix test failures in PR #602
@dwash96

dwash96 commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Hmm so is this distinct from #606 which is merged? The failure has to do with litellm converting to rust and them leaking configurations for that in the build process that don't work with 3.14

@dwash96 dwash96 changed the base branch from main to v0.100.13 July 15, 2026 12:42
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.

2 participants