First non-alpha release of repolayer — a cross-repo code-index CLI for AI agents.
Highlights
Pluggable embedding backend
Semantic search is no longer tied to the built-in model. Pick your backend in repolayer.yml:
potion-local(default) — built-in 256-dim model2vec embedder. Offline, no API key.ollama— localollama servesidecar for a code-aware multilingual model, zero auth.http— any OpenAI-compatible/v1/embeddingsendpoint. Auto-batches, retries on 5xx/429/timeout, client-side rate limiting.
DeepSeek summary lane
Optional LLM-generated per-module Chinese summaries, written to a dedicated summary_vec lane. Hybrid search pulls dense neighbours from both code and summary lanes and merges via RRF — so natural-language queries can hit files whose code doesn't carry the query vocabulary.
Two new languages → 12 source languages
- Swift — via ast-grep (classes, structs, enums, protocols, functions, methods, properties).
- Objective-C — via bare tree-sitter (
tree-sitter-objc):@interface/@implementation/@protocol, instance/class methods with multi-part selectors, properties.
Project hardening
- GitHub Actions CI (build + test on Ubuntu/macOS,
fmt+clippygate). CONTRIBUTING.md, issue/PR templates.- Two bug fixes in the deps layer: a bincode cache-invalidation bug (
DepEdgeskip_serializing_ifdefeated per-file incremental indexing) and astrip_quotespanic on lone-quote tokens.
Install
git clone https://github.com/zhousiyao03-cyber/repolayer
cd repolayer
cargo install --path .Built on top of aeroxy/ast-outline.