frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Shex – Natural language CLI assistant that executes commands

https://github.com/YUHAI0/shex
1•Lmyuai•23h ago

Comments

Lmyuai•23h ago
I built Shex because I kept forgetting command syntax. Need to find files by content? Extract an archive? Check disk usage? I know what I want, but googling the exact flags gets old. What it does:

shex find all python files larger than 1MB shex show disk usage sorted by size shex compress the logs folder to tar.gz shex what processes are using port 3000

It sends your natural language request to an LLM, which generates and executes the appropriate shell command. The output streams in real-time. Key design decisions: Auto-retry on failure - If a command fails, Shex automatically tries alternative approaches (up to 3 retries by default). The LLM sees the error and adapts. Safety first - Dangerous commands (rm -rf, format, etc.) require explicit confirmation. The LLM flags these automatically. Multi-provider support - Works with DeepSeek, OpenAI, Claude, Gemini, Mistral, Groq, Qwen, and any OpenAI-compatible API. Bring your own key. PTY support on Unix - Proper pseudo-terminal handling means progress bars and interactive prompts work correctly. Install:

pip install shex

First run walks you through LLM configuration. Technical notes: 1. Uses OpenAI function calling / tool use pattern 2. Streams both LLM thinking and command output 3. Cross-platform (Windows, macOS, Linux) 4. ~400 lines of core code

Happy to answer questions. Source: https://github.com/YUHAI0/shex

Intricuit: A touchscreen add-on for Mac laptops

https://intricuit.com
1•nvahalik•2m ago•0 comments

Z.ai Goes Public

https://twitter.com/ZixuanLi/status/2009083001716560209
1•marizluan•5m ago•0 comments

The Universal Declaration of Human Rights, Annotated

https://aliveness.kunnas.com/articles/udhr-annotated
1•ekns•7m ago•0 comments

Open Infrastructure Map

https://openinframap.org
1•efskap•7m ago•1 comments

Show HN: IceRaidsNearMe – Real-time, crowdsourced map of immigration enforcement

https://iceraidsnearme.com/
2•todaycompanies•8m ago•0 comments

"I put AI in a security camera"

https://twitter.com/shiloh_wwe/status/2009058171332251862
1•jscottmiller•9m ago•0 comments

Why Trump Took over Venezuela and What Countries Are Next on the List [video]

https://www.youtube.com/watch?v=sau-MwjmHZk
1•keepamovin•9m ago•0 comments

Chase to become new issuer of Apple Card

https://www.jpmorganchase.com/ir/news/2026/chase-to-become-new-issuer-of-apple-card
1•vismit2000•9m ago•0 comments

A history of AI in two line paper summaries (part two)

https://xquant.substack.com/p/what-if-we-simply-a-history-of-ai-20c
1•nb_quant•11m ago•0 comments

The Resonant Computing Manifesto

https://resonantcomputing.org/
1•pabs3•12m ago•0 comments

Duck Punch an SDK until it quacks like an MCP Server

https://dwell-time.medium.com/duck-punch-an-sdk-until-it-quacks-like-an-mcp-server-a5cb3b834ce9
1•dandye•12m ago•1 comments

The Return of Gusto

https://apewoodx.substack.com/p/the-return-of-gusto
1•aratahikaru5•13m ago•0 comments

Jeffrey Sachs at UN Exposes US Regime Change in Venezuela [video]

https://www.youtube.com/watch?v=I110EFJLw4U
1•stopbulying•13m ago•2 comments

Varnish and Virtue

https://literaryreview.co.uk/varnish-virtue
1•prismatic•14m ago•0 comments

Show HN: Enriched HN, LLM-powered topic filtering for Hacker News

1•mjshashank•16m ago•0 comments

Vaultwarden – Unofficial Bitwarden compatible server, formerly bitwarden_rs

https://github.com/dani-garcia/vaultwarden
1•petethomas•19m ago•0 comments

Chase is taking over Apple's credit card

https://www.theverge.com/news/858170/apple-card-jpmorgan-chase-sachs
1•didip•20m ago•0 comments

SnappyJSON – JSON Viewer and Editor

https://snappyjson.farfarawaylabs.com
1•Brajeshwar•22m ago•0 comments

I got paid minimum wage to solve an impossible problem

https://tiespetersen.substack.com/p/i-got-paid-minimum-wage-to-solve
2•self•23m ago•0 comments

Claude Code 2.1.0 Released

https://github.com/anthropics/claude-code/blob/f34e2535b4fcf5fcc6cb0b566111c588b04873ee/CHANGELOG.md
3•kerim-ca•23m ago•0 comments

The AI Econ Seminar

https://cameron.stream/blog/econ-seminar/
1•forthwall•29m ago•0 comments

CSIS: What Just Happened in Venezuela? and What Comes Next?

https://www.youtube.com/watch?v=Fp24V1Ygn04
1•stopbulying•33m ago•1 comments

Greg and the Eternal Brunch – A Philosophy Fairy Story

https://lagomor.ph/2025/02/greg-the-eternal-brunch/
1•ChilledTonic•33m ago•0 comments

Show HN: Titan AI Explore – A curated hub for AI tools, tutorials, and projects

https://www.titanaiexplore.com/
1•chynnahe•34m ago•0 comments

Darwin-photos: Back up iCloud Photos without bloating your Mac

https://github.com/cleanexit0/darwin-photos
2•cleanexit0•36m ago•0 comments

Don't be fooled – everything has changed for the global economy

https://www.ft.com/content/9c8212b8-568f-4ea2-829a-9b7a13b93f1d
2•petethomas•42m ago•1 comments

Z-Image-Base renamed to "Z-Image-Omni-Base" – gen+edit model from Alibaba

https://old.reddit.com/r/ZImageAI/comments/1pm66e6/not_zimagebase_but_zimageomnibase/
1•nmr521521•43m ago•0 comments

Finding high signal people – applying PageRank to Twitter

https://thefourierproject.org/people
2•jfg0•46m ago•0 comments

Urban Surveillance

https://computer.rip/2025-12-26-Flock-and-Urban-Surveillance.html
4•firloop•46m ago•0 comments

Show HN: Cymatica.app

https://www.cymatica.app/
1•_august•49m ago•0 comments