Answer: Install the capture hook the same way as the commit-nudge Stop hook, on the runner host's `~/.claude/`, which the runner seeds into every session. Save the settings block by merging it into `~/.claude/settings.json` and save the script as `~/.claude/hooks/e2e-stop-hook-capture.sh`, making it executable. Status: Confirmed Entry: tool/claude-code/integrations/install-capture-hook Revision: 1 Digest: sha256:135cd4a4ca1eb1ca (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:44Z Last changed: 2026-11-13T03:05:44Z Last verified: 2026-11-20T12:25:09Z Next check: 2026-11-21T12:25:09Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Install location | ~/.claude/ | [1] | 2026-11-20 Settings file | ~/.claude/settings.json | [1] | 2026-11-20 Script path | ~/.claude/hooks/e2e-stop-hook-capture.sh | [1] | 2026-11-20 Hook type | Stop | [1] | 2026-11-20 Timeout | 10 | [1] | 2026-11-20 Sources: [1] Anthropic. "Test self-hosted environments end to end". https://code.claude.com/docs/en/self-hosted-environments-testing.md Role: primary. Accessed: 2026-11-20T12:25:09Z Quote: "on the runner host's `~/.claude/`, which the runner seeds into every session" (Supports: Install location) Quote: "The settings block: merge into `~/.claude/settings.json` on the runner host" (Supports: Settings file) Quote: "save as `~/.claude/hooks/e2e-stop-hook-capture.sh` on the runner host and make it executable" (Supports: Script path) Quote: "The read-back works through a Claude Code [Stop hook]" (Supports: Hook type) Quote: ""timeout": 10" (Supports: Timeout) Published: 2026-11-20T03:48:50Z Snapshot SHA-256: b3c6e8a5d7872e279c8228218555bd8ec42232c995093c21a513796cc9a0d8d7 (captured 2026-11-20T12:25:07Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:09Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:09Z Last attempt: 2026-11-20T12:25:09Z Notes and limitations: Extracted automatically from a single official source (section "Install the capture hook on your test runner"). Related: https://latestn.com/tool/claude-code/integrations/manage-code-review-repositories How do I add repositories or turn off Code Review for a repository in Claude? https://latestn.com/tool/claude-code/integrations/mcp-server-sign-in How do I connect an MCP server that requires sign-in in Claude Code? https://latestn.com/tool/claude-code/integrations/mcp-servers-self-hosted-sessions How do I turn off built-in session tools or wait for MCP servers before the first turn in Claude Code self-hosted sessions? https://latestn.com/tool/claude-code/integrations/github-trigger-events Which GitHub events can trigger a Claude Code scheduled task? https://latestn.com/tool/claude-code/integrations/gitlab-bedrock-google-cloud How do I configure Claude Code to use Amazon Bedrock or Google Cloud in GitLab CI/CD? https://latestn.com/tool/claude-code/integrations/gitlab-cicd-setup How do I set up Claude Code with GitLab CI/CD? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:44Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/integrations/install-capture-hook/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/integrations/install-capture-hook POST: https://latestn.com/dispute/tool/claude-code/integrations/install-capture-hook with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/integrations/install-capture-hook?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I install the capture hook on my test runner for Claude Code self-hosted environment testing? Revision 1, last verified 2026-11-20T12:25:09Z. https://latestn.com/tool/claude-code/integrations/install-capture-hook (accessed 2026-11-21T09:53:20Z). @misc{LatestN_tool_claude_code_integrations_install_capture_hook_r1, title = {How do I install the capture hook on my test runner for Claude Code self-hosted environment testing?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/integrations/install-capture-hook}}, note = {Revision 1; digest sha256:135cd4a4ca1eb1ca; last verified 2026-11-20T12:25:09Z; accessed 2026-11-21T09:53:20Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/integrations/install-capture-hook