Skip to content

First flight

boarding

A first flight usually means “start a session, ask an agent to change a file, approve the diff”. That flight is not available yet. It lands in the engine phase (P2). You can do pre-flight today: open the terminal UI and read the contract. The UI hosts the daemon when none is running.

acpilot tui probes GET /v1/health. When nothing answers, it runs the daemon’s core in its own process (P6-11). The client spawns nothing and writes nothing. This is why the block needs no second terminal:

Terminal window
cargo build --bins # acpilot and acpilotd; the client starts the sibling, not one on PATH
cargo run -p acpilot-cli -- tui

The same daemon answers curl. You can read the contract without opening a window. The TUI stays attached until you quit it. The daemon outlives it. The daemon listens on a socket, so point curl at the socket:

Terminal window
SOCK="$XDG_RUNTIME_DIR/acpilot/acpilot.sock" # $TMPDIR on macOS
curl -s --unix-socket "$SOCK" http://localhost/v1/health | jq
curl -s --unix-socket "$SOCK" http://localhost/v1/openapi.json | jq '.info'

That is the whole cockpit at the moment: a healthy daemon and a contract with nothing behind it yet. Short flight. Good landing.

When the engine phase (P2) lands, the sequence below is the target. We wrote it down now because we design the API and the permission flow backwards from it. If this feels like too many steps, the design is wrong, not the documentation.

Terminal window
# 1. Point Acpilot at a directory and an agent
acpilot workspace open ~/code/thing --agent claude-code
# 2. Ask for a change
acpilot session new --prompt "add a --dry-run flag to the CLI"
# 3. Watch it work, from here or from another terminal
acpilot watch @last
# 4. Approve or refuse the write
acpilot permissions ls
acpilot permissions allow 4f2a --once

Vibecoded, on purpose. While I am a software developer, I lack the time to hand-code all my ideas, and as a result this project is vibecoded withFreebuff.