
一个展示编辑触及每个文件的 Claude Code mod
Repowise 推出 Lens,这是一个能实时可视化已索引代码库的 Claude Code mod:Claude 搜索、读取和编辑文件时,文件会亮起,导入方和反向依赖也会高亮。它还包含一个显示受影响文件和覆盖测试的 Flow 标签页,以及一个带健康度变化和运行建议测试按钮的审查行。

关于这个 mod
这篇文章介绍了 Repowise 的开源代码库索引器(调用图、Git 历史、测试和代码健康度)及其新的 Claude Code mod Lens。使用新的 Claude Code mod 后,/lens 会显示一个代码库地图覆盖层:Claude 搜索、读取和编辑文件时,文件会亮起;Claude 编辑某个文件时,所有导入该文件的文件也会亮起(例如,Django 的 query.py 中一行注释会点亮 12 个文件,conf/init.py 会点亮约 248 个文件)。Flow 标签页会按编辑过的文件列出变更触及但 Claude 从未打开的内容、经常一起变更的文件,以及覆盖测试。编辑后,审查行会显示健康度变化和要运行的测试,并提供一个按钮把这些测试交给 Claude。Lens 不会调用模型,也不会阻止或批准 Claude 的操作。设置:/plugin marketplace add repowise-dev/repowise;/plugin install repowise@repowise;pip install repowise;repowise init --no-prose --yes;repowise serve --no-ui。需要 Claude Code 2.1.287+。索引在本地运行,不需要 API key。代码库:https://github.com/repowise-dev/repowise
安装
安装方法请查看原始来源。
原文 / README
Repowise is an open source tool that indexes your codebase - call graph, git history, tests and code health. Coding agents can query it instead of grepping around. We just shipped Lens, which uses the new Claude Code mods to show you that index while Claude works. Type /lens and you get a map of your repo. Files light up as Claude searches, reads and edits them. When Claude edits a file, every file that imports it lights up too. In the video, a one-line comment in Django's query.py lights up 12 files, and conf/ init .py lights up about 248. The Flow tab gives you a short list for each edited file: what the change reaches that Claude never opened, the files that usually change with it, and the tests that cover it. After an edit, a review row shows the health change and the tests to run, and one button sends those tests to Claude. Lens makes no model calls of its own, and it never blocks or approves anything Claude does. Setup: /plugin marketplace add repowise-dev/repowise /plugin install repowise@repowise pip install repowise repowise init --no-prose --yes repowise serve --no-ui You need Claude Code 2.1.287+. Indexing runs locally and needs no API key. https://github.com/repowise-dev/repowise submitted by /u/Obvious_Gap_5768 [link] [comments]
