Structs§
- Agent
Memo Filter - Filter for detecting “agent memo” comments.
- BddFilter
- Comment
Detector - Comment
Info - Directive
Filter - Filter
Chain - Language
Registry - Shebang
Filter
Enums§
Traits§
Functions§
- build_
comments_ xml - Builds a
<comments>XML block for a given file and its comments. Returns an XML formatted string with comments, or empty string if no comments provided. - format_
hook_ message - Formats comment detection results for Claude Code hooks.
Groups comments by file path and builds complete error message with
instructions and XML blocks for each file.
If custom_prompt is provided, it replaces the default message template.
Use
{{comments}}placeholder in custom_prompt to insert detected comments XML. Returns formatted hook error message, or empty string if no comments provided.