https://discord.umbraco.com logo
c
message has been deleted
k
Cool!, This reminded me of my stalled efforts to do something clever with git, databases and uSync - from over a year ago. https://forum.umbraco.com/t/development-delete-local-db-on-branch-switch/3244/10?u=kevinjump resurrecting that with some Claude fangling (and poiting in at your post!). I got to this. https://github.com/KevinJump/uSync.TreeBranch basically, this detects branches and worktrees and then triggers the database rename/copy at start up in Umbraco (e.g before Umbraco loads the DB) So if claude or something else creates a new branch or worktree, it creates a copy of the DB, sorts out ports and then uSync runs through it and adds all the settings/content/etc to it. and you (well Claude) just carries on. I am not sure if this answers the exact same question as you asked, but its close - does require a (small) package 😞 , doesn't require claude hooks 🤷
o
Nice - the only thing I've tweaked since I wrote this last night is I'm now using the Umbraco MCP connections so that it doesnt need to log in to the backoffice to verify anything. Sounds like we are both doing similar things 🙂
k
to be honest, I am not really doing it - very little actual umbraco site dev in my life at the moment - mainly responding to people saying "how can i do this" on the forums .
o
I could agrue I'm not doing much site dev either, I'm just shaping claude in to doing stuff for me and trying to find ways to automate as much of it as I can, while usually breaking stuff