Skip to content

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 19:24
· 323 commits to main since this release

Added

  • fascicle/acp serves a flow as an agent in Zed and the other editors that speak ACP. serve_acp(config) runs the flow over stdio as an Agent Client Protocol v1 agent, so a person talks to it in the editor's agent panel, beside Claude Code, Codex, and Gemini CLI. Each prompt turn runs the flow through run.stream, and its text, reasoning, and tool calls stream back as session updates. stream sends each model call's text to the reply, to the collapsed thought block, or nowhere, by its step_id, and to_text writes the reply when the flow streamed none, as for a define_agent step's structured output. A turn hands the flow the session's history, with a cancelled turn marked as one, so a stopped request isn't picked up again at the next prompt. Stdout carries the protocol, so serve_acp sends console.log to stderr, and closing stdin, SIGTERM, and SIGINT all abort every run and dispose the engine. The agent advertises no ACP auth methods, so providers authenticate with whatever the launched process can see, and it ignores the MCP servers the client sends for now. acp_agent is the same agent left unconnected, for another transport or a test, and to_session_updates with create_acp_mapper_state is the mapper underneath. @agentclientprotocol/sdk is a new optional peer, with zod beside it, which loads only when an agent starts, and acp_sdk_missing_error names the install when it's missing. docs/acp.md covers all of it.
  • workspace_tools(session) gives a coding agent the tools it needs, confined to the session's workspace. read_file, list_files, search, write_file, edit_file, and run_command work on the files on disk and in a shell of their own, never through the client's file system or terminal, which Claude Agent stopped using and the ACP v2 draft drops. The file tools accept a path only when its real path lands under cwd or under an additional directory that the client sent, so a symlink that points out of the workspace is refused. A search runs in a worker thread that a cancel or a 30-second budget can stop mid-match, so a pattern that backtracks without end can't freeze the agent. A command runs with /bin/sh -c in a process group of its own, which a cancel, its timeout, and its own exit kill whole, and command_env replaces the environment it would inherit, provider keys included. run_command is POSIX-only for now, and containment binds the file tools only, since a shell reaches anything the user can. SECURITY.md says what each tool can touch.
  • A coding session asks before it edits or runs anything, as often as its mode says. Manual, the default, asks before every edit and every command, Accept edits only before a command, and Auto never. The session reports its mode both ways ACP has, so Zed's mode picker and the agent stay in step, and default_mode sets the agent's own default. session.approve goes in as a model call's on_tool_approval, and it sends session/request_permission on the card that the user already sees, with an edit's diff on it. It offers Allow, Reject, and an "always" that lasts for the session. For an edit, "always" switches the session to Accept edits, and for a command it covers the program and its first argument that isn't a flag (pnpm test), but never a command with shell control syntax. A rejection, a cancelled prompt, and a request that fails all deny the call.
  • Workspace tool calls look the way Claude Agent's do. Each card carries the kind that picks its icon, a title such as Read src/a.ts (1 - 40) or the command line, and the places it touches. A write's or an edit's card keeps its diff in every mode, and a command's card shows its output in a terminal when the client advertises Zed's terminal extension, or as a console block otherwise. Location lines count from 1, as Claude Agent's do, and Zed reads both agents' lines one line low.
  • ToolApprovalRequest carries tool_call_id. It's the raw call id that ToolExecContext.tool_call_id and the tool_approval_* events already carry, so an approval handler can point at the call it's being asked about.
  • Two examples run in Zed. examples/acp-agent is a keyless echo that checks the wiring before you spend a token, and --provider and --model switch it to a real engine. examples/acp-coder is a working coding agent on OpenRouter, with anthropic/claude-sonnet-5.5 by default. Its README has a Zed entry that sets PATH for the agent's commands and an eight-step test of the cards, the prompts, and the modes. Its command_env leaves out the provider keys, so a command the model runs can't read them.

Changed

  • flow_schema's declared type is a plain object type. The schema moved from a JSON module into a TypeScript one, because TypeScript 7's declaration emit writes nothing for a JSON module. The value is the same, and so is its type, apart from the alias members (properties_1, _do, and the like) that the old declaration carried, so only code that named one of those needs to change.

Internal

  • The dev toolchain moved to TypeScript 7, vitest 5, and Stryker 10, along with checkride 0.14, fallow 3.33, and the newest release inside each other major. Stryker's vitest runner carries a patch for the way vitest 5 names its tests, without which every mutant survives, and the full mutation run scores 91.01%. braces carries a patch against deeply nested patterns (GHSA-vfj7-8cjw-p6xm), since no release fixes it, and it reaches the tree only through the markdown linter's globbing.
  • json_schema_to_standard moved into the schema layer, so the workspace tools declare their inputs in plain JSON Schema without leaning on zod. fascicle/mcp still exports it.
  • A new ast-grep rule keeps node:child_process in src/acp/ to run_command's file.