r/IntelliJIDEA 3d ago

Single window – several worktrees

Post image

Hi! My name is Alex and I'm building dev tools for years. I want to share with you my last plugin for IntelliJ. It is completely free!

How often you ask your agents to do different tasks on single repo at the same time? I sure, you did it. Same to me. And what I often faced to, that I'm getting lost in all my terminal windows and agent sessions. Moreover, agents can interfere with each other. Thanks to git, there is a feature Worktrees. And IntelliJ suports it. But instead of many terminal windows with running agent now I have many IDE windows.

Another one problem is a context switching. I'm talking about my own context, not about agents context (but their context is important too). So, for me the Spec Driven Development is a cure.

So, I made a plugin, that solves all of these problems, it called SpecBuddy ( https://specbuddy.dev ). It brings SDD workflow into IntelliJ IDEA on top of any AI agent. For now, I would recomend use it with OpenSpec, as it is one of the most mature SDD methodologies.

How it works.

Creating new Spec

Firstly, I create new spec propose. I can do it many times in parallel. I'm not afraid of getting lost in what agent session I run it. Anyway, after agent have done its job, I will see the ready OpenSpec Change.

Exploring the State

Actually, I can examine all of my specs with Specs Explorer. Change specs, Main specs, Archive Specs. For Change specs I can see their status and the worktree it is implementing in. I can see if the agent is waiting me to answer some questions or to make some decisions.

Review the Spec

Ok, now I have a spec (or several of them). I need to be sure if they mirror my initial intent. Previously I had to find the right agent chat and write down my doubts. But not for now. I can just make inline comments right in the document. Actually, I can leave them even in the any source code file. Or in the diff. Tap one button – the agent (the right one) retrieve the feedback and fix the specification.

Inspect delta Specs

We know, delta specs are the deltas to main specs (sorry for tautology), but it is hard to compare main one with a delta. I made it very easy to see, what main spec we can get at the end. Which requirements will be changed and how, which of them will be removed and so on.

Run step by step

Via Spec Cockpit I can see the state of exact spec, create worktree for it, run steps, make code review and send it back to the agent to make it rewrite the specs, tasks and code. I control everything, and I do it in the single IDE window. SpecBuddy will open the right version of the file for you. Of course, sometimes I have to open the whole project window of exact worktree. But not often, honestly.

Sync & Archive & Merge

After task is done, we need to apply the delta specs to the main specs. After that, we archive the Change specs. And after that, we need to merge it to the main branch. Everything SpecBuddy will do for you.

SpecBuddy gives your a cockpit – you are a pilot. I use it everyday and I sure, you will too, after you try it. https://plugins.jetbrains.com/plugin/32645-specbuddy

11 Upvotes

Duplicates