Skip to content

v0.180.0

Choose a tag to compare

@davidfarah-dev davidfarah-dev released this 25 Nov 17:22
0effe97

Install or update: npm i -g cotal-ai@0.180.0

Restart running Cotal processes and agent sessions to use the new code.

What changed

  • T3 Code and other ACP clients now get from every Cotal agent what that harness's own provider shows: replies streamed as they are written, tool calls with their arguments, results and diffs, plans, approvals, questions, the agent's own commands, cancel, later prompts with images, context usage, reasoning, and the model and effort pickers.
  • A new agent can now label itself from the first message it gets, using its own session's model, while it keeps its launch name as the name people mention and message.
  • Agents on static spaces and open meshes now answer their owner's prompts, commands, turns, interrupts, usage reads and renames, as they do where people sign in.
  • cotal acp now starts this machine's manager for the space when no manager may start a new thread's agent, or when none of yours runs on this machine, and that manager stops itself after 10 minutes with no agents.
  • cotal acp now recognises this machine's manager after the machine's host name changes, as macOS does when the network changes, so it no longer starts a second manager or defaults a thread to another computer.
  • Hermes seats now publish an AG-UI event plane, so ACP clients such as T3 Code and dashboards can show Hermes turns.
  • Hermes seats now accept an initial prompt, so cotal spawn --prompt, a manifest prompt and an ACP client's first message start a Hermes turn.
  • In ACP clients such as T3 Code, a Claude Code tool call now shows while the tool runs, and the model list no longer offers an application it cannot start.
  • Report unsupported extension source spellings as usage refusals and explain how to specify a relative package folder.
  • Keep foreground-only spawn options in the suggested retry when a receipt or runtime option is incompatible with them.
  • Explain how to select or prepare the space named in an endpoint reference when an import has no local space.
  • Keep the selected endpoint, space, broker and instance pin in discovery advice for unsupported endpoint capabilities.
  • When a background service exits before readiness, report when no log line was available instead of claiming its log explains the exit.
  • Show how to import an endpoint reference offline when a stopped project records its space but no longer has a registration.
