ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
Reddit 貼文 · 發布者 Obvious_Gap_5768

一個顯示編輯觸及每個檔案的 Claude Code 外掛

Repowise 推出 Lens,這是一個能即時視覺化已建立索引之程式碼庫的 Claude Code 外掛:Claude 搜尋、讀取與編輯檔案時,檔案會亮起,匯入方與反向相依性也會高亮。它還包含顯示受影響檔案與覆蓋測試的 Flow 分頁,以及帶有健康度變化和執行建議測試按鈕的審查列。

已翻譯

關於這個 mod

這篇文章介紹 Repowise 的開放原始碼程式碼庫索引器(呼叫圖、Git 歷史、測試與程式碼健康度)及其新的 Claude Code 外掛 Lens。使用新的 Claude Code 外掛後,/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]

更多類似作品