Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 03:08
· 27 commits to main since this release
43f531a

laya-codex 0.4.0

Claude answers its own lookups with laya-codex search instead of Grep. The reranker is retrained on the candidates laya-codex actually ranks. Follow-up prompts get answers instead of more code. No breaking changes.

Benchmark v10: stock Claude Code against this release's code with the retrained model, 51 paired tasks across 3 repositories.

metric change
turns −34%
tool calls per session 9.0 → 5.3 (Grep 5.3 → 2.0; search about 1)
wall-clock −12% [−19, −4]
cost −9%
first-question recall 0.76 → 0.90
code read + injected +6%, not significant

The −30% time and −50% token goals are not met yet. Benchmark v11 tested a smaller injection, and Claude read 23% more to make up for it, so it is not in this release. See docs/RESULTS.md.

Highlights

  • search answers name lookups (definitions, callers, uses, tests) with a complete scan of the files the indexer admits, and Laya orders the files.
  • Retrained laya-code: on the offline replay, the right file is inlined for 70 of 115 tasks, against 63 for the first model and 62 for keyword ranking. The installer pins it to Hugging Face revision 25f97e5 and verifies its manifest. The first model stays on the repo's main branch.
  • Follow-ups that ask for tests or callers get lists of them instead of more code blocks. This cuts the second prompt's injection by about 60%.
  • Removed: the scope classifier, probability-threshold sizing, repository-size caps and Read narrowing.

Full list: CHANGELOG.

Upgrade:

  • Re-run the installer: curl -fsSL https://raw.githubusercontent.com/pilotspace/laya-codex/main/install.sh | sh.
    • On macOS it replaces only the model files that changed, mainly the 843 MB weights.
    • On Linux the model stays opt-in (--model).
  • With Homebrew, run brew upgrade laya-codex, then fetch the model with curl -fsSL https://raw.githubusercontent.com/pilotspace/laya-codex/main/install.sh | sh -s -- --model-only.

What's Changed

Full Changelog: v0.3.0...v0.4.0