ReferenceCLI
agb distill
Scan repository review and prosecution logs for recurring finding patterns and stage or apply learned ADLC defenses.
agb distill scans <repo>/.adlc/manifest.jsonl and <repo>/.booster/ review/prosecution artifacts for recurring finding fingerprints ($\ge 2$ occurrences across tickets or rounds), stages human-reviewable defenses at <repo>/.booster/distilled-defenses.md, and optionally compacts them into <repo>/.agents/rules/adlc-learned.md.
Synopsis
agb distill [repo]Scan run/review findings for recurring patterns and stage or apply learned ADLC defenses.
| Flag | Argument | Description |
|---|---|---|
| --apply | — | write compacted rules to .agents/rules/adlc-learned.md |
| --compile-checks | — | emit .adlc/learned-checks.json invariants |
| --json | — | emit JSON |
Flags
--applywrites compacted guidance withtrigger: always_onYAML frontmatter to<repo>/.agents/rules/adlc-learned.md, bounded strictly under12,000bytes (agy 1.5.10rule-size budget). Without--apply, proposals are only staged in.booster/distilled-defenses.md.--compile-checkssynthesizes ReDoS-safe, declarative.adlc/learned-checks.jsoninvariants (forbidLiteral,requireLiteral,forbidRegex) evaluated deterministically during P5 gates.--jsonemits the distillation report as JSON (scannedCount,recurringCount,recurring,stagedPath,applied,appliedPath,ruleBytes,compiledChecks).