frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I built sbsh: Persistent terminal sessions with discovery, profiles, and an API

2•eminwux•2h ago
Needing a better way to share how to access Kubernetes and Terraform environments with my team, and to set clear prompts for each environment so that I completely avoid mistakes, I built sbsh.

sbsh provides persistent terminal sessions with built-in discovery, environment profiles, and an API for automation.

*The problem:*

- Complex configuration required to access multiple Kubernetes clusters and Terraform workspaces, including setting visual prompts to identify production environments and avoid mistakes

- Manual setup of environment variables and credentials for each environment

- No easy, shareable way to reproduce those configurations across a team

- Lack of structured logs or visibility into existing sessions

- SSH sessions that die in the middle of debugging or long tasks

*How it works:*

sbsh separates the terminal session (your shell and environment) from the supervisor (the controller). Terminals continue running even if the supervisor stops or the network connection drops.

*Key features:*

- Terminal session discovery: sb get lists all sessions, sb attach mysession reconnects instantly

- Profiles: YAML-defined environments for Kubernetes contexts, Terraform workspaces, or Docker containers, identical in local dev and CI/CD

- Multi-attach: Several users can connect to the same live session

- API access: Control and automate sessions programmatically

- Structured logs: All input and output are recorded for replay or analysis

*Use cases:*

- DevOps: Persistent kubectl or Terraform sessions

- Developers: Long-running tests and builds over unstable connections; launching Python environments, npm projects, and more

- CI/CD: Identical profiles in local and pipeline environments

sbsh is a single Go binary (busybox-style) that can also be used as a login shell. It runs on Linux, macOS, and FreeBSD.

Repository: github.com/eminwux/sbsh

I have been using it for some time now, and it completely changed how I manage infrastructure. I would love to hear feedback and see how others might use it.

Comments

eminwux•2h ago
One friend asked me how it differs from tmux or screen, so here are my thoughts.

sbsh does not multiplex a single terminal session like those tools. Instead, it runs a persistent supervisor that manages multiple terminal sessions (PTYs) as independent processes. Each session can continue running even if the supervisor exits, and you can attach to it later from any machine that has access.

The main motivation was having YAML-defined profiles that set up environment variables, prompts, and startup commands for kubectl, terraform, or any other tool. This makes it easy to share consistent environments across a team without relying on ad-hoc Bash scripts.

Patching 68K Software – SimpleText

https://tinkerdifferent.com/threads/patching-68k-software-simpletext.4793/
1•mmoogle•50s ago•0 comments

Trump Revives Billionaire Isaacman's Nomination to Top NASA Job

https://www.bloomberg.com/news/articles/2025-11-04/trump-revives-billionaire-isaacman-s-nominatio...
1•impish9208•2m ago•1 comments

Mr Tiff

https://inventingthefuture.ghost.io/mr-tiff/
1•speckx•3m ago•0 comments

I'm working on a project I've been dreaming about for months and it feels good

1•sebestindragos•4m ago•0 comments

Ask HN: Help me pass Cloudflare Turnstile on my phone?

2•Hackbraten•5m ago•1 comments

After Distraction/Error, Brain Waves Physically Circle Back to the Task

https://picower.mit.edu/news/after-distractions-rotating-brain-waves-may-help-thought-circle-back...
1•Marshferm•10m ago•0 comments

Show HN: ReadMyMRI DICOM native preprocessor with multi model consensus/ML pipes

https://github.com/BTMMatty/readmymri
1•daftpixie•12m ago•0 comments

Hetzner Servers Benchmark

https://softuts.com/hetzner-servers-benchmarks/
1•XCSme•15m ago•1 comments

YouTube Erased More Than 700 Videos Documenting Israeli Human Rights Violations

https://theintercept.com/2025/11/04/youtube-google-israel-palestine-human-rights-censorship/
9•cramsession•19m ago•0 comments

Show HN: Spotify Auto Skipper – automatically skips songs you've heard recently

https://github.com/Vatroslav/spotify-auto-skipper
1•VatroslavM•19m ago•0 comments

Sweden's most realtime public transit map

https://transitmap.io
2•sanufar•23m ago•0 comments

Day 1 of Light Speed Up: When transparency matters more than perfection

1•LightSpeedUp•23m ago•1 comments

Grayskull: A tiny computer vision library in C for embedded systems, etc.

https://github.com/zserge/grayskull
1•gurjeet•24m ago•0 comments

Tight Studio – an AI-native Screen Studio alternative at $5 per month

https://tight.studio/
1•hitchyhocker•29m ago•1 comments

Global Edge Database

https://sailwind.io
1•dnorlov•29m ago•1 comments

Big Nuclear's Big Mistake – Linear No-Threshold

https://www.youtube.com/watch?v=gzdLdNRaPKc
1•Hextinium•29m ago•0 comments

Adventureland Video Game

https://en.wikipedia.org/wiki/Adventureland_(video_game)
1•squirrel•30m ago•0 comments

Policy Incentives for Pharmaceutical Innovation [pdf]

https://o-zhao.github.io/files/Zhao_JMP_latest.pdf
1•salkahfi•30m ago•0 comments

Ask HN: What made you improve your logical reasoning?

1•Nurbek-F•32m ago•0 comments

Sequoia Names Alfred Lin and Pat Grady as New Co-Stewards

https://techcrunch.com/2025/11/04/sequoia-names-alfred-lin-and-pat-grady-as-new-co-stewards-as-ro...
1•kamikazeturtles•34m ago•0 comments

Sarah Mason, inventor of the continuity script, first script supervisor

https://wfpp.columbia.edu/pioneer/ccp-sarah-y-mason/
1•Marshferm•36m ago•1 comments

How to send an email using the Gmail platform

https://github.com/yigalirani/send_email
1•yigalirani•41m ago•1 comments

HDR10 Advanced joins Dolby Vision 2 in trying to make you like motion smoothing

https://arstechnica.com/gadgets/2025/11/hdr10-advanced-joins-dolby-vision-2-in-trying-to-make-you...
2•mfiguiere•42m ago•0 comments

Tyler Cowen – How I practice at what I do

https://marginalrevolution.com/marginalrevolution/2019/07/how-i-practice-at-what-i-do.html
2•suvan•44m ago•0 comments

The Paradox of a Principled Machine

https://artificiallyintelligentspace.substack.com/p/the-paradox-of-a-principled-machine
1•All_Things_AI•49m ago•0 comments

Fixing the ReactOS Test Suite

https://reactos.org/blogs/cbialorucki-tests-2/
4•restalis•52m ago•0 comments

What does OSWorld tell us about AI's ability to use computers?

https://epoch.ai/blog/what-does-osworld-tell-us-about-ais-ability-to-use-computers
1•cjbarber•52m ago•0 comments

China reaches energy independence milestone by 'breeding' uranium from thorium

https://www.scmp.com/news/china/science/article/3331312/china-reaches-energy-independence-milesto...
4•mpweiher•53m ago•0 comments

The Curious Case of the Disappearing Captcha

https://www.wired.com/story/bizarre-disappearing-captcha/
1•bookofjoe•53m ago•1 comments

White House deal to cut obesity drug prices, gain Medicare access

https://www.reuters.com/business/healthcare-pharmaceuticals/lilly-novo-nordisk-near-white-house-d...
1•geox•56m ago•0 comments