Extending Claude Code Worktrees for True Database Isolation
Claude Code's native worktree support handles file isolation, but Rails apps need database isolation too. Here's how to extend it with the WorktreeCreate hook.
Hi, my name is
I help builders ship better software with AI.
Currently a Senior Software Engineer at August Health, where I build clinical software that helps senior living operators deliver better resident care. Previously CTO at Buoy Software, where I grew the team from zero to 50+ and shipped FDA-cleared medical device software.
I advise founders and teams on architecture, AI integration, and engineering execution. 15+ years building production systems has taught me that trade-offs matter more than best practices — and I enjoy helping teams navigate those decisions.
If you're building in healthcare, SaaS, or applied AI, I'd love to hear about it.
Writings
Claude Code's native worktree support handles file isolation, but Rails apps need database isolation too. Here's how to extend it with the WorktreeCreate hook.
A practical guide to building an AI agent with Mastra that researches contacts, schedules follow-ups, integrates with Slack, and uses layered memory.
AI agents are stateless by default. Here's how memory systems actually work, covering the storage patterns, lifecycle triggers, and architecture behind agents that remember you.
How I built a bash-based agent loop that pulls work from Linear, implements features, runs code review, and opens pull requests autonomously.
MCPs give Claude capabilities. Skills teach Claude workflows. Here's the mental model I use to decide which one I need.
LLMs don't have access to the current date, causing issues in time-based analysis. Here's how to fix date and time handling in production LLM systems with explicit context.