Record terminal sessions to verify TUI changes

Let an agent capture and replay a terminal run so it can inspect the result and catch visual or state bugs in a TUI.

Done with Custom agent· Intermediate· Nov 2026

What they did
The author made ntrecord after earlier recorders, including vhs, did not fit their Kitty-heavy setup. It uses libghostty-vt, and in their agent workflow the model drives the app to a chosen screen, saves a tape, and then checks that tape to judge whether the change worked. They no longer need to request that check by hand.
How it went
They say this has been very useful inside agent loops. They used it to repair charting bugs and to bring a TUI browser closer to expected behavior. No counts or concrete failure examples were given.
Tips
If your app depends on special terminal features, confirm that the recorder can capture them before relying on it. A tape is most useful when you treat it as a verification step after the agent makes a change.

Try it yourself with Claude Code

I’m developing a terminal interface in [project path]. Use a recorder that can handle the terminal features my app uses to capture [screen or action]. Drive the app to [target state], save the session, and inspect the recording for issues such as [broken charts, bad alignment, incorrect colors, missing elements]. If you spot a problem, update the code and record the session again to confirm the fix. Before any irreversible action such as deleting files, sending data, or submitting changes, stop and ask for my approval. Then give me a brief summary of what you changed and what the recording showed.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

1 more report of this

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.