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

  • Posted 3 hours ago by whh
  • 2 points
https://github.com/willhackett/wtdb
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.

0 comments