Skip documentation navigation

Pattern packs

scope values and the hook that feeds each

ScopeText scannedHook
filesA prose file, whole (md, mdx, markdown, txt, rst, adoc, asciidoc), and the plan ExitPlanMode showscheck-edit.mjs, check-shell-writes.mjs, check-tool-text.mjs
commentsComment runs in a code filecheck-edit.mjs, check-shell-writes.mjs, check-tool-text.mjs
codeA code file or a file of unknown type, whole, string literals includedcheck-edit.mjs, check-shell-writes.mjs, check-tool-text.mjs
ghA gh pr, gh issue, or gh release title or body, a gh api request body, and the text an MCP tool postscheck-bash.mjs, check-tool-text.mjs
commitA git commit, git tag, git merge, git notes, jj, or hg message, and the commit message of an MCP file pushcheck-bash.mjs, check-tool-text.mjs
commandThe full git or gh command linecheck-bash.mjs
replyThe agent’s final reply, task text, and questions to the usercheck-reply.mjs, check-tool-text.mjs

check-edit.mjs also reads a file that cat or tee writes from a heredoc, and a notebook cell: a markdown cell as a prose file, a code cell as a code file. check-shell-writes.mjs reads the lines a shell command added to files in a git work tree, after the command runs. check-tool-text.mjs reads a file an MCP tool writes the same way.

Leaving scope out gives the pack every scope except command and code.