GitHub Trending | 📄 原文链接 | 2026-10-16 收录

xerj-org/xerj:让智能体先搜代码再写代码

来源:GitHub — 2026-10-16 · ⭐ 5,386 stars · 今日 +725 · Rust

📋 概述

XERJ 是一个本地 AI 搜索与自动索引工具,指向任意文件夹就能建立索引,让编码智能体不再逐个文件读而是一次搜到需要的代码。主打的“参考编码”用法很直接:把任务交给智能体,它先去下载最接近的开源仓库、建好索引,再参考别人的解法写自己的代码。一项对照研究里,这种做法在 16/16 的解题率不变的情况下把智能体输出 token 压到 1/2.7,用户在日常工作中报告大约 5 倍节省;README 形容这足以让更小更便宜的模型凭检索胜过凭记忆工作的贵模型,同时减少来回修错的时间。它支持搜索、RAG、安全审计与智能体记忆等场景,兼容 Elasticsearch 客户端,用 Rust 实现,Apache-2.0 协议。

🔑 核心要点

💡 金句

It is enough for a smaller, cheaper model to out-code a pricier one working from memory, while you spend less time in fix loops.
← 返回 GitHub Trending 首页