yolont 0.0.0-stage → 0.2.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/docs/GUIDE.md ADDED
@@ -0,0 +1,1023 @@
1
+ # The Yolont Guide
2
+
3
+ > *You Only Live Once.* True. That's no reason to merge like it.
4
+
5
+ ```
6
+ ██╗ ██╗ ██████╗ ██╗ ██████╗ ███╗ ██╗████████╗
7
+ ╚██╗ ██╔╝██╔═══██╗██║ ██╔═══██╗████╗ ██║╚══██╔══╝
8
+ ╚████╔╝ ██║ ██║██║ ██║ ██║██╔██╗ ██║ ██║
9
+ ╚██╔╝ ██║ ██║██║ ██║ ██║██║╚██╗██║ ██║
10
+ ██║ ╚██████╔╝███████╗╚██████╔╝██║ ╚████║ ██║
11
+ ╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝
12
+ PR reviews that look twice
13
+ ```
14
+
15
+ Yolont is an LLM pull request reviewer for **GitHub and GitLab**. It reads a merge request,
16
+ checks it against *your* team's conventions and the parts of the codebase that bite, scores it
17
+ 0–100, and posts one comment. Run it in a terminal, where you get the last word on every
18
+ finding, or in CI, where it comments on every MR.
19
+
20
+ **In a hurry?**
21
+
22
+ ```bash
23
+ cd ~/code/your-project
24
+ npx yolont # first run: offers to install the `yolont` command, then the wizard
25
+ yolont panel # browse reviews, authors and memory in your browser
26
+ ```
27
+
28
+ The [README](../README.md) shows what each step looks like. This guide covers everything
29
+ else.
30
+
31
+ ---
32
+
33
+ ## Table of contents
34
+
35
+ 0. [Why "Yolont"?](#0-why-yolont)
36
+ 1. [The 30-second pitch](#1-the-30-second-pitch)
37
+ 2. [Install](#2-install)
38
+ 3. [First run: the wizard](#3-first-run-the-wizard)
39
+ 4. [Reviewing a PR](#4-reviewing-a-pr)
40
+ 5. [How the score is made](#5-how-the-score-is-made)
41
+ 6. [Conventions](#6-conventions)
42
+ 7. [Zones: where the dragons live](#7-zones-where-the-dragons-live)
43
+ 8. [Weights and the rubric](#8-weights-and-the-rubric)
44
+ 9. [Change type](#9-change-type)
45
+ 10. [Memory: Yolont learns from you](#10-memory-yolont-learns-from-you)
46
+ 11. [Memory repos: share it with your team](#11-memory-repos-share-it-with-your-team)
47
+ 12. [The panel](#12-the-panel)
48
+ 13. [CI: GitHub Actions](#13-ci-github-actions)
49
+ 14. [CI: GitLab](#14-ci-gitlab)
50
+ 15. [LLM providers](#15-llm-providers)
51
+ 16. [Where things live](#16-where-things-live)
52
+ 17. [Security model (the paranoid chapter)](#17-security-model-the-paranoid-chapter)
53
+ 18. [Command reference](#18-command-reference)
54
+ 19. [Environment variables](#19-environment-variables)
55
+ 20. [Troubleshooting & FAQ](#20-troubleshooting--faq)
56
+ 21. [Glossary](#21-glossary)
57
+
58
+ ---
59
+
60
+ ## 0. Why "Yolont"?
61
+
62
+ Every team has That Merge. Friday, 17:58. Two thousand lines. The description says `fix`.
63
+ The reviewer scrolls straight to the bottom and types `LGTM 🚀`. That's a **YOLO merge**.
64
+
65
+ Yolont is the contraction nobody asked for:
66
+
67
+ ```
68
+ YOLO + n't → YOLO-n't → yolont
69
+ ```
70
+
71
+ Same pattern as *don't*, *won't*, *shan't*. It means **"not YOLO"**: *you only live once, so
72
+ don't spend it on a postmortem.*
73
+
74
+ More facts about the name, in descending order of seriousness:
75
+
76
+ - **It's a real command.** Six lowercase letters, no dashes, no capitals, nothing to
77
+ shift-key. It sits next to `git` and `grep` and fits in.
78
+ - **It was free.** npm, PyPI, crates.io, Homebrew, and GitHub were all unclaimed. Most good
79
+ four-letter words were taken in 2014 by packages with one star and a README that says
80
+ `TODO`. (`nolo`, the obvious opposite of YOLO, was one of them.)
81
+ - **Pronunciation:** "yo-LONT". Rhymes with "don't". Which is the point.
82
+ - **The banner fades from cyan to magenta** because a reviewer should have some joy left too.
83
+ - **Formerly known as:** `pr-score`, then `ethos`. If you see either name in an old pipeline,
84
+ it still works (see [Renamed from Ethos](#renamed-from-ethos)).
85
+
86
+ What Yolont is **not**:
87
+
88
+ - A gatekeeper by default. It posts a score and blocks nothing unless you
89
+ [turn gating on](#gating).
90
+ - A replacement for human review. It's the colleague who reads every line *before* the human
91
+ does, so the human can spend their attention on what matters.
92
+ - Something that phones home. No telemetry. Your diff goes only to the LLM *you* configured,
93
+ and only after a secret scan passes. The only other services are the optional ones you
94
+ switch on yourself (see [Optional services](#optional-services)).
95
+
96
+ ---
97
+
98
+ ## 1. The 30-second pitch
99
+
100
+ ```
101
+ ┌──────────────┐ diff ┌──────────┐ clean? ┌───────────┐ findings ┌──────────┐
102
+ │ MR / PR │ ────────▶ │ gitleaks │ ───────▶ │ LLM │ ─────────▶ │ score │
103
+ │ (GitHub/GL) │ └──────────┘ yes │ + rubric │ │ 0..100 │
104
+ └──────────────┘ │ no │ + conv. │ └────┬─────┘
105
+ ▼ │ + zones │ │
106
+ 🔴 hard stop, │ + memory │ ▼
107
+ nothing sent └───────────┘ one comment
108
+ (you review it
109
+ first, locally)
110
+ ```
111
+
112
+ - **Conventions:** *your* rules, not generic best practice. Generated from your repo, edited
113
+ by you.
114
+ - **Zones:** "this folder runs on every request, look harder here."
115
+ - **Memory:** when you correct a score and say *why*, Yolont remembers for that author and
116
+ that project.
117
+ - **Memory repos:** share that memory with your team through a normal git repo, with merge
118
+ requests, so nobody's opinion lands unreviewed. (Yes, the reviewer's memory gets reviewed.
119
+ It's reviews all the way down.)
120
+
121
+ ---
122
+
123
+ ## 2. Install
124
+
125
+ ### Requirements
126
+
127
+ | Thing | Why | Check |
128
+ |---|---|---|
129
+ | Node **22.13+** | uses the built-in `node:sqlite` | `node -v` |
130
+ | [gitleaks](https://github.com/gitleaks/gitleaks#installing) on `PATH` | scans every diff before any LLM sees it | `gitleaks version` |
131
+ | git | local diffs, memory repos | `git --version` |
132
+ | A token for your git host | reads MRs, posts comments | see [Tokens](#tokens) |
133
+ | An LLM | does the reading | see [LLM providers](#15-llm-providers) |
134
+
135
+ No gitleaks means no LLM call. That's on purpose: *fail closed* (see
136
+ [chapter 17](#17-security-model-the-paranoid-chapter)).
137
+
138
+ ### Quick install: npx, once
139
+
140
+ ```bash
141
+ cd ~/code/your-project
142
+ npx yolont
143
+ ```
144
+
145
+ The first time you run it through npx, Yolont asks:
146
+
147
+ ```
148
+ ◆ Install the `yolont` command, so next time you just type `yolont`? (npm install -g yolont@0.1.0)
149
+ │ ● Yes / ○ No
150
+ ```
151
+
152
+ Say yes, and from then on it's just `yolont`, `yolont panel` and so on. It installs the same
153
+ version you just ran. It asks only once. If you say no, `npx yolont …` keeps working, and you
154
+ can install later with `npm install -g yolont`.
155
+
156
+ Your settings, tokens and reviews live in your home folder (see
157
+ [chapter 16](#16-where-things-live)), not in the npx cache, so nothing is lost when you switch
158
+ from npx to the installed command.
159
+
160
+ **Permission error during install?** npm's global folder needs admin rights on some systems.
161
+ Don't use `sudo`. Point npm at a folder you own instead
162
+ ([npm's guide](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally)),
163
+ or use a Node version manager like `nvm` or `fnm`, which does this for you.
164
+
165
+ ### Or install it directly
166
+
167
+ ```bash
168
+ npm install -g yolont
169
+ yolont --help
170
+ npm update -g yolont # later, to upgrade
171
+ ```
172
+
173
+ ### From a checkout (contributors)
174
+
175
+ ```bash
176
+ git clone https://github.com/srcgrp/yolont.git && cd yolont
177
+ npm ci
178
+ npm pack # builds the panel and the CLI, makes yolont-<version>.tgz
179
+ npm install -g ./yolont-*.tgz
180
+ yolont --help
181
+ ```
182
+
183
+ Run `npm pack` and `npm install -g` again after pulling new code.
184
+
185
+ ### From source, without installing
186
+
187
+ ```bash
188
+ cd yolont/local
189
+ npm install
190
+ npx tsx cli.ts # same as `yolont`
191
+ npx tsx cli.ts panel # same as `yolont panel`
192
+ ```
193
+
194
+ Want the command name anyway? Alias it:
195
+
196
+ ```bash
197
+ echo 'alias yolont="npx --prefix ~/code/yolont/local tsx ~/code/yolont/local/cli.ts"' >> ~/.zshrc
198
+ ```
199
+
200
+ ### Nerd Fonts (optional, recommended)
201
+
202
+ On first run, the wizard shows a few icons and asks whether they render. If you see icons,
203
+ answer yes and the menu gets them. If you see `□ □ □`, answer no and you get clean plain
204
+ text. Nothing ever renders as tofu. Change it later with `icons: nerd` or `icons: plain` in
205
+ `config.yaml`.
206
+
207
+ Get a font at [nerdfonts.com](https://www.nerdfonts.com/) (JetBrainsMono Nerd Font is a
208
+ safe pick) and set it as your terminal font.
209
+
210
+ ---
211
+
212
+ ## 3. First run: the wizard
213
+
214
+ ```bash
215
+ cd ~/code/your-project
216
+ yolont
217
+ ```
218
+
219
+ Bare `yolont` in a terminal asks **only for what's missing**, then drops you at the main menu.
220
+ Run it inside a checkout and it reads `origin`. Run it anywhere else and it asks you to paste a
221
+ git address or an MR/PR URL.
222
+
223
+ ### Keys
224
+
225
+ | Key | Does |
226
+ |---|---|
227
+ | **Esc** | back. Leaves the current step without saving it. In `yolont setup` it skips to the next step. On the main menu it exits. |
228
+ | **Ctrl-C** | quit, right now |
229
+ | **Space** / **Tab** | tick items in a multi-select list (Tab in the ones you can type to filter) |
230
+ | **type** | filters long lists |
231
+ | Backspace | only edits text, never goes "back" (hitting it by accident won't lose your work) |
232
+
233
+ ### The steps
234
+
235
+ 1. **Git host & token.** Yolont detects GitLab or GitHub from the address. It then shows a
236
+ link that opens your host's token page with the right scopes already filled in, asks for
237
+ the token, and checks it by reading the project. A token that can't see the project isn't
238
+ saved.
239
+ 2. **LLM.** Pick a provider, a model and a key. Yolont makes a **real test review call** on a
240
+ one-line diff before saving anything, so a typo in the base URL shows up now, not halfway
241
+ through your first real review.
242
+ 3. **Memory repo.** Which shared memory this project uses, or *None* (only your own). Asked
243
+ once per project. See [chapter 11](#11-memory-repos-share-it-with-your-team).
244
+ 4. **Conventions.** Generate, start from a template, use an existing file, or write your own.
245
+ See [chapter 6](#6-conventions).
246
+ 5. **Zones** (optional). See [chapter 7](#7-zones-where-the-dragons-live). Skip it and the
247
+ wizard remembers you skipped it.
248
+ 6. **Scoring weights.** Keep the defaults, pick a preset, or set your own. See
249
+ [chapter 8](#8-weights-and-the-rubric).
250
+
251
+ ### The main menu
252
+
253
+ ```
254
+ ╭─ Yolont ─────────────────────────────────────────────╮
255
+ │ Project web/shop · gitlab.corp.io │
256
+ │ LLM opencode-zen · deepseek-v4-flash-free │
257
+ │ Memory frontend · 2 to send │
258
+ │ Change type Label │
259
+ ╰──────────────────────────────────────────────────────╯
260
+
261
+ Review an open MR/PR
262
+ ✓ Git host & token
263
+ ✓ LLM
264
+ ✓ Conventions
265
+ ✓ Zones
266
+ ✓ Scoring weights
267
+ Memory repo · frontend · 2 to send
268
+ Change type: Label
269
+ Remove saved…
270
+ Exit
271
+ ```
272
+
273
+ Every step can be revisited from here. Each one shows what's saved first and asks
274
+ *keep / change*. **Remove saved…** deletes LLM profiles (with their keys), git hosts (with their
275
+ tokens), memory repos, and old *"no memory repo"* answers. It asks before each deletion and
276
+ warns if you'd lose changes you haven't sent.
277
+
278
+ `yolont setup` walks every step in order without the menu.
279
+ `yolont setup --step llm` runs a single step.
280
+
281
+ ---
282
+
283
+ ## 4. Reviewing a PR
284
+
285
+ From the menu, choose **Review an open MR/PR** and pick one from the list. Or skip the menu:
286
+
287
+ ```bash
288
+ yolont review https://github.com/acme/api/pull/42
289
+ yolont review https://gitlab.corp.io/web/shop/-/merge_requests/1337
290
+ yolont review <url> --focus "the retry logic in the payment client; ignore lint churn"
291
+ ```
292
+
293
+ What happens:
294
+
295
+ 1. **Focus (optional).** *"Anything specific to emphasize?"* Free text, for this review only.
296
+ It goes into the prompt and is never stored as a convention. Press Enter to skip.
297
+ 2. **Diff.** From local `git diff` when you're in a checkout of that project with the PR head
298
+ checked out, otherwise from the forge API.
299
+ 3. **Secret scan.** gitleaks runs. A hit stops the review, and nothing is sent anywhere.
300
+ 4. **Change type.** Depending on [the mode](#9-change-type), you confirm or pick what kind of
301
+ change this is.
302
+ 5. **LLM review.** One call covers all LLM categories.
303
+ 6. **You're the boss.** You see the score and every finding. *"Agree with the computed
304
+ score?"* If not, pick the categories (or the overall score) to correct, give the score each
305
+ one deserves, optionally fix its description, and **say why**. That "why" is what Yolont
306
+ learns from (see [chapter 10](#10-memory-yolont-learns-from-you)).
307
+ 7. **Post?** Default **no**. If yes, one summary comment goes up, plus one inline thread per
308
+ finding that has a file and line. The author can reply right on the finding.
309
+ 8. **Sync.** If the project uses a memory repo with auto-sync on, your review is sent to it.
310
+
311
+ ### Crash-proof
312
+
313
+ Hit Ctrl-C or close the laptop mid-review, and nothing is lost. Run the same review again and
314
+ Yolont asks:
315
+
316
+ ```
317
+ ◆ A review of this commit was saved 11/29/2026, 14:02 (score 86/100)
318
+ │ ● Use the saved review (no new LLM call)
319
+ │ ○ Review again
320
+ ```
321
+
322
+ The cache holds your 3 most recent unfinished sessions, at
323
+ `~/.local/share/yolont/sessions.json`, and clears itself when a review finishes.
324
+
325
+ ### What the comment looks like
326
+
327
+ ```markdown
328
+ ## 🟢 PR Score: 86 / 100
329
+ **Type:** Bug fix (title prefix "fix:")
330
+
331
+ | Category | Score | Weight | Status |
332
+ |---|---|---|---|
333
+ | conventions | 90/100 | 30% | ok |
334
+ | maintainability | 80/100 | 30% | ok |
335
+ | ai_authenticity | 85/100 | 20% | ok |
336
+ | security | 100/100 | 12% | ok |
337
+ | pr_hygiene | 80/100 | 8% | ok |
338
+
339
+ ### Top findings
340
+ - **major** `src/pay/retry.ts:41`: retries a non-idempotent POST …
341
+
342
+ ### Zones
343
+ (a Mermaid diagram of touched zones)
344
+
345
+ ### Author trend
346
+ Last 5 score(s): 71, 78, 80, 84, 86. Recurring weak category: **maintainability** (avg 76/100).
347
+ ```
348
+
349
+ 🟢 at or above the threshold, 🟡 within 15 points of it, 🔴 below that. Yolont edits its own comment on later runs instead of piling up new ones.
350
+
351
+ ---
352
+
353
+ ## 5. How the score is made
354
+
355
+ ```
356
+ final = Σ (category score × weight) / Σ weights of categories that had data
357
+ ```
358
+
359
+ - **LLM categories** (`conventions`, `maintainability`, `ai_authenticity`, `security`): the
360
+ LLM returns findings with a severity. Each severity costs points (minor −3, major −8,
361
+ critical −20). **The model's own number is advisory only.** The score is recomputed from the
362
+ findings, so the LLM can't wave a PR through by writing "95, looks great!".
363
+ - **Density, not count.** Penalties scale with the size of the change. One major bug in a
364
+ 30-line change hurts more than two criticals spread over 30 files. With the defaults:
365
+ 1 file / 30 lines → ×2.32, 5 files / 200 lines → ×0.68, 30 files / 600 lines → ×0.25
366
+ (the floor). Big PRs can't hide their findings in the noise, but they don't get crushed
367
+ either.
368
+ - **Deterministic categories** (`pr_hygiene`): computed, no LLM. A score of 100 up to
369
+ `max_lines` (500 by default), then down linearly to 0 at twice that. Small PRs are good PRs.
370
+ - **Missing data:** if a category's source has nothing in this run (for example no test report),
371
+ it's left out and its weight is shared among the others. The comment says so. Nothing is
372
+ silently dropped.
373
+ - **Build broken?** Yolont reads your pipeline's job results, skips the LLM call (no point
374
+ paying to review code that doesn't compile), and says so.
375
+
376
+ ### The default categories
377
+
378
+ | Category | Weight | What it hunts |
379
+ |---|---:|---|
380
+ | `conventions` | 30 | Your `conventions.md`, rule by rule, including file paths and placement |
381
+ | `maintainability` | 30 | Readability, complexity, duplication, drift. "Will this hurt in six months?" |
382
+ | `ai_authenticity` | 20 | Raw, unedited AI output: placeholder names, comments that explain `i++`, try/catch around things that can't throw, abstractions with one implementation |
383
+ | `security` | 12 | Injection, unsafe deserialization, missing auth checks, OWASP-shaped things |
384
+ | `pr_hygiene` | 8 | Size. Purely a diff-size check, no LLM |
385
+
386
+ Yes, an AI reviewer has a category for catching unreviewed AI code. We are aware of the irony.
387
+ We have embraced it.
388
+
389
+ ---
390
+
391
+ ## 6. Conventions
392
+
393
+ Conventions are the heart of the review. Generic rules give generic reviews, and "consider
394
+ adding comments" helps no one. Yolont wants **your** rules: *"API handlers live in
395
+ `src/routes/<resource>/`, one per file"*, *"never import from `../../`"*, *"use `tv()` for variant
396
+ styles"*.
397
+
398
+ ### Getting a conventions file
399
+
400
+ The wizard's **Conventions** step (or `yolont conventions generate`) offers:
401
+
402
+ - **Generate from the repo.** Pick the folders that best show how you work (type to filter,
403
+ Tab to select). Untick any file you don't want sent. Yolont reads instruction files
404
+ (`AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING`, `.cursorrules`), the README, lint, format and
405
+ build configs, and a sample of source and test files.
406
+ - It **never** reads `.env*`, keys, lockfiles, binaries or symlinks.
407
+ - You see the full file list *before* anything is sent.
408
+ - gitleaks scans the exact prompt, and any flagged file is dropped.
409
+ - The LLM shows what it understood, then a draft. You edit it, save it or throw it away.
410
+ - **Start from** the closest built-in file (matched on the detected stack).
411
+ - **Use an existing file.** Paste a path or drag the file into the terminal. `~`, relative
412
+ paths, `file://` and escaped spaces all work. It's copied in, and the original is left alone.
413
+ - **Write or paste** it in `$EDITOR`.
414
+
415
+ ### The line limit
416
+
417
+ Conventions go into **every** review prompt, so they're capped at **300 lines** by default (the
418
+ draft shows `N/300`). The generator aims for about 80% of the cap. If you need more:
419
+
420
+ ```yaml
421
+ # ~/.config/yolont/config.yaml
422
+ conventionsMaxLines: 500 # 20..2000
423
+ ```
424
+
425
+ A longer file costs more tokens on every review, and the model pays less attention to each
426
+ rule.
427
+
428
+ ### Sharing it
429
+
430
+ The file is saved to `~/.config/yolont/projects/<host>/<group>/<project>/conventions.md`.
431
+ Commit it to the repo as **`.yolont/conventions.md`** and the whole team, plus CI, uses it. A
432
+ repo file always wins over your personal copy.
433
+
434
+ ---
435
+
436
+ ## 7. Zones: where the dragons live
437
+
438
+ Not all code is equal. A typo in a docs page is a typo. A typo in `middleware.ts` is an
439
+ incident with a Slack channel. **Zones** tell the reviewer where to look harder.
440
+
441
+ | Level | Meaning |
442
+ |---|---|
443
+ | 🔴 **red** | Runs on every start, request or render, or is hard to undo (entry points, migrations, root layout, middleware) |
444
+ | 🟠 **amber** | Widely shared (config, public API, shared components, CI/build) |
445
+ | 🟢 **green** | Rarely runs, local blast radius |
446
+
447
+ ```yaml
448
+ # .yolont/zones.yaml
449
+ zones:
450
+ - id: migrations
451
+ level: red
452
+ paths: ["migrations/**", "prisma/migrations/**"]
453
+ why: "Runs against production data and is hard to undo"
454
+ watch_for: ["locking a large table", "no rollback path", "data loss on column drop"]
455
+ ```
456
+
457
+ - **Generate:** `yolont zones generate` drafts zones from stack templates (`react-spa`,
458
+ `nextjs`, `node-api`, plus `generic`, which applies to every stack). It keeps only globs that
459
+ match real files and shows each zone with its file count. Then you save, edit (validated
460
+ before saving), or skip. **Nothing is sent anywhere**: no LLM is involved.
461
+ - **See them:** `yolont zones web/shop` prints the zone map as Mermaid.
462
+ - **Import graph:** `yolont zones graph web/shop --repo .` writes `zones.graph.json`. A file
463
+ that *imports into* a red zone gets flagged too. Commit it as `.yolont/zones.graph.json` for
464
+ CI.
465
+ - **History:** `yolont backfill <project> --zones` matches past MRs to zones, with no LLM.
466
+
467
+ ---
468
+
469
+ ## 8. Weights and the rubric
470
+
471
+ The wizard's **Scoring weights** step offers:
472
+
473
+ | Preset | conventions | maintainability | ai_authenticity | security | pr_hygiene |
474
+ |---|---:|---:|---:|---:|---:|
475
+ | Conventions-first (default) | 30 | 30 | 20 | 12 | 8 |
476
+ | Balanced | 20 | 20 | 20 | 20 | 20 |
477
+ | Security-first | 20 | 20 | 15 | 35 | 10 |
478
+
479
+ **Custom** shows a running total. If yours doesn't add up to 100, Yolont offers to scale it
480
+ (largest-remainder rounding, so it always lands on exactly 100, because a rubric that sums to
481
+ 99.9999 is a bug report waiting to happen).
482
+
483
+ The panel's **Scoring** tab does the same with sliders. It also replays your last 20 reviews
484
+ with the new weights and shows which ones would flip between pass and fail *before* you save.
485
+
486
+ ### The rubric file
487
+
488
+ `.yolont/rubric.yml` (the built-in default is [`.pr-reviewer/rubric.yml`](../.pr-reviewer/rubric.yml)):
489
+
490
+ ```yaml
491
+ version: 1
492
+ gate: false # informational by default
493
+ threshold: 80 # passing score
494
+ max_lines: 500 # pr_hygiene starts dropping after this
495
+ severity_penalties: { minor: 3, major: 8, critical: 20 }
496
+ categories:
497
+ - name: conventions
498
+ weight: 30
499
+ type: llm # llm | deterministic | hybrid
500
+ description: >
501
+ ...this text IS the instruction to the LLM for this category...
502
+ - name: pr_hygiene
503
+ weight: 8
504
+ type: deterministic
505
+ source: diff_size # diff_size | test_report | job:<substring of a job name>
506
+ ```
507
+
508
+ Add your own categories. `type: hybrid` with `source: job:lint` mixes your lint job's result
509
+ with the LLM's opinion. A category's `description` is the prompt for that category, so write it
510
+ like you'd brief a new senior hire.
511
+
512
+ ### Gating
513
+
514
+ Yolont blocks nothing until you **both** set `gate: true` and make the CI job blocking
515
+ (`allow_failure: false` on GitLab, a required status check on GitHub). Before turning it on,
516
+ read [CI and `.yolont/`](#ci-and-yolont).
517
+
518
+ ---
519
+
520
+ ## 9. Change type
521
+
522
+ A refactor and a feature should not be reviewed the same way. A refactor that changes behavior
523
+ is a bug. A feature without tests is a future bug. Yolont knows ten kinds of change:
524
+
525
+ `feature` · `bugfix` · `refactor` · `performance` · `tests` · `docs` · `chore` · `ci` · `revert` · `mixed`
526
+
527
+ Choose a mode in the wizard menu (**Change type**), or with `YOLONT_CHANGE_TYPE` in CI:
528
+
529
+ | Mode | What it does | Cost |
530
+ |---|---|---|
531
+ | **`label`** (default) | The review call also names the type. Shown on the comment and in the panel. The review itself is unchanged. Locally you confirm it after the review. | free (same call) |
532
+ | **`steer`** | The type is settled **first**, from the title prefix (`fix:`, `refactor(api):`), the branch (`feat/…`, `dependabot/…`) or labels, otherwise one small extra LLM call. You confirm it, then the review gets that type's checks. | one small call when no hint matches |
533
+ | **`off`** | Nothing. | none |
534
+
535
+ Examples of the checks in `steer` mode:
536
+
537
+ - **refactor:** "Should not change behavior. Flag changed conditions, defaults, error handling
538
+ or signatures. Flag tests that were edited to pass." (Those are the sneaky ones.)
539
+ - **bugfix:** "Root cause, not symptom. There should be a regression test that reproduces the
540
+ bug."
541
+ - **performance:** "Ask for evidence. *Feels faster* is not a benchmark."
542
+ - **docs / tests / chore / ci:** a lighter review that doesn't penalize missing tests. These
543
+ light types are **only** accepted when *every* changed file fits. A "docs" PR that also edits
544
+ `src/auth.ts` gets `mixed`. Nice try.
545
+
546
+ Change type never changes weights or scores. It changes what the reviewer looks *for*. The
547
+ panel's **Reviews** page filters by type and shows the average score per type, so you can see
548
+ which kinds of change your team gets wrong most often.
549
+
550
+ ---
551
+
552
+ ## 10. Memory: Yolont learns from you
553
+
554
+ A reviewer with no memory makes the same wrong call forever. Yolont has memory, and **you**
555
+ train it.
556
+
557
+ ```
558
+ review ──▶ you disagree ──▶ correction + WHY ──┐
559
+ ▲ │
560
+ │ ▼
561
+ insights in prompt ◀──────── distill ◀── replies on findings
562
+ ```
563
+
564
+ 1. **Review**, and correct the score when it's wrong. *"Security 60 → 90: this endpoint is
565
+ internal-only behind the gateway."* **The reason is what matters.** A bare number teaches
566
+ nothing.
567
+ 2. **Sync replies** (optional). If you posted findings as threads and the author replied:
568
+ `yolont sync-replies <url>`. Replies are collected, with no LLM cost.
569
+ 3. **Distill** when a batch has piled up (around 5–10 corrections per author):
570
+ `yolont distill --author alice --project 123`. One LLM call turns corrections and replies
571
+ into a few short **insights**. A plain "fixed it" reply teaches nothing. A reply that shows
572
+ the flagged pattern is actually fine does.
573
+ 4. **Next review:** that author's insights and recent corrections go into the prompt
574
+ automatically.
575
+
576
+ Scoping:
577
+
578
+ - `--project` means the insight applies to that repo only. *"Uses the design system's `tv()`
579
+ correctly"* shouldn't follow Alice into a Go service.
580
+ - Without `--project`, the insight applies to all of that author's repos. Use this for truly
581
+ general habits like *"writes vague PR descriptions"*.
582
+
583
+ **Backfill** (`yolont backfill <project>`) mines old merged MRs' human review comments for the
584
+ panel. It doesn't train memory by itself. Only corrections do. `--with-llm` also re-scores old
585
+ MRs to give you a baseline, which costs LLM calls.
586
+
587
+ In the panel, 👍 on a finding means "correct" (an insight for that author) and 👎 means "false
588
+ positive" (a project-wide insight, and the penalty is refunded).
589
+
590
+ ---
591
+
592
+ ## 11. Memory repos: share it with your team
593
+
594
+ Your memory is on your laptop. Your teammates have their own. A **memory repo** is a plain git
595
+ repo where the team pools reviews, corrections, insights, conventions and zones, so the
596
+ reviewer's memory is shared by everyone.
597
+
598
+ ### The rules
599
+
600
+ 1. **One project, one memory repo** (or none). The frontend repos use `frontend-memory`, the
601
+ backend repos use `backend-memory`.
602
+ 2. **Repos switch, they never merge.** Point a project at another memory repo and its memory
603
+ *switches*. Two teams' opinions never get mixed into one. That's a feature: a memory repo is
604
+ a module you plug in, not a soup.
605
+ 3. **Same host only.** A project on `gitlab.corp.io` can only use a memory repo on
606
+ `gitlab.corp.io`. Host matching is exact, so company memory can't end up on your personal
607
+ GitHub by accident.
608
+ 4. **Merge requests, not pushes.** Your changes go to your own branch `yolont/<you>` and open
609
+ (or update) a merge request. **Only what's merged reaches anyone's reviews.** Protect `main`.
610
+ Yes: the reviewer's memory gets code-reviewed. Turtles all the way down. 🐢
611
+ 5. **Pull-only is fine.** Teammates who can't push still get the merged memory.
612
+
613
+ ### Set one up
614
+
615
+ 1. Create an empty **private** repo on your git host and **protect its main branch**.
616
+ 2. In the wizard: **Memory repo → Add a memory repo on `<host>`**, then paste its address. Or:
617
+
618
+ ```bash
619
+ yolont source add frontend git@gitlab.corp.io:team/frontend-memory.git --name "Ada Lovelace"
620
+ yolont source use https://gitlab.corp.io/web/shop --source frontend
621
+ yolont sync
622
+ ```
623
+
624
+ ### Daily life
625
+
626
+ | You see | It means |
627
+ |---|---|
628
+ | `Memory repo · frontend · 3 to send` (orange) | You have local changes that haven't been sent |
629
+ | `Memory repo · frontend · 80 waiting for merge` (cyan) | Sent. The MR isn't merged yet |
630
+ | `Memory repo · frontend` | Everything you sent is merged |
631
+
632
+ - **Auto-sync:** each finished review is sent right away, and `yolont panel` syncs on start.
633
+ Turn it off per repo with `autoSync: false` in `config.yaml`.
634
+ - **Manual:** `yolont sync` (sends and gets), `yolont sync --pull` (only gets),
635
+ `yolont sync --source frontend` (one repo).
636
+ - **Squash-merged?** Fine. Yolont notices, rebuilds your branch on top of `main`, and carries
637
+ on.
638
+ - **Solo repo, no MRs wanted?** Set `review: false` in the repo's `yolont-source.yaml` and sync
639
+ pushes straight to `main`.
640
+ - **The MR** opens automatically if you've saved a token for that host. Otherwise sync prints a
641
+ link to open it yourself.
642
+
643
+ ### Switching and leaving
644
+
645
+ ```bash
646
+ yolont source use <address> --source backend # switch this project to another memory repo
647
+ yolont source stop <address> # back to your own memory only
648
+ yolont source rm frontend # forget a memory repo on this machine
649
+ yolont source rm frontend --force # ...even with unsent changes (they're lost)
650
+ yolont source ls # what's connected, and what uses what
651
+ ```
652
+
653
+ `source rm` removes the local copy and everything that came *from* that repo. Your own reviews
654
+ stay, and the remote repo is untouched.
655
+
656
+ Before anything leaves your machine, gitleaks scans it. If gitleaks can't run, nothing is sent.
657
+
658
+ ---
659
+
660
+ ## 12. The panel
661
+
662
+ ```bash
663
+ yolont panel # → http://127.0.0.1:4173/?token=…
664
+ ```
665
+
666
+ The panel is a local web app that listens on `127.0.0.1` **only**. Every start prints a new
667
+ one-time token, and every API call needs it (old bookmarks get "access token needed", which is
668
+ intended).
669
+
670
+ | Page | What's there |
671
+ |---|---|
672
+ | **Reviews** | Every review, with score, author, change type, filters, and average score per type |
673
+ | **Review detail** | Findings, their threads and replies, 👍/👎, nearby mined human comments |
674
+ | **Findings** | All findings across reviews |
675
+ | **Authors** | Per-author trends, comment volume, history |
676
+ | **Memory** | Corrections and insights, and which repo each one belongs to |
677
+ | **Zones** | Zone maps |
678
+ | **Projects** | A setup checklist plus tabs: **Conventions** editor, **Zones** editor, **Scoring** sliders with a 20-review replay |
679
+ | **Settings** | Git hosts and LLM profiles: add, test (with latency), set as default, replace a key, remove |
680
+
681
+ At the top: a **memory repo picker** (one repo at a time, or *No memory repo (mine only)*) and a
682
+ **Sync memory repos** button that shows `N to send` or `N waiting for merge`.
683
+
684
+ **Secrets are write-only.** You can set them, but you'll never see them again: only a mask is
685
+ shown. A masked value is never accepted back as a secret.
686
+
687
+ When the GitLab environment variables are set, 👍/👎 votes on findings that were posted as
688
+ threads are mirrored as one reply per thread, edited in place, and 👎 resolves the thread.
689
+
690
+ ---
691
+
692
+ ## 13. CI: GitHub Actions
693
+
694
+ 1. Add one LLM key as a repo secret (Settings → Secrets and variables → Actions), e.g.
695
+ `ANTHROPIC_API_KEY`.
696
+ 2. Copy [`templates/yolont.github-workflow.yml`](../templates/yolont.github-workflow.yml) to
697
+ `.github/workflows/yolont.yml` and point `uses:` at `srcgrp/yolont`, **pinned to a tag or SHA**.
698
+ 3. Optionally commit `.yolont/conventions.md`, `.yolont/zones.yaml` and `.yolont/rubric.yml`.
699
+
700
+ ```yaml
701
+ permissions:
702
+ contents: read
703
+ pull-requests: write
704
+ issues: write # the summary comment and the `llm-reviewed` label use the issues API
705
+ actions: read # job results (lint, tests) feed the score
706
+
707
+ jobs:
708
+ yolont:
709
+ runs-on: ubuntu-latest
710
+ needs: [lint, test] # only jobs in this same workflow are visible
711
+ steps:
712
+ - uses: actions/checkout@v4
713
+ - uses: srcgrp/yolont@<tag-or-sha>
714
+ env:
715
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
716
+ # YOLONT_CHANGE_TYPE: steer
717
+ ```
718
+
719
+ **Fork PRs:** GitHub gives fork runs no secrets, so Yolont skips them with a message. For a
720
+ public repo that accepts forks, use `pull_request_target` (commented out in the template).
721
+ Yolont then reads the PR **only through the API and never runs its code**, and the rubric and
722
+ conventions come from *your* branch, not the PR's.
723
+
724
+ ---
725
+
726
+ ## 14. CI: GitLab
727
+
728
+ 1. Create a **project or group access token**: scope `api`, role Developer. Not a personal
729
+ token.
730
+ 2. CI/CD variables, masked and protected: `GITLAB_API_TOKEN` plus one LLM key.
731
+ 3. Build the image from this repo's `Dockerfile` (its own `.gitlab-ci.yml` does it on the
732
+ default branch), then include the template:
733
+
734
+ ```yaml
735
+ include:
736
+ - project: '<group>/yolont'
737
+ ref: main
738
+ file: 'templates/yolont.gitlab-ci.yml'
739
+ ```
740
+
741
+ A **group** token sees the author's MRs across the whole group, so the author trend covers all
742
+ those repos. A project token sees only its own project.
743
+
744
+ The job is `allow_failure: true` by default. Old pipelines using
745
+ `templates/pr-score.gitlab-ci.yml` and `/opt/pr-score/index.js` still work.
746
+
747
+ Self-hosted GitLab note: the local diff fetches `CI_MERGE_REQUEST_DIFF_BASE_SHA` directly, which
748
+ needs `uploadpack.allowReachableSHA1InWant`. Without it, Yolont fetches the target branch at
749
+ depth 50 (`YOLONT_GIT_DEPTH`), and if that still fails it uses the API diff.
750
+
751
+ ### CI and `.yolont/`
752
+
753
+ In CI, `.yolont/` is read from the checked-out code. In a GitLab MR pipeline or a GitHub
754
+ `pull_request` run, that's **the MR's own code**, so an MR can edit its own rubric and give
755
+ itself a 100. Harmless while Yolont is informational. **Before you gate merges**, protect
756
+ `.yolont/` with CODEOWNERS, or use `pull_request_target` on GitHub.
757
+
758
+ ---
759
+
760
+ ## 15. LLM providers
761
+
762
+ Locally, the wizard's LLM step offers:
763
+
764
+ | Preset | Notes |
765
+ |---|---|
766
+ | Anthropic (Claude API) | default model `claude-opus-5-5`; `claude-sonnet-5-5` is cheaper |
767
+ | OpenCode Zen | has a free tier |
768
+ | OpenRouter | many models, one key |
769
+ | OpenAI | |
770
+ | Other OpenAI-compatible gateway | any base URL |
771
+ | Ollama | local, offline, **no key**, your diff never leaves the machine |
772
+
773
+ You can have several profiles and switch the default. A saved key is only ever sent to **its
774
+ own** profile's provider and base URL.
775
+
776
+ In CI, set one of these. **The first one set wins:**
777
+
778
+ | Variable | Notes |
779
+ |---|---|
780
+ | `ANTHROPIC_API_KEY` (+ `ANTHROPIC_MODEL`) | Claude API |
781
+ | `OPENCODE_ZEN_API_KEY` (+ `OPENCODE_ZEN_MODEL`) | key at opencode.ai/auth |
782
+ | `OPENCODE_ZEN_GO_API_KEY` (+ `OPENCODE_ZEN_GO_MODEL`) | second gateway |
783
+ | `OMNI_API_KEY` + `OMNI_BASE_URL` (+ `OMNI_MODEL`) | any OpenAI-compatible gateway |
784
+ | `OLLAMA_URL` (+ `OLLAMA_MODEL`) | self-hosted, offline |
785
+
786
+ ### Optional services
787
+
788
+ Both are off until you configure them:
789
+
790
+ - **Jev** (typesafe.ai) is a noise filter. With `TYPESAFE_API_KEY` set (or
791
+ `yolont config set-secret jev`), each LLM finding is sent to Jev together with the
792
+ relevant diff context, and findings it judges to be likely false positives are dropped. If
793
+ Jev fails or is unreachable, every finding passes through unfiltered, so an outage can never
794
+ raise a score. Turn it off with `JEV_DISABLED=1`.
795
+ - **MinIO / S3** caches author history between CI runs (`MINIO_*` variables). Without it,
796
+ Yolont rebuilds history from its own past comments.
797
+
798
+ ---
799
+
800
+ ## 16. Where things live
801
+
802
+ | What | Where |
803
+ |---|---|
804
+ | Settings (no secrets) | `~/.config/yolont/config.yaml` |
805
+ | Secrets | OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service) |
806
+ | Secrets, no keychain | `~/.config/yolont/credentials.json` (0600), encrypted when `YOLONT_PASSPHRASE` is set |
807
+ | Per-project files | `~/.config/yolont/projects/<host>/<group>/<project>/` |
808
+ | Reviews database | `~/.local/share/yolont/yolont.db` (Windows: `%LOCALAPPDATA%\yolont`) |
809
+ | Crash-recovery cache | `~/.local/share/yolont/sessions.json` |
810
+ | Memory repo clones | `~/.local/share/yolont/sources/<name>/` |
811
+ | Team-shared, in a repo | `<repo>/.yolont/` |
812
+
813
+ **Lookup order** for conventions, zones and the rubric (the first one found wins):
814
+
815
+ 1. `<checkout>/.yolont/`, but only when you're inside a checkout whose `origin` is that project
816
+ 2. `~/.config/yolont/projects/<host>/<path>/`
817
+ 3. the built-ins
818
+
819
+ **Settings precedence:** shell env > repo-root `.env` (read only until `config.yaml` exists) >
820
+ config.
821
+
822
+ Want to start over? Delete `yolont.db`. Want to test without touching your real setup?
823
+
824
+ ```bash
825
+ YOLONT_CONFIG_DIR=/tmp/yt/config YOLONT_DATA_DIR=/tmp/yt/data YOLONT_NO_KEYCHAIN=1 yolont
826
+ ```
827
+
828
+ > ⚠️ **The database holds identifiable performance data about real people**: per-author scores,
829
+ > corrections and comments. Treat it like HR data. Don't attach it to bug reports, don't commit
830
+ > it, and don't put it in a public memory repo.
831
+
832
+ ### Renamed from Ethos
833
+
834
+ Yolont used to be called Ethos. Nothing gets left behind:
835
+
836
+ | Old | What happens |
837
+ |---|---|
838
+ | `~/.config/ethos`, `~/.local/share/ethos` | moved to the `yolont` folders on first run; `ethos.db` becomes `yolont.db` |
839
+ | keychain entries under `ethos` | read as a fallback, then copied over |
840
+ | `ETHOS_*` env vars | still read, as aliases of `YOLONT_*` |
841
+ | `.ethos/` in repos, `ethos-source.yaml` in memory repos | still read |
842
+ | `/opt/ethos`, `/opt/pr-score` in the image | symlinks to `/opt/yolont` |
843
+
844
+ ---
845
+
846
+ ## 17. Security model (the paranoid chapter)
847
+
848
+ Yolont reads other people's code and holds tokens that can comment on it. So:
849
+
850
+ - **gitleaks first, always.** Every diff and every conventions prompt is scanned before an LLM
851
+ sees it, and so is everything a memory repo sync sends. A hit means a hard stop, whatever
852
+ `gate` says. **If gitleaks can't run, nothing is sent.** Fail closed.
853
+ - **Tokens stay on their host.** A token saved for `gitlab.corp.io` is sent only to
854
+ `gitlab.corp.io`. In CI, `GITLAB_API_TOKEN` goes only to `CI_SERVER_URL`'s host and
855
+ `GITHUB_TOKEN`/`GH_TOKEN` only to github.com. An LLM key goes only to its own profile's
856
+ provider and base URL.
857
+ - **Nothing is saved behind your back.** Tokens are saved only when you explicitly save them.
858
+ - **Never logged.** Tokens and keys don't appear in output. Memory repo URLs are shown without
859
+ any `user:token@` part.
860
+ - **git never prompts.** Memory repo syncs run non-interactively, so a missing credential is an
861
+ error, not a hang waiting for a password.
862
+ - **Memory doesn't leak.** A project's prompt only includes memory from its own memory repo (or
863
+ yours). Only projects *you* bound to a repo, on that repo's host, are exported to it. What a
864
+ memory repo's manifest claims binds nothing.
865
+ - **The panel** listens on `127.0.0.1`, needs a per-start token, and never returns a saved
866
+ secret.
867
+ - **Fork PRs are never executed.** With `pull_request_target`, Yolont reads them only through
868
+ the API.
869
+ - **Optional services leave the machine too.** Jev receives findings plus diff context, and MinIO
870
+ receives author history, but only when you configure them (see
871
+ [Optional services](#optional-services)).
872
+ - **Comment spoofing:** on GitHub, only comments from a bot or a repo member count as earlier
873
+ Yolont comments. Pasting the marker into your own comment doesn't fake a history.
874
+
875
+ Found a hole? Report it privately to the maintainers, not as a public issue.
876
+
877
+ ---
878
+
879
+ ## 18. Command reference
880
+
881
+ ```
882
+ yolont guided: set up what's missing, then the menu
883
+ yolont setup [<address>] [--step forge|llm|conventions|zones|weights]
884
+ yolont review <MR/PR URL> [--pipeline-id N] [--focus "..."]
885
+ yolont sync-replies <MR/PR URL>
886
+ yolont distill [--author <user>] [--project <id>] [--host h]
887
+ yolont backfill <project-id | group/project> [--host h] [--max-mrs 1000] [--with-llm] [--zones]
888
+ yolont panel [--port 4173] (alias: dashboard)
889
+
890
+ yolont conventions generate|edit [<address>] [--repo <checkout>]
891
+ yolont zones generate|edit [<address>] [--repo <checkout>]
892
+ yolont zones <group/project> [--host h] print the zone map (Mermaid)
893
+ yolont zones graph <group/project> --repo <checkout> write zones.graph.json
894
+
895
+ yolont source add <name> <git-url> [--name <your name>] [--host <git host>]
896
+ yolont source use <address> [--source <name>]
897
+ yolont source stop <address>
898
+ yolont source rm <name> [--force]
899
+ yolont source ls
900
+ yolont sync [--pull] [--source <name>]
901
+
902
+ yolont config [show]
903
+ yolont config import-env <path to .env>
904
+ yolont config set-secret <forge:<host> | llm:<profile> | jev>
905
+ yolont config delete-secret <name>
906
+
907
+ yolont --help
908
+ ```
909
+
910
+ `--host` on `source add` is required for a local-path memory repo, and it can override an SSH
911
+ alias (`git@work:team/memory.git`), but it can't change a real https host.
912
+
913
+ ---
914
+
915
+ ## 19. Environment variables
916
+
917
+ | Variable | Where | Does |
918
+ |---|---|---|
919
+ | `YOLONT_CONFIG_DIR` | CLI | config dir (default `~/.config/yolont`) |
920
+ | `YOLONT_DATA_DIR` | CLI | data dir (default `~/.local/share/yolont`) |
921
+ | `YOLONT_NO_KEYCHAIN` | CLI | `1` = use the credentials file, never the OS keychain |
922
+ | `YOLONT_PASSPHRASE` | CLI | encrypts `credentials.json` |
923
+ | `YOLONT_CHANGE_TYPE` | CI | `label` (default), `steer` or `off` |
924
+ | `YOLONT_IMAGE` | GitLab CI | image to run (pin a tag) |
925
+ | `YOLONT_GIT_DEPTH` | GitLab CI | fallback fetch depth (default 50) |
926
+ | `RUBRIC_PATH`, `CONVENTIONS_PATH`, `ZONES_PATH`, `ZONES_GRAPH_PATH` | CI | override the `.yolont/` paths |
927
+ | `GITLAB_API_TOKEN` | GitLab CI | project or group token, `api` scope |
928
+ | `GITHUB_TOKEN` / `GH_TOKEN` | GitHub | job token or PAT |
929
+ | `MINIO_ENDPOINT`, `MINIO_ACCESS_KEY`, `MINIO_SECRET_KEY`, `MINIO_BUCKET` | CI | cache author history (otherwise rebuilt from past comments) |
930
+ | `TYPESAFE_API_KEY`, `JEV_MODEL`, `JEV_NOISE_THRESHOLD`, `JEV_DISABLED` | both | optional Jev noise filter (see [Optional services](#optional-services)) |
931
+ | LLM keys | both | see [chapter 15](#15-llm-providers) |
932
+
933
+ Every `ETHOS_*` spelling still works.
934
+
935
+ ### Tokens
936
+
937
+ | Where | Token | Minimum |
938
+ |---|---|---|
939
+ | GitHub CLI | PAT | classic `repo`, or fine-grained: Pull requests + Issues read/write, Contents + Actions read |
940
+ | GitHub Action | job token (automatic) | the permissions in [chapter 13](#13-ci-github-actions) |
941
+ | GitLab CLI | personal access token | `api` |
942
+ | GitLab CI | project or group access token | `api`, role Developer |
943
+
944
+ ---
945
+
946
+ ## 20. Troubleshooting & FAQ
947
+
948
+ **`yolont: command not found`**
949
+ It isn't installed globally. Use `npx yolont`, or `npm install -g yolont`. See [Install](#2-install).
950
+
951
+ **How do I upgrade?**
952
+ `npm update -g yolont`. If you only use npx, `npx yolont@latest` checks for a newer version
953
+ (npx reuses its cache otherwise).
954
+
955
+ **"secret scan could not run"**
956
+ gitleaks isn't on `PATH`. Install it. Yolont won't send a diff it couldn't scan, and that's by
957
+ design.
958
+
959
+ **The menu shows `□` instead of icons.**
960
+ Your font has no Nerd Font glyphs. Set `icons: plain` in `config.yaml`, or install a Nerd Font.
961
+
962
+ **The orange "to send" count disappeared.**
963
+ Your changes were sent. Now they say `waiting for merge` until someone merges the memory repo
964
+ MR.
965
+
966
+ **Sync says it can't open the merge request.**
967
+ No token is saved for the memory repo's host. Open the printed link by hand, or save a token
968
+ for that host in the wizard.
969
+
970
+ **"Several memory repos (…)"**
971
+ You have more than one. Add `--source <name>`.
972
+
973
+ **`source use` refuses my repo.**
974
+ The memory repo is on a different host than the project. That's rule 3, and on purpose.
975
+
976
+ **The review is "from the cache", but I changed the prompt.**
977
+ Choose **Review again** when asked.
978
+
979
+ **Conventions save refuses my file.**
980
+ It's over the line limit. Trim it, or raise `conventionsMaxLines`.
981
+
982
+ **"access token needed" in the panel.**
983
+ Use the URL from this start. The token changes every time the panel starts.
984
+
985
+ **The score looks wrong.**
986
+ Then correct it, and say why. That's how Yolont gets better. Then `distill`.
987
+
988
+ **Does Yolont train an AI model on my code?**
989
+ No. It stores short text insights in a local database and puts them in the prompt. What the LLM
990
+ provider does with requests is between you and your provider. Use Ollama if you need it fully
991
+ offline.
992
+
993
+ **Is it free?**
994
+ Yolont is. Your LLM may not be. `label` mode adds no cost, and `steer` adds at most one small
995
+ call per review.
996
+
997
+ **Can it auto-fix the code?**
998
+ No. It's a reviewer, not a committer. The fix is your job, and you keep the credit.
999
+
1000
+ ---
1001
+
1002
+ ## 21. Glossary
1003
+
1004
+ | Term | Meaning |
1005
+ |---|---|
1006
+ | **Forge** | GitHub or GitLab, the place your MRs live |
1007
+ | **MR / PR** | merge request / pull request, the same thing with different accents |
1008
+ | **Rubric** | categories, weights and threshold: how a score is computed |
1009
+ | **Conventions** | your team's rules, in one markdown file |
1010
+ | **Zone** | a path glob with a risk level (red, amber, green) |
1011
+ | **Correction** | you overriding a category score, with a reason |
1012
+ | **Insight** | a short lesson distilled from corrections and replies |
1013
+ | **Memory repo** | a git repo where a team shares reviews, memory, conventions and zones |
1014
+ | **Change type** | feature, bugfix, refactor… shapes what the review checks |
1015
+ | **Gate** | making a low score fail the pipeline |
1016
+ | **YOLO merge** | what Yolont exists to prevent |
1017
+ | **LGTM** | "Looks Good To Me". Historically, "I didn't read it". |
1018
+
1019
+ ---
1020
+
1021
+ <sub>Yolont is source-available under [FSL-1.1-ALv2](../LICENSE.md): use, modify and redistribute it for anything except a
1022
+ competing commercial product, and each version becomes Apache-2.0 two years after release.
1023
+ Built by people who have been paged at 3am for a one-line change that "couldn't break anything".</sub>