CLAUDE LABJP
MEMORY — The Developer Platform added the agent-memory-2026-07-22 beta header. Memory listings now return in a stable, server-defined order, and order_by and order are ignoredSTRICT — In the memory API, depth accepts only 0, 1, or omission, and path_prefix must end with a slash and matches whole path segments. Substring-style calls need revisitingLIVE — Published artifacts can now call MCP connectors on every view, so a shared dashboard shows live data instead of a snapshot from the session that built itA11Y — Claude Code added a screen reader mode, alongside new sharing and collaboration options for Team and EnterpriseFASTEND — Fast mode for Claude Opus 4.7 is removed tomorrow, July 24. Today is the day to move any speed: 'fast' calls over to Opus 4.8GOV — Claude for Government entered beta this month, with early deployments in government systems starting to surfaceMEMORY — The Developer Platform added the agent-memory-2026-07-22 beta header. Memory listings now return in a stable, server-defined order, and order_by and order are ignoredSTRICT — In the memory API, depth accepts only 0, 1, or omission, and path_prefix must end with a slash and matches whole path segments. Substring-style calls need revisitingLIVE — Published artifacts can now call MCP connectors on every view, so a shared dashboard shows live data instead of a snapshot from the session that built itA11Y — Claude Code added a screen reader mode, alongside new sharing and collaboration options for Team and EnterpriseFASTEND — Fast mode for Claude Opus 4.7 is removed tomorrow, July 24. Today is the day to move any speed: 'fast' calls over to Opus 4.8GOV — Claude for Government entered beta this month, with early deployments in government systems starting to surface
Articles/Claude Code
Claude Code/2026-04-01Advanced

Claude Code HTTP Hooks × GitHub Actions Integration Guide — Production Patterns for Automated Code Review, Testing, and Deployment

A deep dive into integrating Claude Code HTTP Hooks with GitHub Actions to build production-grade pipelines for automated code review, quality checks, and deployment — with detailed code examples throughout.

Claude Code201HTTP HooksGitHub Actions12CI/CD18automation97code review3DevOps3

Premium Article

How HTTP Hooks Transform Development Workflows

Claude Code's hook system is a powerful mechanism for connecting AI agent behavior to external systems. HTTP Hooks in particular unlock "cloud-native automation" that simply isn't possible with local-process stdio hooks.

Combining GitHub Actions with HTTP Hooks enables workflows like these:

  • The moment a pull request is opened, Claude Code automatically reviews the code
  • Every commit triggers security scanning and quality checks in real time
  • When tests fail, Claude Code analyzes the error log and posts a fix suggestion directly on the PR
  • After a staging deployment, Claude Code runs regression tests autonomously

This article explains these patterns as production-ready implementations — not toy examples. We assume familiarity with stdio hooks and basic CI/CD, and go deep on HTTP Hooks-specific design considerations and implementation patterns.


Understanding the HTTP Hooks Architecture

How HTTP Hooks Differ from stdio Hooks

Claude Code supports two kinds of hooks:

  • stdio hooks: Runs as a local process, communicating via stdin/stdout JSON
  • HTTP hooks: POSTs JSON to a specified URL (Webhook endpoint) and reads the response

While Claude Code Hooks and Automation covers the basics of stdio hooks, HTTP Hooks go a step further by enabling real-time integration with external services.

HTTP Hooks execution flow

[Claude Code] -- JSON payload --> [HTTP endpoint]
                                         |
                              [External service calls]
                              (GitHub / Slack / Jira / etc.)
                                         |
                              [Response JSON] --> [Claude Code decides next action]

Hook Events and When to Use Each

The events available to HTTP Hooks are:

  • PreToolUse: Before a tool runs (e.g., before a file write or bash command)
  • PostToolUse: After a tool runs (trigger follow-up processing on results)
  • Notification: Notifications from Claude (progress updates on long tasks)
  • Stop: When Claude ends a session
  • SubagentStop: When a subagent ends its session

For CI/CD integration, PostToolUse and Stop are the most critical. A practical pattern is: use PostToolUse to detect file changes and run quality checks in real time, then use Stop to finalize a report and post it to GitHub.

Configuring HTTP Hooks via CLAUDE.md

HTTP Hooks are configured in .claude/settings.json or CLAUDE.md.

// .claude/settings.json
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [
          {
            "type": "http",
            "url": "https://your-webhook-server.example.com/hooks/file-changed",
            "method": "POST",
            "headers": {
              "Authorization": "Bearer ${CLAUDE_HOOK_SECRET}",
              "Content-Type": "application/json"
            },
            "timeout": 10000
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "http",
            "url": "https://your-webhook-server.example.com/hooks/session-complete",
            "method": "POST",
            "headers": {
              "Authorization": "Bearer ${CLAUDE_HOOK_SECRET}",
              "Content-Type": "application/json"
            },
            "timeout": 30000
          }
        ]
      }
    ]
  }
}

Environment variable interpolation like ${CLAUDE_HOOK_SECRET} is handled automatically by Claude Code. In local development, define variables in a .env file; in CI, use GitHub Actions Secrets.


Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
Understand HTTP Hooks architecture and implement bidirectional integration with GitHub Actions
Master production-grade pipeline design for automating code review, testing, and deployment with Claude Code
Learn how to build a robust Webhook server with security, authentication, and error-retry patterns
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Claude Code2026-05-04
Build a Pipeline Where Docs Update Automatically Every Time Your Code Changes
Build a CI/CD pipeline that auto-generates README, CHANGELOG, and API docs whenever code changes. Use Claude Haiku 4.5 for cost-efficient classification and Sonnet 4.6 for quality output — cutting API costs by up to 70% while keeping documentation accurate.
Claude Code2026-05-04
Setting Up Claude Code's GitHub PR Trigger for Automated Code Review
A step-by-step guide to configuring Claude Code's GitHub PR trigger, writing effective CLAUDE.md review policies, and what two weeks of real usage taught me about keeping the signal-to-noise ratio high.
Claude Code2026-03-09
Claude Code CI/CD Integration Guide — GitHub Actions
Learn how to integrate Claude Code with GitHub Actions for automated PR reviews, issue handling, and code generation.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →