frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Intent-Based Commits

https://github.com/adamveld12/ghost
13•adamveld12•1h ago

Comments

sarathnarendra•1h 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•48m 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•23m ago
You could also feed it back to the next AI agent.
sheept•36m 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•36m 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•16m ago
I like the idea, but why not implementig it with a simple commit hook?
samrus•7m 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

50lo•6m 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•4m 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".

Israel hacked Iran traffic cams for years to pinpoint Khaemnei prior to strike

https://www.google.com/search?q=https://www.ft.com/content/1317d740-410c-46a2-97b7-6573e0477121
1•c420•30s ago•0 comments

What 10 Years of Building Social Apps Taught Me

https://twitter.com/nikitabier/status/1481118406749220868
1•metmirr•1m ago•0 comments

OSINT Expert Recreates Timeline of Operation Epic Fury in Interactive 3D Model

https://www.jfeed.com/news-world/operation-epic-fury-3d-replay
1•rapnie•5m ago•1 comments

Show HN: Trade Stocks and Crypto On-Chain with Full Transparency

https://www.aulico.com
2•rendernos•6m ago•0 comments

Buckle Up for Bumpier Skies

https://www.newyorker.com/magazine/2026/03/09/buckle-up-for-bumpier-skies
3•littlexsparkee•14m ago•0 comments

Claude's Constitution and Asimov's Laws

https://yadin.com/notes/asimov/
2•dryadin•25m ago•0 comments

Data-structure-typed – TreeMap, Heap, Graph and more for TypeScript

https://github.com/zrwusa/data-structure-typed
1•zrwusa•27m ago•1 comments

Stop macOS 26 nagging with one tiny policy tweak

https://www.theregister.com/2026/03/02/stop_tahoe_update/
2•fghorow•28m ago•0 comments

Is Mandarin superior for LLM data?

https://medium.com/@tjanmichela/the-language-of-intelligence-could-mandarin-be-the-secret-to-smar...
3•treebeard901•30m ago•2 comments

Show HN: DiffMem in production, Git-based AI memory

https://withanna.io
1•alexmrv•32m ago•0 comments

Constraints and the Lost Art of Optimization

https://denodell.com/blog/constraints-and-the-lost-art-of-optimization
1•CharlesW•33m ago•0 comments

Show HN: Calendar Tool for College Students

https://almanaccal.com/
1•TG_Dev•36m ago•0 comments

Show HN: Private AI Document Server

https://github.com/queryhat/super-hat/blob/main/README.md
1•chhetri978•36m ago•1 comments

Underrated Reasons to Dislike AI

https://www.autodidacts.io/underrated-reasons-to-dislike-ai/
1•Curiositry•37m ago•0 comments

Show HN: Word Doodle – A generative engine that turns text into dense doodle art

https://j-ncel.github.io/word-doodle/
2•koalux•38m ago•0 comments

Principles of Adult Behavior by John Perry Barlow

https://kottke.org/18/02/a-list-of-25-principles-of-adult-behavior-by-john-perry-barlow
3•Curiositry•40m ago•0 comments

Show HN: A visual sitemap tool to simplify SaaS navigation

3•epic_ai•43m ago•3 comments

2025 State of Rust Survey Results

https://blog.rust-lang.org/2026/03/02/2025-State-Of-Rust-Survey-results/
1•Curiositry•43m ago•0 comments

I've been running GrapheneOS on my Pixel Fold for over half a year

https://blog.matthewbrunelle.com/8-4-months-of-daily-driving-grapheneos/
9•zdw•47m ago•0 comments

The Brilliant Developer, Unreliable Operator

https://the-infrastructure-mindset.ghost.io/brilliant-developer-unreliable-operator/
1•donutshop•48m ago•0 comments

Facing Its Third Data Center, an Iowa County Rolls Out Extensive Zoning Rules

https://insideclimatenews.org/news/01032026/iowa-county-data-center-ordinance/
3•WaitWaitWha•50m ago•0 comments

Web Haptics

https://haptics.lochie.me/
1•tontonius•53m ago•0 comments

Typhoid Mary

https://en.wikipedia.org/wiki/Mary_Mallon
2•metadat•55m ago•0 comments

Nbdantic, Pydantic for Jupyter Notebooks

https://github.com/ivanbelenky/nbdantic
1•ivanbelenky•57m ago•0 comments

Show HN: Argus – VSCode debugger for Claude Code sessions

2•lydionfinance•57m ago•0 comments

Wikipedia's entry on Ali Khamenei is a master class in narrative framing

https://twitter.com/thefp/status/2028587979900420303
2•nailer•1h ago•0 comments

How to Reach More Users?

1•m2fauzaan•1h ago•1 comments

Show HN: Video to Text AI Transcription

https://videototext.tools
2•gregzeng95•1h ago•0 comments

Show HN: PantheonOS–An Evolvable, Distributed Multi-Agent System for Science

https://pantheonos.stanford.edu/
2•PantheonOS•1h ago•0 comments

DexCode – AI Slide Creation Environment for Developers

https://co-r-e.github.io/dexcode-lp/
2•mokuwaki•1h ago•1 comments