opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Linear Agent

Open knotbin opened this issue 1 month ago • 6 comments

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.

knotbin avatar Nov 03 '25 01:11 knotbin

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,

Josh-Rentrope avatar Nov 03 '25 04:11 Josh-Rentrope

some of us use linear and I think we discussed doing this before

rekram1-node avatar Nov 03 '25 04:11 rekram1-node

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 avatar Nov 03 '25 22:11 Josh-Rentrope

@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.

docs agent

knotbin avatar Nov 04 '25 00:11 knotbin

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

Josh-Rentrope avatar Nov 04 '25 05:11 Josh-Rentrope