reviewer

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package reviewer provides definitions for per-perspective code review agents.

Each reviewer agent inspects all changes on the current branch since the fork point from the default branch and reports findings from a single perspective (security, code quality, performance, or maintainability). The caller assembles the four perspectives into a unified review.

Index

Constants

This section is empty.

Variables

View Source
var AllPerspectives = []Perspective{
	Security,
	CodeQuality,
	Performance,
	Maintainability,
}

AllPerspectives lists every built-in review perspective in canonical order.

Functions

func BuildDefinition

func BuildDefinition(perspective Perspective, baseSHA string, m model.ID, fallbacks ...model.ID) agentreg.Definition

BuildDefinition constructs a reviewer agent Definition for the given perspective. baseSHA is the merge-base commit from which the branch diverged; it is embedded in the system prompt so the agent knows which commits to review. m is the model to run the reviewer agent with, resolved from [review.reviewer_subagent].model; empty means unconfigured, and the agent run fails with a clear error rather than falling back to a default model. fallbacks lists any configured fallback models in order.

Types

type Perspective

type Perspective string

Perspective identifies the review lens a reviewer agent applies.

const (
	Security        Perspective = "security"
	CodeQuality     Perspective = "code-quality"
	Performance     Perspective = "performance"
	Maintainability Perspective = "maintainability"
)

Source Files

  • definition.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL