Documentation
¶
Index ¶
Constants ¶
const DefaultReviewMaxDiffBytes = 400_000
DefaultReviewMaxDiffBytes keeps a reviewer prompt well under a model's context window. A 1.6 MB diff is what broke a real run.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Backend string `yaml:"backend"`
Gate GateConfig `yaml:"gate"`
ToolPolicy PolicyConfig `yaml:"tool_policy"`
AskAndWaitTimeout map[string]string `yaml:"ask_and_wait_timeout"`
RoleModels map[string]string `yaml:"role_models"`
Graph GraphConfig `yaml:"graph"`
GitHub GitHubConfig `yaml:"github"`
Review ReviewConfig `yaml:"review"`
}
func Load ¶
Load reads and validates a Golem config.yaml. Backend is required — golem init never writes a config without one (spec: Distribution & Ownership — no silent default).
func (*Config) AskAndWaitTimeoutFor ¶
func (*Config) ReviewMaxDiffBytes ¶ added in v0.1.0
ReviewMaxDiffBytes resolves the reviewer diff cap.
type GateConfig ¶
type GitHubConfig ¶ added in v0.1.0
type GitHubConfig struct {
Repo string `yaml:"repo"` // "org/repo" (required; not inferred from the git remote)
Label string `yaml:"label"` // trigger label, default "golem"
Write bool `yaml:"write"`
}
GitHubConfig configures CLI-mode GitHub access.
Write defaults to false. An orchestrator-managed repository must have exactly one writer, or the CLI and the orchestrator will post duplicate comments and fight over labels. `golem init` sets Write true for standalone use; the shem sets it false for repos it manages.
type GraphConfig ¶
type PolicyConfig ¶
type ReviewConfig ¶ added in v0.1.0
type ReviewConfig struct {
// MaxDiffBytes caps the diff sent to the reviewer; a larger one is sent
// as a per-file summary with a truncation marker. 0 means the default.
MaxDiffBytes int `yaml:"max_diff_bytes"`
}