Vibing a non-trivial Ghostty feature

mitchellh.com

314 points by skevy a day ago


tptacek - a day ago

Tip: I very often use AI for inspiration. In this case, I ended up keeping a lot (not all) of the UI code it made, but I will very often prompt an agent, throw away everything it did, and redo it myself (manually!). I find the "zero to one" stage of creation very difficult and time consuming and AI is excellent at being my muse.

This right here is the single biggest win for coding agents. I see and directionally agree with all the concerns people have about maintainability and sprawl in AI-mediated projects. I don't care, though, because the moment I can get a project up on its legs, to where I can interact with some substantial part of its functionality and refine it, I'm off to the races. It's getting to that golden moment that constitutes 80% of what's costly about programming for me.

This is the part where I simply don't understand the objections people have to coding agents. It seems so self-evidently valuable --- even if you do nothing else with an agent, even if you literally throw all the code away.

PS

Put a weight on that bacon!

commandersaki - a day ago

I really respect Mitchell's response to the OpenAI accident, even if it is seen in positive light for ghostty. Can't think of any software vendor that actively tries to eliminate nag / annoyances (thinking specifically of MS Auto Update), so this is welcome.

Also this article shows responsible use of AI when programming; I don't think it fits the original definition of vibe coding that caused hysterics.

ColinEberhardt - a day ago

As an aside, the Ghostty recently made it mandatory to disclose the use of AI coding tools:

https://github.com/ghostty-org/ghostty/pull/8289

didibus - 3 hours ago

> I have a toddler at home so my "computer time" is very scheduled and very limited

I'm slowly wondering if coding AI agents are turning into the best case scenario for workers. Maybe I'm being hopeful haha.

But having something that doesn't make you faster but just lets you be less concentrated and focused and mentally lazier while producing the same amount of work in the same time as a super dedicated and focused session would have. That's best case scenario here.

WD-42 - a day ago

This post demonstrates one area where ai agents are a huge win: ui frameworks. I have a very similar workflow on an app I’m currently developing in Rust and GTK.

It’s not that I don’t know how to implement something, it’s that the agent can do so much of the tedious searching and trial and error that accompanies this ui framework code.

Notice that Mitchell maintains understanding of all the code through the session. It’s because he already understands what he needs to do. This is a far cry from the definition of “vibe coding” I think a lot of people are riding on. There’s no shortcut to becoming an expert.

Loving Ghostty!

senderista - a day ago

OT but I can't imagine leaving my laptop open next to a pan of sizzling bacon

abstractspoon - 21 hours ago

And the very bit that you admit not being good at - the zero to one stage - will remain forever out of reach because you get the AI to do the heavy lifting. You have to practise that bit yourself, unless of course you never want to be able to do it yourself...

Too - 16 hours ago

Tangential question. Why does every app still need its own auto-update framework? Shouldn’t we all rely on app-stores and package managers for this?

Shadowmist - a day ago

Ghostty is awesome and I almost dropped iTerm for it until I hit cmd-f and nothing happened.

https://github.com/ghostty-org/ghostty/issues?q=is%3Aissue%2...

pawelduda - 11 hours ago

LLMs have brought back my excitement with coding.

At work, they help me to kickstart a task - taking the first step is very often the hardest part. It helps me grok new codebases and write boring parts.

But side projects is where the real fun starts - I can materialize random ideas extremely quickly. No more hours spent on writing boilerplate or fighting the tooling. I can delegate the parts I'm not good at the agent. Or one-prompt a feature, if I don't like the result or it doesn't work, I roll it back.

piazz - a day ago

Such a useful walkthrough.

It looks like Mitchell is using an agentic framework called Amp (I’d never heard of it) - does anybody else here use it or tried it? Curious how it stacks up against Claude Code.

zem - 17 hours ago

> Let's set the stage for what lead to this feature (pun intended, as you'll see shortly). During a high-profile OpenAI keynote, a demo was rudely interrupted by a Ghostty update prompt

