These docs track main. Latest release: v2.0.0.

Skip to Content
antigravity-booster
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.

FlagArgumentDescription
--apply—write compacted rules to .agents/rules/adlc-learned.md
--compile-checks—emit .adlc/learned-checks.json invariants
--json—emit JSON

Flags

  • --apply writes compacted guidance with trigger: always_on YAML frontmatter to <repo>/.agents/rules/adlc-learned.md, bounded strictly under 12,000 bytes (agy 1.5.10 rule-size budget). Without --apply, proposals are only staged in .booster/distilled-defenses.md.
  • --compile-checks synthesizes ReDoS-safe, declarative .adlc/learned-checks.json invariants (forbidLiteral, requireLiteral, forbidRegex) evaluated deterministically during P5 gates.
  • --json emits the distillation report as JSON (scannedCount, recurringCount, recurring, stagedPath, applied, appliedPath, ruleBytes, compiledChecks).

On this page