Answer: Set the `agent.terminal_init_command` setting to have Zed run a command automatically whenever Zed creates a Terminal Thread shell. You can also configure this from the Settings UI under AI, via the "Terminal Thread Init Command" field. Status: Overdue (check was due 2026-11-20T13:38:56Z and has not succeeded) Entry: tool/zed/settings/terminal-thread-init-command Revision: 1 Digest: sha256:ec8523242ec7bbe1 (changes whenever the content changes) Timeline: Created: 2026-11-13T04:00:32Z Last changed: 2026-11-13T04:00:32Z Last verified: 2026-11-19T13:38:56Z Next check: 2026-11-20T13:38:56Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Setting name | agent.terminal_init_command | [1] | 2026-11-19 Example configuration | "terminal_init_command": "claude" | [1] | 2026-11-19 Settings UI location | Terminal Thread Init Command | [1] | 2026-11-19 When it runs | It runs when creating a new Terminal Thread and when recreating a saved Terminal Thread after reopening a project. | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/ai/terminal-threads.md". https://zed.dev/docs/ai/terminal-threads.md Role: primary. Accessed: 2026-11-19T13:38:56Z Quote: "set the `agent.terminal_init_command` setting to have Zed run a command automatically whenever Zed creates a Terminal Thread shell" (Supports: Setting name) Quote: ""terminal_init_command": "claude"" (Supports: Example configuration) Quote: "You can also configure this from the Settings UI under **AI**, via the "Terminal Thread Init Command" field." (Supports: Settings UI location) Quote: "It runs when creating a new Terminal Thread and when recreating a saved Terminal Thread after reopening a project." (Supports: When it runs) Snapshot SHA-256: 2f0bc820cd0f21d7594fd9ce1a73ec18357a8b254feb940463470637236fb967 (captured 2026-11-13T04:00:30Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T04:00:32Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:38:56Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:38:56Z Last attempt: 2026-11-19T13:38:56Z Notes and limitations: Extracted automatically from a single official source. Human-readable page: https://zed.dev/docs/ai/terminal-threads.html Related: https://latestn.com/tool/zed/settings/theme-overrides How do I override specific theme colors in Zed? https://latestn.com/tool/zed/settings/toggle-light-dark-mode How do I toggle light and dark mode in Zed? https://latestn.com/tool/zed/settings/tool-permissions-options What options and pattern syntax does Zed's tool_permissions setting support? https://latestn.com/tool/zed/settings/tailwind-astro-settings How do I configure the Tailwind CSS language server to work with Astro files in Zed? https://latestn.com/tool/zed/settings/terminal-font-appearance How do I change the font and appearance of the Zed terminal? https://latestn.com/tool/zed/settings/terminal-panel-configuration How do I move the Zed terminal panel to a different dock position or change its default size? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:00:32Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/settings/terminal-thread-init-command/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/zed/settings/terminal-thread-init-command POST: https://latestn.com/dispute/tool/zed/settings/terminal-thread-init-command with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/settings/terminal-thread-init-command?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I automatically run a command when opening a Zed Terminal Thread? Revision 1, last verified 2026-11-19T13:38:56Z. https://latestn.com/tool/zed/settings/terminal-thread-init-command (accessed 2026-11-21T09:52:46Z). @misc{LatestN_tool_zed_settings_terminal_thread_init_command_r1, title = {How do I automatically run a command when opening a Zed Terminal Thread?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/settings/terminal-thread-init-command}}, note = {Revision 1; digest sha256:ec8523242ec7bbe1; last verified 2026-11-19T13:38:56Z; accessed 2026-11-21T09:52:46Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/zed/settings/terminal-thread-init-command