
opensrc
Fetch dependency source code to give AI agents deeper implementation context
by vercel-labsFree
Description
opensrc is an agent skill that fetches the source code of dependencies so an AI agent can read how a library is implemented, not just its types. It clones the repository at the correct version tag and caches it globally under ~/.opensrc/. The core pattern is to run opensrc path with a package name, which prints the absolute path to the cached source; if the package is not cached yet, it fetches it automatically. Progress messages go to stderr and the path goes to stdout, so the path can be used directly inside a command substitution, for example to search the source with rg or to read a file inside it. This lets the agent check how a library works internally, look at its test files, and read the exact code for the version the project uses. Use it when the agent needs implementation detail that type definitions and documentation do not show.…
Highlights
- Fetches dependency source at the right version tag
- Caches source globally under ~/.opensrc/
- Prints the cached path for search and reading
- Gives agents implementation detail, not just types
Ratings & Reviews
No ratings yet
Be the first to rate opensrc.
People also visit
opensrc FAQ
What does opensrc do?
It fetches dependency source code so an AI agent can read how a library works internally.
Which version does it fetch?
It clones the repository at the correct version tag for the package.
Where is the code stored?
In a global cache at ~/.opensrc/, so it is downloaded once and reused.
How do I use it?
Run opensrc path with the package name. The path is printed to stdout, so you can use it in a shell command such as rg or cat.
How do I install it?
Run npx skills add https://github.com/vercel-labs/opensrc --skill opensrc.
What do the security audits show?
Gen Agent Trust Hub Pass, Socket Pass and Snyk Warn.
What are the best opensrc alternatives?
Popular alternatives to opensrc include GitHits, gread and understand-chat. See all opensrc alternatives




















