Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By microsoft Verified OrgMITIn 1 marketplace
Lets Claude drive and test full-screen terminal apps and shells, checking on-screen text and styles after each keypress and mouse action. Tapes can run shell commands and are not sandboxed, so it warns to run only trusted ones.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
tui-test controls, inspects, tests, and records real shell sessions and full-screen terminal apps on Windows, Linux, and macOS. Use it from the CLI or call the same engine from Rust, Python, JavaScript, or Go. It works for AI agents that need structured access to terminal state, terminal automation, and terminal ui application testing.
Installation · Quick start · AI agents · API references · Configuration
brew tap microsoft/tui-test https://github.com/microsoft/tui-test
brew install tui-test
macOS and Linux:
curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/microsoft/tui-test/main/install/install.sh | sh
Windows:
irm https://raw.githubusercontent.com/microsoft/tui-test/main/install/install.ps1 | iex
You can also download a binary from GitHub Releases.
| Language | Install | Reference |
|---|---|---|
| Rust 1.90+ | cargo add [email protected] | docs.rs |
| Python 3.8+ | pip install tui-test | Python API |
| Node 20+ | npm install @microsoft/tui-test | JavaScript API |
| Go 1.26+ | go get github.com/microsoft/tui-test/bindings/[email protected] | Go API |
Add the Rust recording-raster feature for APNG, GIF, and MP4 output. It uses installed fonts; recording-font-jetbrains-mono* bundles a font.
Go, Python, and JavaScript use one native adapter crate.
All three use its generated C ABI declarations through purego, ctypes, and Koffi, respectively.
Set TUI_TEST_NATIVE_LIBRARY to select a matching library explicitly.
The CLI and libraries expose the same terminal actions. Python, JavaScript, Rust, and Go sessions run in-process and do not require the CLI. Released Go modules include the native engine; see Go installation for supported platforms and Linux runtime requirements.
tui-test run my-app
tui-test expect text "Ready"
tui-test click text "Continue"
tui-test expect text "Done"
tui-test screenshot -o result.svg
tui-test close
Record a trusted tape as a GIF:
tui-test tape check crates/tui-test/tests/fixtures/tape/run.tape --json
tui-test tape run crates/tui-test/tests/fixtures/tape/run.tape
Run these commands from the repository root.
The example writes tape-example.gif in that directory.
The commands report the effective terminal grid, pixel dimensions, and source-located warnings.
Tape execution uses an isolated local session, not a daemon session.
Warning: Run only trusted tapes. Tapes can execute shell commands; they are not sandboxed.
See the tape reference for the supported subset and a standalone example.
import asyncio
from tui_test import TuiTest
async def main():
async with TuiTest.ephemeral() as terminal:
await terminal.run("my-app")
await terminal.get_by_text("Ready").expect()
await terminal.get_by_text("Continue").click()
await terminal.get_by_text("Done").expect()
asyncio.run(main())
import { TuiTest } from "@microsoft/tui-test";
const terminal = TuiTest.ephemeral();
try {
await terminal.run("my-app");
await terminal.getByText("Ready").expect();
await terminal.getByText("Continue").click();
await terminal.getByText("Done").expect();
} finally {
await terminal.closeQuiet();
}
use tui_test::{OpenOptions, Operation, Session};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let terminal = Session::new("example");
terminal.open(OpenOptions::default())?;
terminal.execute(Operation::Submit {
data: Some("echo hello".into()),
})?;
terminal.get_by_text("hello").last().expect()?;
terminal.close()?;
Ok(())
}
package main
import (
"log"
"github.com/microsoft/tui-test/bindings/go"
)
func main() {
terminal, err := tuitest.Ephemeral("example", tuitest.ClientOptions{})
if err != nil {
log.Fatal(err)
}
defer terminal.CloseQuiet()
if _, err := terminal.Run("my-app", nil, tuitest.SpawnOptions{}); err != nil {
log.Fatal(err)
}
if err := terminal.GetByText("Ready", tuitest.TextSelectorOptions{}).Expect(tuitest.LocatorExpectOptions{}); err != nil {
log.Fatal(err)
}
}
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
tui-test@brain is listed by medilies/brain — review the source before installing
npx claudepluginhub medilies/brain --plugin tui-testPlugins from other owners that cover similar ground