Keyboard shortcuts

Scrolling

dorCtrl+d
Scroll down
uorCtrl+u
Scroll up
Ctrl+e
One line down
Ctrl+y
One line up
gtheng
Top of article
G
Bottom of article

Articles

j
Older article
k
Newer article
O
Open original
H
Open hackernews
R
Open reddit

Lists

jor↓
Next item
kor↑
Previous item
gtheng
First item
G
Last item
oorEnter
Open selected item

Go to

gthenforgtheni
Feed
gthen1–9
Open feed entry
gthenb
Browse
gthenp
Preferences

Search and help

⌘+kCtrl+kor/
Global search
?
Show this help
Esc
Close this help

The Librarian

ampcode.com original

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 useEffect cleanup 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.

The Librarian at work