Show HN: Wtdb – give every Git worktree its own database

https://github.com/willhackett/wtdb
by whh • 1 month ago
5 0 1 month ago

I run a lot of agentic coding sessions in parallel, each in its own git worktree. Every worktree points at the same local Postgres though, so the moment one branch runs a migration it changes the schema out from under the others. I'd end up with agents tripping over each other, or me babysitting which branch "owned" the DB at any given moment.

I made this to fix it. I hope you might find it helpful too.

Related Stories

Loading related stories...

Source preview

github.com