---
title: "strace-ui, Bonsai_term, and the TUI renaissance"
description: "Jane Street's strace-ui turns strace into an interactive terminal UI with on-the-fly syscall hiding, per-file-descriptor navigation and filtering, short PID labels, hexdumped buffers, man-page lookup and hostname resolution for sockets."
url: "https://swe.quest/articles/strace-ui-bonsai-term-and-the-tui-renaissance-cdfbd7f00b61f5f9"
canonical: "https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/"
source: "Jane Street Tech Blog"
published: "2026-05-26"
difficulty: "easy"
kind: "Case study"
reading_minutes: 9
tags: ["functional-programming","developer-tools","debugging","testing","ai-coding"]
---

# strace-ui, Bonsai\_term, and the TUI renaissance

A post on [Jane Street Tech Blog](https://swe.quest/sources/jane-street.md), published 2026-05-26, 9 min read, Case study. Original: [https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/](https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/)

## Summary

Jane Street's strace-ui turns strace into an interactive terminal UI with on-the-fly syscall hiding, per-file-descriptor navigation and filtering, short PID labels, hexdumped buffers, man-page lookup and hostname resolution for sockets. It is built on Bonsai\_term, a terminal backend for the OCaml Bonsai framework, which models UIs as composable, incrementally computed state machines and avoids the js\_of\_ocaml library restrictions that complicate Bonsai\_web. Text-based screenshot expect tests let coding agents run tests and read the rendered UI, a closed loop that made AI-assisted TUI development fast. Many internal terminal apps followed, including proctopus and dissect.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Functional programming](https://swe.quest/tags/functional-programming.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)

## Prerequisites

- strace basics
- OCaml basics ([easy posts on Functional programming](https://swe.quest/tags/functional-programming.md?difficulty=easy))

## Keywords

strace-ui, Bonsai\_term, Bonsai, OCaml, strace, Claude Code, js\_of\_ocaml, proctopus

## Related posts

- [Bun v1.3.12](https://swe.quest/articles/bun-v1-3-12-6739a38ec397eac1.md): Bun · 2026-04-09 · Medium · 18 min read · JavaScript, Runtimes & VMs, Performance engineering, Developer tools
  Bun v1.3.12 adds Bun.WebView, a built-in headless browser automation API with WebKit and Chrome (CDP) backends.
- [What if writing tests was a joyful experience?](https://swe.quest/articles/what-if-writing-tests-was-a-joyful-experience-24be6abe32cc317e.md): Jane Street Tech Blog · 2023-01-09 · Medium · 11 min read · Testing, Functional programming, Developer productivity
  Expect tests (snapshot tests) let you write a blank \`\[%expect\]\` block under code that prints output; the test runner fills in the actual output as a diff you can accept in your editor, making test-writing feel like a REPL session.
- [Porting a cross-platform GUI application to Rust](https://swe.quest/articles/porting-a-cross-platform-gui-application-to-rust-ea27ecd8be540e13.md): Mozilla Hacks · 2024-04-23 · Medium · 20 min read · Rust, Frontend, Refactoring & migrations, Testing
  Firefox's crash reporter was rewritten in Rust, replacing three separate native GUI implementations (Win32, GTK, macOS) and their C++/Objective-C glue, which had no test suite, with a small custom UI abstraction.
- [Zed Weekly: #25](https://swe.quest/articles/zed-weekly-25-cd3a5f41d4f0b187.md): Zed · 2023-11-03 · Medium · 6 min read · Rust, Frontend, Refactoring & migrations, Developer tools
  Zed is rewriting its UI framework as GPUI 2 and porting the whole editor onto it before open-sourcing, trading feature work for better ergonomics while keeping GPUI 1's performance.
- [Open SWE: An Open-Source Framework for Internal Coding Agents](https://swe.quest/articles/open-swe-an-open-source-framework-for-internal-coding-agents-1b0f7521a5a00040.md): LangChain · 2026-10-13 · Medium · 8 min read · AI agents, AI for coding, Open source, Sandboxing & isolation
  Open SWE is an MIT-licensed framework for internal coding agents, built on Deep Agents and LangGraph.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
