HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
mrsurge
framework-shells
Python2025–2025
mrsurge / framework-shells

framework-shells

Framework Shells: process orchestration + shells UI (FastAPI)

2Distinct people
2Mentions
0Explicit recommenders
10GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Framework Shells: process orchestration + shells UI (FastAPI)

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 12:54:37 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by 3-hour interval2 dated mentions

Observed mentions: 2025-12-18 06:19:32 UTC to 2025-12-21 22:07:30 UTC.

012025-12-18 06:00:00 UTC to 2025-12-18 09:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsDec 18, 06:002025-12-18 09:00:00 UTC to 2025-12-18 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-18 12:00:00 UTC to 2025-12-18 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-18 15:00:00 UTC to 2025-12-18 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-18 18:00:00 UTC to 2025-12-18 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-18 21:00:00 UTC to 2025-12-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-19 00:00:00 UTC to 2025-12-19 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-19 03:00:00 UTC to 2025-12-19 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-19 06:00:00 UTC to 2025-12-19 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-19 09:00:00 UTC to 2025-12-19 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-19 12:00:00 UTC to 2025-12-19 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-19 15:00:00 UTC to 2025-12-19 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-19 18:00:00 UTC to 2025-12-19 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-19 21:00:00 UTC to 2025-12-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-20 00:00:00 UTC to 2025-12-20 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsDec 20, 00:002025-12-20 03:00:00 UTC to 2025-12-20 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-20 06:00:00 UTC to 2025-12-20 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-20 09:00:00 UTC to 2025-12-20 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-20 12:00:00 UTC to 2025-12-20 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-20 15:00:00 UTC to 2025-12-20 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-20 18:00:00 UTC to 2025-12-20 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-20 21:00:00 UTC to 2025-12-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-21 00:00:00 UTC to 2025-12-21 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-21 03:00:00 UTC to 2025-12-21 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-21 06:00:00 UTC to 2025-12-21 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-21 09:00:00 UTC to 2025-12-21 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-21 12:00:00 UTC to 2025-12-21 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-21 15:00:00 UTC to 2025-12-21 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-21 18:00:00 UTC to 2025-12-21 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-12-21 21:00:00 UTC to 2025-12-22 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsDec 21, 21:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Dec 18, 06:002025-12-18 06:00:00 UTC2025-12-18 09:00:00 UTC110
Dec 18, 09:002025-12-18 09:00:00 UTC2025-12-18 12:00:00 UTC000
Dec 18, 12:002025-12-18 12:00:00 UTC2025-12-18 15:00:00 UTC000
Dec 18, 15:002025-12-18 15:00:00 UTC2025-12-18 18:00:00 UTC000
Dec 18, 18:002025-12-18 18:00:00 UTC2025-12-18 21:00:00 UTC000
Dec 18, 21:002025-12-18 21:00:00 UTC2025-12-19 00:00:00 UTC000
Dec 19, 00:002025-12-19 00:00:00 UTC2025-12-19 03:00:00 UTC000
Dec 19, 03:002025-12-19 03:00:00 UTC2025-12-19 06:00:00 UTC000
Dec 19, 06:002025-12-19 06:00:00 UTC2025-12-19 09:00:00 UTC000
Dec 19, 09:002025-12-19 09:00:00 UTC2025-12-19 12:00:00 UTC000
Dec 19, 12:002025-12-19 12:00:00 UTC2025-12-19 15:00:00 UTC000
Dec 19, 15:002025-12-19 15:00:00 UTC2025-12-19 18:00:00 UTC000
Dec 19, 18:002025-12-19 18:00:00 UTC2025-12-19 21:00:00 UTC000
Dec 19, 21:002025-12-19 21:00:00 UTC2025-12-20 00:00:00 UTC000
Dec 20, 00:002025-12-20 00:00:00 UTC2025-12-20 03:00:00 UTC000
Dec 20, 03:002025-12-20 03:00:00 UTC2025-12-20 06:00:00 UTC000
Dec 20, 06:002025-12-20 06:00:00 UTC2025-12-20 09:00:00 UTC000
Dec 20, 09:002025-12-20 09:00:00 UTC2025-12-20 12:00:00 UTC000
Dec 20, 12:002025-12-20 12:00:00 UTC2025-12-20 15:00:00 UTC000
Dec 20, 15:002025-12-20 15:00:00 UTC2025-12-20 18:00:00 UTC000
Dec 20, 18:002025-12-20 18:00:00 UTC2025-12-20 21:00:00 UTC000
Dec 20, 21:002025-12-20 21:00:00 UTC2025-12-21 00:00:00 UTC000
Dec 21, 00:002025-12-21 00:00:00 UTC2025-12-21 03:00:00 UTC000
Dec 21, 03:002025-12-21 03:00:00 UTC2025-12-21 06:00:00 UTC000
Dec 21, 06:002025-12-21 06:00:00 UTC2025-12-21 09:00:00 UTC000
Dec 21, 09:002025-12-21 09:00:00 UTC2025-12-21 12:00:00 UTC000
Dec 21, 12:002025-12-21 12:00:00 UTC2025-12-21 15:00:00 UTC000
Dec 21, 15:002025-12-21 15:00:00 UTC2025-12-21 18:00:00 UTC000
Dec 21, 18:002025-12-21 18:00:00 UTC2025-12-21 21:00:00 UTC000
Dec 21, 21:002025-12-21 21:00:00 UTC2025-12-22 00:00:00 UTC101

