Self-Hosted GitHub Bot Runs Claude Code with 40+ Webhook Triggers and MCP Tools

A new open-source project, Claude Code GitHub Agent, provides a self-hosted bot that gives Claude Code 40+ GitHub webhook triggers and MCP (Model Context Protocol) tools. It runs the Claude Agent SDK with the full Claude Code feature set in isolated worktrees.
Key Features
- 4 Built-in MCP Servers: GitHub, GitHub Actions, Memory, and Codebase Tools.
- YAML-Based Triggers: Configure workflows in a
workflowsblock. Example:
workflows:
review-pr:
triggers:
events:
- event: pull_request.opened
- event: pull_request.labeled
filters:
label.name: ["review", "pr-review", "review-pr"]
commands:
- /review
- /pr-review
- /review-pr
prompt:
template: "/pr-review-toolkit:review-pr {repo} {issue_number}"This triggers the 'pr-review-toolkit' on opened PRs, on labeled PRs matching those names, and on slash commands in comments.
- Built-in Workflows: PR review, CI auto-fix, issue triage.
- Plugins: Add specialized agents.
- Persistent Memory: Cross-session persistence.
- Flexible Backend: Supports any Anthropic-compatible API (Ollama, Vertex, Z.AI).
Status
The project is still in beta (some internals to clean up) but fully usable. Feedback and contributions are welcome.
Who it's for: Developers who want to automate GitHub workflows using Claude Code with custom triggers and MCP tools, fully self-hosted.
📖 Read the full source: r/ClaudeAI
👀 See Also

Stop Re-Teaching Claude Code Every Session: Use a Persistent Config
A Reddit user explains how they saved 20 minutes per session by writing a persistent config for Claude Code, eliminating repetitive steering and achieving 33% faster completions.

Context Gateway: An Open-Source Proxy for Compressing AI Agent Context
Context Gateway is an open-source proxy that sits between coding agents and LLMs, compressing tool outputs before they enter the context window. It uses small language models to detect signal in context, performs background compaction at 85% window capacity, and includes spending caps, a dashboard, and Slack notifications.

Flue: A TypeScript Framework for Building Autonomous Coding Agents
Flue is a TypeScript framework that provides a programmable harness for building autonomous agents, featuring skills, sessions, sandboxed shell execution, and a built-in virtual sandbox. It can replace tools like Dosu, Greptile, CodeRabbit, Devin, and Claude Code with custom agent logic.

Open-source local hook automatically switches Claude models to cut AI costs
A developer created a local hook for Cursor and Claude Code that analyzes prompts and automatically selects the appropriate Claude model (Haiku, Sonnet, or Opus) before sending requests. The tool uses keyword rules to classify tasks and block overpaying scenarios, with retroactive analysis showing 50-70% cost reduction.