frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Intent-Based Commits

https://github.com/adamveld12/ghost
25•adamveld12•2h ago

Comments

sarathnarendra•2h ago
I find this pretty interesting and useful too. Still pretty fresh on it. I'm definitely gonna give it more time to try and play around.
laksjhdlka•1h ago
It is not clear to me that keeping prompts/conversations at something like this level of granularity is a _bad_ idea, nor that it's a good one. My initial response is that, while it seems cute, I can't really imagine myself reading it in most cases. Perhaps though you'd end up using it exactly when you're struggling to understand some code, the blame is unclear, the commit message is garbage, and no one remembers which ticket spawned it.
fc417fc802•1h ago
You could also feed it back to the next AI agent.
sheept•1h ago
In my CLAUDE.md, I have Claude include all new prompts verbatim in the commit message body.

While I haven't used Claude long enough to need my prompts, I would appreciate seeing my coworkers' prompts when I review their LLM-generated code or proposals. Sometimes it's hard to tell if something was intentional that the author can stand behind, or fluff hallucinated by the LLM. It's a bit annoying to ask why something suspicious was written the way it is, and then they go ahead and wordlessly change it as if it's their first time seeing the code too.

scottlamb•1h ago
Huh? Either I don't get it, or they don't get it, or both. I'm so puzzled it's probably both.

> Every ghost commit answers: what did I want to happen here? Not what bytes changed.

Aren't they just describing what commit messages are supposed to be? Their first `git log --online` output looks normal to me. You don't put the bytes changed in the commit message; git can calculate that from any two states of the tree. You summarize what you're trying to do and why. If you run `git log -p` or `git show`, then yeah you see the bytes changed, in addition to the commit message. Why would you put the commit messages in some separate git repo or storage system?

> Ghost snapshots the working tree before and after Claude runs, diffs the two, and stages only what changed. Unrelated files are never touched.

That's...just what git does? It's not even possible to stage a file that hasn't changed.

> Every commit is reproducible. The prompt is preserved exactly. You can re-run any commit against a fresh checkout to see what Claude generates from the same instruction.

This is not what I mean by reproducible. I can re-run any commit against a fresh checkout but Claude will do something different than what it did when they ran it before.

pagutierrezn•1h ago
I like the idea, but why not implementig it with a simple commit hook?
samrus•1h ago
I dont know. I get the idea that its like comitting c code that then gets compiled to machine code when someone needs the binary, but what if the prompt isnt complete?

For any formal language, there was a testing and iteration process that resulted in the programmer verifying that this code results in the correct functionality, and because a formal compiler is deterministic, they can know that the same code will have the same functionality when compiled and ran by someone else (edge cases concerning different platforms and compilers not withstanding)

But here, even if the prompt is iterated on and the prompter verifies dlfunctionality, its not guaranteed (or even highly likely) to create the same code with the same functionality when someone else runs the prompt. Even if the coding agent is the same. Even if its the same version. Simply due to the stochastic nature of these things.

This sounds like a bad idea. You gotta freeze your program in a reproducable form. Natural language prompts arent it, formal language instructions are

gorgoiler•38m ago
In a way that matches what you describe, using modern Python as an example, the prompt is equivalent to:

  dependencies = [“foo”]
While the code itself is more like:

  $ wc -l uv.lock
  245
You need both.
50lo•1h ago
I noticed in the README that each commit message includes the agent and model, which is a nice start toward reproducibility.

I’m wondering how deep you plan to go on environment pinning beyond that. Is the system prompt / agent configuration versioned? Do you record tool versions or surrounding runtime context?

My mental model is that reproducible intent requires capturing the full "execution envelope", not just the human prompt + model & agent names. Otherwise it becomes more of an audit trail (which is also a good feature) than something you can deterministically re-run.

Curious how you’re thinking about that.

riffraff•1h ago
> When you read a traditional git log, you see what changed. With ghost, you see why —

I thought,that was what commit titles and descriptions are for?

What changed would be the diff.

Edit: perhaps the prompt describes the "how".

rdtsc•56m ago
Poe’s Law applies here. “This is a pretty good parody of vibe coding” I thought, but then I didn’t see example commits like “update heart pacer firmware and push to users”.
skybrian•49m ago
I start with a conversation and then ask the coding agent to write a design doc. It might go through several revisions. The implementation might also be a bit different if something unexpected is found, so afterwards I ask the agent to update it to explain what was implemented.

This naturally happens over several commits. I suppose I could squash them, but I haven't bothered.

zatkin•39m ago
I use the same approach, derived off of https://boristane.com/blog/how-i-use-claude-code/.
gorgoiler•30m ago
It would be good to see a real example. There’s a sketch of one in the README.md but I’d be interested to see how it works in real life with something complicated.

  > Add users with authentication

  > No, not like that

  > Closer, but I don’t want avatars

  > I need email validation too

  > Use something off the shelf?
Someone in this place was saying this the other day: a lot of what might seem like public commits to main are really more like private commits to your feature branch. Once everything works you squash it all down to a final version ready for review and to commit to main.

