AgentForge

Code Reviewer Template

Pre-built code review agent for analyzing diffs, finding bugs, and suggesting improvements.

Usage

import { createCodeReviewer, createLLM } from '@ahzan-agentforge/core';

const agent = createCodeReviewer({
  llm: createLLM({ provider: 'anthropic', model: 'claude-sonnet-4-20250514' }),
});

const result = await agent.run({
  task: 'Review the changes in this pull request',
  context: diff,
});

CodeReviewerConfig

interface CodeReviewerConfig {
  llm: LLM;
  // Additional template-specific options
}

Included Capabilities

  • Diff analysis
  • Bug detection
  • Style and pattern suggestions
  • Security vulnerability scanning

Next Steps