What Hacker News says

2 sources
mrsurge·Dec 18, 2025Submission

FWS – pip-installable embedded process supervisor with PTY/pipe/dtach back ends

I’m releasing *Framework Shells* (`fws`): a standalone Python package for orchestrating long-running background processes (“shells”) with *PTY*, *pipes*, and *dtach* backends. This is meant for environments where you don’t want to stand up a full supervisor stack (or don’t have one): quick multi-service prototypes, dev environments, constrained userlands, etc. ### What it does * Spawn/manage shells with: * **PTY**: interactive terminal sessions (resize, input, stream) * **Pipes**: stdin/stdout/stderr streams (good for daemons/LSPs) * **dtach**: persistent sessions you can attach/detach to (survives manager restarts) * *Runtime isolation* (the big feature): shells are namespaced by `~/.cache/framework_shells/runtimes/<repo_fingerprint>/<runtime_id>/...` so two clones of the same repo can run concurrently without cross-adoption or
Read the rest
cross-control. * *Control surfaces*: CLI + optional FastAPI/WS UI for listing, logs, and lifecycle actions. * Optional *hooks* for host integration (external registries/telemetry). ### CLI quickstart ```bash # list shells fws list # run a one-off shell (no spec) fws run --backend pty --label demo -- bash -l -i # apply a YAML shellspec (recommended) fws up shells.yaml # terminate shells fws down # attach to a dtach-backed shell fws attach <shell_id> # show managed shells + procfs descendants fws tree --depth 4 ``` ### Shellspec example ```yaml version: "1" shells: worker: backend: proc cwd: ${ctx:PROJECT_ROOT} subgroups: ["worker", "project:${ctx:APP_ID}"] command: ["python", "-m", "your_module.worker", "--port", "${free_port}"] ``` ### Isolation + security model (simple by default) * `FRAMEWORK_SHELLS_SECRET` derives the `runtime_id` (namespace) and API tokens. * If the secret is set, mutating API endpoints require: * `Authorization: Bearer <token>` (or `X-Framework-Key`). * If the secret is unset, auth is disabled (dev mode). Hard limit: if two runtimes share the same OS user/UID, the OS may still allow signaling each other’s processes. The guarantee is: no cross-count/adopt/control *through the library’s control plane*. ### Real-world usage I use this as the substrate of a full dev environment where “apps are shells” (terminals, IDE + LSP, agent/MCP, aria2 RPC, file explorer, llama.cpp runner, etc.). Repo: ```text https://github.com/mrsurge/termux-extensions-2 ``` ### Feedback I want * Does the secret/fingerprint/runtime isolation contract feel right? * Any obvious foot-guns in the default API/CLI? * Expectations vs systemd/supervisord/tmux/dtach: where would you use this? github.com/mrsurge/framework-shells pip install "framework-shells @ git+https://github.com/mrsurge/framework-shells@main" ```bash fws --help ```
16 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.