Skip to content

feat(compass-agent): agents_tree native tool — indented agent tree with live presence (RIG-2678) - #1062

Open
rigel-mintaka wants to merge 1 commit into
mainfrom
compass-agent/rig-2678-agents-tree
Open

feat(compass-agent): agents_tree native tool — indented agent tree with live presence (RIG-2678)#1062
rigel-mintaka wants to merge 1 commit into
mainfrom
compass-agent/rig-2678-agents-tree

Conversation

@rigel-mintaka

Copy link
Copy Markdown
Contributor

New read-only agents_tree tool, sibling of compass_roster: one GetRoster call (scope subtree|owner, default subtree), assembled client-side into an indented parent→child tree with each agent's presence + activity. Pure agent-side — no proto, no RPC, no server work; the roster already carries parent_agent_id + presence.

Handles and display names only, never account ids (ids are the internal tree keys); every peer-supplied string is flat-guarded exactly like the roster rows. An orphan (unknown parent) attaches at root rather than vanishing; a malformed parent cycle terminates via a visited set, each node rendered once.

Matt-ruled pull-tool-over-prompt-bake (the tree is live state, so a prompt bake would rot). The when/how usage guidance rides compass-server's prompts workstream separately, not a second prompt edit here.

Closes RIG-2678

Co-authored-by: Matt Wilkinson matt@rigel.build

…th live presence (RIG-2678)

New read-only `agents_tree` tool, sibling of `compass_roster`: one `GetRoster` call (scope `subtree`|`owner`, default `subtree`), assembled client-side into an indented parent→child tree with each agent's presence + activity. Pure agent-side — no proto, no RPC, no server work; the roster already carries `parent_agent_id` + `presence`.

Handles and display names only, never account ids (ids are the internal tree keys); every peer-supplied string is `flat`-guarded exactly like the roster rows. An orphan (unknown parent) attaches at root rather than vanishing; a malformed parent cycle terminates via a `visited` set, each node rendered once.

Matt-ruled pull-tool-over-prompt-bake (the tree is live state, so a prompt bake would rot). The when/how usage guidance rides compass-server's prompts workstream separately, not a second prompt edit here.

Closes RIG-2678

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Sep 10, 2026

Copy link
Copy Markdown

RIG-2678

@trunk-io

trunk-io Bot commented Sep 10, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-agent-rig-2678-agent.compass-eng-docs.pages.dev

Deployed from compass-agent/rig-2678-agents-tree at fab66b1.

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