Feature Request: Programmatic access to Agent Threads / sending messages to active sessions #58262
cellulosa
started this conversation in
Feature Requests
Replies: 1 comment
|
Opened a PR #62060 which adds support for sending messages to an agent thread. |
0 replies
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.
Body
What are you proposing?
Expose an API for extensions and/or external tooling to interact with existing Agent Threads.
At a minimum, it would be useful to support:
Why does this matter?
I'm using Claude Agent inside Zed and often have multiple active agent threads running simultaneously.
I'd like to build small automation workflows around them, such as:
Currently, it appears that agent sessions are managed internally through claude-agent-acp, but I couldn't find a supported way for extensions or external tools to interact with existing sessions.
Exposing thread/message APIs would unlock scheduling, orchestration, automation, and multi-agent workflows.
Are there any examples or context?
A simple example would be scheduling a message like:
text continue
to all active Claude Agent threads at a specific time.
Another example would be extensions that coordinate multiple running agent sessions, monitor them, or automate repetitive follow-up interactions.
Possible approach
Some possible APIs could be:
ts zed.agent.listThreads() zed.agent.sendMessage(threadId, "continue")
or command-based equivalents that extensions can invoke.
Even a limited API that allows:
would enable a wide range of automation use cases without requiring direct access to the underlying ACP runtime.
Related discussions:
My request is slightly different: I'm specifically asking whether extensions or external tools can enumerate active agent threads and send messages to existing sessions programmatically.
All reactions