Skip to content

code-hygiene.mjs

  • Event: PreToolUse Edit/Write
  • Type: wall: blocks the action and says why (exits with code 2)

BLOCKS introducing (except in scripts in the agent’s temp folder): console.log/debugger/dd()/var_dump/ray, terms banned in gustos.md §No, git conflict markers, .only/.skip/xit in tests, and the anti-AI blacklist (availability badges, numbered sections). One-off escape: a senzu-allow comment.

See the code of code-hygiene.mjs on GitHub