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

推荐订阅源

博客园 - 叶小钗
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
N
Netflix TechBlog - Medium
博客园 - 聂微东
Y
Y Combinator Blog
罗磊的独立博客
博客园_首页
小众软件
小众软件
有赞技术团队
有赞技术团队
爱范儿
爱范儿
F
Fortinet All Blogs
C
Check Point Blog
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏

Show HN

Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code.
GitHub - yusukeshib/babysit: Wrap a command in a PTY and ...
yusukeshibat · 2026-06-16 · via 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