hooks.post-edit¶
Run the fixers over the edited file; never block an edit.
Best-effort by design: every outcome exits 0 and says nothing under
Claude Code (or answers {} under Antigravity), because a
formatter problem must never block an edit. The gate, not the hook,
is the arbiter; this only saves round trips.
Imports are never removed here: an edit in flight legitimately adds an import before the code that uses it, and a hook firing between the two edits would delete it. The full clean, unused imports included, belongs to the stop hook and the gate.
Hidden: this task is not listed by fm --list, --tree or completion — it runs like any other when named.
| Parameter | Type | Default | Description |
|---|---|---|---|
<event> |
|||
--harness={claude|antigravity} |
claude | antigravity |
"claude" |
the hook protocol to answer in: claude or antigravity |
Returns: text