Skip to content
mcc0xPublic

About

Small additions for the Rex terminal: a Git-aware file tree, commit history, diffs, agent usage, and pane layouts that remember your preferences.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

21 stars

Watchers

0 watching

Forks

Repository files navigation

Milo — Your Git workspace, inside Rex. Browse files, commits and diffs, edit code, track agent usage, save pane layouts, and get alerts in Discord or Telegram.

Latest Milo release GitHub stars Core CLI: 1 direct dependency License: MIT

Install

The v0.1.7 release is available for Apple Silicon Macs running macOS 13 or later. Install it with Homebrew:

brew install mcc0x/milo/milo

Without Homebrew, download and run the installer from the release tag:

curl -fsSLo milo-install.sh https://github.com/mcc0x/milo/releases/download/v0.1.7/install.sh &&
  sh milo-install.sh

The script verifies the release binary against its SHA-256 checksum and installs it to ~/.local/bin by default. It does not need Rust or Git. If you already installed with Homebrew, run brew upgrade mcc0x/milo/milo. If you use the Rex integration, run milo setup --repair after upgrading. See setup and removal for source installation and uninstall instructions.

From a shell in your project, run milo to pick a local pane, or milo outline to go straight to the file tree. Press Enter on a file to read it, e to edit working text, Ctrl-S to save, and q while reading to go back. No Rex installation, browser, account or setup is needed. In Rex, use milo setup if you want the panes arranged beside your shell.

Workspace settings

Run milo web in your project to open the settings dashboard. It’s built into the CLI and uses the same settings as milo setup. No account, Node.js, or separate install is needed.

Choose a pane layout for one worktree or set a global default. Under Integrations, you can have Rex arrange new shell tabs, forward alerts to Discord or Telegram, or show Discord presence. To configure another Rex host, run milo web --host HOST.

Alert forwarding reconnects when Rex returns, but an explicit pause stays paused. Lifecycle notices are optional for each destination. A separate opt-in adds a verified Rex session label to ordinary alerts. Both choices are off by default.

Milo settings for the tidebook worktree. The Integrations page shows Rex automation, Discord presence and alert forwarding, all off.

Outline

Project files with colours and line counts for changes to commit or push

See changed files in the project tree as you work. Bold colours mark changes to commit; regular colours mark changes to push. Press / to find a file by name or path, and Enter to read it.

History

Recent commits, with the newest commit open to show its changed files

See recent commits and, when the branch tracks a remote branch, how many still need to be pushed. Press Enter on a commit to see the files it touched, then on a file to read that version.

Usage

Codex and Claude Code limits showing percent left, time until reset and an Opus weekly limit

See how much of each reported limit you have left. Milo reads local reports saved by oh-my-pi, Codex and Claude Code, and the tokens and estimated cost OpenCode recorded today. It shows the tools that have a figure on this Mac, so there is no empty place for one you do not use, and setup can always show or hide each tool. Where the terminal can show pictures, such as in Rex, the pane can draw the logos and large figures as pictures.

In the macOS menu bar

Keep an eye on usage without switching to Rex. Milo shows the mascot beside your lowest fresh remaining percentage by default. Click it for reset times, switch to CPU or Memory under More options → Menu bar indicator, or choose Browser settings… to open the browser editor.

Milo’s macOS menu showing example Codex and Claude Code limits, reset times and a Settings button

On an Apple Silicon Mac running macOS 13 or later, run milo menubar install. The Homebrew and release binaries include the app; it only runs if you install it. See menu bar setup and removal.

Discord presence

Optionally show In a Rex session on your Discord profile, under Milo's name and icon, while a Rex app has a session open. It is off until you turn it on with milo presence enable, in Settings or in the browser editor, and each of them says what becomes public first. Nothing about your sessions, projects, files or commands is sent unless you also choose to show the name of the session in front, its Git project's folder name, or both. No bot, token or sign-in is involved, and you can use a Discord application of your own instead of Milo's. See Discord presence for setup, privacy and limits.

Reader

A TypeScript file with coloured code and green and red lines showing edits

Read a file with added and removed lines marked, or open it as it was at a commit. Press n or N to jump between changed blocks, or c to fold unchanged stretches. In Rex, files opened from the same Outline or History pane share one floating reader as tabs. The reader colours about thirty languages, from Rust and TypeScript to Markdown, HTML and CSS.

The working-file Reader can also view pictures, play supported MP4s, and render Markdown. On a verified local Mac, press Ctrl-O on a working document in Outline, Find or Reader to open it in its default app, or Ctrl-R to reveal it in Finder.

Press e to edit a working text file where you are reading it. The edit is a draft until you save with Ctrl-S, and a save never replaces a file that changed on disk without asking. Ctrl-F formats the draft with a formatter you have installed; Ctrl-Z takes it back. See editing files.

To review an agent’s edits without mixing in your own uncommitted work, have it hand you its recorded patch and run milo review PATCH. In Rex, --float opens that read-only review over the current tab. Milo checks that the patch still fits, not who wrote it.

What works in each terminal

Command or feature Ordinary terminal, no Rex What Rex adds
milo (Home) Choose Outline, History, Usage or settings. No first-run guide on this path. Quit a pane to return to Home. The existing settings and maintenance Home, with a first-run guide.
milo outline [DIR] or milo DIR Browse and search a plain folder or Git worktree; open a file in place. Managed sidebar, floating reader tabs, optional shell-following and temporary outline peek.
milo history [DIR] Browse Git commits, expand a commit and read its file at that revision in place. Managed sidebar and floating reader tabs.
milo view FILE / --edit / --commit ID Read in the current terminal. Edit a working text file; save explicitly. A commit is read-only. Same direct command.
milo review PATCH [--from NAME] Read a handed-over patch in place. --float can open the review from a non-interactive caller in a Rex pane.
milo usage / usage --menu-stream Show available local figures in a pane, or emit a stream for the menu app. No provider sign-in required. Optional compact Usage rail.
milo setup Terminal settings, including icon, Git mark and usage choices. The explicit command offers a skippable first-run guide. Try, save, repair or remove managed layouts.
milo web [--no-open] Local settings dashboard. --no-open prints a private loopback link instead of opening the browser. --host HOST uses Rex to forward another host’s editor.
milo settings export GROUPS / import FILE [--apply] / undo Transfer selected settings as a file. Import previews unless you ask to apply. Saved rail geometry can be used by a Rex layout.
milo doctor, --help, --version Plain output; no TTY needed. Doctor distinguishes local preferences from optional integrations. Reports Rex host and integration health.
milo alerts, milo presence Inspect the settings without a running session. Actual event mirroring and activity presence require Rex and explicit opt-in.
milo listen, arrange/remember rails, title tabs Not standalone features. Run a direct pane command instead. Managed by the Rex integration.
milo menubar install / uninstall / indicator Optional on macOS with a menu-enabled build; choosing an indicator does not install the app. Not Rex-dependent.
milo claude-status Status-line helper for an explicitly configured Claude Code profile, not an interactive pane. Not Rex-dependent.

milo setup --skip-onboarding records a skip without opening a TUI or applying settings. Direct pane commands never run the guide. See Using the panes for input and display fallbacks, and terminal checks and measurements for the environments actually exercised.

Documentation

Setup and removal · Keys and marks · Usage limits · Discord presence · Pane behaviour · How it works

Contributing · MIT licence

About

Small additions for the Rex terminal: a Git-aware file tree, commit history, diffs, agent usage, and pane layouts that remember your preferences.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

21 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages