最新资讯
stackoverflow.blog 欢迎来到芯片时代:半导体制造、AI 数据中心与芯片设计的未来 www.youtube.com AI Agent 总犯同样的错:CentralAgent AI 将记忆重构为经验系统 pub.towardsai.net Netflix 科学家建议重采样 LLM 评判:5 次仅将误差棒缩小 13% pub.towardsai.net Jev 作为 LLM 前的静默层:构建提示感知的模型路由器 reddit.com OpenAI 称 Astra 仅满足 10% 安全任务标准 dev.to FreeToken:在自有 GPU 上运行前沿 MoE 模型及其内存需求 dev.to 当 AI Agent 说“完成”时,究竟完成了什么? dev.to 部署 Underdog Bark 3.0 Pro:逐字转写、自定义后端与分块设置 dev.to 为艰难对话构建 AI:五个 Agent、一条安全正则与一位盲评监督者 techcrunch.com Palo Alto Networks 洽谈以 5 亿美元收购 AI Agent 安全初创公司 Clutch theinformation.com 黄仁勋被要求就涉华间谍指控向国会作简报 www.infoq.com Edera 推出 Object Capability Bounded Authority,试图将凭证与 AI Agent 工作负载隔离
多元动态
登录 注册
开源工具 github.com · @dzhng

jevgrep v0.4.2 发布:复用未变更的忽略规则以减少遍历开销

原文 我的收藏

jevgrep v0.4.2 的官方发布说明显示,该版本在单次搜索内复用未变更的 .gitignore 和 .ignore 规则,避免遍历时重复读取和解析文件,同时通过文件系统身份与规范路径检查检测规则变化。验证包括类型检查、lint、Docker 产品与已安装 CLI 测试、发布包校验和 macOS 原生冒烟测试,并新增同尺寸忽略规则编辑(时间戳恢复)及规则删除/重建的回归覆盖。README 称其基于 Jev 判断相关性,在十任务 SWE-bench 对比中与基线同样完成 8/10 任务且成本更低,但该数据为项目自述、样本有限。

AI推荐理由 官方 release notes 明确说明 v0.4.2 在单次搜索内复用未变更的 .gitignore/.ignore 规则,减少重复文件读取与解析,并保留文件系统身份与规范路径检查以检测规则变化;验证覆盖类型检查、lint、Docker 产品与已安装 CLI 测试、发布包校验及 macOS 原生冒烟测试,还包含同尺寸忽略规则编辑(时间戳恢复)与规则删除/重建的回归用例。README 中“约 30% 更低成本”来自十任务 SWE-bench 对比,仅完成与基线相同的 8/10 任务,属厂商自述、样本很小,不能视为已验证的普遍效果;安装数、星数和徽章不能证明工具可靠性。

62

正文

