just why not
All checks were successful
AI Codebase Quality Review / ai-codebase-review (push) Successful in 39s
All checks were successful
AI Codebase Quality Review / ai-codebase-review (push) Successful in 39s
This commit is contained in:
17
CLAUDE.md
17
CLAUDE.md
@@ -69,11 +69,17 @@ The codebase uses an **agent-based architecture** where specialized agents handl
|
||||
- `execute(context)` - Main execution logic
|
||||
- Returns `AgentResult` with success status, message, data, and actions taken
|
||||
|
||||
**Core Agents:**
|
||||
- **PRAgent** - Reviews pull requests with inline comments and security scanning
|
||||
- **IssueAgent** - Triages issues and responds to @ai-bot commands
|
||||
- **IssueAgent** - Triages issues and responds to @codebot commands
|
||||
- **CodebaseAgent** - Analyzes entire codebase health and tech debt
|
||||
- **ChatAgent** - Interactive assistant with tool calling (search_codebase, read_file, search_web)
|
||||
|
||||
**Specialized Agents:**
|
||||
- **DependencyAgent** - Scans dependencies for security vulnerabilities (Python, JavaScript)
|
||||
- **TestCoverageAgent** - Analyzes code for test coverage gaps and suggests test cases
|
||||
- **ArchitectureAgent** - Enforces layer separation and detects architecture violations
|
||||
|
||||
3. **Dispatcher** (`dispatcher.py`) - Routes events to appropriate agents:
|
||||
- Registers agents at startup
|
||||
- Determines which agents can handle each event
|
||||
@@ -84,14 +90,23 @@ The codebase uses an **agent-based architecture** where specialized agents handl
|
||||
|
||||
The `LLMClient` (`clients/llm_client.py`) provides a unified interface for multiple LLM providers:
|
||||
|
||||
**Core Providers (in llm_client.py):**
|
||||
- **OpenAI** - Primary provider (gpt-4.1-mini default)
|
||||
- **OpenRouter** - Multi-provider access (claude-3.5-sonnet)
|
||||
- **Ollama** - Self-hosted models (codellama:13b)
|
||||
|
||||
**Additional Providers (in clients/providers/):**
|
||||
- **AnthropicProvider** - Direct Anthropic Claude API (claude-3.5-sonnet)
|
||||
- **AzureOpenAIProvider** - Azure OpenAI Service with API key auth
|
||||
- **AzureOpenAIWithAADProvider** - Azure OpenAI with Azure AD authentication
|
||||
- **GeminiProvider** - Google Gemini API (public)
|
||||
- **VertexAIGeminiProvider** - Google Vertex AI Gemini (enterprise GCP)
|
||||
|
||||
Key features:
|
||||
- Tool/function calling support via `call_with_tools(messages, tools)`
|
||||
- JSON response parsing with fallback extraction
|
||||
- Provider-specific configuration via `config.yml`
|
||||
- Configurable timeouts per provider
|
||||
|
||||
### Platform Abstraction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user