feat: add alias display for Agent nodes in web UI (#135) - #144
Open
a-yeyang wants to merge 1 commit into
Open
Conversation
- Add optional 'alias' field to Oxy base class as display-only name - Include alias in agent organization tree (fallback to name) - Web UI org tree renders alias with real name as hover tooltip - LLM routing, permission lists and ES traces still use 'name' Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #135
The MAS visualization currently displays each node's
name(e.g.master_agent,file_agent), which is a code-level identifier and not very user-friendly,especially for non-English business users.
This PR introduces an optional
aliasfield — a display-only human-friendlyname rendered in the web UI organization tree, while
nameremains the solefunctional identifier throughout the system.
Usage
Changes
7 insertions, 2 deletions — no new dependencies.
Design notes
aliasis deliberately presentation-layer only. The following keep usingname, so behavior is fully backward compatible:oxy_request.call)sub_agents/permitted_tool_name_list)caller/callee) and session namesNodes without an alias fall back to
name, so existing projects renderexactly as before.
Testing
/get_organizationreturnsaliasfor configured nodes andfalls back to
namefor others.aliases (see screenshot), hover shows the real name, and a multi-step
query (
master → text_agent,master → calc_agent) completes correctly —call chains and traces are unaffected.
Possible follow-ups (out of scope)
alias (name)in the node inspector / playground panels (debug views,arguably better with real names — open to discussion)