Amp 推出 Librarian 子智能體,支援搜尋 GitHub 程式碼
The Librarian
Amp 推出名為 Librarian 的子智能體,用於搜尋 GitHub 上的公開程式碼及用戶的私人 GitHub 儲存庫。用戶可讓它跨多個儲存庫搜尋程式碼、查找框架和函式庫的實作及開源範例,或檢視程式碼與依賴項的關係。使用前需在 Amp 設定中配置 GitHub 連線,再要求 Amp 使用 Librarian。
Amp has a new tool: the Librarian.
It's a subagent built for searching remote codebases. It allows Amp to search all public code on GitHub as well as your private GitHub repositories.
Tell Amp to summon the Librarian when you need to find code in multiple repositories, or, for example, when you want it to read the code of the frameworks and libraries you're using. Or when you want it to find examples of what you're trying to do in open-source code. Or when you want it to connect the dots between your code and its dependencies. Or... well, anytime you want it to find and look up code on GitHub.
Here are some example prompts that lead Amp to use the Librarian:
- "Use the Librarian to lookup how React's
useEffectcleanup function is implemented." - "Explain how new versions of our documentation are deployed when we release. Search our docs and infra repositories to see how they get to X.Y.sourcegraph.com."
- "Ask the Librarian to explain why we're getting this error from Zod and show me the validation logic causing it."
In order to use the Librarian, all you need to do is configure a GitHub connection in your Amp settings and then tell Amp to use it.

來源:Amp Chronicle · ampcode.com