ADR 0049 — The coder is shown as Adam, an agent may have aliases, and a step may carry the OpenCode icon ​
- Status: accepted (2026-10-06), on the owner's decision of that day: "It's coder, but just because it can code." The agent that this repository called
coderis Adam. adam-rs makes the same change on its side (the card's nameAdam, adam-rs's ADR 0021,docs/decisions/there; the file's name is unverified: it was not merged when this was written). The owner added, for the step that hands work to OpenCode over ACP: "Just a logo or icon is enough. The title can be something else." Built here on mocks and unit tests; nothing was tried against a real deployment. Extends ADR 0014 (the default agent) and ADR 0025 (the icon vocabulary ofsteps/v1). Amended (2026-10-11): the terms of OpenCode's and GitHub's marks were checked and both are bundled, the Model Context Protocol's logo is not (unverified); point 3 and the last alternative below stand as they were written, and the note at the end says what replaced them.
Context ​
The default agent is the adam-rs coder, and "coder" is the word the whole system uses for it: its id in AGENTS_FILE, the name the web lists, the label of a mention (@coder), the words of the roles, the tool servers and the scripts. The owner does not want the agent to be a coder: it can code, and that is one thing it does (a chat, a research, a document are asked of the other agents, and Adam is the one that works on a repository). The name is the agent's, so it changes where a person reads it.
Three things stand in the way of a plain rename of the id.
- A thread keeps the id it was created with. The log says
agentId: "coder"for every thread that exists, and the id is also in the outbox, in a thread's mentions, in the tokens the orchestrator minted forthread-tools/v1(claims.agent) and in the asked agents of a job (job.mentioned). Rewriting the log is not an option (ADR 0001: the log is the truth; no migration rewrites an event), and a thread that stops working because its agent was renamed is a bug the person sees. - Other people's links name the old id: a bookmarked
/?agent=coder, a client that posts to/agui/agents/coder, anagentargument of the MCPstart_job, a role (agents: [coder]) or a tool server (agents: [chat, coder]) in a deployment's own values. - The image, the chart, the Service and the environment variables of the coder are adam-rs's, are not ours to rename here, and nobody asked for it (
ghcr.io/vymalo/another-adam-rs/coder, releasecoder,CODER_A2A_TOKEN).
OpenCode is the tool the coder hands a coding task to over ACP; its step is a sub-agent step. The orchestrator cleans every icon an agent names to a fixed vocabulary (STEP_ICONS, 14 names), and the web draws from the same set, so a new icon has to be added to both. adam-rs is adding the name opencode to its steps/v1 vocabulary for that step (not merged when this was written).
Decision ​
- The agent is shown as Adam. Its
idin the agents file isadamand itsnameisAdam. The web needs no change to say so: it draws the namesGET /api/agentslists. The labels of a mention become@adam. - An entry of the agents file may have
aliases: other names of the agent, each an agent id (^[a-z0-9][a-z0-9-]{0,62}$).- A request, a mention, a path (
/agui/agents/{agentId},/agui/agents/{agentId}/capabilities), astart_job'sagent, theagentofask_agentand the?agent=of a link that names an alias is about the agent it names. - The API lists only the canonical id, with its
aliases(GET /api/agents,Agent.aliases, omitted when there are none). - A new thread is always created with the canonical id: the target of a created thread or of a fork, and every mention written to the log (the label is the person's text and stays
@coder). - A thread keeps the id it was created with. What reads it is alias-aware: the registry lookup, the check of
agent.invoke(a role names the canonical id;App::newreplaces an alias in a role by the id it names), the tool servers offered for the agent (App::newlists each server'sagentsunder every name of each agent), a run on the URL of either name (no 409 for a thread made under the other one), the asked agent ofask_agent, and the web (aliasesgive the names and the selection of an agent a person chose before the rename). - A collision is a startup error (78): an alias that is the entry's own id, another entry's id (wherever it is in the file), another entry's alias or twice in one entry's list (
ConfigError::AliasCollision,ConfigError::InvalidAgent). A role'sagentsand a tool server'sagentsmay name an alias; an agent that is not in the file is as unknown as before. - An alias is a name of an agent of the agents file. A platform registry's agent has no aliases, and an alias that equals a platform agent's id answers for the static agent (the first source wins, as for an id both list); a platform that lists an id that is also an alias of a static agent is the deployment's mistake to avoid, not something the system detects.
- A request, a mention, a path (
- The step icon
opencodeis part ofsteps/v1's vocabulary (STEP_ICONSinorch-core,STEP_ICONSin the web). The web draws it as a neutral glyph, a terminal in a frame (SquareTerminalIcon, the icon set the web already uses), and says OpenCode in the glyph's tooltip and to a screen reader unless the step's own label already does. OpenCode's own logo is not bundled: OpenCode is MIT-licensed (the owner's word, not checked here), but the terms of its logo are unverified and a logo is not code under the licence. Replacing the glyph with the logo is a change of one entry of the web's icon table, once the terms are known. The icon is drawn only once adam-rs sends it, which is the next bump of the pin. - What does not change. The image
ghcr.io/vymalo/another-adam-rs/coder, the coder's own chart and release, the Service namedcoder, the compose servicecoder,CODER_A2A_TOKEN,dev/coder/and the mock agents' ids (mock-coder,mock-coder-gated, ... : WireMock stand-ins of a coding agent, not Adam). In the dev stackcoder-sharekeeps its id (the scripts, the model script directorydev/wiremock/coder-shareand the CI that names it); it is shown as "Adam (hands over files)". What the vendored folder of the coder says in its own words ("I'm Coder") is the agent's and stays until the bump that brings adam-rs's rename.
sequenceDiagram
participant C as Client (web, MCP, a link)
participant O as Orchestrator (App)
participant D as AgentDirectory
participant R as Registry
participant A as Agent (adam)
C->>O: POST /agui/agents/coder (an alias)
O->>D: canonical(coder)
D-->>O: adam
O->>R: get(adam)
R-->>O: the entry (id adam)
O->>O: create the thread with target adam (never coder)
O->>A: delegate (the entry's card)
Note over O: a later message to an old thread (agentId coder):<br/>canonical(coder) = adam for the registry, the roles and the toolsstateDiagram-v2
[*] --> OldThread: created before the rename (agentId coder)
[*] --> NewThread: created after it (agentId adam)
OldThread --> OldThread: a message (the id is read through the alias)
NewThread --> NewThread: a message
OldThread --> Fork: forked
NewThread --> Fork: forked
Fork --> NewThread: a fork is a new thread: created under adamConsequences ​
- A deployment renames the agent in one entry:
id: adam,aliases: [coder],name: Adam; its roles and tool servers may keep writingcoder(read asadam), and threads, links and mentions of before keep working.dev/agents.yamlanddev/agents.live.yamldo it. The chart does it in two steps, because the orchestrator image it pins must read every key it writes (deploy.yml, "The orchestrator image reads the rendered configuration": the pinned image refusesaliaseswith exit 78): this change shows the coder asname: Adamunderid: coder, and the pull request after the bump oforchestrator.image.tagpast this ADR moves it toid: adam,aliases: [coder]. The chart already refuses an alias that is an id or another's alias, and lets a tool server name one. - The log is not rewritten. A thread made before the rename shows
agentId: coderinGET /api/threadsand the export; a client that wants the agent resolves it throughAgent.aliases(the web does, for the names, the selection and the mention search). AgentInfogainsaliases(a new member of the wire type, omitted when empty: older clients read the same document).AgentDirectory::with_aliases,canonicalandaliases_of,App::canonical_agentandPolicy::with_canonical_agentsare new; no existing trait changed, so no implementer breaks (FixedRegistryandRegistryEntryare untouched: the alias lives in the directory, which the application asks before the registry).- A step icon the orchestrator does not know is dropped (the step stays): an adam-rs that sends
opencodebefore this is deployed shows the step with no icon, and an orchestrator that knows it before adam-rs sends it changes nothing. Roll this out first. - The per-owner coders of ADR 0045 (
coder-vymalo, ...) are ids of their own and are not renamed by this ADR: whether they becomeadam-<owner>is the owner's to say (open point). - Fail-closed is kept: an unknown agent, with or without an alias, is the same 4xx, and an alias grants nothing a role does not.
Alternatives rejected ​
- Rename the id and migrate the log. The log is append-only truth; a migration that rewrites
agentIdin events, outbox rows, mentions and tokens in flight is a risk with nothing to gain over a lookup. - Keep the id
coder, change only the name. The label of a mention (@coder) is the id, and an id the person reads is a name. - Aliases in the registry port (
RegistryEntry.aliases): a field every implementer and test double builds by literal, and a platform registry that does not know the word. The static file is where a deployment renames its own agent. - Bundle OpenCode's logo now. Its terms are unverified; a neutral glyph is as readable and removes the question.
Status note, 2026-10-07: adam-rs's rename and the opencode icon are in the pin (adam-rs 8e1133d) ​
The pin (compose.yaml, dev/coder/UPSTREAM, the chart's chat.image) is adam-rs 8e1133d (ADR 0014, its note of this day). adam-rs's side of this decision is its ADR 0021, docs/decisions/0021-the-coder-is-adam-a-general-agent-that-can-code.md (verified 2026-10-07 by reading adam-rs at d9d5ea4 and 8e1133d, which changes none of it): the card's name and display_name of the coder's folder are Adam, so the vendored folder says "I'm Adam" and dev/greeting-e2e.sh and dev/agents-e2e.sh expect it. The coder's delegate_to_opencode step carries the icon opencode (bin/adam-coder/src/tools/delegate.rs there) and is labelled Hand to OpenCode (adam-rs ADR 0027; it was OpenCode), so the web draws the glyph of point 3 from this pin on. Unverified: the glyph on a real coder's step (the Coder E2E workflow asserts the label, not the icon).
Status note, 2026-10-11: the OpenCode and GitHub marks are bundled, and a server's tool is read as an action ​
The owner, on the web (2026-10-11): "we need more icons and/or logos. E.g. when opencode is running, its logo should appear." In a real thread every step showed a generic glyph, and the calls of the GitHub MCP server showed the name an agent calls them by (github__list_commits). Point 3 above kept a neutral glyph because OpenCode's logo terms were unverified; they were checked on this day, with the other marks the web would draw (rule: mark facts).
| Mark | Verdict | Source, read 2026-10-11 |
|---|---|---|
| OpenCode (the square logo) | Verified, bundled | github.com/anomalyco/opencode (formerly sst/opencode) LICENSE: MIT, (c) 2025 opencode; the logo files are in the repository (packages/console/app/src/asset/brand/opencode-logo-{light,dark}-square.svg), where no other LICENSE is on their path (packages/console and packages/console/app have none; packages/ui has its own, for another directory); https://opencode.ai/brand offers the same assets for download (PNG and SVG) under "Resources and assets to help you work with the OpenCode brand" and states no terms; the terms of service, the README and CONTRIBUTING.md say nothing of the logo; no trademark policy or BRAND file was found. Unverified: whether its owners hold a registered mark, and what they would say of a third-party use beyond naming the product. The use here is naming: the step that hands work to OpenCode, small, with "OpenCode" in its tooltip and to a screen reader. |
| GitHub (the Invertocat) | Verified with conditions, bundled | primer/octicons LICENSE: MIT, (c) 2026 GitHub Inc.; its README, License, says "When using the GitHub logos, be sure to follow the GitHub logo guidelines" and applies the MIT licence to "all other files", so the mark is GitHub's trademark under its guidelines, not MIT. The guidelines (github.com/logos, which redirects to brand.github.com/foundations/logo): a permitted GitHub logo may be used "to inform others that your project integrates with GitHub", unmodified, in white, black or grey, less prominently than the product's own name and logo, never suggesting that GitHub made or endorses it. Kept: the path is Octicons' mark-github-16.svg unchanged (checked byte for byte), drawn in the colour of text (a mark is never red when a step failed: its ring is), at 12 px, only beside a call of GitHub's MCP server. For review: the same page limits the standalone Invertocat to "GitHub-owned environments or where the brand is already clearly established"; the step is named GitHub in its tooltip and to a screen reader, and we read that as established, but it is a judgment, and removing the mark is one entry of the web's icon table. |
| Model Context Protocol | Unverified, not bundled | github.com/modelcontextprotocol/modelcontextprotocol LICENSE: Apache-2.0 for new code and specification contributions, CC-BY-4.0 for documentation, MIT for contributions not yet relicensed, none of which names the logo; the Linux Foundation's trademark policy (linuxfoundation.org/legal/trademark-usage) allows fair use of word marks and asks for written permission to use its logos in marketing material, and does not address a logo in a product. The web keeps the glyph of a tool for a server it does not know. |
Third-party notices for the two marks are in third-party-notices.md; their sources, terms and the date are also in the header of each component under web/src/components/brand/.
What the web does (web/src/features/chat/components/steps/step-icons.ts; the vocabulary of steps/v1 is unchanged: the same 15 names in STEP_ICONS of the web, of orch-core and in docs/api/steps-v1.md, no id was added):
opencodeis drawn with OpenCode's mark (it was a terminal in a frame). Every other id stays a lucide glyph.- A tool step whose label is
server__tooland whose server the page knows is drawn with that server: GitHub with its mark, whatever icon the agent gave the call; browser and obscura (the headless browser), websearch and context7 with a glyph of their own, which only stands in for the generictoolicon (an icon an agent chose,readorweb, is kept). A server the page does not know keeps the icon the agent sent, then the wrench. The image a deployment gives a server (icon: mcp-server:<id>, adata:URI, ADR 0024) still wins over all of it. - The label of such a step is the tool as words, as it was:
github__list_commitsreads List commits. A server drawn with its mark is not named a second time as a chip; the mark's tooltip and a screen reader say "GitHub". A server drawn with a glyph keeps its name as the chip, because a glyph does not say whose it is. The name an agent calls the tool by (github__list_commits) stays in the tooltip of the words and in the step once it is opened ("Tool" above its input), for whoever debugs. - A brand's mark keeps the colour of text in every state (the ring around it says the state), so it is never drawn red or green; the spinner replaces it while the call runs, like every icon.
Nothing is rendered from an address: both marks are paths in the page's own code, so the CSP and the offline export are unchanged.
Consequences. Removing a mark if a rights holder asks is deleting one component and one entry; no wire type, event or contract changed. A deployment that gave a server an image still sees its image. A step with an icon outside the vocabulary is still drawn without it (the orchestrator and the web drop the name, as before).