frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I solved Claude Code's prompt injection problem, saved tokens doing it

https://github.com/timstarkk/mcp-safe-fetch
1•timstark•1h ago
I built a drop-in MCP server that sanitizes web content before it reaches your LLM — stripping prompt injection vectors deterministically, no LLM call needed. Along the way I found it also cuts token usage by ~90%.

Hidden HTML elements, zero-width characters, base64 payloads, fake LLM delimiters (<|im_start|>, [INST], <<SYS>>) — WebFetch passes all of it straight through. mcp-safe-fetch strips it in 8 stages on raw HTML and the resulting markdown.

Tested against PayloadsAllTheThings: caught 3 hidden elements and 4 LLM delimiter patterns WebFetch missed. Side effect I didn't expect — ~90% average token reduction across 4 test sites. Live test: same article, same task, 24,700 tokens vs 575.

Doesn't catch semantic injection (malicious instructions in visible text). That requires model judgment.

npx -y mcp-safe-fetch init — sets up Claude Code in one command. Works with any MCP client.

Comments

antimaterial•13m ago
Nice work on this. The token reduction side effect alone makes it worth dropping in.

I'm sure you are already thinking about other attack vectors, web fetch is one way injection gets in but agents have a lot more surfaces. User input, tool responses, memory, other agents in a chain.

I've been poking at handling this sanitization at the api call level and filtering everything. Definitely more latency w this approach, but essentially denying all.

Show HN: A WASM to Go Translator

https://github.com/ncruces/wasm2go
1•ncruces•1m ago•0 comments

Federal Funding of Public Key Cryptography (Martin Hellman)

https://cacm.acm.org/federal-funding-of-academic-research/federal-funding-of-public-key-cryptogra...
1•bikenaga•1m ago•0 comments

Sliced by Go's Slices

https://ohadravid.github.io/posts/2026-02-go-sliced/
1•todsacerdoti•1m ago•0 comments

The Tax Nerd Who Bet His Life Savings Against DOGE

https://www.wsj.com/finance/investing/the-tax-nerd-who-bet-his-life-savings-against-doge-6b59eda2
1•pavel_lishin•2m ago•0 comments

Show HN: Ansible TUI – a zero-dependency terminal UI for running playbooks

https://github.com/congzhangzh/ansible-tui
1•congzhangzh•2m ago•0 comments

Building front end UIs with Codex and Figma

https://developers.openai.com/blog/building-frontend-uis-with-codex-and-figma/
1•davidbarker•2m ago•0 comments

Show HN: A Write Barrier That Blocks Structural Collapse in LLM Reasoning

https://github.com/PersistentVlad/persistent-reasoning-architecture/tree/main/appendix/A2_hierogl...
1•persistentVlad•5m ago•1 comments

DMS-100.net: The SL-100 Story

http://www.dms-100.net/telephony/nortel/dms-100/story/
1•john_strinlai•8m ago•0 comments

Show HN: Talkatui – WWE style live commentary for your AI coding sessions

https://github.com/vignesh07/talkatui
1•eigen-vector•9m ago•0 comments

Interview with Øyvind Kolås, GIMP developer

https://www.gimp.org/news/2026/02/22/%C3%B8yvind-kol%C3%A5s-interview-ww2017/
2•ibobev•9m ago•0 comments

Ask HN: Is LLM training infra still broken enough to build a company around?

2•harsh020•9m ago•1 comments

New York sues Valve for enabling "illegal gambling" with loot boxes

https://arstechnica.com/gaming/2026/02/new-york-sues-valve-for-enabling-illegal-gambling-with-loo...
2•strongpigeon•10m ago•0 comments

Hyperbolic Versions of Latest Posts

https://www.johndcook.com/blog/2026/02/25/hyperbolic-versions-of-latest-posts/
1•ibobev•10m ago•0 comments

Anthropic acquires Vercept to advance Claude's computer use capabilities

https://www.anthropic.com/news/acquires-vercept
2•tzury•11m ago•0 comments

Danske Bank adjusts the organisation with role redundancies

https://danskebank.com/news-and-insights/news-archive/press-releases/2026/pr26022026
1•janisz•12m ago•0 comments

How AI skills are quietly automating my workday

https://medium.com/@ricardskrizanovskis/how-ai-skills-are-quietly-automating-my-workday-220a1b7b4707
4•rkrizanovskis•13m ago•1 comments

DeepSeek withholds latest AI model V4 from US chipmakers including Nvidia

https://www.business-standard.com/technology/tech-news/deepseek-withholds-latest-ai-model-v4-from...
2•iamnothere•18m ago•0 comments

Exercise-induced activation of steroidogenic factor-1 neurons improves endurance

https://www.cell.com/neuron/fulltext/S0896-6273(25)00989-4
2•PaulHoule•20m ago•0 comments

The Linux Memory Manager

https://nostarch.com/linux-memory-manager
5•teleforce•21m ago•0 comments

Fueling Open Source with Vibes and Money

https://openpath.quest/2026/fueling-open-source-with-vibes-and-money/
4•whit537•22m ago•0 comments

How to Build Your Own Quantum Computer

https://physics.aps.org/articles/v19/24
2•bikenaga•22m ago•0 comments

Show HN: Open Graph Tag Checker

https://smmall.cloud/tools/open-graph-checker
1•a_band•22m ago•0 comments

Cryptography Engineering Has an Intrinsic Duty of Care

https://soatok.blog/2026/02/25/cryptography-engineering-has-an-intrinsic-duty-of-care/
6•some_furry•22m ago•0 comments

Nano Banana 2

https://nanobanana2-ai.io/
2•sinpor1•23m ago•0 comments

Ask HN: Designing TTL for a B-tree KV store – feedback on dual-index approach

https://github.com/hash-anu/snkv/discussions/41
3•swaminarayan•23m ago•1 comments

You're shipping faster than ever. Are you building the right thing?

https://www.clairytee.com/faster-wrong
2•StnAlex•24m ago•0 comments

The Limits of Legal Control in Technical Systems

https://leastauthority.com/blog/the-limits-of-legal-control-in-technical-systems/
1•iamnothere•24m ago•0 comments

Announcing new Cloud PC devices designed for Windows 365

https://blogs.windows.com/windowsexperience/2026/02/26/announcing-new-cloud-pc-devices-designed-f...
1•el_duderino•24m ago•0 comments

The Pentagon Feuding with an AI Company Is a Bad Sign

https://foreignpolicy.com/2026/02/25/anthropic-pentagon-feud-ai/
6•Jimmc414•25m ago•1 comments

AI buying agents concentrate demand on 2-3 products and ignore the rest

https://arxiv.org/abs/2508.02630
1•dmpyatyi•26m ago•1 comments