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.
- 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.
Related agent uses
Trace C# symbol usage with a Roslyn-backed index
Graphify C# helps agents map real C# usages, including overrides and implementations, from compiler-resolved project data.
Set up an email agent that works Redmine tasks
A developer wired custom agents to take job requests by email and let one of them handle Redmine tasks inside a locked-down sandbox.
Re-check implementation against re-derived user goals
Have an agent reconstruct the user’s requirements from all messages, then audit the code and tests against that list before changing anything.
Turn tickets into code changes and draft the PR
Stripe uses in-house coding agents to carry tasks from ticket to reviewable code, then humans check the result.
Run a two-pass bug check before opening a PR
Use an agent to flag possible bugs first, then have it verify each one before any pull request is opened.
Retype the changes an agent made to your feature
They inspect the key edits from an agent-built feature and type them in themselves to better understand the code.