๐ค Claude Code Agent
September 24, 2025 ยท View on GitHub
โโโโโโโโโโ โโโโโโ โโโ โโโโโโโโโโ โโโโโโโโ
โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โโโ โโโ โโโโโโโโโโโ โโโโโโ โโโโโโโโโ
โโโ โโโ โโโโโโโโโโโ โโโโโโ โโโโโโโโโ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโ โโโ โโโโโโโ โโโโโโโ โโโโโโโโ
๐ Bitbucket Webhook Integration
โจ Description
Claude Code Agent is an intelligent Bitbucket webhook service that supercharges your pull requests with AI-powered insights. Built with Claude AI, this service automatically analyzes your code changes and provides:
- ๐ Smart PR Descriptions - AI-generated summaries appended to pull request descriptions
- ๐ Code Reviews - Comprehensive feedback posted as PR comments
- ๐ก Inline Suggestions - Contextual improvements directly on specific code lines
- โก Real-time Processing - Instant analysis triggered by Bitbucket webhook events
Transform your development workflow with intelligent code analysis that helps teams ship better code faster.
๐ Getting Started
Prerequisites
- Docker & Docker Compose
- Bitbucket workspace access
- Claude API credentials
Quick Setup
-
Clone the repository
git clone <repository-url> cd claude-code-agent -
Configure & Launch
docker compose run --rm webhook sh -lc 'claude --version && claude login' -
Set Environment Variables Configure your
.envfile with:BB_CLIENT_ID- Bitbucket OAuth client IDBB_CLIENT_SECRET- Bitbucket OAuth client secretWEBHOOK_SECRET- Webhook signature verification secret
-
Start the Service
docker compose up -d
Your Claude Code Agent will be running on http://localhost:8080 ๐
๐ ๏ธ Features
| Feature | Description | Environment Variable |
|---|---|---|
| ๐ค AI Descriptions | Auto-generate PR summaries | ENABLE_DESCRIBE=1 |
| ๐ Code Reviews | Comprehensive PR analysis | ENABLE_REVIEW=1 |
| ๐ฌ Inline Comments | Line-specific suggestions | ENABLE_INLINE=1 |
| โ๏ธ Query Control | Runtime feature toggling | ?describe=false&review=false&inline=false |
๐ก Webhook Endpoint
Configure your Bitbucket webhook to point to:
POST /webhook/bitbucket
The service automatically processes pullrequest:* events and applies the configured AI analysis features.
๐ง Configuration
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | Server port |
MAX_INLINE_COMMENTS | 10 | Maximum inline comments per PR |
MAX_DESC_APPEND_CHARS | 2500 | Character limit for description append |
๐๏ธ Architecture
Built with:
- Node.js + TypeScript - Modern JavaScript runtime
- Express.js - Fast, minimalist web framework
- Claude AI - Advanced code analysis capabilities
- Docker - Containerized deployment
- Bitbucket API - Seamless repository integration
Made with โค๏ธ and Claude AI
Empowering developers with intelligent code insights