Title: P0: Agent cast names not displayed during work — showing generic agent type names instead · Issue #577 · github/squad · GitHub
Open Graph Title: P0: Agent cast names not displayed during work — showing generic agent type names instead · Issue #577 · github/squad
X Title: P0: Agent cast names not displayed during work — showing generic agent type names instead · Issue #577 · github/squad
Description: Bug: Agent names showing as generic names during work Priority: P0 — user-facing regression, undermines team identity UX What's happening When agents are working, the user sees generic names (e.g. "general-purpose", "Dispatching to agent...
Open Graph Description: Bug: Agent names showing as generic names during work Priority: P0 — user-facing regression, undermines team identity UX What's happening When agents are working, the user sees generic names (e.g. ...
X Description: Bug: Agent names showing as generic names during work Priority: P0 — user-facing regression, undermines team identity UX What's happening When agents are working, the user sees generic names (e...
Opengraph URL: https://github.com/github/squad/issues/577
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"P0: Agent cast names not displayed during work — showing generic agent type names instead","articleBody":"## Bug: Agent names showing as generic names during work\n\n**Priority:** P0 — user-facing regression, undermines team identity UX\n\n### What's happening\nWhen agents are working, the user sees generic names (e.g. \"general-purpose\", \"Dispatching to agent...\") instead of their cast character names (e.g. \"EECOM\", \"Flight\", \"FIDO\"). This is a regression — names were previously displayed correctly.\n\n### Root cause analysis\n\n**Three contributing issues identified:**\n\n#### 1. Shell regex is fragile (primary display path)\n**File:** `packages/squad-cli/src/cli/shell/index.ts:682`\n\n```typescript\nconst agentMatch = desc.match(/^\\S*\\s*(\\w+):/);\nconst matchedAgent = agentMatch?.[1]?.toLowerCase();\nif (matchedAgent && knownAgentNames.includes(matchedAgent)) {\n // Show agent name + activity\n} else {\n // FALLS THROUGH TO GENERIC: \"Dispatching to agent...\"\n const hint = hintMap[toolName] ?? 'Using toolName...';\n}\n```\n\nThis regex depends on the coordinator LLM formatting `description` exactly as `\"{emoji} {CastName}: {task}\"`. If the format drifts even slightly (common with LLM outputs), the name extraction fails silently and the generic fallback at line 692 kicks in.\n\n#### 2. `name` parameter missing from spawn template\n**File:** `.squad-templates/squad.agent.md` (spawn template section)\n\nThe spawn template specifies `description` but NOT the `name` parameter for the `task` tool:\n```\nagent_type: \"general-purpose\"\nmode: \"background\"\ndescription: \"{emoji} {Name}: {brief task summary}\"\n```\n\nIn the Copilot CLI, the `name` parameter generates the human-readable agent ID shown in the tasks panel. Without explicit guidance, the coordinator LLM ad-libs `name` — often using generic slugs like `\"general-purpose-task\"` instead of the cast name.\n\n#### 3. No validation or fallback for name extraction failure\n**File:** `packages/squad-cli/src/cli/shell/index.ts:691-694`\n\nWhen the regex fails to extract a known agent name, the code falls through to a completely generic hint with no attempt to show ANY useful name — no fuzzy matching, no partial detection, no logging.\n\n### Impact\n- Users see \"Dispatching to agent...\" or \"general-purpose\" instead of their team's cast names\n- Undermines the team identity UX that makes Squad feel alive\n- Makes it hard to tell which agent is doing what during parallel work\n\n### Suggested fix areas\n1. Add `name: \"{name}\"` to the spawn template in squad.agent.md (lowercase cast name)\n2. Make the shell regex more robust — try multiple extraction patterns before falling through\n3. Add fuzzy matching against `knownAgentNames` when exact match fails\n4. Add a fallback that at least shows the task description even if agent name cannot be extracted\n5. Consider extracting agent name from the `prompt` text as a last resort\n\n### Repro\nSpawn any agent in the Squad shell or Copilot CLI agent environment — observe that the activity panel shows generic names instead of cast character names.","author":{"url":"https://github.com/bradygaster","@type":"Person","name":"bradygaster"},"datePublished":"2026-03-23T22:53:43Z","url":"https://github.com/github/squad/issues/577"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:292a36fb-6a15-57ba-36c8-7c4f5b76b780 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE62:1F65:B0BBA1:E00441:6B014EB6 |
| html-safe-nonce | 9d30865b5938f10378fe3f45f5cb32c3cf957b43c94c0177ae888a1dce1eb1aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTYyOjFGNjU6QjBCQkExOkUwMDQ0MTo2QjAxNEVCNiIsInZpc2l0b3JfaWQiOiI0Njk2NzUzODY0NzY5MDk3Mzk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dd55dcfb4e5255e5d1bcee9fe6e34822cbe80decd673f43df792a7168cd6cee6 |
| hovercard-subject-tag | issue:4124165814 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/577/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4902d68f21726cac045005239f18a393b04c0bdd6d2afa4409ad56f8a27d860f/github/squad/issues/577 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4902d68f21726cac045005239f18a393b04c0bdd6d2afa4409ad56f8a27d860f/github/squad/issues/577 |
| og:image:alt | Bug: Agent names showing as generic names during work Priority: P0 — user-facing regression, undermines team identity UX What's happening When agents are working, the user sees generic names (e.g. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bradygaster |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width