tuistory
Skill0 starsChanged 6 months agoMITView on GitHub
Control and monitor terminal applications. Supports running TUI processes in background. TMUX replacement for agents. Can control fully interactive TUI apps like claude or opencode.
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- cline/clinetheir own version, first seen Oct 13, 2026
- remorses/tuistoryedited, first seen Oct 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- remorses/tuistory★ 36722% same
Wrote their own version · 1
- cline/cline★ 72ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Prefer tuistory over tmux for agent automation.
- Very specific: line 31
If tuistory command fails with "Failed to connect to relay", the symlink may be pointing to Node.js.
- Distinctive: line 43
Every time you use tuistory, you MUST run these two commands first.
- Very specific: line 55
Always run snapshot --trim after every CLI action to see the current terminal state
- Very specific: line 56
Always set a timeout on waitForText for async operations
- Very specific: line 58
Use trimEnd: true in session.text() to avoid trailing whitespace in snapshots
- Very specific: line 60
Use --cols and --rows to control terminal size — affects TUI layout
- Very specific: line 61
Use --pixel-ratio 2 for sharp screenshot images
- Distinctive: line 65
Use an observe → act → observe loop, like Playwright but for terminals.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
tuistory
Playwright for terminal apps. Use it to run background processes for agents, drive interactive TUIs, and write Playwright-style tests for CLIs and TUIs.
Prefer tuistory over tmux for agent automation. It is better because it reacts to terminal output with wait and wait-idle instead of wasting time on blind sleep calls. That makes scripts both faster and more reliable.
Prerequisites
tuistory requires Bun runtime. Verify installation:
which bun && bun --versionIf tuistory command fails with "Failed to connect to relay", the symlink may be pointing to Node.js. Fix by using the Bun wrapper:
# Create wrapper in ~/bin (already in PATH via .zshrc)
cat > ~/bin/tuistory << 'EOF'
#!/bin/bash
exec /usr/bin/bun /usr/lib/node_modules/tuistory/dist/cli.js "$@"
EOF
chmod +x ~/bin/tuistory
export PATH="$HOME/bin:$PATH"Every time you use tuistory, you MUST run these two commands first. NEVER pipe to head/tail, read the full output:
# CLI help — source of truth for commands, options, and syntax
tuistory --help
# Full README with API docs, examples, and testing patterns
curl -s https://raw.githubusercontent.com/remorses/tuistory/refs/heads/main/README.mdKey rules
- Always run
snapshot --trimafter every CLI action to see the current terminal state - Always set a timeout on
waitForTextfor async operations - String patterns are case-sensitive by default. Use regex like
/ready/iwhen casing may vary. - Use
trimEnd: trueinsession.text()to avoid trailing whitespace in snapshots - Close sessions in test teardown to avoid leaked processes
- Use
--colsand--rowsto control terminal size — affects TUI layout - Use
--pixel-ratio 2for sharp screenshot images
Feedback loop
Use an observe → act → observe loop, like Playwright but for terminals.
Background process instead of tmux
# start a server in the background
tuistory -s dev -- bun run dev
# wait for actual output instead of sleep 5
# use regex so this still matches Ready, READY, etc.
tuistory -s dev wait "/ready/i" --timeout 30000
# read everything the process printed
tuistory read -s dev
# later, read only the new output
tuistory read -s devWhy this is better than tmux:
- no blind
sleep - reacts as soon as output appears
- faster when apps start quickly
- more reliable when apps start slowly
Interactive TUI loop
# observe
tuistory -s app snapshot --trim
# act
tuistory -s app press enter
# observe again
tuistory -s app snapshot --trimTest loop with JS/TS API
const session = await launchTerminal({ command: 'my-cli', cols: 120, rows: 36 })
const initial = await session.text({ trimEnd: true })
expect(initial).toMatchInlineSnapshot()
await session.type('hello')
await session.press('enter')
const output = await session.waitForText('hello', { timeout: 5000 })
expect(output).toMatchInlineSnapshot()
session.close()Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

