DirectoryProofKitNewsletterSponsor

← Directory

HOOK · Cursor docs

Capture test output with afterShellExecution

afterShellExecution receives the full command and terminal output. Append test runs to an evidence log the reviewer reads instead of the agent's summary.

proof: logsproof: tests run count blocks: narrated results that never ran

Source

https://cursor.com/docs/agent/hooks
Checked 2026-10-16. Read the original before installing.

By harness

HarnessStatusHow
Cursornativehooks.afterShellExecution with matcher on your test command.
Claude CodeadaptedPostToolUse with matcher Bash.
Grok BuildadaptedPostToolUse (non-blocking) per docs.x.ai hooks.
CodexuntestedUntested.
AGENTS.md genericunsupportedHarness feature.

By model family

Claudeany
GPTany
Grokany
Geminiany
"source" = the source targets it; "untested" = not verified by ProofOfDone yet.

Proof of the week

One verification pattern every week, adapted per harness and model. No spam.