feat: Add GitHub Actions Codebase Agent workflow#16
Closed
jeremyeder wants to merge 1 commit intomainfrom
Closed
Conversation
Collaborator
Author
|
jeremyeder@e792750#diff-9cd72ff775ffa406e961bc36383131d421b160a149ce6d3abc6343897f04cc6fR131 this is where it could be customized. |
ecb4f5c to
ca71cd2
Compare
Extract inline Python to standalone module for testability and maintainability. Reduce workflow from 207 lines to 43 lines. Changes: - Extract Python to .github/scripts/codebase_agent/ module - Add Vertex AI support with automatic Anthropic API fallback - Add error handling for API failures and timeouts - Simplify error handling (trust base exception messages) - Remove unused GCP Workload Identity setup from workflow - Update docs with dual authentication options - Remove "Powered by Vertex AI" messaging - Add comprehensive GCP Workload Identity setup guide Authentication: - Try Vertex AI first (if GCP_PROJECT_ID set) - Fall back to Anthropic API automatically - Clear error messages when neither configured Result: 71% code reduction with flexible authentication Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ca71cd2 to
ac3670f
Compare
Collaborator
Author
Documentation Updates AddedAdded commit Changes:
CLAUDE.md Improvements:
All markdown linting passes ✓ |
ebf1acf to
ac3670f
Compare
Contributor
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
Contributor
|
This pull request has been automatically closed due to inactivity. If you'd like to continue working on this, please reopen or create a new PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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