phux

phux documentation

Start with the quickstart if you want a persistent terminal you and an agent can share.

stable document
Full source summary

Start with the quickstart if you want a persistent terminal you and an agent can share. The first half of these docs is task-oriented: install, run, automate, and configure phux. Protocol, architecture, operations, and decision records live in clearly separated reference sections when you need to understand or extend the substrate.

Start by outcome

You do not need the protocol to use phux. Pick the shortest path for what you are trying to do.

Run phuxInstall, create a persistent terminal, and reattach.Connect an agentUse the CLI read-act-wait loop or a host integration.Build a peerStart with the protocol walkthrough, then use normative reference.

Start here

You do not need to understand the protocol before using phux.

Your goalBest first page
Run a persistent terminal and reattach to itQuickstart
Let an agent inspect and drive that same terminalAgent CLI guide
Connect OpenCode to shared phux terminalsOpenCode integration
Connect Pi to shared phux terminalsPi integration
Install through Homebrew, a release, or sourceInstall guide
Set up to contribute to one part of the repoContributor setup: native or Nix
Decide whether phux fits your workflow todayWhen to use phux
Change the prefix, keys, status bar, or hooksConfiguration
Record a pane or a session as a cast, GIF, or APNGRecording
Reach your server from another networkRemote access

The shortest path is the quickstart. It gets a real session running first, then shows the read, act, wait, read loop that makes the same terminal useful to an agent.

Two speeds

Use phux

These pages are for people trying to get work done:

Understand or extend phux

These are reference material. Read them when you are building against phux, operating it, or checking why the system has a particular shape:

The distinction is deliberate. A user should be able to install and operate phux without reading an ADR. A protocol implementer should be able to find the normative answer without pulling behavior from a tutorial.

What phux is

phux treats a terminal as an addressable object that can outlive any one view. A person in the reference TUI, an agent using the CLI, and a browser client can observe or drive the same terminal through peer interfaces. The terminal stream stays a terminal stream; structured views are projected by consumers.

phux is pre-alpha. The local TUI, persistent sessions, multi-client attach, headless commands, and MCP adapter are real. Interfaces may still move, and some of the longer-range protocol design is intentionally documented before it ships. CONCEPTS.md owns the exact maturity boundary.

The site

The marketing + docs site lives at site/ — the Astro app imported from phall1/phux-site. Its docs pages are generated from this very tree at build time by site/scripts/sync-docs.ts (glob-driven; a new spec page, consumer doc, or ADR flows through with zero script edits). Deploy pipeline: .github/workflows/site-deploy.yml builds and publishes on every push that touches docs/** or ADR/**, serving https://phux.sh. Site-specific conventions live in site/FUMADOCS.md; the doc-system contract above deliberately does not apply to site content.

Working on the project

Contributors should read ../CONTRIBUTING.md. Documentation structure and review rules live in CONVENTIONS.md; release procedure lives in RELEASING.md. Code-level API docs are generated from Rust source with cargo doc --workspace --all-features.

View exact source