feat: Add GitHub Actions Codebase Agent workflow #16
+563
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds GitHub Actions deployment for the Codebase Agent pattern with flexible authentication supporting both Anthropic API and Vertex AI.
Key Features:
@cba please reviewin any issue/PR commentcba-revieworcba-helplabels for automatic review.github/scripts/codebase_agent/for testabilityImplementation:
Architecture
Module Structure:
Authentication Flow:
What Changed
New Files:
.github/workflows/codebase-agent.yml- 56-line streamlined workflow with dual auth.github/scripts/codebase_agent/- Modular Python package (4 files)Modified Files:
docs/patterns/codebase-agent.md- Updated with authentication options guideRemoved Complexity:
Authentication Options
Option 1: Anthropic API (Default - Recommended)
Setup:
ANTHROPIC_API_KEYsecretBest for: Quick setup, any cloud, pay-as-you-go
Option 2: Vertex AI (Advanced)
Setup:
Best for: GCP users, no API keys, enterprise deployments
Automatic Fallback: Workflow tries Vertex AI first, falls back to Anthropic API if unavailable.
Code Quality Improvements
Refactoring Highlights:
Agent Context (Hardcoded):
Test Plan
ANTHROPIC_API_KEYsecret (or configure Vertex AI)@cbamention in issue/PRSetup (After Merge)
Quick Start (Anthropic API):
ANTHROPIC_API_KEYfrom https://console.anthropic.comAdvanced (Vertex AI):
Usage:
Files Modified
🤖 Generated with Claude Code