frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

I Asked an RSA Inventor If AI Could Break His Encryption [video]

https://www.youtube.com/watch?v=F_amnD9Hw80
1•Bender•2m ago•0 comments

Sixty-five nights in one sitting

https://etienne.leaflet.pub/3n3sabzljec2b
1•mlapeter•2m ago•0 comments

Tell HN: Write a poem on the back of your laptop

https://untested.sonnet.io/notes/write-a-poem-on-the-back-of-your-laptop/
1•rpastuszak•3m ago•0 comments

Robot startup Foundation CEO fires co-founder Mike LeBlanc over $4.6M loan

https://www.cnbc.com/2026/12/03/foundation-mike-leblanc-loan-dispute.html
1•taude•3m ago•1 comments

Animal Husbandry Machines of Loving Grace

https://www.jenn.site/animal-husbandry-machines-of-loving-grace/
1•surprisetalk•5m ago•0 comments

Langweilig

1•Langweilig•6m ago•1 comments

'Gulags in the sky': The crime against humanity the US isn't talking about

https://www.inquirer.com/opinion/us-ice-flight-colombia-deportees-inhumane-conditions-violence-20...
1•akkartik•7m ago•0 comments

Shiraz – Run Android apps natively without a VM or Android image

https://github.com/spectre-oss/shiraz
1•wicket•9m ago•1 comments

Corruption and the Fall of the American Empire

https://paulkrugman.substack.com/p/corruption-and-the-fall-of-the-american
2•docshock•9m ago•1 comments

Anthropic Builds Software in 2026

https://newsletter.pragmaticengineer.com/p/how-anthropic-builds-software-in
2•sogoh•10m ago•0 comments

Are Passkeys Quantum Safe?

https://www.corbado.com/blog/are-passkeys-quantum-safe
1•vdelitz•10m ago•0 comments

A New Chapter at Twitch

https://blog.twitch.tv/en/2026/12/03/a-new-chapter-at-twitch/
2•Garbage•11m ago•0 comments

Show HN: Serra – run your coding agents from Slack, Telegram, Discord or ClickUp

https://github.com/isacssw/serra
3•isacbuilds•14m ago•0 comments

Iroh, the NSA and PQC

https://www.iroh.computer/blog/iroh-the-nsa-and-pqc
1•renehsz•15m ago•0 comments

A US-China Net Assessment in AI Compute

https://techstatecraft.org/compute/
1•atlasunshrugged•16m ago•0 comments

Show HN: Unit Converter – keyboard and screen reader friendly

1•cataConst•17m ago•0 comments

Show HN: Claude Code hooks that stop agents from reading secret values

https://github.com/alittlenerdy/claude-code-safety-hooks
1•j1mmyhackett•17m ago•1 comments

We scanned 47 AI coding companies; 1 in 5 ships a retired AI model

https://www.qurren.com/reports/ai-companies-ship-retired-models
1•danlboross•19m ago•0 comments

Black-forest-labs/flung-8B language flow transformer

https://huggingface.co/black-forest-labs/flung-8b
2•trentor•20m ago•0 comments

Show HN: InstantTally – Fast iOS expense tracker (receipt/voice/photo)

https://instanttally.com/en/
1•shrektan•22m ago•0 comments

Tokens to root cause: AI agent costs on Grafana LGTM, ClickHouse and Parseable

https://www.parseable.com/blog/total-tokens-to-root-cause
2•pkb_98•23m ago•1 comments

Autonomous Testing with Time-Traveling Agents in a Chaotic Multiverse [video]

https://www.youtube.com/watch?v=SFs2oOh-TUE
1•surprisetalk•24m ago•0 comments

Preprints are surging: how will science deal with the deluge?

https://www.nature.com/articles/d41586-026-03881-8
4•bookofjoe•25m ago•1 comments

MojoSplat: 3D Gaussian Splatting, training and rendering, written in Mojo

https://github.com/bertaveira/mojosplat
1•torutofu•25m ago•0 comments

PostgreSQL Branching for Amazon Aurora

https://aws.amazon.com/about-aws/whats-new/2026/12/aurora-postgresql-branching-preview/
1•thisisauserid•28m ago•0 comments

El Niño warming spell is strongest ever recorded: UN

https://phys.org/news/2026-12-el-nio-strongest.html
2•dnetesn•29m ago•0 comments

Bohr on Biology: Niels Bohr wondered if life was beyond physics

https://blue-continuum.com/niels-bohr-wondered-if-life-was-beyond-physics
1•dnetesn•31m ago•0 comments

HPE Hybrid Cloud biz burns through quarterly AI budget in a month

https://www.theregister.com/ai-and-ml/2026/12/04/hpe-hybrid-cloud-biz-burns-through-quarterly-ai-...
1•beardyw•31m ago•0 comments

Show HN: I made a free directory to find the best X Articles by topic

https://directory.tweet-brain.com
1•imranshah10140•33m ago•0 comments

Fears over OpenAI missing revenue targets prompt tech sell-off

https://www.theguardian.com/technology/2026/dec/04/openai-missing-revenue-targets-tech-sell-off
4•jcolot•33m ago•0 comments
Open in hackernews

Show HN: Claude Code hooks that stop agents from reading secret values

https://github.com/alittlenerdy/claude-code-safety-hooks
1•j1mmyhackett•17m ago

Comments

j1mmyhackett•17m ago
I run several Claude Code agents with access to real projects. The failure I worried about most was an agent running `vercel env pull` or printing `.env.local` and putting every value into a transcript that persists.

Telling the agent "be careful with .env files" didn't hold. It worked around the instruction with grep, `python -c "open(...)"`, `find -exec cat` or a `while read` loop.

So these are four dependency-free Python hooks that enforce the rule at the tool-call boundary:

- secret-exposure-guard (PreToolUse): blocks commands and Read/Edit calls that would print a secret value, covering dotenv printers, copiers, matchers that print the matching line, git show/diff on a dotenv, credential files, secret-manager CLIs and the common evasions. 136 self-test cases: 80 must block, 51 must allow, 5 end-to-end. v1.1 also strips wrappers like `timeout 5` or `nice -n 10` before matching, after one slipped through on a real session.

- secret-guard (UserPromptSubmit): blocks a prompt that contains a pasted credential.

- chrome-secret-redact (PostToolUse on browser tools): rewrites browser-tool text output (known key prefixes, long hex, key-shaped tokens on API-key pages) before the model reads it. It can't redact a screenshot, so pair it with a rule never to screenshot key pages.

- needs-you-gate (Stop): when the agent ends a turn by handing work back to you, it makes the agent check once whether it could do the work itself. It blocks at most once per turn, so it can't loop.

Design rules: names are free, values are not, so every block message names a safe alternative (`vercel env ls`, `cut -d= -f1 .env.local`) and the self-test covers each one. Everything fails open, because a guard that breaks sessions gets deleted.

Known gaps, on purpose: `grep -r NAME .` across a tree that holds a dotenv looks exactly like a code search, so it stays open. Nothing can pull a value back out of a transcript once it's there. And an agent can type the override prefix itself, so this is a speed bump against accidents, not a sandbox.

MIT. I'd like to hear about workarounds it misses.