Documentation
¶
Overview ¶
Package claudecli runs reviews by shelling out to the Claude Code CLI in headless mode (claude -p, stream-json output, structured output schema). It is the only package that knows the claude binary exists.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MinVersion = [2]int{2, 0}
MinVersion is the oldest claude CLI this backend is tested against.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// ClaudePath is the binary to run ("claude" resolved on PATH by default).
ClaudePath string
Provider string // anthropic | bedrock
Model string
Bare bool
// UseAgents grants the Task tool so the reviewer can delegate to
// Claude Code subagents; write/exec tools stay denied throughout.
UseAgents bool
Bedrock config.Bedrock
ExtraEnv map[string]string
// DumpDir receives raw stream transcripts for debugging; empty disables.
DumpDir string
// LookupEnv defaults to os.LookupEnv; injectable for tests.
LookupEnv func(string) (string, bool)
}
Backend implements review.Reviewer via the claude CLI.
func (*Backend) CheckAvailable ¶
CheckAvailable verifies the claude binary exists and is new enough.
Click to show internal directories.
Click to hide internal directories.