Appearance
0027. Every tool has a title for its step ​
Status: Accepted (2026-10-07) Builds on ADR 0007 (steps and their labels) and ADR 0011 (an MCP tool's title is its step's label). Amends ADR 0021: the label of the OpenCode step.
Amended 2026-10-11 (ADR 0038, not built yet): decision 6 no longer applies: the Hand to OpenCode step went with its tool.
Context ​
The owner exported production threads of Adam (the adam-coder binary, image sha-6478fbc). The activity panel of the chat listed its steps as edit_file, run_command, read_file, write_file, start_scratch, ask_user, run_checks, prepare_workspace: the names the model calls the tools by. ADR 0011 had already fixed this for MCP tools (a server's title is the label of the step: Web search, not search__web_search), but the default of Tool::step_style is the tool's name, and nothing in the coder, the screen's tools or the assembly's own tools said anything else. The person reads the panel; the name is an identifier.
Decision ​
- A tool that a person can see in a step has a title. Every tool of the coder is
#[tool(label = "...")](Prepare the workspace,Run a command,Read a file,Write a file,Edit a file,Apply a patch,Make files with a command,Run the checks,Rebuild the environment,Commit and push,Open a pull request,Start a scratch project,Publish a scratch project,Ask to use a repository,Create a repository,Share a file,Hand to OpenCode). The tools ofadam-ui(ask_userisAsk you,showisShow on your screen,ui_catalogisList what the screen can draw) andadam-assembly(load_skillisLoad a skill,read_skill_fileisRead a skill file) say theirs inTool::step_style. Titles are short verb phrases in the second person where the person is addressed; the table is inbin/adam-coder/README.md. - The tool's name does not change. The model calls tools by name, journals replay by
tool:<call id>, and the specs are pinned by golden files; only the label of the step changes. The plain line a client withoutsteps/v1reads (<label>: done) carries the title too, which is the intent. - A subagent's title is its tool name capitalised, with
_and-as spaces (explorerisExplorer,code_reviewerisCode reviewer). The alternative, the first words of itsdescription, was rejected: a description is free text written for the model ("Reads a repository and reports where things are..."), and its first words are rarely a name. The tool name is already the author's short name for the agent, and is unique among the parent's tools. - A source's tool can carry a title too.
ToolNote(what aToolSourcesays about a tool it lists) gainslabel: Option<String>, kept in the run's state like the rest of the note (it is absent from a state written before, and not written whileNone).adam_mcp::RemoteToolgains the endpoint'stitle.ThreadToolslabels each tool with the endpoint's title and, forturn_output, which the orchestrator lists without one, withSend the answer. The agent uses the label for every report of the call, from the first to the last. The tools the orchestrator reports itself (reportsStep) are unchanged: the agent reports none. - A new tool without a title fails a test.
every_tool_of_the_coder_has_a_title_for_its_step(bin/adam-coder/tests/agent_files.rs) requires a label that is not the name, has no underscore and is unique. - The OpenCode step is
Hand to OpenCode(it wasOpenCode, ADR 0021): the title says what the call does, like the others; its kind (subagent) and icon (opencode) are unchanged.
Consequences ​
- Additive API:
ToolNote::labelandToolNote::with_label,RemoteTool::title,ToolNote::is_meaningfulis public,TURN_OUTPUT_TITLE.ToolNoteandRemoteToolhave public fields and no#[non_exhaustive]: code that builds either by a struct literal outside this repository stops compiling and adds the new field (there is none in-tree: both have constructors). No required trait method is added. - The orchestration layer and the chat read
labelas they did; a label is "a one-line string", so nothing there changes. The dev fixtures and e2e scripts that matched the plain line of the OpenCode step readHand to OpenCode: done. - The chat's step list needs no knowledge of adam's tool names, and a tool added later shows its title or fails a test.
Alternatives rejected ​
- Map names to titles in the orchestration layer. It would have to know every agent's tools.
- Derive a title from the name (
edit_filetoEdit file). Cheap, butrunbecomesRun, and a title is a sentence a person reads, which an author writes. - Use the first sentence of the description. Written for the model, too long for a row.