agentleFS
VercelKnown publishervercel-labs/opensrc/AGENTS.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 4 mentionsMay 2026: 1 mentionJun 2026: 3 mentionsJul 2026: 2 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the vercel-labs/opensrc repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about vercel-labs/opensrc

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

7 more on GitHub

On Bluesky · 2

  • 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.

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
  1. Very specific:

    Create a branch (e.g. prepare-v0.7.0)

    line 35
  2. Very specific:

    Run cd packages/opensrc && npm run version:sync to update cli/Cargo.toml and cli/Cargo.lock

    line 37
  3. Very specific:

    Write the changelog entry in CHANGELOG.md at the top, under a new ## <version> heading, wrapped in <!-- release:start --> and <!-- …

    line 38
  4. Distinctive:

    Use this source code when you need to understand how a package works internally, not just its types/interface.

    line 55
  5. Very specific:

    Use opensrc path inside other commands to search, read, or explore a package's source (fetches on cache miss):

    line 68

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 npm
  • apps/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:

  1. Create a branch (e.g. prepare-v0.7.0)
  2. Bump version in packages/opensrc/package.json
  3. Run cd packages/opensrc && npm run version:sync to update cli/Cargo.toml and cli/Cargo.lock
  4. Write the changelog entry in CHANGELOG.md at 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.
  5. 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 -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.