quite apart from the article itself, I'm reminded of how much we put up with from our operating systems. presentations and screen sharing have been a fact of life for a couple of decades now; why is it so hard to tell the operating system to strictly not allow anything other than that one window access to the screen?

chrisweekly - a day ago

> "You can see in chats 11 to 14 that we're entering the slop zone. The code the agent created has a critical bug, and it's absolutely failing to fix it. And I have no idea how to fix it, either.

I'll often make these few hail mary attempts to fix a bug. If the agent can figure it out, I can study it and learn myself. If it doesn't, it costs me very little. If the agent figures it out and I don't understand it, I back it out. I'm not shipping code I don't understand. While it's failing, I'm also tabbed out searching the issue and trying to figure it out myself."

Awesome characterization ("slop zone"), pragmatic strategy (let it try; research in parallel) and essential principle ("I'm not shipping code I don't understand.")

IMHO this post is gold, for real-world project details and commentary from an expert doing their thing.

scuff3d - 20 hours ago

> I'm not shipping code I don't understand.

So not vibe coded, but AI assisted.

osigurdson - a day ago

>> AI is very good at fill-in-the-blank or draw-the-rest-of-the-owl.

This is definitely the sweet spot imo. Any time I've been able to come up with a solid, hand coded pattern and have AI repeat in several similar areas has been the most rewarding experiences that I have had with it.

nextworddev - a day ago

Haven’t used Ghostty but why is HN putting it on front page every other week? What’s the main attraction to it

xlii - a day ago

Today, for the first time ever, I had to kill a terminal with all the tabs because it became unresponsive.

Welp, that explains it. I haven't changed terminal in a while anyway...

hoppp - a day ago

I think as long as a human audit passes its good I also generated some pretty great code before, but I went in to review every single line to make sure

JCM9 - 12 hours ago

Despite people yelling, vibe coding isn’t going away.

Developers whining that they can do it better and that it will ruin software forget that business always goes with the “good enough” option.

Human receptionists were far better than IVRs and “press 3 for” automation, but it was cheaper and good enough. Now very few companies have human phone operators.

SDEs need to come to terms with the fact that the value associated with human coding has been degraded. Salaries don’t just go up forever. Human SDEs aren’t going away, and 10x engineers will still be very valuable, but overall the perceived value of SDEs and their comp as a job family will likely start slide rapidly from this point forward.

chrsig - a day ago

> You can see in chats 11 to 14 that we're entering the slop zone. The code the agent created has a critical bug, and it's absolutely failing to fix it. And I have no idea how to fix it, either.

This definitely relaxes my ai-hype anxiety

dlvhdr - a day ago

People are really bad at evaluating whether ai speeds them up or slows them down. The main question is, do you enjoy this kind of process of working with ai. I personally don't, so I don't use it. It's hard for me to believe any claims about productivity gains.

logicallee - 12 hours ago

In the first coding session:

https://ampcode.com/threads/T-9fc3eb88-5aa2-45e4-8f6d-03697f...

The user says "Consult the oracle." at the end of the prompt and the AI begins its answer with:

"I'm going to ask the oracle for advice on planning custom UI for Sparkle update notifications in the titlebar."

What does this refer to?

EDIT: Another comment in this thread says "It's currently Sonnet 4.5 by default but uses GPT-5 for the "oracle" second opinion", so I guess that is what it means.

intended - a day ago

This is exactly what I hoped for when someone talks about their LLM Enabled coding experience.

- language - product - level of experience / seniority

dismalaf - a day ago

> Tip: I very often use AI for inspiration. In this case, I ended up keeping a lot (not all) of the UI code it made, but I will very often prompt an agent, throw away everything it did, and redo it myself (manually!). I find the "zero to one" stage of creation very difficult and time consuming and AI is excellent at being my muse.

This is pretty much how I use AI. I don't have it in my editor, I always use it in a browser window, but I bounce ideas off it, use it like a better search engine and even if I don't use the exact code it produces I do feel there's some value.

truthhurtsbro8 - a day ago

[flagged]

- a day ago
[deleted]
Razengan - a day ago

[flagged]

ampIsBad - a day ago

[flagged]