惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
Vercel News
Vercel News
Recent Announcements
Recent Announcements
博客园 - Franky
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
宝玉的分享
宝玉的分享
I
InfoQ
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
V
V2EX
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
T
The Blog of Author Tim Ferriss
量子位

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - yusukeshib/babysit: Wrap a command in a PTY and ...
yusukeshibat · 2026-06-16 · via Hacker News: Show HN

crates.io license

Wrap a command in a PTY and control it from another terminal. The command runs in the background under a worker that owns the PTY and records its output. From anywhere you can read the output, screenshot the screen, send input, wait for exit, or attach interactively.

Useful for scripts and coding agents that need to drive a command they didn't start.

babysit demo

$ babysit run -d --json -- make local-ci   # {"id":"ab12"}
$ babysit log -s ab12 --tail 20
$ babysit screenshot -s ab12
$ babysit wait -s ab12

babysit -- make local-ci is the interactive shorthand. For scripting, use run -d --json and capture the id.

How it works

The command runs under a background worker that owns the PTY, logs all output, and serves a Unix control socket. Your terminal is just attached to it, so you can detach, re-attach, and query from other terminals.

State lives in ~/.babysit/sessions/<id>/. Set $BABYSIT_DIR (absolute path) to change the root. status, log, and screenshot work after the worker exits; send, key, restart, and kill need it alive.

-s <id> selects a session; there is no "most recent" fallback. Inside the wrapped command the id is exported as $BABYSIT_SESSION_ID.

Install

Pick one.

From crates.io:

With Nix flakes:

nix profile install github:yusukeshib/babysit

Prebuilt binary via the install script:

curl -fsSL https://raw.githubusercontent.com/yusukeshib/babysit/main/install.sh | sh

The install script drops a prebuilt binary in ~/.local/bin (override with BABYSIT_INSTALL_DIR, pin with BABYSIT_VERSION). babysit upgrade self-updates cargo/binary installs; Nix installs are managed by Nix.

Run without installing: nix run github:yusukeshib/babysit -- -- make local-ci.

Subcommands

Command Description
run Wrap a command in a PTY (babysit -- <cmd> shorthand; -d detached; --json prints the id)
list (ls) List sessions
status Session state and exit code
log Show output; --tail, --grep, --follow, --since
screenshot (shot) Render the current screen; --format plain|ansi|json, --trim
send Send text to stdin (-n no newline; --json)
key Send named keys (Enter, Up, Esc, C-c, F1, …)
expect Block until a regex appears (--screen matches the rendered TUI)
wait-idle Block until output is quiet for --settle
wait Block until exit, return the exit code
resize Resize the terminal (COLSxROWS)
flag / unflag Flag a session for attention / clear it
restart Restart the command
kill Terminate the command
attach / detach Attach your terminal (detach: Ctrl-\ Ctrl-\) / detach others
prune Delete finished or dead sessions
upgrade Self-update
config Shell completions: eval "$(babysit config zsh|bash)"

Each command documents its own flags and gotchas: babysit help <command>. babysit --help covers the model and the typical agent loop.

Build from source

cargo build --release   # target/release/babysit