Pixir.CLI (pixir v0.1.0)

Copy Markdown View Source

Escript entry point — one-shot, print-first (ADR 0001). Commands:

pixir login              Browser OAuth (device-code fallback)  ~/.pixir/auth.json
pixir doctor             Run local first-run diagnostics (no network)
pixir tree <id>          Project a Session/Subagent tree from local Logs
pixir compact <id>       Record a durable History compaction checkpoint
pixir fork <id>          Create a child Session from a parent History prefix
pixir "prompt"           Run one Turn in the current directory, stream to stdout
pixir resume <id> "..."  Continue a persisted Session
pixir acp                Speak Agent Client Protocol over stdio (ADR 0009)
pixir help               Show help

Channel discipline (ADR 0005): the model's answer goes to stdout; prompts, activity, diagnostics, and the resumable session id go to stderr. A prompt may be passed as an argument or piped on stdin. Exit code is non-zero on error.

Summary

Functions

Pure-ish router (permission mode defaults to config or :auto). IO happens inside.

Functions

main(argv)

@spec main([String.t()]) :: no_return()

route(argv, mode \\ :auto)

@spec route([String.t()], Pixir.Permissions.mode()) ::
  :ok | {:error, non_neg_integer()}

Pure-ish router (permission mode defaults to config or :auto). IO happens inside.