Repository navigation
Expand file tree
/
Copy pathexample.config.toml
More file actions
111 lines (100 loc) · 5.04 KB
/
Copy pathexample.config.toml
File metadata and controls
111 lines (100 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# .sweeper/config.toml — sweeper project configuration
# Copy to .sweeper/config.toml or ~/.sweeper/config.toml
#
# Precedence (highest to lowest):
# 1. CLI flags (--concurrency, --provider, etc.)
# 2. SWEEPER_* environment variables
# 3. .sweeper/config.toml (project)
# 4. ~/.sweeper/config.toml (user)
# 5. Built-in defaults
version = 1
[run]
concurrency = 2
rate_limit = "2s"
max_rounds = 1
stale_threshold = 2
# dry_run = false
[provider]
name = "pi"
# model = "" # a model registered with pi (~/.pi/agent/models.json)
# api_base = "" # API providers (ollama) only; CLI providers manage their own endpoints
# extra_args = [] # extra CLI args before the prompt, e.g. ["-e", "guardrails.ts"]
# allowed_tools = ["Read", "Write", "Edit", "Glob", "Grep"]
# pi resolves models through its own registry (~/.pi/agent/models.json), so
# any model registered there — cloud providers, local Ollama variants, or a
# semantic router like vllm-sr/auto — is reachable by name with no endpoint
# config on the sweeper side. Provider credentials come from pi's environment.
# With name = "claude": under the default capture mode (auto), sweeper
# launches claude sub-agents via `paperctl start claude` when the paperctl
# CLI is installed, so paper's gateway manages auth and captures the session
# (no ANTHROPIC_API_KEY is used). See [capture] to swap gateways.
# [worker]
# Alias for [provider] — the fix-executing role. Non-empty worker fields win
# over [provider], which remains supported for back-compat.
# name = "ollama"
# model = "qwen2.5-coder:7b"
# api_base = "http://localhost:11434"
# [worker.escalation]
# Model escalation ladder: rungs above the base worker, climbed one step per
# stagnation (stale_threshold non-improving rounds), keeping the exploration
# prompt. Entries are "model" (runs on the worker's provider) or
# "provider/model". A file is only given up on after exploring at the top rung.
# A rung on the worker's own provider inherits api_base above; a rung on a
# different provider takes its endpoint from [providers.<name>] below, or the
# provider default when no section exists.
# NOTE: bare entries run on the WORKER's provider — with pi now the default,
# a bare "claude-sonnet-5" would run as `pi --model claude-sonnet-5`. Prefix
# cross-provider rungs explicitly ("claude/claude-sonnet-5"); the resolved
# ladder is printed at startup.
# With [vm] enabled, rungs run `claude --model <rung>` inside the VM, so
# every entry must resolve to the claude provider.
# ladder = ["pi/qwen38-27b", "claude/claude-haiku-4-5", "claude/claude-sonnet-5"]
# [providers.<name>]
# Per-provider endpoints and CLI args, keyed by registered provider name.
# Used by escalation rungs (and the advisor's extra_args) running on that
# provider, and by the worker itself when worker.api_base / extra_args are
# unset. api_base only applies to API providers (ollama); CLI providers
# (pi, claude, codex) manage their own endpoints and warn if it is set.
# [providers.ollama]
# api_base = "http://gpu-box:11434"
# [providers.pi]
# extra_args = ["--no-extensions"]
# [advisor]
# Optional sweep-planning phase: a frontier model plans each round (task
# ordering, difficulty, strategy hints) before cheap workers execute fixes.
# The advisor sees lint output and history only — never file contents.
# Requires a CLI provider (claude, codex). Unset = disabled (mechanical plan).
# With [vm] enabled, the advisor runs inside the VM and must use claude.
# name = "claude"
# model = "claude-opus-4-8"
# [capture]
# Session-capture gateway for sub-agent runs; swap between paper and tapes
# as needed.
# auto (default) wrap CLI agents with paperctl when installed (legacy
# `paper` binary also detected); pi runs bare (it owns its providers)
# paper require paperctl; wraps `paperctl start claude|pi -- ...`
# tapes point sub-agent Anthropic traffic at the tapes proxy
# (`tapes start` must be running; claude keeps its own login)
# none run agents bare on their own login, no capture
# Capture applies to claude and pi; explicit paper/tapes with codex/ollama
# or with [vm] enabled is rejected rather than silently dropped.
# mode = "auto"
# tapes_proxy = "http://localhost:8080" # match `tapes start`'s proxy port
[telemetry]
# backend: "jsonl" (default, always active) or "confluent" (adds Kafka fan-out)
backend = "jsonl"
dir = ".sweeper/telemetry"
# [telemetry.confluent]
# brokers = ["pkc-xxxxx.us-west-2.aws.confluent.cloud:9092"]
# topic = "sweeper.telemetry"
# client_id = "sweeper"
# api_key_env = "CONFLUENT_API_KEY"
# api_secret_env = "CONFLUENT_API_SECRET"
# publish_timeout = "5s"
# [vm]
# enabled = false
# backend = "stereos" # "stereos" (mb, default), "smol" (smolvm microVMs) or "daytona" (cloud sandboxes)
# name = "" # attach to an existing VM/sandbox on the chosen backend
# jcard = "" # stereos only: custom jcard.toml
# image = "" # smol: OCI image (default node:22-bookworm-slim); daytona: snapshot (default daytona-medium)
# init = "" # daytona only: setup command run in the workspace after boot, e.g. "npm ci"