Runtime Control API / CLI for Zed (external automation, mobile control, hardware integrations) #62759
anthonypelletier
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What are you proposing?
A runtime control API for Zed — a way for an already-running Zed instance to be inspected and driven programmatically from outside the editor process, beyond what the current CLI offers (which is limited to "open a file" / "wait for close").
Concretely, this would mean exposing a local RPC surface (e.g. a Unix socket / named pipe / localhost WebSocket) that lets an external process:
running,idle,waiting_for_permission,waiting_for_input/asking a question,error,done), plus enough context to act on it (which permission is being asked, what the question is)This is different from ACP: ACP governs how an agent plugs into Zed's Agent Panel to edit code. This proposal is about letting an external controller (not necessarily an AI agent) drive and observe the editor itself.
Why does this matter?
Zed's current CLI (
zed file.txt,--wait,--diff,--add) is one-directional and process-spawning — it can open things in Zed, but there's no way for an external tool to talk to a Zed instance that's already running, query its state, or push events into it. ACP is scoped to agent-editor interaction inside the Agent Panel, and Zed's real-time collaboration RPC is currently closed to Zed clients only, so neither is really meant to be a general "outside world → editor" control channel.This would unlock:
Are there any examples or context?
--listen/ RPC API andnvim --remoteemacsclient/ server-eval modelorcaCLI, which talks to a running Orca runtime over a local interface to inspect worktrees, launch and read/send terminals, open files, and drive the app's embedded browser — close to the shape of API being proposed here, just for a different toolPossible approach
All reactions