Back to browse
GitHub Repository

Wrap a command in a PTY and control it from the outside — read output, screenshot the screen, send input, attach/detach. Handy for scripts and AI coding agents.

3 starsRust

Babysit – let coding agents operate a TUI

by yusukeshibata·Jun 16, 2026·1 point·0 comments

AI Analysis

●●SolidBig BrainNiche Gem

PTY screenshots and expect patterns let agents operate TUIs without human help.

Strengths
  • Background worker owns PTY so terminals can attach and detach freely
  • Screenshot command renders TUI screens for agent vision
  • Expect/wait commands block until patterns appear
Weaknesses
  • Unix-only with no Windows support
  • Niche audience of developers building agent workflows
Target Audience

AI agent developers, automation engineers

Similar To

tmux · screen · pexpect

Post Description

I've been trying to automate my work recently, but I ofeten encounter the situation where agents needs human intervention to complete the task. So I made a simple command that wraps a TUI called babysit that has a terminal emulator inside using pty. Agents can start commands in background, and they can ask human by attaching the TUI on a new tmux pane when human intervention is needed, or they can operate the TUI with screenshot/send/expect/wait commands. So far, I really like using it, and I wanted to share it here.

https://github.com/yusukeshib/babysit

Similar Projects

Developer Tools●●Solid

Worktree-based TUI management for Agents

Internal team tool for juggling Claude Code and Codex across worktrees — dogfooded with 247 commits.

Solve My ProblemShip It
nwparker
21102mo ago