frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Git-hunk – Stage hunks by hash, no "-p" required

https://git-hunk.paulie.app/
1•shhac•1h ago
git add -p is the only built-in way to stage individual hunks, and it's interactive — you step through hunks one at a time answering "y/n/q/a/d/e/?". That works fine for humans at a keyboard, but it's completely unusable for LLM agents, shell scripts, and CI pipelines.

git-hunk is the non-interactive alternative. It gives every hunk a stable SHA-1 content hash, then lets you stage by hash:

$ git hunk list --oneline

  a3f7c21  src/main.zig   42-49  if (flags.verbose) {…  

  b82e0f4  src/parse.zig  15-28  fn parseArgs(alloc: …
$ git hunk add a3f7c21

  staged a3f7c21 → a3f7c21  src/main.zig

The key design choice: hashes are computed from the immutable side's line numbers, so staging one hunk never changes another hunk's hash. This makes multi-step scripted workflows reliable — you can enumerate hunks, make decisions, then stage them without the targets shifting underneath you.

Other things it does: line-range selection (a3f7:3-5,8), --porcelain output for machine consumption, count for CI guards, check --exclusive for hash validation, stash individual hunks, and restore to selectively discard changes.

Single static binary, written in Zig, zero runtime dependencies beyond git itself. Install via brew install shhac/tap/git-hunk.

I built this because I was trying to run AI agents in parallel, and stuck to file-level editing they'd fight eachother over what changes they wanted to put into commits. Now I can have multiple agents work in parallel and commit cleanly without needing worktrees.

Help us test WEBCAT alpha

https://securedrop.org/news/webcat-alpha/
1•ahlCVA•45s ago•0 comments

Bankster: Money as Data

https://github.com/randomseed-io/bankster
1•PaulHoule•1m ago•0 comments

Show HN: Augur – A text RPG boss fight where the boss learns across encounters

https://www.theaugur.ai/
1•thutch76•3m ago•1 comments

AgentMail Now Supports X402

https://twitter.com/agentmail/status/2028893166506787270
1•obulbo•4m ago•1 comments

Progressive Disclosure CLI for OpenAPI

https://github.com/OpenScribbler/phyllotaxis
1•mlhpdx•7m ago•0 comments

Show HN: A leadership 360 survey for startup founders: feedback please

https://org360.app/surveys/startup-founder-360
1•ddesposito•11m ago•1 comments

Python Package Uses a PRNG-Like Algorithm to Create Tokenized Infinite Data

https://github.com/stateshaper/stateshaper/tree/old_main
1•jaygeorgedunn•12m ago•0 comments

The 'Anything-but-Solar' Trade Is the Future of Solar

https://www.bloomberg.com/opinion/articles/2026-03-03/the-anything-but-solar-trade-is-the-future-...
1•petethomas•13m ago•0 comments

Show HN: OpenClawHub – A Lib for AI agent workflows so you don't have to

https://openclawhub.uk/
1•951560368•14m ago•0 comments

Critical Authentication Bypass in Pac4j-JWT – Using Only a Public Key

https://www.codeant.ai/security-research/pac4j-jwt-authentication-bypass-public-key
1•Brajeshwar•19m ago•0 comments

Show HN: DubTab – Live AI Dubbing in the Browser (Meet/YouTube/Twitch/etc.)

https://dubtab.com/
2•DanielHu87•19m ago•1 comments

Code-Offline

https://github.com/opensecurity/code-offline
2•opensecurity•20m ago•0 comments

Google employees call for military limits on AI amid Iran strikes

https://www.cnbc.com/2026/03/03/anthropic-fallout-iran-war-tech-military-ai.html
4•MilnerRoute•21m ago•0 comments

Google AI previews helped me in Iran's internet shutdown of 2025

https://ahrm.github.io/jekyll/update/2025/06/20/iran-internet-2025.html
1•owenpayton•21m ago•0 comments

Motorola GrapheneOS devices will be bootloader unlockable/relockable

https://grapheneos.social/@GrapheneOS/116160393783585567
2•pabs3•25m ago•0 comments

Developer Certificate of Origin and AI is a no-go

https://brokenco.de/2026/03/02/copyright-ai.html
1•pabs3•26m ago•0 comments

Wait what, you can't use a *code* editor when you're under 18 now?

https://mastodon.online/@marekfort/116164253291515471
5•pabs3•26m ago•0 comments

Show HN: PreflightAPI – US airports, weather, NOTAMs and more via one API

https://preflightapi.io/
1•bberisford•28m ago•0 comments

Show HN: Formualizer – Arrow-backed spreadsheet engine, 320 functions,PyO3+WASM

https://github.com/psu3d0/formualizer
1•ManfredMacx•28m ago•1 comments

Left-Handers Are More Competitive Than Right-Handers

https://www.psychologytoday.com/us/blog/the-asymmetric-brain/202602/left-handers-are-more-competi...
4•geox•30m ago•0 comments

The Markless Document Markup Standard

https://shirakumo.org/docs/markless/
1•todsacerdoti•34m ago•0 comments

People Really Are More Likely to Commit Crimes After a Cancer Diagnosis

https://www.vice.com/en/article/people-really-are-more-likely-to-commit-crimes-after-a-cancer-dia...
3•pseudolus•36m ago•0 comments

Show HN: Restless – a CLI that discovers and maps APIs automatically

https://github.com/bspippi1337/restless
1•bspippi1337•36m ago•2 comments

Four months of Ruby Central moving Ruby backward

https://andre.arko.net/2026/03/03/four-months-of-ruby-central-moving-ruby-backward/
4•bigiain•39m ago•0 comments

Trump Worries Iran's Leaders May Be Just 'As Bad' After War

https://www.bloomberg.com/news/articles/2026-03-03/trump-worries-iranian-leaders-could-be-just-as...
3•petethomas•39m ago•4 comments

Anatomy of a Web3 Supply Chain Attack

https://www.notesoncloudcomputing.com/posts/2026-02-27-anatomy-of-a-web3-supply-chain-attack/
2•carlesloriente•40m ago•0 comments

Windows 98 Disk Defrag Simulator

https://defrag98.com/
2•nixass•43m ago•1 comments

3M Canadian Adults Taking GLP-1 Drugs, Reshaping Eating and Spending Habits

https://www.thecanadianpressnews.ca/health/3m-canadian-adults-taking-glp-1-drugs-reshaping-eating...
2•karakoram•45m ago•3 comments

Claude's Cycles [pdf]

https://cs.stanford.edu/~knuth/papers/claude-cycles.pdf
2•cebert•46m ago•0 comments

Haptics: Tactile Feedback for the Mobile Web

https://haptics.lochie.me/
2•andresquez•47m ago•3 comments