mix exagent.install (ExAgent v3.0.0)

View Source

Install ExAgent conversation infrastructure in a Phoenix application.

Stability — Stable.

mix exagent.install --yes
mix igniter.install exagent --chat --yes

Pass --yes when applying changes from a shell without a TTY. Pass --dry-run to preview the changes.

With a PostgreSQL Repo, the installer writes a pinned ExAgent.Migration. Apply it with the host's Ecto migrations. Use mix exagent.upgrade for an existing PostgreSQL schema.

  • --repo MODULE selects the PostgreSQL Ecto Repo.
  • --pubsub MODULE selects the Phoenix PubSub server.
  • --table NAME sets the snapshot table. The default is exagent_snapshots.
  • --result-store is accepted for existing scripts. The unified PostgreSQL migration includes tool results.

--chat also installs Oban when needed, generates /chat, supervises continuation recovery and records the initial catalogue lock. It uses the offline test model unless you pass --model MODEL. It uses the host's Accounts scope when present. Use --auth to require that scope or --no-auth to generate local routes. Use --scope MODULE for a custom host scope. Apply the Ecto migrations before starting the chat.