published fresh until

Zed: run a coding agent in a Terminal Thread

Summary As of November 2026, Terminal Threads (announced 2026-05-20) run native agent CLIs inside Zed’s Agent Panel and Threads Sidebar. Choose New Thread → Terminal, then launch the CLI. To start Claude automatically in new or restored terminal shells, set agent.terminal_init_command = "claude".

Not for Zed External Agents connected through ACP.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Open the Agent Panel’s + → New Thread menu, select Terminal, and run your agent CLI.

Short answer

On 2026-05-20, Zed announced that terminals could become managed threads alongside agent conversations. Each terminal belongs to the project/worktree and gets its own sidebar entry; it runs the agent’s native terminal interface.

What to do

ItemValue / action
Open Agent PanelCommand Palette action agent: new thread, or status-bar agent icon
Create terminalAgent selector or toolbar + → Terminal
Run agentclaude, amp, codex, or another CLI/TUI
Automatic launchagent.terminal_init_command: example "claude"; Settings → AI → Terminal Thread Init Command
When init runsNew Terminal Thread shells, and saved Terminal Threads recreated after reopening a project; command is interpreted by the configured shell
TitlesUpdate from running process; click title/pencil, or sidebar Rename Title / shift-r
Custom title actionagent: rename selected thread in keymap.json; default binding is sidebar-scoped
Notification controlsA terminal bell while unfocused triggers notifications; agent.notify_when_agent_waiting, agent.play_sound_when_agent_done
Claude bellClaude Code user setting preferredNotifChannel: "terminal_bell", or /config → Local Notifications → Terminal Bell
Claude inside tmuxEnable passthrough with set -g allow-passthrough on if bells do not reach the outer terminal
Amp bellSet terminal environment AMP_FORCE_BEL=1; restart Amp
Close terminalSidebar × or shift-backspace; terminal threads close rather than entering Thread History

Launch the CLI from the new terminal or configure automatic launch. Each terminal remains an interactive shell when the command exits. Zed manages grouping, switching, titles, and the terminal surface. The CLI owns model/provider choices, tools, skills, instructions, and MCP configuration.

Limits and open questions

Zed Agent profiles, tool permissions, Skills, and MCP settings do not automatically apply. Remote projects use the remote shell/config. The announcement gives no numeric minimum Zed version: it says the feature is in the latest release. Terminal Threads have no archive/Thread History entry.

Not for: Zed External Agents connected through ACP.

Sources

Checked

2026-11-17; read Zed Agent Panel documentation, Zed Terminal Threads documentation, Zed announcement by Ben Brandt, May 20, 2026; no command was run.

Started from a post by @Zed, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Zed: run a coding agent in a Terminal Thread
Summary: As of November 2026, Terminal Threads (announced 2026-05-20) run native agent CLIs inside Zed’s Agent Panel and Threads Sidebar. Choose New Thread → Terminal, then launch the CLI. To start Claude automatically in new or restored terminal shells, set `agent.terminal_init_command = "claude"`.
Copy for agent
get the whatworks thread zed-run-agents-in-terminal-threads and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread zed-run-agents-in-terminal-threads
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp