folder icon Windows 95zach.dev
city icon Windows 95StartupCities
StoresData iconStoresData
Automation.co iconHire Me
LearnClaude.ai iconLearnClaude
Spotify CLI
BuiltWith MCP
Claudem Ipsum
roman statue taking a selfie
Ionian columnfloating Orb1floating Orb2
Windows95 Program Icon
C:/zach.dev/home
Windows95 minimize window iconWindows95 maximize window iconWindows95 close window icon
Windows95 Directory IconWho?
I'm a software engineer and product leader focused on modern web technologies and AI.

An angel investor once described my core soft skill as: "The ability to perceive exactly what needs to be done. And then to do it."

My experience working in difficult environments around the world means that I can be trusted to get things done, even when things go wrong.

This website was built by hand, before AI.

Here's an ongoing autobiography, which shares my story of leaving school in 9th grade to join the workforce: now the subject of a chapter on grit and resilience in the bestselling book Mindshift by Barbara Oakley.

I've won several awards for economic research and have been published or interviewed in Virgin Entrepreneur, a16z's Future.com, The Atlantic's CityLab, Foreign Policy, and in academic volumes by Routledge and Palgrave MacMillan.

In a past life, I coined the term "Startup Cities" as co-founder of StartupCities.org in Guatemala City and a startup spinoff, both of which focused on why startups should build cities. This was originally a fringe idea, but has now attracted significant capital and founder interest in the 2020s. I sometimes write about Startup Cities at StartupCities.com

I read and collect obscure memoirs from the history of business and technology. You can find some of them in my public library. Send me your recommendations!

Wait... what is this site?
This is my personal portfolio, inspired by the question: "What would the opposite of the two-color template developer blog look like?"

Click the Start Menu to learn more. Have fun!

Contact:hello @ zach.dev
Windows95 Program Icon
C:/zach.dev/blog/magic-diff
Windows95 minimize window iconWindows95 maximize window iconWindows95 close window icon

magic-diff

Recently a friend of mine, Chong-U Lim was talking about copy and pasting git diffs into Claude. The obvious idea was: why not automate the whole process?

So I wrote magic-diff, a command-line tool that automates the process of writing git commit messages.

You stage your changes as usual, then tool generates a commit message for you using an LLM of your choice.

Key Features

  • Automatically generates git commit messages based on staged changes
  • Uses AI (via the llm CLI) to create contextual and descriptive messages
  • Copies the generated message to your clipboard for easy pasting
  • Supports multiple clipboard tools (pbcopy, xclip, clip, wl-copy)
  • Intelligently excludes common lock files from the diff to focus on meaningful changes

How It Works

magic-diff is designed to be simple to use:

  1. Stage your changes with git add
  2. Run magic_diff
  3. Paste the generated commit message

Under the hood, magic-diff captures your staged diff, sends it to an AI model via the llm CLI, and processes the response to create a suitable commit message.

Check out the GitHub repository for full installation instructions and usage details.

Jan 12, 2025
<< Previous
Fetch MCP
Next >>
check-for-api-keys
zach.dev
About Me
Music On
Home
Blog
Programming
Entrepreneurship
Speaking
Adventure
Unschooling
Windows 95 Flying Window logo
Start
Home
magic-diff
volume button
05:39 PM
floating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloudfloating pink cloud