[FEATURE]: Linear Agent
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Linear Agents are very useful and allow you to directly assign Linear issues to an agent. Github Copilot, Cursor, Devin and others all have Linear agents. It would be very nice to have an OpenCode Linear agent.
Looks like we can use the plugin system to sync OpenCode webhooks with Linear signals/webhooks
https://dev.to/einarcesar/does-opencode-support-hooks-a-complete-guide-to-extensibility-k3p
Still looking at the overall arch of OC for alternatives, but that seems like the most direct way to accomplish what you're looking for.
I'll be looking into this, too, if you want to bounce back and forth,
some of us use linear and I think we discussed doing this before
Quick update, there's a proof of concept working in this repo
Right now it does CRUD on Issues and Comments, and there's also a webhooks listener using express or Netlify as a proxy. The potential for chaining agent actions is there, though beyond the PoC, I think our use cases will vary.
Feel free to clone/copy/fork. I should have some webhook automation later in the week if you want to check back then. Cheers
@Josh-Rentrope that's super cool but I was talking about a Linear Agent for a Linear workspace, not a plugin for a local OpenCode CLI.
Linear Agents allow you to assign issues to them in linear and they code it and make a PR. You can also mention them like you can the Opencode Github App.
Gotcha, spent a bit more time looking at Linear Agents. Idk if a working solution will solely use OpenCode's MCP functionality, or if it's a mix between that and the Linear SDK.
But, if I happen across a decent implementation for what you're looking for, I'll ping back here