It’s unclear what the “squash” process is for “make me a foo” + “no not like that”.

brtkwr•16m ago
I love this idea although not sure I’d be comfortable with the level of steering control I would get without trying it for real! What would be even better would be to unshittify my poorly written commit message into a beautiful detailed commit message. We can still keep the original in the footnote if we have to.

Meta’s AI smart glasses and data privacy concerns

https://www.svd.se/a/K8nrV4/metas-ai-smart-glasses-and-data-privacy-concerns-workers-say-we-see-e...
930•sandbach•8h ago•529 comments

British Columbia is permanently adopting daylight time

https://www.cbc.ca/news/canada/british-columbia/b-c-adopting-year-round-daylight-time-9.7111657
701•ireflect•10h ago•343 comments

Daily Driving GrapheneOS

https://blog.matthewbrunelle.com/8-4-months-of-daily-driving-grapheneos/
43•zdw•1h ago•13 comments

Ars Technica fires reporter after AI controversy involving fabricated quotes

https://futurism.com/artificial-intelligence/ars-technica-fires-reporter-ai-quotes
188•danso•5h ago•105 comments

Simple screw counter

https://mitxela.com/projects/screwcounter
72•jk_tech•2d ago•17 comments

Buckle Up for Bumpier Skies

https://www.newyorker.com/magazine/2026/03/09/buckle-up-for-bumpier-skies
12•littlexsparkee•1h ago•2 comments

Intent-Based Commits

https://github.com/adamveld12/ghost
28•adamveld12•2h ago•16 comments

Show HN: I built a sub-500ms latency voice agent from scratch

https://www.ntik.me/posts/voice-agent
329•nicktikhonov•9h ago•97 comments

DOS Memory Management

https://www.os2museum.com/wp/dos-memory-management/
10•ingve•2d ago•0 comments

Moldova broke our data pipeline

https://www.avraam.dev/blog/moldova-broke-our-pipeline
29•almonerthis•2d ago•13 comments

Guilty Displeasures

https://www.hopefulmons.com/p/what-are-your-guilty-displeasures
52•aregue•1d ago•57 comments

Seed of Might Color Correction Process (2023) [pdf]

https://andrewvanner.github.io/som/SoM_CC_Process_Day.pdf
84•haunter•8h ago•20 comments

Elevated Errors in Claude.ai

https://status.claude.com/incidents/yf48hzysrvl5
77•LostMyLogin•3h ago•53 comments

First in-utero stem cell therapy for fetal spina bifida repair is safe: study

https://health.ucdavis.edu/news/headlines/first-ever-in-utero-stem-cell-therapy-for-fetal-spina-b...
288•gmays•16h ago•51 comments

New iPad Air, powered by M4

https://www.apple.com/newsroom/2026/03/apple-introduces-the-new-ipad-air-powered-by-m4/
367•Garbage•16h ago•582 comments

Physicists developing a quantum computer that’s entirely open source

https://physics.aps.org/articles/v19/24
80•tzury•7h ago•20 comments

Launch HN: OctaPulse (YC W26) – Robotics and computer vision for fish farming

95•rohxnsxngh•14h ago•33 comments

The Excommunicated Devs Making Games with AI

https://www.tyleo.com/blog/the-excommunicated-devs-making-games-with-ai
34•tyleo•4h ago•15 comments

Motorola announces a partnership with GrapheneOS

https://motorolanews.com/motorola-three-new-b2b-solutions-at-mwc-2026/
2151•km•1d ago•778 comments

Show HN: Govbase – Follow a bill from source text to news bias to social posts

https://govbase.com
184•foxfoxx•13h ago•74 comments

Guido van Rossum Interviews Thomas Wouters (Python Core Dev)

https://gvanrossum.github.io/interviews/Thomas.html
10•azhenley•1d ago•1 comments

iPhone 17e

https://www.apple.com/newsroom/2026/03/apple-introduces-iphone-17e/
251•meetpateltech•16h ago•348 comments

Against Query Based Compilers

https://matklad.github.io/2026/02/25/against-query-based-compilers.html
56•surprisetalk•1d ago•32 comments

Inside the M4 Apple Neural Engine, Part 1: Reverse Engineering

https://maderix.substack.com/p/inside-the-m4-apple-neural-engine
317•zdw•1d ago•89 comments

The Cathode Ray Tube site

https://www.crtsite.com/didactic-crt.html
31•joebig•1d ago•2 comments

RCade: Building a Community Arcade Cabinet

https://www.frankchiarulli.com/blog/building-the-rcade/
72•evakhoury•4d ago•14 comments

The 185-Microsecond Type Hint

https://blog.sturdystatistics.com/posts/type_hint/
63•kianN•8h ago•7 comments

Programmable Cryptography (2024)

https://0xparc.org/writings/programmable-cryptography-1
64•fi-le•2d ago•35 comments

Ask HN: Who is hiring? (March 2026)

200•whoishiring•15h ago•235 comments

Parallel coding agents with tmux and Markdown specs

https://schipper.ai/posts/parallel-coding-agents/
148•schipperai•16h ago•111 comments