loreli 0.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +710 -97
- package/bin/loreli.js +89 -0
- package/package.json +77 -14
- package/packages/README.md +101 -0
- package/packages/action/README.md +98 -0
- package/packages/action/prompts/action.md +172 -0
- package/packages/action/src/index.js +684 -0
- package/packages/agent/README.md +606 -0
- package/packages/agent/src/backends/claude.js +387 -0
- package/packages/agent/src/backends/codex.js +351 -0
- package/packages/agent/src/backends/cursor.js +371 -0
- package/packages/agent/src/backends/index.js +486 -0
- package/packages/agent/src/base.js +138 -0
- package/packages/agent/src/cli.js +275 -0
- package/packages/agent/src/discover.js +396 -0
- package/packages/agent/src/factory.js +124 -0
- package/packages/agent/src/index.js +12 -0
- package/packages/agent/src/models.js +159 -0
- package/packages/agent/src/output.js +62 -0
- package/packages/agent/src/session.js +162 -0
- package/packages/agent/src/trace.js +186 -0
- package/packages/classify/README.md +136 -0
- package/packages/classify/prompts/blocker.md +12 -0
- package/packages/classify/prompts/feedback.md +14 -0
- package/packages/classify/prompts/pane-state.md +20 -0
- package/packages/classify/src/index.js +81 -0
- package/packages/config/README.md +898 -0
- package/packages/config/src/defaults.js +145 -0
- package/packages/config/src/index.js +223 -0
- package/packages/config/src/schema.js +291 -0
- package/packages/config/src/validate.js +160 -0
- package/packages/context/README.md +165 -0
- package/packages/context/src/index.js +198 -0
- package/packages/hub/README.md +338 -0
- package/packages/hub/src/base.js +154 -0
- package/packages/hub/src/github.js +1597 -0
- package/packages/hub/src/index.js +79 -0
- package/packages/hub/src/labels.js +48 -0
- package/packages/identity/README.md +288 -0
- package/packages/identity/src/index.js +620 -0
- package/packages/identity/src/themes/avatar.js +217 -0
- package/packages/identity/src/themes/digimon.js +217 -0
- package/packages/identity/src/themes/dragonball.js +217 -0
- package/packages/identity/src/themes/lotr.js +217 -0
- package/packages/identity/src/themes/marvel.js +217 -0
- package/packages/identity/src/themes/pokemon.js +217 -0
- package/packages/identity/src/themes/starwars.js +217 -0
- package/packages/identity/src/themes/transformers.js +217 -0
- package/packages/identity/src/themes/zelda.js +217 -0
- package/packages/knowledge/README.md +217 -0
- package/packages/knowledge/src/index.js +243 -0
- package/packages/log/README.md +93 -0
- package/packages/log/src/index.js +252 -0
- package/packages/marker/README.md +200 -0
- package/packages/marker/src/index.js +184 -0
- package/packages/mcp/README.md +323 -0
- package/packages/mcp/instructions.md +126 -0
- package/packages/mcp/scaffolding/.agents/skills/loreli-context/SKILL.md +89 -0
- package/packages/mcp/scaffolding/ISSUE_TEMPLATE/config.yml +2 -0
- package/packages/mcp/scaffolding/ISSUE_TEMPLATE/loreli.yml +83 -0
- package/packages/mcp/scaffolding/loreli.yml +491 -0
- package/packages/mcp/scaffolding/mcp-configs/.codex/config.toml +4 -0
- package/packages/mcp/scaffolding/mcp-configs/.cursor/mcp.json +14 -0
- package/packages/mcp/scaffolding/mcp-configs/.mcp.json +14 -0
- package/packages/mcp/scaffolding/pull-request.md +23 -0
- package/packages/mcp/src/index.js +600 -0
- package/packages/mcp/src/tools/agent-context.js +44 -0
- package/packages/mcp/src/tools/agents.js +450 -0
- package/packages/mcp/src/tools/context.js +200 -0
- package/packages/mcp/src/tools/github.js +1163 -0
- package/packages/mcp/src/tools/hitl.js +162 -0
- package/packages/mcp/src/tools/index.js +18 -0
- package/packages/mcp/src/tools/refactor.js +227 -0
- package/packages/mcp/src/tools/repo.js +44 -0
- package/packages/mcp/src/tools/start.js +904 -0
- package/packages/mcp/src/tools/status.js +149 -0
- package/packages/mcp/src/tools/work.js +134 -0
- package/packages/orchestrator/README.md +192 -0
- package/packages/orchestrator/src/index.js +1492 -0
- package/packages/planner/README.md +251 -0
- package/packages/planner/prompts/plan-reviewer.md +109 -0
- package/packages/planner/prompts/planner.md +191 -0
- package/packages/planner/prompts/tiebreaker-reviewer.md +71 -0
- package/packages/planner/src/index.js +1381 -0
- package/packages/review/README.md +129 -0
- package/packages/review/prompts/reviewer.md +158 -0
- package/packages/review/src/index.js +1403 -0
- package/packages/risk/README.md +178 -0
- package/packages/risk/prompts/risk.md +272 -0
- package/packages/risk/src/index.js +439 -0
- package/packages/session/README.md +165 -0
- package/packages/session/src/index.js +215 -0
- package/packages/test-utils/README.md +96 -0
- package/packages/test-utils/src/index.js +354 -0
- package/packages/tmux/README.md +261 -0
- package/packages/tmux/src/index.js +501 -0
- package/packages/workflow/README.md +317 -0
- package/packages/workflow/prompts/preamble.md +14 -0
- package/packages/workflow/src/index.js +660 -0
- package/packages/workflow/src/proof-of-life.js +74 -0
- package/packages/workspace/README.md +143 -0
- package/packages/workspace/src/index.js +1127 -0
- package/index.js +0 -8
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
# loreli.yml - repo-level orchestration config
|
|
2
|
+
# See https://www.npmjs.com/package/loreli for full documentation.
|
|
3
|
+
#
|
|
4
|
+
# Duration fields support both numbers (milliseconds) and strings parsed by `ms`.
|
|
5
|
+
# Prefer strings like 10m, 1h, 3d for readability.
|
|
6
|
+
|
|
7
|
+
# --- Identity ---
|
|
8
|
+
# theme
|
|
9
|
+
# What: Chooses naming/theme vocabulary for agent identities and system messages.
|
|
10
|
+
# Impact: Cosmetic only; does not change orchestration behavior or model quality.
|
|
11
|
+
# Signal: Humans find agent identity/readability poor in PRs, comments, or dashboards.
|
|
12
|
+
# Change when: You want agent names/messages to match your team's preferred style.
|
|
13
|
+
theme: transformers # string or list: transformers | pokemon | marvel | digimon | starwars | lotr | dragonball | avatar | zelda
|
|
14
|
+
# theme: # list = randomize theme per work item
|
|
15
|
+
# - transformers
|
|
16
|
+
# - pokemon
|
|
17
|
+
# - marvel
|
|
18
|
+
|
|
19
|
+
# --- Agent defaults ---
|
|
20
|
+
# model
|
|
21
|
+
# What: Default model tier when tools do not specify a model explicitly.
|
|
22
|
+
# Impact: Higher tiers are usually stronger but slower/more expensive.
|
|
23
|
+
# Signal: Repeated low-quality outputs at current tier, or cost/latency pressure from higher tiers.
|
|
24
|
+
# Change when: You want a global quality/cost baseline shift for all agents.
|
|
25
|
+
model: balanced # fast | balanced | powerful | exact model string
|
|
26
|
+
|
|
27
|
+
# repo
|
|
28
|
+
# What: Optional repository slug fallback for standalone tool contexts before start runs.
|
|
29
|
+
# Impact: Enables tools like `loreli tools context`, `start_work`, and `hitl` to resolve repository scope without session hydration.
|
|
30
|
+
# Signal: CLI tools report "No repository configured" outside agent/start sessions.
|
|
31
|
+
# Change when: You regularly run Loreli tools directly from a shell and want a persistent repo default.
|
|
32
|
+
# repo: owner/repo
|
|
33
|
+
|
|
34
|
+
# --- Merge gate ---
|
|
35
|
+
# reviewers
|
|
36
|
+
# What: GitHub usernames for HITL review requests.
|
|
37
|
+
# Impact: Non-empty reviewers typically means more human approval steps.
|
|
38
|
+
# Signal: PRs merge without enough human oversight, or reviewer assignment is missing expected owners.
|
|
39
|
+
# Change when: You want specific humans looped into merges.
|
|
40
|
+
reviewers: [] # empty = autonomous merge path
|
|
41
|
+
|
|
42
|
+
merge:
|
|
43
|
+
# merge.method
|
|
44
|
+
# What: Git merge strategy used by Loreli when merging approved PRs.
|
|
45
|
+
# Impact: Changes commit history shape (single squash commit vs merge commit vs rebase history).
|
|
46
|
+
# Signal: Repository policy violations or maintainer feedback about history shape.
|
|
47
|
+
# Change when: Your repo has a strict merge policy.
|
|
48
|
+
method: squash # squash | merge | rebase
|
|
49
|
+
|
|
50
|
+
# merge.hitl
|
|
51
|
+
# What: Enables/disables Human In The Loop merge gating.
|
|
52
|
+
# Impact: true blocks final merge on human approval; false allows full automation.
|
|
53
|
+
# Signal: Unexpected autonomous merges (need true) or merge throughput too slow due to manual gates (consider false).
|
|
54
|
+
# Change when: You need more safety (set true) or more autonomy/speed (set false).
|
|
55
|
+
hitl: false
|
|
56
|
+
|
|
57
|
+
# merge.base
|
|
58
|
+
# What: Base branch target for agent PRs.
|
|
59
|
+
# Impact: Controls where agent changes accumulate (for example staging branch vs main).
|
|
60
|
+
# Signal: Main branch receiving agent merges too early, or release managers asking for a promotion/staging lane.
|
|
61
|
+
# Change when: You want agents to merge into an integration branch before promotion to main.
|
|
62
|
+
base: loreli
|
|
63
|
+
|
|
64
|
+
# --- PR quality gates ---
|
|
65
|
+
pr:
|
|
66
|
+
validation:
|
|
67
|
+
# pr.validation.command
|
|
68
|
+
# What: Shell command run before `pr/create` is allowed.
|
|
69
|
+
# Impact: Non-zero exit blocks PR creation; stronger checks reduce bad PRs but increase latency.
|
|
70
|
+
# Signal: PRs repeatedly fail CI after creation (tighten command), or PR creation is bottlenecked by long prechecks (lighten command).
|
|
71
|
+
# Change when: You want a different gate (for example lint+test, unit-only, or build-only).
|
|
72
|
+
command: npm test
|
|
73
|
+
|
|
74
|
+
selfReview:
|
|
75
|
+
# pr.selfReview.enabled
|
|
76
|
+
# What: Requires a preview step before actual PR creation.
|
|
77
|
+
# Impact: Adds one extra tool step but catches obvious metadata/diff mistakes early.
|
|
78
|
+
# Signal: Frequent wrong-base/wrong-scope PRs (enable), or operators report friction from two-step create flow (disable).
|
|
79
|
+
# Change when: You want faster single-step PR creation (set false) or stricter guardrails (true).
|
|
80
|
+
enabled: true
|
|
81
|
+
|
|
82
|
+
# --- HITL behavior ---
|
|
83
|
+
hitl:
|
|
84
|
+
# hitl.timeout
|
|
85
|
+
# What: Max idle age for HITL-owned claims before stale-claim eviction logic can act.
|
|
86
|
+
# Impact: Lower values recycle stuck ownership faster; higher values preserve ownership longer.
|
|
87
|
+
# Signal: Claims remain stuck for days (decrease), or valid long human review cycles get evicted too early (increase).
|
|
88
|
+
# Change when: Human review cadence is slower/faster than current default.
|
|
89
|
+
# Special: null disables stale-claim eviction in HITL mode.
|
|
90
|
+
timeout: 3d
|
|
91
|
+
|
|
92
|
+
# --- Stall and lifecycle timeouts ---
|
|
93
|
+
timeouts:
|
|
94
|
+
# timeouts.stall
|
|
95
|
+
# What: No-activity threshold for stall escalation.
|
|
96
|
+
# Impact: >stall triggers tier-1, >2x triggers tier-2 warning, >3x triggers kill.
|
|
97
|
+
# Signal: Agents killed during legitimate long runs (increase), or stalled agents consume slots too long (decrease).
|
|
98
|
+
# Change when: Agents are killed too aggressively on long tasks (increase),
|
|
99
|
+
# or stuck agents linger too long (decrease).
|
|
100
|
+
stall: 10m
|
|
101
|
+
|
|
102
|
+
# timeouts.shutdown
|
|
103
|
+
# What: Grace window for cooperative shutdown before force stop.
|
|
104
|
+
# Impact: Lower values free resources faster; higher values allow cleaner agent exits.
|
|
105
|
+
# Signal: Frequent force-kill shutdowns while agents are still finishing final output (increase),
|
|
106
|
+
# or shutdown hangs tying up capacity (decrease).
|
|
107
|
+
# Change when: Agents need more time to finalize output before shutdown.
|
|
108
|
+
shutdown: 1m
|
|
109
|
+
|
|
110
|
+
# timeouts.poll
|
|
111
|
+
# What: Poll cadence during shutdown waiting loop.
|
|
112
|
+
# Impact: Lower values detect stop faster but increase loop overhead.
|
|
113
|
+
# Signal: Slow recognition of completed shutdowns (decrease), or excessive polling/log churn during shutdown (increase).
|
|
114
|
+
# Change when: You want quicker shutdown detection or lower polling churn.
|
|
115
|
+
poll: 2s
|
|
116
|
+
|
|
117
|
+
# timeouts.rapidDeath
|
|
118
|
+
# What: Startup watch window used to detect immediate backend failures.
|
|
119
|
+
# Impact: Helps mark unhealthy backends degraded sooner after repeated instant failures.
|
|
120
|
+
# Signal: Backends crash quickly but are not degraded soon enough (increase), or degraded too aggressively from transient startup blips (decrease).
|
|
121
|
+
# Change when: Startup failures are missed (increase) or false positives occur (decrease).
|
|
122
|
+
rapidDeath: 15s
|
|
123
|
+
|
|
124
|
+
# timeouts.proxyDiscovery
|
|
125
|
+
# What: HTTP timeout for proxy model discovery calls used by claude/codex.
|
|
126
|
+
# Impact: Lower values fail fast on unhealthy proxies; higher values tolerate slower proxy endpoints.
|
|
127
|
+
# Signal: Discovery frequently times out on healthy but slow networks (increase),
|
|
128
|
+
# or startup blocks too long on unreachable proxy endpoints (decrease).
|
|
129
|
+
# Change when: Proxy-backed environments need slower/faster discovery behavior.
|
|
130
|
+
proxyDiscovery: 5s
|
|
131
|
+
|
|
132
|
+
# timeouts.nudge
|
|
133
|
+
# What: Enables/disables tier-1 "you appear stalled" message.
|
|
134
|
+
# Impact: true may interrupt deep work; false keeps escalation signals without message interruption.
|
|
135
|
+
# Signal: Agents frequently context-switch into status reporting mid-task (disable), or teams need explicit stall prompts (enable).
|
|
136
|
+
# Change when: Long-running autonomous tasks should not be interrupted.
|
|
137
|
+
nudge: true
|
|
138
|
+
|
|
139
|
+
# --- Reactor polling ---
|
|
140
|
+
watch:
|
|
141
|
+
# watch.interval
|
|
142
|
+
# What: Main orchestration tick interval.
|
|
143
|
+
# Impact: Lower = faster reaction to new issues/PR state changes, higher API/process load.
|
|
144
|
+
# Signal: Claim/review actions happen too slowly after repo events (decrease), or API rate pressure/churn is high (increase).
|
|
145
|
+
# Change when: You need faster responsiveness or lower background churn.
|
|
146
|
+
interval: 1m
|
|
147
|
+
|
|
148
|
+
# watch.maxRounds
|
|
149
|
+
# What: Maximum re-review/rework loop cycles before escalation.
|
|
150
|
+
# Impact: Higher values allow deeper autonomous iteration; lower values force earlier human escalation.
|
|
151
|
+
# Signal: PRs escalate before they can converge autonomously (increase), or loops churn too long without convergence (decrease).
|
|
152
|
+
# Change when: PRs routinely need more/less autonomous correction rounds.
|
|
153
|
+
maxRounds: 7
|
|
154
|
+
|
|
155
|
+
# watch.maxClaims
|
|
156
|
+
# What: Max simultaneous issue claims per action agent.
|
|
157
|
+
# Impact: Higher increases per-agent throughput but can dilute focus and increase context switching.
|
|
158
|
+
# Signal: Idle action agents with unclaimed work (increase), or agents juggle too many tasks and miss follow-through (decrease).
|
|
159
|
+
# Change when: Agents are underutilized (increase) or overloaded (decrease).
|
|
160
|
+
maxClaims: 3
|
|
161
|
+
|
|
162
|
+
# --- Scaling policy ---
|
|
163
|
+
scaling:
|
|
164
|
+
# scaling.maxAgents
|
|
165
|
+
# What: Global cap for active non-dormant agents.
|
|
166
|
+
# Impact: Upper bound on parallelism and compute/resource consumption.
|
|
167
|
+
# Signal: Backlog grows with idle infrastructure (increase), or host/API limits are saturated (decrease).
|
|
168
|
+
# Change when: You need more throughput (increase) or tighter resource limits (decrease).
|
|
169
|
+
maxAgents: 8
|
|
170
|
+
|
|
171
|
+
# scaling.maxPerTick
|
|
172
|
+
# What: Spawn budget per reactor tick.
|
|
173
|
+
# Impact: Higher values ramp up faster but can spike load.
|
|
174
|
+
# Signal: Slow recovery from empty capacity (increase), or sudden spawn bursts causing instability (decrease).
|
|
175
|
+
# Change when: Startup/recovery is too slow (increase) or too bursty (decrease).
|
|
176
|
+
maxPerTick: 2
|
|
177
|
+
|
|
178
|
+
# scaling.cooldown
|
|
179
|
+
# What: Minimum delay before spawning another agent of the same role.
|
|
180
|
+
# Impact: Prevents spawn thrashing when demand oscillates.
|
|
181
|
+
# Signal: Repeated rapid spawn/stop cycles for same role (increase), or role fill speed too slow during sustained demand (decrease).
|
|
182
|
+
# Change when: You see role churn/flapping or need faster re-scaling.
|
|
183
|
+
cooldown: 30s
|
|
184
|
+
|
|
185
|
+
# --- Logging ---
|
|
186
|
+
log:
|
|
187
|
+
# log.level
|
|
188
|
+
# What: Minimum severity written to logs.
|
|
189
|
+
# Impact: Lower levels (debug/trace) increase observability and log volume.
|
|
190
|
+
# Signal: Hard-to-diagnose behavior with insufficient log detail (lower level), or noisy oversized logs (raise level).
|
|
191
|
+
# Change when: Debugging production behavior or reducing noise.
|
|
192
|
+
level: info # error | warn | info | debug | trace
|
|
193
|
+
|
|
194
|
+
# log.maxSize
|
|
195
|
+
# What: Per-file rotation size threshold in bytes.
|
|
196
|
+
# Impact: Larger files reduce rotation frequency but grow disk usage per file.
|
|
197
|
+
# Signal: Too-frequent rotations splitting incidents (increase), or very large log files hard to handle (decrease).
|
|
198
|
+
# Change when: You want fewer rotations or smaller log files.
|
|
199
|
+
maxSize: 10485760 # 10 MB
|
|
200
|
+
|
|
201
|
+
# log.maxFiles
|
|
202
|
+
# What: Number of rotated files retained.
|
|
203
|
+
# Impact: Higher values keep more history and consume more disk.
|
|
204
|
+
# Signal: Needed historical context disappears before investigation (increase), or disk pressure from logs (decrease).
|
|
205
|
+
# Change when: You need longer local forensic history.
|
|
206
|
+
maxFiles: 3
|
|
207
|
+
|
|
208
|
+
# --- Labels ---
|
|
209
|
+
labels:
|
|
210
|
+
# labels.track
|
|
211
|
+
# What: Adds Loreli/provider/model tracking labels to issues and PRs.
|
|
212
|
+
# Impact: Better observability/filtering in GitHub labels, but more label traffic.
|
|
213
|
+
# Signal: Need to filter/report by provider/role/model (enable), or label clutter complaints from maintainers (disable).
|
|
214
|
+
# Change when: You want a cleaner label surface (set false).
|
|
215
|
+
track: true
|
|
216
|
+
|
|
217
|
+
# labels.extra
|
|
218
|
+
# What: Extra labels applied to all Loreli-created items.
|
|
219
|
+
# Impact: Improves triage/routing automation via label-based workflows.
|
|
220
|
+
# Signal: Manual relabeling happens repeatedly after Loreli creates items.
|
|
221
|
+
# Change when: You need team/project labels attached automatically.
|
|
222
|
+
extra: []
|
|
223
|
+
|
|
224
|
+
# --- Agent tool restrictions ---
|
|
225
|
+
agents:
|
|
226
|
+
disallowedTools:
|
|
227
|
+
# agents.disallowedTools
|
|
228
|
+
# What: Commands agents cannot execute directly.
|
|
229
|
+
# Impact: Helps prevent bypassing MCP guardrails and policy checks.
|
|
230
|
+
# Signal: Agents attempt raw GitHub/API shell tooling that bypasses Loreli controls.
|
|
231
|
+
# Change when: You need stricter/looser command policy.
|
|
232
|
+
- gh
|
|
233
|
+
- curl
|
|
234
|
+
|
|
235
|
+
# --- Backend model/env overrides ---
|
|
236
|
+
# backends.{name}.models
|
|
237
|
+
# What: Per-backend tier/provider model routing overrides.
|
|
238
|
+
# Impact: Changes model selection without code changes.
|
|
239
|
+
# Signal: Specific backend underperforms at current tier/provider mapping.
|
|
240
|
+
# Change when: You need backend-specific model tuning.
|
|
241
|
+
#
|
|
242
|
+
# backends.{name}.env
|
|
243
|
+
# What: Env vars injected into backend launcher scripts.
|
|
244
|
+
# Impact: Controls API base URLs, auth endpoints, and backend runtime options.
|
|
245
|
+
# Signal: Backend needs proxy routing/custom endpoint/auth flag and current environment inheritance is insufficient.
|
|
246
|
+
# Change when: You use proxies/self-hosted gateways/custom backend flags.
|
|
247
|
+
#
|
|
248
|
+
# backends:
|
|
249
|
+
# claude:
|
|
250
|
+
# env:
|
|
251
|
+
# ANTHROPIC_BASE_URL: https://your-proxy.example.com/v1
|
|
252
|
+
# models:
|
|
253
|
+
# fast:
|
|
254
|
+
# anthropic: claude-haiku-4-5-20251001
|
|
255
|
+
# balanced:
|
|
256
|
+
# anthropic: claude-sonnet-4-5-20250929
|
|
257
|
+
# powerful:
|
|
258
|
+
# anthropic: claude-opus-4-5-20251101
|
|
259
|
+
# codex:
|
|
260
|
+
# env:
|
|
261
|
+
# OPENAI_BASE_URL: https://your-proxy.example.com/v1
|
|
262
|
+
# models:
|
|
263
|
+
# fast:
|
|
264
|
+
# openai: gpt-5-mini
|
|
265
|
+
# balanced:
|
|
266
|
+
# openai: gpt-5.1-codex
|
|
267
|
+
# powerful:
|
|
268
|
+
# openai: gpt-5.2-pro
|
|
269
|
+
# cursor:
|
|
270
|
+
# models:
|
|
271
|
+
# fast:
|
|
272
|
+
# anthropic: sonnet-4.5
|
|
273
|
+
# openai: gpt-5.3-codex-low
|
|
274
|
+
# balanced:
|
|
275
|
+
# anthropic: sonnet-4.5-thinking
|
|
276
|
+
# openai: gpt-5.3-codex
|
|
277
|
+
# powerful:
|
|
278
|
+
# anthropic: opus-4.6-thinking
|
|
279
|
+
# openai: gpt-5.1-codex-max
|
|
280
|
+
|
|
281
|
+
# --- Classification ---
|
|
282
|
+
classify:
|
|
283
|
+
# classify.model
|
|
284
|
+
# What: Model tier used for non-interactive classification prompts.
|
|
285
|
+
# Impact: Higher tiers may classify more accurately but cost more and respond slower.
|
|
286
|
+
# Signal: Misclassified pane states/feedback or excessive latency/cost.
|
|
287
|
+
# Change when: You want a different speed/accuracy trade-off for classification tasks.
|
|
288
|
+
model: fast
|
|
289
|
+
|
|
290
|
+
# classify.maxLines
|
|
291
|
+
# What: Max pane lines captured for classifier input.
|
|
292
|
+
# Impact: Higher values provide more context but increase token usage and prompt size.
|
|
293
|
+
# Signal: Classifier misses important terminal context (increase), or prompts are noisy/too large (decrease).
|
|
294
|
+
# Change when: Terminal-state classification needs more or less surrounding context.
|
|
295
|
+
maxLines: 100
|
|
296
|
+
|
|
297
|
+
# classify.timeout
|
|
298
|
+
# What: Timeout for non-interactive classifier calls.
|
|
299
|
+
# Impact: Higher values tolerate cold starts; lower values fail fast on stuck backends.
|
|
300
|
+
# Signal: Frequent classifier timeouts on healthy backends (increase), or long stalls waiting for dead ones (decrease).
|
|
301
|
+
# Change when: Your classifier backends are slower or faster than the default.
|
|
302
|
+
timeout: 30s
|
|
303
|
+
|
|
304
|
+
# classify.maxRetries
|
|
305
|
+
# What: Max consecutive classifier failures before the orchestrator gives up and escalates.
|
|
306
|
+
# Impact: Higher values are more tolerant of transient failures; lower values fail closed sooner.
|
|
307
|
+
# Signal: Temporary classifier hiccups cause unnecessary kills/escalations (increase), or repeated failures waste time (decrease).
|
|
308
|
+
# Change when: You need a stricter or more forgiving classifier failure budget.
|
|
309
|
+
maxRetries: 5
|
|
310
|
+
|
|
311
|
+
# --- Trace capture ---
|
|
312
|
+
trace:
|
|
313
|
+
# trace.enabled
|
|
314
|
+
# What: Master switch for workflow trace collection.
|
|
315
|
+
# Impact: Off reduces trace artifacts; on improves debuggability.
|
|
316
|
+
# Signal: Missing forensic context during incidents (enable), or trace storage overhead too high (disable).
|
|
317
|
+
# Change when: You need to reduce trace volume or increase diagnostics.
|
|
318
|
+
enabled: true
|
|
319
|
+
|
|
320
|
+
# trace.includeOutput
|
|
321
|
+
# What: Include model/tool output snippets in traces.
|
|
322
|
+
# Impact: Better debugging context but larger logs and potentially sensitive output in traces.
|
|
323
|
+
# Signal: Investigations lack enough output context (enable), or traces include too much sensitive/noisy content (disable).
|
|
324
|
+
# Change when: You want minimal traces or stricter output hygiene.
|
|
325
|
+
includeOutput: true
|
|
326
|
+
|
|
327
|
+
# trace.maxOutputChars
|
|
328
|
+
# What: Global cap of captured output chars per trace item.
|
|
329
|
+
# Impact: Higher captures richer context but grows trace size.
|
|
330
|
+
# Signal: Trace snippets are cut before key error details appear (increase), or traces are too large/noisy (decrease).
|
|
331
|
+
# Change when: Useful context is being truncated too aggressively.
|
|
332
|
+
maxOutputChars: 8000
|
|
333
|
+
|
|
334
|
+
# --- Proof of life ---
|
|
335
|
+
proofOfLife:
|
|
336
|
+
# proofOfLife.timeout
|
|
337
|
+
# What: Wait window for liveness responses before stale claim eviction actions.
|
|
338
|
+
# Impact: Lower values reclaim work faster; higher values are more tolerant of slow responses.
|
|
339
|
+
# Signal: Active claims get evicted while agents are still responsive (increase), or dead claims linger too long (decrease).
|
|
340
|
+
# Change when: Claims are reclaimed too quickly or too slowly.
|
|
341
|
+
timeout: 5m
|
|
342
|
+
|
|
343
|
+
# --- Workspace lifecycle ---
|
|
344
|
+
workspace:
|
|
345
|
+
# workspace.cleanup
|
|
346
|
+
# What: Deletes per-agent workspace directories on kill/shutdown.
|
|
347
|
+
# Impact: true saves disk space; false preserves artifacts for debugging.
|
|
348
|
+
# Signal: Disk growth from stale workspaces (enable), or need post-run forensic inspection (disable).
|
|
349
|
+
# Change when: You want cleaner disks (true) or post-mortem inspection (false).
|
|
350
|
+
cleanup: false
|
|
351
|
+
|
|
352
|
+
# --- Session cleanup ---
|
|
353
|
+
cleanup:
|
|
354
|
+
# cleanup.retention
|
|
355
|
+
# What: Age threshold for pruning old sessions.
|
|
356
|
+
# Impact: Lower values reduce disk usage; higher values keep history longer.
|
|
357
|
+
# Signal: Session storage growth pressure (decrease), or historical debugging context disappears too soon (increase).
|
|
358
|
+
# Change when: You need more/less historical session retention.
|
|
359
|
+
retention: 12h
|
|
360
|
+
|
|
361
|
+
# cleanup.autoprune
|
|
362
|
+
# What: Runs prune/sweep automatically at start.
|
|
363
|
+
# Impact: true keeps storage tidy without manual cleanup.
|
|
364
|
+
# Signal: Accumulated stale files/sessions between runs (enable), or need strict manual lifecycle control (disable).
|
|
365
|
+
# Change when: You want explicit/manual cleanup control (set false).
|
|
366
|
+
autoprune: true
|
|
367
|
+
|
|
368
|
+
# --- Per-workflow configuration ---
|
|
369
|
+
# workflows.{role}
|
|
370
|
+
# What: Per-role settings consolidating model tier, agent cap, prompt override, trace, and skip flags.
|
|
371
|
+
# Impact: Each workflow role can be tuned independently — model quality, parallelism, and observability.
|
|
372
|
+
# Signal: Different roles need different cost/quality trade-offs, scaling limits, or trace verbosity.
|
|
373
|
+
# Change when: You want per-role model tiers, scaling, custom prompts, or trace settings.
|
|
374
|
+
workflows:
|
|
375
|
+
action:
|
|
376
|
+
# workflows.action.model
|
|
377
|
+
# What: Model tier for action agents (implementation work).
|
|
378
|
+
# Impact: Controls quality/cost of code generation.
|
|
379
|
+
# Change when: You want stronger/cheaper implementation agents.
|
|
380
|
+
model: balanced
|
|
381
|
+
|
|
382
|
+
# workflows.action.maxAgents
|
|
383
|
+
# What: Max concurrent action agents.
|
|
384
|
+
# Impact: Controls parallel implementation throughput.
|
|
385
|
+
# Change when: Work backlog is implementation-heavy.
|
|
386
|
+
maxAgents: 3
|
|
387
|
+
|
|
388
|
+
# workflows.action.prompt
|
|
389
|
+
# What: Repo-local prompt file override for action agents.
|
|
390
|
+
# Impact: Changes agent instructions without code changes.
|
|
391
|
+
# Change when: You need project-specific coding guardrails.
|
|
392
|
+
# prompt: .loreli/action.md
|
|
393
|
+
|
|
394
|
+
reviewer:
|
|
395
|
+
# workflows.reviewer.model
|
|
396
|
+
# What: Model tier for reviewer agents.
|
|
397
|
+
# Change when: You want stronger/cheaper review agents.
|
|
398
|
+
model: balanced
|
|
399
|
+
maxAgents: 2
|
|
400
|
+
# prompt: .loreli/reviewer.md
|
|
401
|
+
trace:
|
|
402
|
+
enabled: true
|
|
403
|
+
maxOutputChars: 4000
|
|
404
|
+
|
|
405
|
+
risk:
|
|
406
|
+
# workflows.risk.model
|
|
407
|
+
# What: Model tier for risk assessment agents.
|
|
408
|
+
# Change when: Risk evaluation needs deeper reasoning (powerful) or is fine with fast triage (fast).
|
|
409
|
+
model: fast
|
|
410
|
+
maxAgents: 3
|
|
411
|
+
|
|
412
|
+
# workflows.risk.skip
|
|
413
|
+
# What: Skips mandatory risk verdict checks in review flow.
|
|
414
|
+
# Impact: Faster review path with less explicit risk gating.
|
|
415
|
+
# Change when: You intentionally prefer speed over formal risk signoff.
|
|
416
|
+
skip: false
|
|
417
|
+
trace:
|
|
418
|
+
enabled: true
|
|
419
|
+
maxOutputChars: 2000
|
|
420
|
+
|
|
421
|
+
planner:
|
|
422
|
+
# workflows.planner.model
|
|
423
|
+
# What: Model tier for planner agents.
|
|
424
|
+
# Change when: Planning quality needs deeper reasoning.
|
|
425
|
+
model: powerful
|
|
426
|
+
maxAgents: 1
|
|
427
|
+
# prompt: .loreli/planner.md
|
|
428
|
+
trace:
|
|
429
|
+
enabled: true
|
|
430
|
+
maxOutputChars: 4000
|
|
431
|
+
|
|
432
|
+
# --- Feedback and knowledge capture ---
|
|
433
|
+
feedback:
|
|
434
|
+
# feedback.enabled
|
|
435
|
+
# What: Master switch for feedback marker capture and knowledge aggregation.
|
|
436
|
+
# Impact: false disables automated pattern accumulation.
|
|
437
|
+
# Signal: Need to temporarily pause all feedback mining/noise.
|
|
438
|
+
# Change when: You want to pause feedback mining entirely.
|
|
439
|
+
enabled: true
|
|
440
|
+
|
|
441
|
+
# feedback.threshold
|
|
442
|
+
# What: Repeat-count threshold before a feedback pattern is promoted/escalated.
|
|
443
|
+
# Impact: Lower values promote patterns sooner; higher values reduce noisy promotions.
|
|
444
|
+
# Signal: Too many low-signal promotions (increase), or important repeated issues taking too long to surface (decrease).
|
|
445
|
+
# Change when: Pattern promotion is too noisy (increase) or too slow (decrease).
|
|
446
|
+
threshold: 5
|
|
447
|
+
|
|
448
|
+
# feedback.categories
|
|
449
|
+
# What: Allowed classifier buckets for captured feedback.
|
|
450
|
+
# Impact: Removed categories are ignored by pattern promotion.
|
|
451
|
+
# Signal: Certain feedback classes are irrelevant/noisy for your team.
|
|
452
|
+
# Change when: You want to focus feedback mining on specific quality dimensions.
|
|
453
|
+
categories:
|
|
454
|
+
- naming
|
|
455
|
+
- architecture
|
|
456
|
+
- testing
|
|
457
|
+
- documentation
|
|
458
|
+
- performance
|
|
459
|
+
- security
|
|
460
|
+
|
|
461
|
+
# feedback.hitl
|
|
462
|
+
# What: Controls Human In The Loop escalation for feedback-driven PRs at merge time.
|
|
463
|
+
# Impact: true gates all feedback PRs on human approval; false allows full automation; array gates only listed categories.
|
|
464
|
+
# Signal: Feedback-driven changes landing without review (set true or list categories), or unnecessary merge friction (set false).
|
|
465
|
+
# Change when: You want human oversight on specific feedback categories (e.g. architecture, security) while letting others auto-merge.
|
|
466
|
+
hitl: false
|
|
467
|
+
|
|
468
|
+
# --- Tmux ---
|
|
469
|
+
tmux:
|
|
470
|
+
# tmux.session
|
|
471
|
+
# What: Shared tmux session name where agent panes run.
|
|
472
|
+
# Impact: Changing this isolates Loreli panes into a different tmux session namespace.
|
|
473
|
+
# Signal: Multiple orchestrations collide in same tmux namespace.
|
|
474
|
+
# Change when: Running multiple isolated Loreli orchestrations on one machine.
|
|
475
|
+
session: loreli
|
|
476
|
+
|
|
477
|
+
# tmux.capture
|
|
478
|
+
# What: Number of pane history lines Loreli reads when inspecting output.
|
|
479
|
+
# Impact: Higher values improve diagnostics but increase capture overhead.
|
|
480
|
+
# Signal: Error root cause appears just above currently captured history window.
|
|
481
|
+
# Change when: Important error context scrolls out of captured history.
|
|
482
|
+
capture: 500
|
|
483
|
+
|
|
484
|
+
# --- GitHub auth override ---
|
|
485
|
+
# github.token
|
|
486
|
+
# What: Fallback GitHub token in config (env token is preferred).
|
|
487
|
+
# Impact: Enables Hub API auth when env injection is unavailable.
|
|
488
|
+
# Signal: Hub/API auth failures in environments where you cannot set env vars.
|
|
489
|
+
# Change when: You cannot provide GITHUB_TOKEN via environment.
|
|
490
|
+
# github:
|
|
491
|
+
# token: ghp_your_token_here
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## Summary
|
|
2
|
+
|
|
3
|
+
Brief description of what this PR does and why.
|
|
4
|
+
|
|
5
|
+
## Changes
|
|
6
|
+
|
|
7
|
+
- List the key changes made in this PR.
|
|
8
|
+
|
|
9
|
+
## Testing
|
|
10
|
+
|
|
11
|
+
- [ ] Tests added/updated
|
|
12
|
+
- [ ] Manual testing performed
|
|
13
|
+
- [ ] Edge cases considered
|
|
14
|
+
|
|
15
|
+
## Issue Reference
|
|
16
|
+
|
|
17
|
+
Closes #
|
|
18
|
+
|
|
19
|
+
## Sign-off
|
|
20
|
+
|
|
21
|
+
- [ ] Code follows project conventions
|
|
22
|
+
- [ ] Documentation updated
|
|
23
|
+
- [ ] No scope creep beyond the referenced issue
|