Skip to content

v0.0.55 — coding style distilled from real source

Choose a tag to compare

@sebyx07 sebyx07 released this 25 Jul 21:34
· 17 commits to main since this release

Coding style now reads real code

Style detection read four things — CLAUDE.md/AGENTS.md, CONTRIBUTING.md, biome.json/tsconfig*.json, and package.json scripts — and never a line of source. The digest's job is the conventions the style file does not state, and it was inferring them from config files.

The sharpest consequence: a Rust, Python, or Go repo matched no config pattern, so signal gathering came back empty and the distiller returned before calling the model at all. Those repos got no style guide.

  • Config detection spans ecosystems — Cargo.toml, pyproject.toml, go.mod, Gemfile, .rubocop.yml, ruff.toml, Makefile, .editorconfig, and more.
  • Real source and test files are sampled from the repo and fed to the same single distill call.
  • The hardcoded **/*.test.ts glob is gone; the digest sees the repo's actual test files, whatever the ecosystem names them (_test.go, test_*.py, *_spec.rb).

Bounded, because it runs before every plan: 5 source + 3 test samples, 2500 chars each, files over 200 KB skipped (generated and minified files are the worst style exemplars and the most expensive reads), breadth-first walk capped at 4000 files and depth 8, vendor and hidden directories skipped. Sampling is deterministic.

Known limitation: config discovery is repo-root only, so a monorepo's nested Cargo.toml is not picked up — source sampling still covers those repos.

Also

Worker fanout prose compressed (~460 chars off the role guidance paid on every subagent spawn), with no rule dropped.

Full diff: #324