frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: SelenAI – Terminal AI pair-programmer with sandboxed Lua tools

https://github.com/Almclean/selenai
1•moridin•1h ago
I’ve been building a terminal-first AI pair-programmer that tries to make every tool call transparent and auditable. It’s a Rust app with a Ratatui UI split into three panes (chat, tool activity, input). The agent loop streams LLM output, queues write-capable Lua scripts for manual approval, and records every run as JSONL logs under .selenai/logs.

Key bits:

Single tool, real guardrails – the LLM only gets a sandboxed Lua VM with explicit helpers (rust.read_file, rust.list_dir, rust.http_request, gated rust.write_file, etc.). Writes stay disabled unless you opt in and then approve each script via /tool run.

Transparent workflow – the chat pane shows the conversation, tool pane shows every invocation + result, and streaming keeps everything responsive. CTRL shortcuts for scrolling, clearing logs, copy mode, etc., so it feels like a normal TUI app.

Pluggable LLMs – there’s a stub client for offline hacking and an OpenAI streaming client behind a trait. Adding more providers should just be another module under src/llm/.

Session history – every exit writes a timestamped log directory with full transcript, tool log, and metadata about whether Lua writes were allowed. Makes demoing, debugging, and sharing repros way easier.

Lua ergonomics – plain io.* APIs and a tiny require("rust") module, so the model can write idiomatic scripts without shelling out. There’s even a /lua command if you want to run a snippet manually.

Repo (MIT): https://github.com/Almclean/selenai

Would love feedback on:

Other providers or local models you’d like to see behind the LLM trait. Additional sandbox helpers that feel safe but unlock useful workflows. Ideas for replaying those saved sessions (web viewer? CLI diff?). If you try it, cargo run, type, and you’ll see the ASCII banner + chat panes. Hit me with issues or PRs—there’s a CONTRIBUTING.md in the works and plenty of roadmap items (log viewer, theming, Lua helper packs) if you’re interested.

ML Systems Textbook by Havard

https://www.mlsysbook.ai/
1•vinhnx•3m ago•0 comments

What is special about MCP?

https://jessitron.com/2025/11/09/what-is-special-about-mcp/
1•vinhnx•7m ago•0 comments

Discover Amazing Open-Source Projects

https://www.opensourceprojects.dev/
1•salkahfi•10m ago•0 comments

Finding a CPU Design Bug in the Xbox 360

https://randomascii.wordpress.com/2018/01/07/finding-a-cpu-design-bug-in-the-xbox-360/
1•ibobev•13m ago•1 comments

The world’s carbon emissions continue to rise. But 35 countries show progress

https://theconversation.com/the-worlds-carbon-emissions-continue-to-rise-but-35-countries-show-pr...
1•geox•18m ago•0 comments

A dream EEG and mentation database (the largest dream database yet)

https://www.nature.com/articles/s41467-025-61945-1
1•DrierCycle•26m ago•0 comments

C3 vs. C: A cleaner C for 2025? [video]

https://www.youtube.com/watch?v=yJClpzNxs3s
1•lerno•31m ago•0 comments

IDEmacs: A Visual Studio Code clone for Emacs

https://codeberg.org/IDEmacs/IDEmacs
27•nogajun•31m ago•1 comments

Switzerland's VPN surveillance law could force logging (ProtonVPN exiting)

https://dovpn.com/swiss-vpn-surveillance-protonvpn-privadovpn/
2•keltiek•34m ago•1 comments

Solving a Million-Step LLM Task with Zero Errors

https://arxiv.org/abs/2511.09030
2•meander_water•34m ago•0 comments

Sega Master System Part 2: Mode 4 on the Mark III

https://bumbershootsoft.wordpress.com/2025/11/15/sega-master-system-part-2-mode-4-on-the-mark-iii/
2•ibobev•36m ago•0 comments

Garibaldi, History's Sexiest Revolutionary?

https://www.historyextra.com/period/victorian/historys-sexiest-revolutionary-meet-the-mesmerising...
1•thomassmith65•48m ago•1 comments

How can DOGE fix federal IT? Lock out vendor lock-in

https://federalnewsnetwork.com/commentary/2025/04/how-can-doge-fix-federal-it-lock-out-vendor-loc...
2•hhs•49m ago•0 comments

Russians confront wartime internet cuts with public shrug, private fury

https://www.washingtonpost.com/world/2025/11/15/russia-mobile-internet-cuts/
1•bookofjoe•50m ago•1 comments

Tech Capitalists Don't Care About Humans

https://jacobin.com/2025/11/musk-thiel-altman-ai-tescrealism/
18•tablets•1h ago•4 comments

The Numbers Rant

https://sniffnoy.dreamwidth.org/591165.html
1•andsoitis•1h ago•0 comments

Terranova is lifting land out of flood zones using terraforming robots

https://www.terranova.inc/
2•Olshansky•1h ago•0 comments

Start, Fresh – Redesigning the Windows Start Menu for You

https://microsoft.design/articles/start-fresh-redesigning-windows-start-menu/
1•akyuu•1h ago•0 comments

In Praise of Tinkering

https://brnt.sh/in-praise-of-tinkering/
2•andsoitis•1h ago•0 comments

The longest-running newspaper

https://www.historytoday.com/archive/months-past/longest-running-newspaper
1•hhs•1h ago•0 comments

Nested Taiji Holes

https://www.1a-insec.net/blog/97-nested-taiji/
1•andsoitis•1h ago•0 comments

Ehtml

https://e-html.org/
3•guseyn•1h ago•1 comments

I've Tested 50 Air Quality Monitors. These Are the Biggest Problems I Found

https://www.airgradient.com/blog/the-state-of-air-quality-monitoring/
3•ahaucnx•1h ago•0 comments

Show HN: PG Slot Notify, Monitor Postgres Slot Growth Directly from Slack

https://github.com/PeerDB-io/pgslot-notify-bot
1•saisrirampur•1h ago•0 comments

Referential Transparency

https://quamserena.com/2025-11-15/referential-transparency
1•quamserena•1h ago•0 comments

Apple’s board is preparing for Tim Cook to step down as early as next year

https://www.ft.com/content/0d424625-f4f8-4646-9f6e-927c8cbe0e3e
4•Wowfunhappy•1h ago•1 comments

Report: Tim Cook to Step Down as Apple CEO 'as Soon as Next Year'

https://www.macrumors.com/2025/11/15/report-tim-cook-to-step-down-as-soon-as-next-year/
1•akyuu•1h ago•1 comments

Solving Project Euler #45

https://loriculus.org/blog/euler-45/
3•wenderen•1h ago•0 comments

AirPods libreated from Apple's ecosystem

https://github.com/kavishdevar/librepods
28•moonleay•1h ago•3 comments

Show HN: SelenAI – Terminal AI pair-programmer with sandboxed Lua tools

https://github.com/Almclean/selenai
1•moridin•1h ago•0 comments