Skip to content

livery-extensions-agents

What coding agents read in a workspace. A workspace turns it on by listing the extension and optionally choosing which agents it writes files for under [agents]:

[workspace]
extensions = ["agents"]

[agents]
enabled = ["claude", "antigravity"]

When [agents] or [agents] enabled is absent, both claude and antigravity are enabled. An unknown agent name in [agents] enabled fails sync.

fm sync writes each enabled agent's local directory, untracked in the checkout:

  • .claude/ when claude is enabled: the guidance every listed extension ships or renders under .claude/rules/ (numbered by section order, with the repository's own fragments/ linked after them), a link to each skill and hook every listed extension ships under content/skills/ and content/hooks/, and a copy of settings.json.
  • .agents/ when antigravity is enabled: the same numbered guidance rules under .agents/rules/ (one file per fragment, keeping each file well under Antigravity's per-file rule cap), links to the same skills and hooks, and a copy of hooks.json.

A copy that an agent's tooling or a person edits is a local override, kept and named. Turning an agent off in [agents] enabled withdraws its unedited files on the next fm sync.

The settings wire each agent's hooks to the extension's verbs through one shim, fm-hook.sh:

  • fm hooks.pre-bash refuses a footman command piped into tail or head, and a push of a branch that conflicts with origin/main.
  • fm hooks.post-edit runs the gate's fixers over the edited file.
  • fm hooks.stop refuses to end a Claude Code turn whose last command was a failed fm verdict, once.

A project born while the extension is listed starts with AGENTS.md for the repository's own facts. A workspace that does not list agents has no .claude/ and no .agents/.