Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

we added the `/cd` command to OpenCode with auto-completion to make it super easy to move sessions around

17,158 Aufrufe • vor 2 Monaten •via X (Twitter)

19 Kommentare

Profilbild von dax
daxvor 2 Monaten

hey you stole the demo i was gonna steal from you

Profilbild von ByShovel
ByShovelvor 2 Monaten

the filesystem metaphor quietly keeps winning: cd into a session like it's a directory and suddenly the mental model needs no documentation.

Profilbild von Titus Magnus
Titus Magnusvor 2 Monaten

Thanks man. This is one of those things that you don't truly know how much you need before you get it.

Profilbild von yamz8
yamz8vor 2 Monaten

nice touch

Profilbild von Ike Victor
Ike Victorvor 2 Monaten

Finally this is actually a big deal. Multiple sessions in a single tui instance, all with different base dirs, was a big pain point for me.

Profilbild von Location Artistry
Location Artistryvor 2 Monaten

opencode is so boss, such a great product!

Profilbild von milos
milosvor 2 Monaten

@thdxr Yo this is great! Love those little things

Profilbild von Akram Ahmed
Akram Ahmedvor 2 Monaten

fk yeah, thanks a bunch for this

Profilbild von Alex Kolovsky
Alex Kolovskyvor 2 Monaten

the thing that bites me with cd inside a long session is stale relative paths in earlier tool calls. does /cd rewrite them or just move cwd forward?

Profilbild von James Long
James Longvor 2 Monaten

we add a synthetic message so the model knows it's moved, and yes we try to update paths. for example a bash tool will prefix the call with the path it was called from (it should at least)

Profilbild von Alex Kolovsky
Alex Kolovskyvor 2 Monaten

the case i'd worry about is compaction eating the synthetic message while the old ls output stays. does it get pinned, or re-emitted on the next tool call?

Profilbild von Tim Bendt
Tim Bendtvor 2 Monaten

I knew I wanted this... but didn't know exactly

Profilbild von David Hapunkt
David Hapunktvor 2 Monaten

Why do you move sessions instead of adding folders to them?

Profilbild von Jonathan Dunlap
Jonathan Dunlapvor 2 Monaten

Can we please have a dir explorer to create a new session?

Profilbild von Bitr0t ⌨️
Bitr0t ⌨️vor 2 Monaten

Nice!! The opencode TUI is impressively good. I think the go plan onboarding needs some love! I got Go today and downloaded opencode, added my key and I can’t use my go sub? All the models are “Zen”.

Profilbild von moshik
moshikvor 2 Monaten

I NEEDED THAT TODAY! 👏🏼

Profilbild von Lalit Jangid 🇮🇳
Lalit Jangid 🇮🇳vor 2 Monaten

wow...

Profilbild von TheGOAT
TheGOATvor 2 Monaten

good feature

Profilbild von Filip Ganyicz
Filip Ganyiczvor 2 Monaten

@thdxr Hell yeah

Ähnliche Videos