cursor-post-tool-verify-context
Run lightweight context-only post-edit quality checks and return verification guidance after Cursor tool use.
hook
PostToolUse
cursor
mode: context
config/hook-registry.json (entry) hooks/wagents-hook.py (policy)
Run lightweight context-only post-edit quality checks and return verification guidance after Cursor tool use.
Registry Entry
Section titled “Registry Entry”| Field | Value |
|---|---|
| id | cursor-post-tool-verify-context |
| status_message | Checking post-edit quality |
| mode | context |
| logical_event | PostToolUse |
| matcher | Write|Edit|MultiEdit|apply_patch|edit|create|replace|write_file|Bash|bash|run_shell_command |
| command | python3 {repo_root}/hooks/wagents-hook.py cursor-post-tool-verify-context --harness {harness} |
| timeout | 5 |
| harnesses | ["cursor"] |
Full hook config + command reference
{ "id": "cursor-post-tool-verify-context", "description": "Run lightweight context-only post-edit quality checks and return verification guidance after Cursor tool use.", "status_message": "Checking post-edit quality", "mode": "context", "logical_event": "PostToolUse", "matcher": "Write|Edit|MultiEdit|apply_patch|edit|create|replace|write_file|Bash|bash|run_shell_command", "command": "python3 {repo_root}/hooks/wagents-hook.py cursor-post-tool-verify-context --harness {harness}", "timeout": 5, "harnesses": [ "cursor" ]}def _policy_codex_post_tool_verify_context(payload: NormalizedPayload) -> int: repo_root, quality_paths = _quality_paths(payload) paths = [str(path.relative_to(repo_root)) for path in quality_paths] or _candidate_paths(payload) # ... runs fast ruff/ty on small set and emits additionalContext ...Command: python3 ... cursor-post-tool-verify-context --harness cursor
Resources
Section titled “Resources”Hooks HubAll repo-managed lifecycle hooks.
wagents hooksInspect and validate hooks via CLI.
