analyzer

package
v0.0.0-...-332dcef Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderClaude = "claude"
	ProviderCodex  = "codex"
)

Variables

This section is empty.

Functions

func BuildACPCommand

func BuildACPCommand(provider, model string) (resolvedProvider string, command []string, err error)

BuildACPCommand resolves provider and builds the ACP launcher command.

func BuildDiscoveryRunSystemPrompt

func BuildDiscoveryRunSystemPrompt(workDir, resultDir string) string

BuildDiscoveryRunSystemPrompt builds a system prompt for run-scoped discovery results.

func BuildWorkspaceSystemPrompt

func BuildWorkspaceSystemPrompt(workDir string) string

BuildWorkspaceSystemPrompt builds a system prompt for the structured workspace layout.

func RunAgent

func RunAgent(ctx context.Context, config Config, workDir, question string) (string, error)

RunAgent runs the AI agent on an existing workspace directory using the default system prompt.

func RunAgentWithPrompt

func RunAgentWithPrompt(ctx context.Context, config Config, workDir, question, systemPrompt string) (string, error)

RunAgentWithPrompt runs the AI agent on an existing workspace directory with a custom system prompt.

Types

type Config

type Config struct {
	Provider string
	Model    string
	// TapePath overrides the default workspace tape file.
	TapePath string
}

Config holds configuration for the analyzer.

Jump to

Keyboard shortcuts

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