Every change in full
  • T3 Code and other ACP clients now get from every Cotal agent what that harness's own provider shows: replies streamed as they are written, tool calls with their arguments, results and diffs, plans, approvals, questions, the agent's own commands, cancel, later prompts with images, context usage, reasoning, and the model and effort pickers.

    • Core: the agent endpoint is at revision 5, with turn (the owner's next prompt, with images) and usage (context and cost). Presence gains agentEndpoint: { interrupt, turn, images, usage }, which says what a process serves now, so a caller picks one path per agent before it sends anything. ModelCatalogOpts.envAllow gives a model catalog read the spawn.env names a launch receives.
    • Manager: cluster revision 56. spawn takes the opt-in askPermissions (ask before tool use) and reasoningEvents (publish the model's reasoning), and every status.connectors row says whether its connector takes them. Update Managers and their callers together. @cotal-ai/workspace carries the two fields in a managed launch and in the cached connector rows.
    • connector-core: a delta journal beside each thread's journal streams harness text and reasoning before the harness saves it, merged into the durable source, and a connector may journal records of its own there. JsonlFileSource.holdsSync tells whether a cursor is on the file at the path now. A tool result marker may leave out isError, and web reads one without it.
    • Claude Code: reply text streams while the command mod runs; the owner's turns take images as files the model reads; usage, both launch fields, AskUserQuestion as a question form, and the model list read with the launch's spawn.env names. Reply text that Claude Code does not show, such as "No response requested.", is not published. The release plugin tree now ships hooks/stream.js. The to-do tools stay off as Claude Code's terminal has them for current models; an operator turns them on with CLAUDE_CODE_ENABLE_TODO_TOOLS through spawn.env.
    • Codex: replies and reasoning summaries stream; turns with images and usage; approval requests, questions, permissions requests and MCP elicitations go to the prompt desk; askPermissions launches in the approval-required mode; a code-mode script's calls and plan show as their own tool calls while they run. Codex now publishes reasoning only for a launch with reasoningEvents, where before it published every summary it recorded.
    • Hermes: turns, interrupt, usage and the gateway's slash commands on the agent endpoint; streamed replies; reasoning with reasoningEvents; askPermissions for the commands Hermes stops; clarify questions on the prompt desk; the models of the provider a launch's environment selects, with Hermes's reasoning efforts as variants; tools run in the seat's folder; and a run shared by several messages ends with the outcome of the message that ends it.
    • Jcode: native session commands, interrupt, turns with images, usage and streamed text and reasoning; a failed turn closes its run with the error; the seat's real home, so the shell tool runs on Jcode 1.1; and streaming keeps going across a journal fold that reuses the file's inode.
    • OpenCode: agent commands and interrupt on 1.x; turns with images and usage, permission asks and questions on the agent endpoint, both launch fields, streamed replies and running tool calls on 2.x and 1.x. On 1.x, usage reads the newest step, and a command whose turn never starts frees the seat after 5 seconds. Before launch, harness-commands lists a 1.x install's commands and skills too, from a private server it starts and stops. The 2.x model list read stops its private server's whole process group, reports OpenCode's own error when that server fails to start, and gives up after 10 seconds in all.
    • Pi: tool arguments and results on the payload rail, turns and usage, askPermissions, streamed replies, thinking with reasoningEvents, and the model catalog read with the launch's spawn.env names.
    • cotal acp: picks each agent's cancel, prompt, image and usage path from its presence; sends a turn's usage before the prompt answers; gives each model's reasoning choices in the session's model state, so T3 shows the effort picker before a thread runs; launches with the two fields where the connector takes them; shows tool details, plans, Codex's change approvals as diffs, and the agent's own commands; asks an agent's approvals and questions, also ones it opens between the thread's turns, and asks a prompt again when its first read fails; keeps a prompt queued behind the agent's other work open until the agent runs it, and a cancel takes it out of the queue; never defaults a thread to another computer's manager; offers a short persona and channel select plus /persona and /join where the lists are too long for a select; and says what it cannot replay when an agent's tool details cannot be read.
    • cli: the Hermes model remedy no longer suggests --no-events.
  • A new agent can now label itself from the first message it gets, using its own session's model, while it keeps its launch name as the name people mention and message. The Manager cluster advances to revision 55: spawn takes autoName: true, which reaches the seat as COTAL_AUTO_NAME=1 (LaunchOpts.autoName) and is refused on a once spawn and on a delegated runtime. The seat's connector makes one tool-less request to its own model, outside its conversation, about the launch prompt or else the first live direct message or mention from the seat's own owner, and shows the cleaned reply as the card's meta["ai.cotal.label"] (AGENT_LABEL_META_KEY), at most 40 code points. card.name never changes, so mentions, direct messages and name lookups keep resolving the launch name, and readers show meta["ai.cotal.label"] ?? name. The card carries meta["ai.cotal.naming"] = "pending" until naming settles, whatever the outcome, and the label and the key's removal reach presence in one record. An owner set-name still changes the name, ends naming when it is out, and drops the label in the record that carries the new name. A failed naming shows no label. Claude Code, Codex and OpenCode 2.x seats have the request; Hermes, Jcode, pi and OpenCode 1.x seats show no label and never show the key. A relaunch never labels the seat again, COTAL_DISPLAY_NAME turns naming off, and an agent file cannot set either key. CotalEndpoint.setCardMeta sets or removes card meta keys in one presence record, and setCardName takes meta changes for the record that carries the new name.

  • Agents on static spaces and open meshes now answer their owner's prompts, commands, turns, interrupts, usage reads and renames, as they do where people sign in. A static agent credential now carries the serve rows for the agent endpoint and no caller row. A renewal keeps the rows its first issuance recorded, so an agent an older release started keeps running without the endpoint until it is respawned, and its connector says so. Core adds the static agent-caller profile: the owner's calls to the agents under its own owner, their replies and its inbox, never minted by the auth callout. openAgentCaller in @cotal-ai/workspace opens it. CotalEndpoint.servePrincipal and MeshAgent serve on every mesh mode. On an open mesh any client may call, outside the security claims. The Manager's status.connectors[].prompts is the connector's declaration on every mesh mode, with the same schema and cluster revision. Codex accepts an asking approval_policy on every space. cotal acp calls agents through an in-memory agent-caller on a static space and through its observer elsewhere, so questions, the agent's commands, images and /name work in a thread on every space. The Manager now accepts a spawn's firstCommand on static spaces and open meshes too, and the agent runs it there as its first turn.

  • cotal acp now starts this machine's manager for the space when no manager may start a new thread's agent, or when none of yours runs on this machine, and that manager stops itself after 10 minutes with no agents. The bridge runs cotal manager start --idle-exit 600 and says so in one line at the start of the thread's first prompt, before the agent's reply. Another computer's manager runs a thread's agent only when the thread's Machine option names it. Threads that open at the same time share one start, and a failed start fails the new thread with its reason. With no manager registered for the space, listing, loading or deleting threads and /open now say so and that a new thread starts this machine's manager, in place of a bare internal error. A listed manager whose rail the broker reports empty, such as one whose computer is gone, is not offered. cotal manager start and cotal service start manager take --idle-exit <seconds> for that start only: the manager stops, and deregisters, once it has held no agent, call, workflow run, preservation or resume for that long, and no pending work over which cotal manager stop refuses, such as a name held until its retirement completes; cotal status --components lists that work on the manager row. status shows the value on an Idle exit row. A start with a different value while the manager runs refuses LIFECYCLE_BLOCKED. @cotal-ai/workspace probes a signed-in caller's pinned manager rail on the rail its credential was issued for. A manager that cotal manager start, cotal acp or a controller stack's cotal up starts now gets the spawn.env names that are set where it starts, so its seats get them, as seats of a manager the legacy launcher starts do; no value is printed. On Linux, a background service now starts in a systemd user scope of its own when the user manager answers, so it outlives an app that stops the scope its agent ran in, as T3 Code does when a thread's session ends; a scope that cannot be made fails the start, and each launch's scope has a name of its own, so a retry never meets an earlier attempt's scope. When cotal acp cannot read this machine's identity, as in a container with no /etc/machine-id, a thread still uses a manager its Machine option names, and it neither defaults to a manager nor starts one; a prompt with none chosen, or a new thread with none listed, fails and says why.

  • cotal acp now recognises this machine's manager after the machine's host name changes, as macOS does when the network changes, so it no longer starts a second manager or defaults a thread to another computer. A Manager's status and presence card carry machine, an HMAC-SHA256 of the host's OS machine identity keyed by it over cotal manager host, and the bridge compares it with its own; the host name is only shown. A manager that names no machine counts as another computer's. The Manager cluster advances to revision 57, and its closed status schema of revision 56 rejects the field, so update Managers and their callers together, as revision 56 already requires. @cotal-ai/workspace exports osMachineId(), the OS machine identity read the CLI's service records use, and managerMachineId(); reportedManagerHost answers { host, machine }.

  • Hermes seats now publish an AG-UI event plane, so ACP clients such as T3 Code and dashboards can show Hermes turns. The plane is armed by default like the other connectors' and --no-events turns it off. Hermes keeps no transcript a reader can resume at a cursor, so the plugin writes a turn journal from the gateway's message processing and the post_api_request and post_tool_call hooks, and the launcher reads it through connector-core's emitter. A run covers the messages the gateway processes at once, and shows the model's text and each tool call, with the call's arguments and result on the payload rail. A run shared by several messages ends with the outcome of the message that ends it, so a lone failed message ends its run with an error.

  • Hermes seats now accept an initial prompt, so cotal spawn --prompt, a manifest prompt and an ACP client's first message start a Hermes turn. The launcher hands the text to the gateway once, as the user's own words, in the adapter's operator chat. That chat has no mesh target, so the reply shows on the seat's event plane and is not posted to the mesh.

  • In ACP clients such as T3 Code, a Claude Code tool call now shows while the tool runs, and the model list no longer offers an application it cannot start.

    • Claude Code: a tool call shows within about a second of its start while the tool runs.
    • cotal acp: lists an application's default model once when its catalog also has a model named default, with that model's name and reasoning choices.
    • cotal acp: refuses an application whose models the manager could not read, with the manager's reason, in place of offering its default alone. Loading or opening a thread on a running agent of that application still works.
    • Claude Code, OpenCode 2.x and pi: a model catalog read that fails, or that lists no model a seat could run, such as a logged-out Claude Code or a pi without provider credentials, now fails. cotal models reports that catalog as unreadable, exiting 4, or 5 with --harness, and cotal acp leaves the application out with the reason.
  • Report unsupported extension source spellings as usage refusals and explain how to specify a relative package folder.

  • Keep foreground-only spawn options in the suggested retry when a receipt or runtime option is incompatible with them.

  • Explain how to select or prepare the space named in an endpoint reference when an import has no local space.

  • Keep the selected endpoint, space, broker and instance pin in discovery advice for unsupported endpoint capabilities.

  • When a background service exits before readiness, report when no log line was available instead of claiming its log explains the exit.

  • Show how to import an endpoint reference offline when a stopped project records its space but no longer has a registration.

What's Changed

Full Changelog: v0.178.0...v0.180.0