[](RSR.md) [](GOVERNANCE.adoc) [](CODE_OF_CONDUCT.adoc)
Bridge between Claude AI and GitLab for enhanced developer productivity
Claude GitLab Bridge seamlessly integrates Anthropic’s Claude AI assistant with GitLab, enabling AI-powered development workflows directly within your GitLab projects.
-
🤖 AI-Powered Assistance: Leverage Claude’s capabilities for code review, issue analysis, and task automation
-
🔄 GitLab Integration: Full GitLab API v4 support for issues, merge requests, and repositories
-
🔒 Security First: Secure token management, minimal permissions, and audit logging
-
🚀 Webhook Support: Real-time event processing for automated responses
-
📊 Context-Aware: Maintains conversation context across interactions
-
🌳 Branch Management: Automatic branch creation and commit handling
-
Node.js 18+ (LTS recommended)
-
GitLab account with API access
-
Anthropic API key for Claude
= Clone the repository
git clone https://github.com/hyperpolymath/claude-gitlab-bridge.git
cd claude-gitlab-bridge
= Install dependencies
npm install
= Configure environment
cp .env.example .env
= Edit .env with your credentials
= Run tests
npm test
= Start the application
npm startCreate a .env file with:
= GitLab Configuration
GITLAB_TOKEN=your_gitlab_token_here
GITLAB_URL=https://gitlab.com
= Claude Configuration
ANTHROPIC_API_KEY=your_anthropic_key_here
= Application Configuration
WEBHOOK_SECRET=your_webhook_secret_here
PORT=3000import { ClaudeGitLabBridge } from 'claude-gitlab-bridge'
const bridge = new ClaudeGitLabBridge({
gitlabToken: process.env.GITLAB_TOKEN,
anthropicKey: process.env.ANTHROPIC_API_KEY
})
// Analyze an issue with Claude
const analysis = await bridge.analyzeIssue({
projectId: '12345',
issueId: 42
})
console.log(analysis)Configure GitLab webhooks to point to your deployment:
-
Go to Settings → Webhooks in your GitLab project
-
Add URL:
https://your-deployment.com/webhook -
Secret Token: Use
WEBHOOK_SECRETfrom.env -
Trigger events:
-
Issues events
-
Merge request events
-
Push events
-
┌─────────────┐ ┌──────────────┐ ┌────────────┐
│ GitLab │◄──────┤ Bridge ├──────►│ Claude │
│ API │ │ Application │ │ API │
└─────────────┘ └──────────────┘ └────────────┘
▲ │
│ │
│ ┌─────▼──────┐
└────────────────┤ Webhooks │
└────────────┘= Install with dev dependencies
npm install
= Run in development mode
npm run dev
= Run tests
npm test
= Run tests in watch mode
npm test -- --watch
= Lint code
npm run lint
= Format code
npm run format
= Type check
npm run type-checkclaude-gitlab-bridge/
├── src/
│ ├── api/ # API route handlers
│ ├── services/ # Business logic
│ ├── models/ # Data models
│ ├── utils/ # Utilities
│ └── middleware/ # Express middleware
├── tests/ # Test files
├── docs/ # Documentation
├── scripts/ # Build and utility scripts
└── .well-known/ # Standard metadata files-
[Contributing Guide](CONTRIBUTING.adoc) - How to contribute
-
[Code of Conduct](CODE_OF_CONDUCT.adoc) - Community guidelines
-
[Governance](GOVERNANCE.adoc) - Project governance and TPCF
-
[Security Policy](SECURITY.md) - Security reporting and policies
-
[Reversibility](REVERSIBILITY.md) - Safe experimentation philosophy
-
[RSR Compliance](RSR.md) - Standards compliance documentation
This project achieves RSR GOLD compliance:
-
✅ Category 1: Repository Metadata & Standards
-
✅ Category 2: Documentation Quality
-
✅ Category 3: Development Infrastructure
-
✅ Category 4: Architecture & Code Quality
-
✅ Category 5: Testing & Quality Assurance
-
✅ Category 6: Build & Release
-
✅ Category 7: Security
-
✅ Category 8: Community & Contribution
-
✅ Category 9: Legal & Licensing
-
✅ Category 10: Governance
-
✅ Category 11: Operational Excellence
See [RSR.md](RSR.md) for detailed compliance information.
This project uses the Tri-Perimeter Contribution Framework:
-
Perimeter 3 (Community Sandbox): Open to all - [YOU ARE HERE]
-
Perimeter 2 (Trusted Contributors): Earned through sustained contributions
-
Perimeter 1 (Core Maintainers): By invitation only
See [GOVERNANCE.adoc](GOVERNANCE.adoc) for details.
Security is a top priority. We follow industry best practices:
-
🔒 Secure token storage
-
🔐 Encrypted communication
-
📋 Security audit logging
-
⚠️ Vulnerability disclosure policy
Found a security issue?
DO NOT open a public issue. Instead:
-
Email: security@hyperpolymath.dev
-
GitHub Security Advisory: [Create Advisory](https://github.com/hyperpolymath/claude-gitlab-bridge/security/advisories/new)
See [SECURITY.md](SECURITY.md) for full policy.
Main class for interacting with the bridge.
class ClaudeGitLabBridge {
constructor(config: BridgeConfig)
// Analyze GitLab issue with Claude
analyzeIssue(params: IssueParams): Promise<Analysis>
// Review merge request with Claude
reviewMR(params: MRParams): Promise<Review>
// Execute automated task
executeTask(params: TaskParams): Promise<Result>
// Handle webhook event
handleWebhook(event: WebhookEvent): Promise<void>
}See [API.md](docs/API.md) for complete reference.
-
✓ GitLab API integration
-
✓ Claude API integration
-
✓ Webhook support
-
✓ Issue analysis
-
❏ Merge request review automation
-
❏ Multi-repository support
-
❏ Custom prompt templates
-
❏ GitHub integration
-
❏ Bitbucket integration
-
❏ Web UI dashboard
We welcome contributions! Please see:
-
Read [CONTRIBUTING.adoc](CONTRIBUTING.adoc)
-
Review [CODE_OF_CONDUCT.adoc](CODE_OF_CONDUCT.adoc)
-
Check [open issues](https://github.com/hyperpolymath/claude-gitlab-bridge/issues)
-
Look for
good first issuelabels
-
💬 [Discussions](https://github.com/hyperpolymath/claude-gitlab-bridge/discussions)
-
🐛 [Issues](https://github.com/hyperpolymath/claude-gitlab-bridge/issues)
-
📧 Email: hello@hyperpolymath.dev
This project is licensed under the [Palimpsest-MPL-1.0 License](LICENSE.txt).
SPDX-License-Identifier: PMPL-1.0-
[Anthropic](https://www.anthropic.com/) for the Claude API
-
[GitLab](https://about.gitlab.com/) for excellent API documentation
-
All our [contributors](CONTRIBUTORS.md)
-
The open source community
-
hyperpolymath - Initial work - [GitHub](https://github.com/hyperpolymath)
See [CONTRIBUTORS.md](CONTRIBUTORS.md) for full list of contributors.
Need help?
-
📖 Check [documentation](docs/)
-
💬 Ask in [discussions](https://github.com/hyperpolymath/claude-gitlab-bridge/discussions)
-
🐛 Report [issues](https://github.com/hyperpolymath/claude-gitlab-bridge/issues)
-
📧 Email: hello@hyperpolymath.dev
-
Build: 
-
Coverage: 
-
Version: 
Built with ❤️ by the community
For more information, visit our [website](https://hyperpolymath.dev) or check out the [documentation](docs/).