Skip to main content

sunholo/motoko_ext_fmt

Intercepts WriteFile on .ail files via on_tool_handle: performs the real write, then runs ailang fmt --write on the file so the model's next turn re-reads canonical code. The mechanism under test in M-EVAL-FMT-WEAKMODEL-AB — does removing syntax drift reduce compile-stuck spirals in a weak local model. Non-.ail writes are Delegated to motoko's default handler. Logs each format to the eval fmt_hook_events sink (<workdir>/.claude/fmt_hook_events.jsonl) for treatment-integrity, matching the Claude-Code format_ail.sh hook so the eval harness banks identical events.

FieldValue
Latest0.4.2
Stabilityexperimental
EffectsIO, Process, FS, AI, Env, Net, SharedMem, Clock, Stream
Exports1 modules
Last Updated2026-07-30T20:32:51Z
Exported Modules
  • sunholo/motoko_ext_fmt/register

Loading version history from registry...