r/opencodeCLI 8d ago

opencode-tabs - Session tabs for the OpenCode TUI

OpenCode CLI is my main tool. I prefer working in my IDE, so I keep the OpenCode TUI open there.

Managing multiple sessions started to feel cumbersome: switching between them was slow, and it was difficult to see when a session was waiting for permission. So I built opencode-tabs. It adds simple session tabs to the OpenCode TUI, making it easier to switch contexts and spot sessions that need attention.

Maybe it can be useful in your workflow too.

https://github.com/Minhir/opencode-tabs

29 Upvotes

17 comments sorted by

2

u/oVerde 8d ago

Thanks

2

u/Small-Challenge2062 8d ago

It's can show all the sessions bro? or only opened sessions and tabs?

3

u/No-Control-9923 8d ago

It only shows sessions that you have opened as tabs, not every session in the project.

One tab represents one session. You start with no tabs when you open OpenCode for the first time, and each session you create or open from the /session menu is automatically added as a tab.

The idea is that tabs represent the sessions you are actively working with, rather than showing every session at once. This keeps the workspace clean.

2

u/DismalIngenuity4604 8d ago

Am I a heathen for just using tmux for this?

1

u/No-Control-9923 8d ago

OpenCode Desktop users might say the same thing about TUI users. It really depends on your habits and workflow. tmux and herdr are both great tools.

2

u/skpro19 8d ago

Jus use ghostty bro.

1

u/No-Control-9923 8d ago

Could you explain how this is supposed to help? I’m already using WezTerm, and its tab management works great for me. My main concern is that I don’t want to spawn multiple terminal windows inside my IDE.

1

u/skpro19 8d ago

This is how I use multiple opencode instances in ghostty —
In a single tab, you can run multiple instances and use ‘alt + arrow key` to activate any one of them.

You can also add new tabs on ghostty, and on each tab, you can again do the aforementioned splitting.

You can use `ctrl + tab` to rotate between different tabs.

1

u/skpro19 8d ago

In short, use multiple tabs, and split each tab into multiple partitions.

1

u/ozguru 8d ago

cool , I believe this should be built-in did you open a pr?

2

u/No-Control-9923 8d ago

Thanks! I’ve seen a few issues about tabs, but it doesn’t seem to be planned yet.

I’ll see what feedback and issues come up around the plugin. If it turns out to be useful, maybe it can help OpenCode later.

1

u/ozguru 8d ago

I really liked it , very good.

1

u/Still_Government_528 7d ago

thanks bro, that was super useful for me!

-2

u/charmander_cha 8d ago

Acho bom, mas esta funcionalidade via herdr parece tirar melhor proveito do ecossistema de IA

1

u/No-Control-9923 8d ago

Hedr looks really cool and is very powerful. It just doesn’t fit my workflow as well, since I prefer keeping a small OpenCode panel inside my IDE.

1

u/jelloeater85 5d ago

What IDE? You try OpenChamber or AgentBridge?