opensrc
AGENTS.md3k starsChanged 8 months agoApache-2.0View on GitHub
Instructions for AI coding agents working with this codebase. This is a Turborepo monorepo with pnpm workspaces: The CLI is a Rust binary with an npm shim. The Rust crate lives in packages/opensrc/cli/. Or from root: turbo dev, turbo build Releases are manual, single-PR affairs. The maintainer controls the changelog voice and format. To prepare a release: When the PR merges, CI compares packages/opensrc/package.json version to what's on npm. If it differs, it builds all 7 platform binaries, publishes to…
Trending
Less talk lately.thin dataabout the whole repository
Who's talking about vercel-labs/opensrc
- @metru.dev“Just found github.com/vercel-labs/... I've been doing this with just a /references/ folder and cloned …”Bluesky · Jul 23, 2026 · 4 likes
- nicobailon/pi-web-access“feat: support opensrc for github repo fetch”GitHub · Apr 19, 2026 · 1 reactions
- @tom-doerr.bsky.social“https://github.com/vercel-labs/opensrc”Bluesky · Mar 2, 2026 · 1 likes
- YodHeVauHe/opensrc“Trust the OS certificate store for HTTPS requests”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.vercel-labs.opensrc: init at 0.7.3”GitHub · Oct 3, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub and Bluesky (14 times).
On GitHub · 12
- Apr 19, 2026feat: support opensrc for github repo fetch — nicobailon/pi-web-access1 reaction · 2 comments
- Oct 4, 2026Trust the OS certificate store for HTTPS requests — YodHeVauHe/opensrc0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.vercel-labs.opensrc: init at 0.7.3 — sudosubin/agents.nix0 reactions
- Aug 5, 2026[skill-health] opensrc: "Related" section links a nonexistent [[graphify]] skill — stanfish06/skillquarium0 reactions · 1 comment
- Jul 2, 2026Consider `opensrc` from Vercel Labs instead of vendoring Effect Smol (i.e. Effect v4) — cameronapak/dotflowy0 reactions · 1 comment
7 more on GitHub
- Jun 29, 2026chore(deps-dev): bump the dependencies group with 7 updates — dhis2/event-visualizer-app0 reactions · 1 comment
- Jun 29, 2026chore(deps): bump opensrc from 0.7.2 to 0.7.3 — michelreifenrath/pi-opensrc0 reactions · 1 comment
- Jun 26, 2026opensrc: 0.7.2 -> 0.7.3 — NixOS/nixpkgs0 reactions · 3 comments
- May 7, 2026chore(deps-dev): bump the dependencies group across 1 directory with 8 updates — dhis2/event-visualizer-app0 reactions
- Apr 21, 2026opensrc: init at 0.7.2 — NixOS/nixpkgs0 reactions · 2 comments
- Apr 10, 2026[FEATURE] spikes should use opensrc to explore — specledger/specledger0 reactions
- Apr 6, 2026opensrc visual docs ページの追加 — 53able/docs-site0 reactions
On Bluesky · 2
- Jul 23, 2026Just found github.com/vercel-labs/... I've been doing this with just a /references/ folder and cloned repos. Often also using my own… — @metru.dev4 likes and reposts
- Mar 2, 2026https://github.com/vercel-labs/opensrc — @tom-doerr.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- opensrcSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Create a branch (e.g. prepare-v0.7.0)
- Very specific: line 37
Run cd packages/opensrc && npm run version:sync to update cli/Cargo.toml and cli/Cargo.lock
- Very specific: line 38
Write the changelog entry in CHANGELOG.md at the top, under a new ## <version> heading, wrapped in <!-- release:start --> and <!-- …
- Distinctive: line 55
Use this source code when you need to understand how a package works internally, not just its types/interface.
- Very specific: line 68
Use opensrc path inside other commands to search, read, or explore a package's source (fetches on cache miss):
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Instructions for AI coding agents working with this codebase.
Monorepo Structure
This is a Turborepo monorepo with pnpm workspaces:
packages/opensrc/— Rust CLI distributed via npmapps/docs/— Next.js documentation site
CLI (packages/opensrc)
The CLI is a Rust binary with an npm shim. The Rust crate lives in packages/opensrc/cli/.
- Build:
cargo build --manifest-path packages/opensrc/cli/Cargo.toml - Test:
cargo test --manifest-path packages/opensrc/cli/Cargo.toml - Format:
cargo fmt --manifest-path packages/opensrc/cli/Cargo.toml - Lint:
cargo clippy --manifest-path packages/opensrc/cli/Cargo.toml -- -D warnings - Release build + copy to bin/:
cd packages/opensrc && npm run build:native
Docs (apps/docs)
- Dev:
cd apps/docs && pnpm dev - Build:
cd apps/docs && pnpm build
Or from root: turbo dev, turbo build
Releasing
Releases are manual, single-PR affairs. The maintainer controls the changelog voice and format.
To prepare a release:
- Create a branch (e.g.
prepare-v0.7.0) - Bump
versioninpackages/opensrc/package.json - Run
cd packages/opensrc && npm run version:syncto updatecli/Cargo.tomlandcli/Cargo.lock - Write the changelog entry in
CHANGELOG.mdat the top, under a new## <version>heading, wrapped in<!-- release:start -->and<!-- release:end -->markers. Remove the markers from the previous release entry so only the new release has markers. - Open a PR and merge to
main
When the PR merges, CI compares packages/opensrc/package.json version to what's on npm. If it differs, it builds all 7 platform binaries, publishes to npm, and creates the GitHub release automatically. The GitHub release body is extracted from the content between the <!-- release:start --> and <!-- release:end --> markers in CHANGELOG.md.
Writing the changelog
Review the git log since the last release and write the entry in CHANGELOG.md. Follow the existing format and voice. Group changes under ### New Features, ### Bug Fixes, ### Improvements, etc. Bold the feature/fix name, then describe it concisely. Reference PR numbers in parentheses.
<!-- opensrc:start -->Source Code Reference
Source code for dependencies is cached at ~/.opensrc/ for deeper understanding of implementation details.
See ~/.opensrc/sources.json for the list of available packages and their versions.
Use this source code when you need to understand how a package works internally, not just its types/interface.
Fetching Source Code
To just cache a package's source without doing anything else, use opensrc fetch:
opensrc fetch <package>
opensrc fetch pypi:<package> crates:<package> <owner>/<repo>Reading Source Code
Use opensrc path inside other commands to search, read, or explore a package's source (fetches on cache miss):
rg "pattern" $(opensrc path <package>)
cat $(opensrc path <package>)/path/to/file
find $(opensrc path <package>) -name "*.ts"Works with any registry:
rg "pattern" $(opensrc path pypi:<package>)
rg "pattern" $(opensrc path crates:<package>)
rg "pattern" $(opensrc path <owner>/<repo>)<!-- opensrc:end -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

