frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fence – Sandbox CLI commands with network/filesystem restrictions

https://github.com/Use-Tusk/fence
5•jy-tan•1h ago
Hi HN!

Fence wraps any command in a sandbox that blocks network by default and restricts filesystem writes. Useful for running semi-trusted code (package installs, build scripts, unfamiliar repos) with controlled side effects, or even just blocking tools that phone home.

> fence curl https://example.com # -> blocked

> fence -t code -- npm install # -> template with registries allowed

> fence -m -- npm install # -> monitor mode: see what gets blocked

One use-case is to use it with AI coding agents to reduce the risk of running agents with fewer interactive permission prompts:

> fence -t code -- claude --dangerously-skip-permissions

You can import existing Claude Code permissions with `fence import --claude`.

Fence uses OS-native sandboxing (macOS sandbox-exec, Linux bubblewrap) + local HTTP/SOCKS proxies for domain filtering.

Why I built this: I work on Tusk Drift, a system to record and replay real traffic as API tests (https://github.com/Use-Tusk/tusk-drift-cli). I needed a way to sandbox the service under test during replays to block localhost outbound connections (Postgres, Redis) and force the app to use mocks instead of real services. I quickly realized that this could be a general purpose tool that would also be useful as a permission manager across CLI agents.

Limitations: Not strong containment against malware. Proxy-based filtering requires programs to respect `HTTP_PROXY`.

Curious if others have run into similar needs, and happy to answer any questions!

Comments

Marceltan•1h ago
Nice, this was helpful for us internally. Good call on allowing importing of existing .claude/settings.json, makes my life easier on personal projects.

The Art of Persuasion in Cartography: Why Design Makes Maps Powerful

https://www.esri.com/about/newsroom/arcnews/the-art-of-persuasion-in-cartography-why-design-makes...
1•bryanrasmussen•32s ago•0 comments

Desmos Graph Calculator animation [video]

https://www.youtube.com/watch?v=LdGZ5eU-auM
1•CrankyBear•1m ago•0 comments

Netflix is rolling out a live voting feature

https://techcrunch.com/2026/01/20/netflix-is-rolling-out-a-live-voting-feature/
1•andsoitis•1m ago•0 comments

Show HN: Sharpie – Self-hostable AI prompt playground

https://github.com/heyrtl/sharpie
1•ratulrahman•2m ago•0 comments

Show HN: Describe hardware, get a buildable prototype

https://modo.is/discover
1•Beefin•3m ago•0 comments

How to Make Your Vision Survive Translation

https://holenventures.substack.com/p/how-to-make-your-vision-survive-translation
1•hholen•3m ago•0 comments

Local Agent Safety Framework

https://medium.com/@michael_14449/local-agent-safety-framework-d93817f00ce5
1•Scramblejams•3m ago•0 comments

Static Pricing Theory

https://varietyiq.com/blog/pricing
1•efavdb•7m ago•0 comments

Visualizing Delaunay Triangulation

https://ianthehenry.com/posts/delaunay/
1•aebtebeten•8m ago•0 comments

Tech workers ask their bosses to pressure Trump over ICE crackdowns

https://www.washingtonpost.com/technology/2026/01/20/tech-ice-letter-protest/
5•reaperducer•9m ago•0 comments

Show HN: Stitch-MCP, a universal MCP server for Google Stitch

https://github.com/Kargatharaakash/stitch-mcp
1•k_aakash•9m ago•0 comments

Claude Code Browser Automation on Bazzite

https://www.schwab.sh/blog/claude-code-browser-bazzite/
1•bschwab•9m ago•0 comments

LLVM Adopts "Human in the Loop" Policy for AI/Tool-Assisted Contributions

https://www.phoronix.com/news/LLVM-Human-In-The-Loop
1•pella•10m ago•0 comments

Georges Bataille: The Solar Anus (1927)

https://theanarchistlibrary.org/library/georges-bataille-the-solar-anus
2•CGMthrowaway•10m ago•0 comments

Show HN: Phaze – A Remote Desktop for Workstations

https://phaze.app/
1•boxerbk•10m ago•0 comments

Brutalist Web Design

https://brutalist-web.design
1•FigurativeVoid•15m ago•2 comments

Quango – A C89 CLI pathfinding puzzle game

https://github.com/gsekulski/quango
1•gsekulski•16m ago•0 comments

Intro to Genomics for Engineers

https://learngenomics.dev/
1•azhenley•16m ago•0 comments

NBomber v6.2.0 Is Out

https://nbomber.com/blog/2026/01/20/nbomber-v6.2.0/
1•antyadev•16m ago•1 comments

What does it take to ship Rust in safety-critical?

https://blog.rust-lang.org/2026/01/14/what-does-it-take-to-ship-rust-in-safety-critical/
2•birdculture•19m ago•0 comments

Created a Free Resume Builder

https://reachresume.com
2•nithinraphael96•19m ago•0 comments

OpenAI is rolling out age prediction

https://openai.com/index/our-approach-to-age-prediction/
11•pretext•19m ago•5 comments

The secret medieval tunnels that we still don't understand

https://weirdmedievalguys.substack.com/p/the-secret-medieval-tunnels-that
3•coloneltcb•21m ago•0 comments

Where I'm at with AI

https://paulosman.me/2026/01/18/where-im-at-with-ai/
1•todsacerdoti•22m ago•0 comments

The origami wheel that could explore lunar caves

https://techxplore.com/news/2025-12-origami-wheel-explore-lunar-caves.html
1•PaulHoule•23m ago•0 comments

Show HN: Sast+LLM Security Scanner that filters false positives and fixes issues

https://github.com/9M6/vulnsink
1•nullchan•23m ago•0 comments

With democracy in free fall, the media must (finally) wake up

https://margaretsullivan.substack.com/p/with-democracy-in-free-fall-the-media
3•treadump•23m ago•0 comments

Trump administration concedes DOGE team may have misused Social Security data

https://www.politico.com/news/2026/01/20/trump-musk-doge-social-security-00737245
15•mdhb•23m ago•4 comments

Things I Learned at the Claude Code NYC Meetup

https://benr.build/blog/claude-code-nyc-meetup
2•bisonbear•24m ago•0 comments

Intrinsically stretchable 2D MoS2 transistors

https://www.nature.com/articles/s41467-026-68504-2
1•bookofjoe•24m ago•0 comments