mix exagent.catalog.lock (ExAgent v3.0.0)

View Source

Record the active durable agent definition in priv/exagent/catalog.lock.

Stability — Stable.

mix exagent.catalog.lock
mix exagent.catalog.lock --check

Configure :exagent_catalog_lock under the host application with an MFA returning {active_reference, catalog}. The Phoenix chat generator sets this configuration. Generated background workers register the same kind of callback under :exagent_background_catalogs. The lock protects the active reference from each catalogue and preserves previously locked entries. Callbacks must work without starting the host application. A failed callback reports its exception type. Bounded ArgumentError and RuntimeError messages have nested callback argument strings redacted. The task initializes stock ReqLLM locally with dotenv loading disabled.

Commit the lock after you retain earlier definitions and refresh the file. Before the first deployment, you can delete a draft lock and run this task again. Once a definition has been deployed or used for durable runs or jobs you intend to keep, retain its entry and refresh the lock in place. With --check the compiled host is inspected without writing the file. The task warns when a checked definition contains unpinned MCP tools.