What is tuistory and when to use it
maintuistory is a tool designed for AI agents to run and interact with dev servers and terminal user interfaces (TUIs) in named background sessions. It acts as a reactive alternative to tmux, allowing agents to wait for specific terminal output instead of using blind sleep commands, making automation faster and more reliable.
Use tuistory to:
- Run background dev servers or long-lived processes.
- Control interactive CLIs and TUIs (typing, pressing keys, clicking, waiting, and taking snapshots).
- Write Playwright-style tests for terminal applications.
Core Interfaces:
- CLI (
tuistory): Used for managing background sessions. - JS/TS API (
launchTerminal): Used for programmatic control and automated testing.