Skip to main content
MonoTree is a native file-tree TUI for exploring a directory without loading every descendant eagerly. It provides keyboard navigation, incremental search, sort modes, explicit expansion depth, directory history, and a context menu. Published contract: monotree 0.1.5, OpenCLIs build 2026-06-30-131509. The executing binary, registry, and public CDN metadata agree on this release.

Quick Start

The optional positional path becomes the exact root. Without it, MonoTree starts from the current directory and applies project-root detection before opening the TUI.

Complete CLI Reference

Version 0.1.5 has four operational families—interactive browse, search, docs, and test—plus help/version aliases.
The bundled 0.1.5 help text lists only [path], help, version, and TUI keys; it omits the working search, docs, and test commands. Also, monotree search without a query does not show search help—it falls through and treats search as an interactive path. Supply the query explicitly.
Search canonicalizes the optional path when possible, loads five levels, filters out directory rows, and prints only the first 15 matching files. The Loaded N files, searched "QUERY", M matches line goes to stderr, which lets a script capture file rows separately. This is filesystem/name search; use Monogram for indexed code symbols and call relationships.

Tree Shape and Context

Prefer bounded 15 expansion when repository size is unknown. E is a deliberate full traversal and can be expensive even though it does not edit files.

Context Menu Effects

The menu is not read-only. Its current actions divide into three groups: Deletion uses symlink_metadata: a symlink itself is removed rather than following it, while a real directory is removed recursively. Treat m as an entry into a mixed read/write surface, not merely an information panel.

Self-Test Contract

monotree test verifies three concrete behaviors: initial breadcrumb rendering, UpLeftEnter re-rooting, and Esc returning focus to the tree. The PTY harness uses Unix openpty/fork; Windows returns exit code 2 without running it.

Published Platforms

Version 0.1.5 ships darwin-aarch64, linux-x86_64, linux-aarch64, and windows-x86_64 archives. Browse, search, and embedded docs are cross-platform; the built-in PTY test is Unix-only.

Relationships