Skip to main content

Crate parry_guard_hook

Crate parry_guard_hook 

Source
Expand description

Claude Code hook integration.

Provides pre-tool-use blocking and post-tool-use scanning for Claude Code hooks.

Modules§

claude_md
CLAUDE.md scanning with cache.
post_tool_use
PostToolUse hook processing.
pre_tool_use
PreToolUse hook processing.
project_audit
Project audit for UserPromptSubmit hook.
taint
Project taint tracking.

Structs§

HookInput
HookOutput
HookSpecificOutput
PreToolUseOutput
PreToolUseSpecificOutput

Functions§

scan_text
Run all scans (unicode + substring + secrets + ML) on the given text. Uses the daemon for ML scanning - auto-starts it if not running.
scan_text_with_threshold
Like scan_text but with a custom ML threshold (e.g. higher for CLAUDE.md).