frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Interlock, an open shell command safety classifier

https://gauss.motor.dev/motor/interlock
7•ncd•4h ago
Hey all, we built this shell command classifier for our internal experimentation with custom harnesses and local LLMs, but I thought others might be able to get some use from it as well. The `interlock` binary clocks in at ~22 MiB, and runs checks in ~8-16 ms on my M2 Ultra cheese grater tower.

In "auto" mode, the big players all ask a black box classifier model if commands being run by the agent should be allowed. It's super handy to have this capability for local work as well, and I also used building it as an excuse to get some experience training a small (but effective) encoder model on a domain with a limited vocabulary, and have the whole shebang run by Neon with my guidance (it's a great model, but can still spin out in strange ways).

The first version was trained from scratch using a corpus generated by Neon with a "shell simulation environment" I asked for inspired by fuzzing techniques. It worked well on the held-out set from the corpus, but then didn't generalize well to similar but different commands it hadn't ever seen.

The second version used https://huggingface.co/jhu-clsp/ettin-encoder-17m as a base, and then ran the generated corpus as a fine-tuning pass, which got much better results (and added some awareness of non-shell code which helps spots dangerous things in executed Python or JS scripts).

All of the pipeline for generating data, training, and fine-tuning is included in the repo.

It tries to be clever about doing things like expanding variables, taking ambient shell context into account, looking into scripts that are being executed, seeing if something is obfuscated using things like base64, etc. It also supports a large group of shell syntaxes (parses and converts them to a common IR before processing further).

However (and hopefully this is somewhat obvious), there's only so much a tool like this can do to detect unsafe behavior (what if the script being executed downloads new code to execute?) so be safe and run your stuff in a sandbox (there are a million providers out there at this point) when unsure about safety.

Have fun!

Comments

tyre•4h ago
Very cool!

It’s great to see real technical implementations like this tiny embedded model. I feel like the norm these days is, “here’s how I built a text classifier with a local 27B model at the Pareto Frontier of CLI safety.”

Show HN: Pryzmera – Fast PDF viewer, over 1200x faster rendering than Acrobat

https://pryzmera.com/
34•RedMindZ•4h ago•12 comments

Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC

https://praveenperera.com/blog/tla-model-checking-4600x-faster-on-a-gpu/
65•praveenperera•4h ago•6 comments

Show HN: Cubicle – A pixel-art office where AI agents work on your repo

https://github.com/JustVugg/cubicle
2•vforno•3m ago•0 comments

Show HN: Scene.p10node – A handbook of camera angles, shots and film technique

https://scene.p10node.org/en
2•pierreneter•36m ago•0 comments

Show HN: Learn Japanese kanji by understanding their parts

https://p.migdal.pl/kanly/
177•stared•3d ago•75 comments

Show HN: Claude Airlock, or how to spy on a sandboxed Claude Code

https://github.com/smallwat3r/claude-airlock
3•smallwat3r•1h ago•0 comments

Show HN: PiPiTi. Pi coding agent in your PowerPoint task-pane

https://codefloe.com/yeikoff/pipiti
2•iglesiastj•1h ago•0 comments

Show HN: Code like a Viking (Hávamál programming language)

https://joisig.com/code-like-a-viking
51•joisig•9h ago•14 comments

Show HN: AdventForMe – an online advent calendar your friends fill

https://adventforme.com/
2•averycollins26•1h ago•0 comments

Show HN: Pump Up – Build agentic workflows to grow your startup

https://pumpup.com
9•pea•2h ago•5 comments

Show HN: Resident – another Local LLM app (that tries not to suck)

https://getresident.app
3•pamplemeese•2h ago•0 comments

Show HN: Try Windows Apps in the Browser

https://developer.puter.com/labs/wine-web/
2•coolelectronics•2h ago•0 comments

Show HN: Gully Cricket

https://varun.ca/gully-cricket/
124•winkerVSbecks•2d ago•39 comments

Show HN: A GUI for polishing the text your coding agent writes

https://draftmux.raine.dev/
224•rane•1d ago•99 comments

Show HN: Warpgate 0.31 – open-source SSH/RDP/K8s bastion/PAM, now with GitOps

https://warpgate.null.page/
2•hardex•4h ago•0 comments

Show HN: Clerkbox – Drop a client's document pile, get a shareable vault

https://0xruangsak.github.io/financial-document-sorter/demo.html
2•astinashler•4h ago•0 comments

Show HN: Interlock, an open shell command safety classifier

https://gauss.motor.dev/motor/interlock
7•ncd•4h ago•1 comments

Show HN: NextPart – ordered pages for multi-part Reels, TikToks and Shorts

https://nextpart.arsalandev.studio
2•arsalanarshadde•4h ago•0 comments

Show HN: Hermoso – Open-source AI marketing platform (ads, posting, email, MCP)

https://github.com/hermoso-ai/hermoso
4•adonatello18•4h ago•1 comments

Show HN: Open-source governance gateway for MCP tool servers

https://github.com/controlisai/recall-mcp-gateway
3•kiranpichika•4h ago•0 comments

Show HN: Pam Native – Native Android and iOS Apps in Typed PHP, No WebView

https://github.com/push-in/pam-native
2•davidbalbino•5h ago•0 comments

Show HN: Dedistock – cheap dedicated servers you can order

https://dedistock.com/
2•velsoff•5h ago•1 comments

Show HN: ShellMind-Guard – Multi-file security and concurrency verifier in Rust

https://github.com/qira-dev/ShellMind-Guard
2•qiradev•5h ago•0 comments

Show HN: Rodeo – I reverse engineered closed CAD formats to build a browser CAD

https://rodeo.build/
2•callydev•6h ago•0 comments

Show HN: Platen Reader, a free and OSS EPUB Reader for iOS and Mac

https://shahidhussain.com/projects/platen-reader/
2•shahidhussain•6h ago•1 comments

Show HN: Device, a free open-source DAW for Mac, Windows and Linux

https://devicedaw.github.io/
204•devicedaw•2d ago•96 comments

Show HN: Modern Desktop/WASM Weaving Software

https://www.weftover.com/
2•scronkfinkle•6h ago•0 comments

Show HN: CCToolify – Dev cache cleaner, port finder and app firewall for Mac

https://cctoolify.com
2•kythanh•6h ago•0 comments

Show HN: Keyfern – Flat-rate licensing API with Ed25519 offline leases

https://keyfern.com/
2•keyfern•6h ago•0 comments

Show HN: A 3D shower shelf in Three.js without Blender or heavy HDRIs

https://showerthoughts.dev/writing/3d-shower-shelf-threejs/
2•sbryers•6h ago•0 comments