Official release notes (https://github.com/dzhng/jevgrep/releases/tag/v0.4.2) Reuse unchanged `.gitignore` and `.ignore` rules within each search to avoid repeated file reads and parsing during traversal. Fresh filesystem identity and canonical-path checks still detect changed rules. Validation: type checks, lint, Docker product and installed-CLI tests, release-package validation, and native macOS installed smoke tests. Includes regression coverage for same-size ignore edits with restored timestamps and rule deletion/recreation. Repository README (current repository documentation, not release changes) ![jevgrep — Same intelligence. About 30% lower cost.](assets/cover.png) # jevgrep [![npm](https://img.shields.io/npm/v/@dzhng/jevgrep?style=flat-square&color=ef5638)](https://www.npmjs.com/package/@dzhng/jevgrep) [![MIT license](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](LICENSE) [![Node.js 22+](https://img.shields.io/badge/Node.js-22%2B-339933?style=flat-square)](apps/cli/README.md) [![Release](https://img.shields.io/github/actions/workflow/status/dzhng/jevgrep/publish.yml?style=flat-square&label=release)](https://github.com/dzhng/jevgrep/actions/workflows/publish.yml) **Same intelligence. ~30% lower cost.** Find code by asking what it does. In our ten-task SWE-bench comparison, Jevgrep successfully completed the same 8 of 10 tasks as the baseline, at lower cost. Coding agents spend part of every unfamiliar task finding the right files. Jevgrep gives them a place to start: ask a repository question, and `jg` returns relevant files, reading leads, and verbatim source excerpts in one stdout response. It uses [Jev](https://vercel.com/ai-gateway/models/jev) to judge relevance across folders, files, and declarations. Your coding agent then implements and tests the change. ```sh npm install -g @dzhng/jevgrep jg auth jg skill jg "How are telemetry events recorded and sent?" ./my-project ``` Requires **Node.js 22+**, **macOS or Linux**, and a key for **Vercel AI Gateway, TypeSafe, OpenRouter, or OpenCode Zen**. No separate Python, Bun, or ripgrep installation is required to use `jg`. Provider selection requires **0.3.0 or newer**. Upgrade an older installation with `npm install --global @dzhng/jevgrep@latest`. ## Install the agent skill — required for agent setup Installing the CLI alone does not teach your coding agent to use it. **Install the skill as well**, from the project where your agent works: ```sh jg skill ``` The installer detects your coding agents (Claude Code, Codex, OpenCode and others) and asks where to install. Add `--global` for a user-wide install, or `--yes` for unattended installation. The [skill](skills/jevgrep/SKILL.md) explains installation, invocation and the meaning of returned context. It leaves research and implementation decisions to the calling agent. The current repository skill checks for `jg` and installs the CLI if it is missing; authentication still needs your selected provider’s key. The skill installer itself does not configure credentials. `jg skill` delegates to the [skills CLI](https://github.com/vercel-labs/skills) and needs npm/npx plus network access. You can also run that installer directly, without the CLI installed: ```sh npx skills add dzhng/jevgrep --skill jevgrep ``` In 0.1.0, `jg skill` only prints the bundled skill; use `npx skills` with that version. ### Upgrade There is currently no `jg upgrade` command. Upgrade the CLI with npm: ```sh npm install -g @dzhng/jevgrep@latest jg --version ``` Update the installed skill separately by rerunning `jg skill`. Updating the npm package does not overwrite skill files in your projects. See the [package guide](apps/cli/README.md) for authentication details. ## Start with a question, leave with source Use `jg` when you know the behavior you need to understand but not where it lives: ```sh jg "Where is authentication checked before a request reaches a handler?" . jg "How are database connections created, pooled, and closed?" ./src jg "Which tests cover retry behavior when a request times out?" . ``` Jevgrep explores the repository hierarchy and follows qualifying branches. It selects files using content previews, then identifies useful source units and surrounding context. It keeps qualifying file locations even when it cannot confidently return an excerpt; it does not force every search into a fixed top-two list. The summary and compact file list come first, followed by selected source with line references, then detailed declaration and call locations. Python and TypeScript/JavaScript support declaration parsing; other text uses a fallback. The output is evidence for the agent to use, not a generated answer or a guarantee that every relevant file was found. [See a recorded output example](specs/done/jevgrep/assets/stdout-example.txt). When you already know an exact symbol or path, a direct read or `rg` search may be all you need. Jevgrep is most useful for questions that span unfamiliar files. ## What we measured **Same intelligence, ~30% lower coding-agent cost.** Both Jevgrep and the no-Jev baseline solved **8/10 tasks**. Full Sol cost fell from **$7.62 to $5.44**—a measured **28.6% reduction**, rounded to ~30%—including failed attempts and excluding Jev cost. ![Jevgrep workflow: about 30% lower coding-agent cost, with 8 of 10 tasks solved both with and without Jevgrep.](assets/how-it-works.png) This comparison uses ten tuned Python SWE-bench tasks, one frozen installed package and the exact public skill in this repository. It measures task success and cost, not a speed improvement or guaranteed savings on every repository. See the [results and methodology](evals/results/relevance-threshold-2026-09-27.md) for per-task costs, artifact identities and limitations. ## Source, credentials, and local state Searches send eligible source content to Jev through the provider selected during auth. Default filesystem filtering respects ignore files and excludes hidden, dependency/build, binary, and obvious credential files. These filters are not a guarantee that all sensitive information has been removed; choose a search root you intend to send. `jg auth` asks for your provider, then saves its key in an owner-only config file. Re-running auth replaces that setup; searches always use the saved provider. `jg doctor` checks it with synthetic input. Existing saved keys without a provider remain Vercel keys. Environment-based credentials and endpoint overrides are not used; run `jg auth` if you previously relied on them. Evaluation answers are cached locally by default. The CLI writes its output to stdout and does not create report files. Use `jg --help` for cache controls, search overrides, and incomplete-result behavior. ## Development The repository uses TypeScript, Bun workspaces, and Turborepo. From a checkout: ```sh bun install --frozen-lockfile bun run dev --help bun run verify ``` Verification includes Docker tests of the installed Node-only package. For the reasoning behind retrieval, parsing, caching, and failure handling, start with the [architecture](docs/architecture.md) and [implementation record](specs/done/jevgrep/README.md). [Release guidance](scripts/RELEASING.md) covers tag-triggered npm publication and verification of the exact public package. [MIT](LICENSE). [Artwork and generation prompts](assets/README.md).

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容