Skip to content

Muse Code

Validates .muse/hooks.json, the project hooks Muse Code loads and silently refuses when they are malformed. What a defect costs depends on where it is: a wrong-typed handler field rejects the whole file, a stray key on a matcher group drops that group, an unknown event skips its entries, and a bad handler drops that handler — none of it reported in a headless run. Muse's handler fields are a subset of Claude Code's, so a hooks file copied from .claude/ is the usual way in. Muse reads AGENTS.md for portable instructions and the shared .agents/memory/ convention for committed project memory; both get the content and security rules every format shares, so no Muse-specific instruction format is validated. Enabled automatically when a .muse/hooks.json exists.

Rule ID Description Default Severity Autofix
muse-hooks-valid .muse/hooks.json must use Muse's events, matcher groups and handler fields error (auto) -