Loading video...

Video Failed to Load

Go Home

shipped another worktree improvement: opencode will show all worktrees available from git you don't have to create them through opencode anymore! use whatever tool you want to name and organize them

43,287 views • 6 months ago •via X (Twitter)

21 Comments

nexxel's profile picture
nexxel6 months ago

this is really helpful

James Baldwin's profile picture
James Baldwin6 months ago

this is fantastic - are there plans for jj workspace support if .jj is detected?

James Long's profile picture
James Long6 months ago

not right now, other things are higher priority, but will keep it in mind

James Baldwin's profile picture
James Baldwin6 months ago

understandable

Noureddine's profile picture
Noureddine6 months ago

getting out of the way of how people manage git worktrees is a strong move. Clean update.

Callum's profile picture
Callum6 months ago

Still need to really get to grips with worktrees. Any great tools you recommend, or does it make sense to just use opencode?

James Long's profile picture
James Long6 months ago

try zed like you see in the video, it has a very seamless workflow

Elhaam's profile picture
Elhaam6 months ago

Which version is this shippin in?

James Long's profile picture
James Long6 months ago

@standoutcoder it's queued for the next version, so either today or tomorrow!

liamrhwld's profile picture
liamrhwld6 months ago

Does this need activated somehow? Not showing up for me

Logan's profile picture
Logan6 months ago

Im still looking for someone to help me with this

James Long's profile picture
James Long6 months ago

we have changes coming with how it prints it all out (sorry). not sure what you mean about not following, that's going to be more of a model thing for slash commands not sure, the intent was we didn't want 20 skills loaded and to dilute the `/` with so many, but will think about it

firefoxmmx's profile picture
firefoxmmx6 months ago

Great, but I have a question: how do I delete unused working trees in OpenCode? I've tried deleting them, and it works, but the information remains in the OpenCode database.

nsxdavid's profile picture
nsxdavid6 months ago

You are on the beam! Claude Code just shipped their worktree improvement and it still can't specify what branch to branch off of. It's insane. Do they even have software engineers there who know modern software development practices?

DeLson's profile picture
DeLson6 months ago

Thank you! Worktree support has been one thing that I've desperately wanted to see in OpenCode, especially the desktop app. Idk how it's looking there these days...

Sebastiano Mandalà's profile picture
Sebastiano Mandalà6 months ago

Does someone test the windows version? Game developers use mostly windows 🤪

Vitor Lostada's profile picture
Vitor Lostada5 months ago

Hey James, I'm using opencode worktree, it's amazing Is there any way we can integrate it with Zed?

James Long's profile picture
James Long5 months ago

I've used it with zed! it looks like that's an unfortunate naming conflict, and we need to fix it to iterate through names until there is a free one. also, if you are in Zed already, just use Zed to create the worktrees. that should work, if not let me know

Vitor Lostada's profile picture
Vitor Lostada5 months ago

Perfect! I will try it. Thanks for the amazing job

Chengrui Zhang's profile picture
Chengrui Zhang6 months ago

what is the commit hash. expected feature!

joogie's profile picture
joogie6 months ago

when are worktree hooks gonna be added? e.g. being able to run scripts post-create etc

Related Videos