agentleFS
VercelKnown publishervercel-labs/portless/AGENTS.md

portless

AGENTS.md13k starsChanged 2 months agoApache-2.0View on GitHub

Use pnpm for all package management commands (not npm or yarn). Exception: End-user install instructions should use npm install -g (global) or npm install -D (project dev dependency) since npm is universal. Always check for the latest npm version when adding dependencies. Use pnpm add <package> (without version) to get the latest, or verify with npm view <package> version first. Do not use emojis anywhere in this repository (code, comments, output, docs). Never use -- as a dash in prose,…

  • Installs packages

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 9 mentionsMar 2026: 11 mentionsApr 2026: 4 mentionsMay 2026: 5 mentionsJun 2026: 3 mentionsJul 2026: 2 mentionsAug 2026: 11 mentionsSep 2026: 15 mentionsOct 2026: 12 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the vercel-labs/portless repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about vercel-labs/portless

The biggest 5 of 72 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 72

Talked about on GitHub, Bluesky and Hacker News (72 times).

On GitHub · 47

42 more on GitHub

On Bluesky · 24

19 more on Bluesky
  • 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 repository2 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

19 rules. About 0 are common, 8 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use pnpm for all package management commands (not npm or yarn).

    line 5
  2. Very specific:

    Always check for the latest npm version when adding dependencies.

    line 11
  3. Distinctive:

    Do not use emojis anywhere in this repository (code, comments, output, docs).

    line 15
  4. Very specific:

    Never use -- as a dash in prose, comments, or user-facing output.

    line 19
  5. Very specific:

    Document boolean env vars using only 0 and 1 in CLI help, SKILL.md, docs pages, and README.

    line 23
  6. Very specific:

    When a change affects how humans or agents use portless (new/changed/removed commands, flags, behavior, or config), update all of these:

    line 27
  7. Very specific:

    Create a branch (e.g. prepare-v1.2.0)

    line 39
  8. Very specific:

    Write the changelog entry in CHANGELOG.md, wrapped in <!-- release:start --> and <!-- release:end --> markers

    line 41
  9. Very specific:

    Remove the <!-- release:start --> and <!-- release:end --> markers from the previous release entry (only the latest release should have …

    line 42
  10. Very specific:

    Add a matching entry to apps/docs/content/docs/changelog.mdx

    line 43
  11. Very specific:

    All scripts require AWS_PROFILE=portless-debug (or the profile must be set as default).

    line 52
  12. Distinctive:

    Start the instance (if stopped):

    line 70
  13. Distinctive:

    Run a command on Windows:

    line 76
  14. Distinctive:

    Stop the instance when done (avoids cost):

    line 88
  15. Very specific:

    SSM agent takes a long time to come online: After starting or restarting the instance, the SSM agent can take 5 to 10 minutes before it …

    line 96
  16. Distinctive:

    Run unit tests on Windows:

    line 114
  17. Distinctive:

    Run e2e tests on Windows:

    line 120
  18. Distinctive:

    Check bootstrap progress (first boot only):

    line 126
  19. Distinctive:

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

    line 142

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

Agent Rules

Package Manager

Use pnpm for all package management commands (not npm or yarn).

Exception: End-user install instructions should use npm install -g (global) or npm install -D (project dev dependency) since npm is universal.

Dependencies

Always check for the latest npm version when adding dependencies. Use pnpm add <package> (without version) to get the latest, or verify with npm view <package> version first.

No Emojis

Do not use emojis anywhere in this repository (code, comments, output, docs).

Dashes

Never use -- as a dash in prose, comments, or user-facing output. Use an em dash (\u2014) when a dash is needed, but prefer rephrasing to avoid dashes entirely. The only exception is CLI flags (e.g. --port).

Boolean Environment Variables

Document boolean env vars using only 0 and 1 in CLI help, SKILL.md, docs pages, and README. Code accepts true/false as well (and skip for PORTLESS), but these alternatives are not documented.

Docs Updates

When a change affects how humans or agents use portless (new/changed/removed commands, flags, behavior, or config), update all of these:

  1. README.md (user-facing documentation)
  2. skills/portless/SKILL.md (agent skill for using portless)
  3. packages/portless/src/cli.ts (--help output)

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-v1.2.0)
  2. Bump the version in packages/portless/package.json
  3. Write the changelog entry in CHANGELOG.md, wrapped in <!-- release:start --> and <!-- release:end --> markers
  4. Remove the <!-- release:start --> and <!-- release:end --> markers from the previous release entry (only the latest release should have markers)
  5. Add a matching entry to apps/docs/content/docs/changelog.mdx
  6. Open a PR and merge to main

CI compares the version in packages/portless/package.json to what's on npm. If it differs, it builds, publishes, and creates the GitHub release automatically. The release body is extracted from the content between the markers.

Windows Debugging

A remote Windows Server 2022 EC2 instance is available for debugging Windows-specific issues. It uses AWS Systems Manager (SSM) with no SSH or open ports. Commands run via aws ssm send-command and return stdout/stderr.

All scripts require AWS_PROFILE=portless-debug (or the profile must be set as default). Prefix every command with it or export it for the session:

export AWS_PROFILE=portless-debug

Prerequisites

The instance must be provisioned first (one-time, by a human):

./scripts/windows-debug/provision.sh

Requires: AWS CLI v2 configured with ec2:*, iam:CreateRole, iam:AttachRolePolicy, ssm:SendCommand, ssm:GetCommandInvocation permissions and a default VPC.

Usage

Start the instance (if stopped):

./scripts/windows-debug/start.sh

Run a command on Windows:

./scripts/windows-debug/run.sh "<powershell-command>"

Sync the current git branch and rebuild:

./scripts/windows-debug/sync.sh

Stop the instance when done (avoids cost):

./scripts/windows-debug/stop.sh

Important notes

SSM agent takes a long time to come online. After starting or restarting the instance, the SSM agent can take 5 to 10 minutes before it accepts commands. If run.sh returns InvalidInstanceId, wait and retry. Do not assume the instance is broken; poll with increasing intervals.

PowerShell uses ; not &&. The run.sh wrapper executes PowerShell, which does not support && as a command separator. Use ; instead:

./scripts/windows-debug/run.sh "cd C:\portless; pnpm test"

OpenSSL may not be at the expected path. The bootstrap installs OpenSSL to C:\Program Files\OpenSSL-Win64\bin, but this can fail silently. Git bundles its own OpenSSL at C:\Program Files\Git\mingw64\bin. If openssl is not found, add Git's path:

./scripts/windows-debug/run.sh '$env:PATH = "C:\Program Files\Git\mingw64\bin;$env:PATH"; openssl version'

SSM runs as SYSTEM. Commands execute as the SYSTEM account, not a normal user. This affects user-specific operations (e.g., certutil -addstore -user Root targets SYSTEM's trust store, not a real user's). Keep this in mind when testing user-facing features.

Common Workflows

Run unit tests on Windows:

./scripts/windows-debug/run.sh "cd C:\portless; pnpm test"

Run e2e tests on Windows:

./scripts/windows-debug/run.sh "cd C:\portless; pnpm test:e2e"

Check bootstrap progress (first boot only):

./scripts/windows-debug/run.sh "Get-Content C:\bootstrap.log"

The repo lives at C:\portless on the instance. Node.js 24, pnpm 11, Git, and OpenSSL are pre-installed. The run.sh wrapper automatically adds these tools to PATH.

<!-- opensrc:start -->

Source Code Reference

Source code for dependencies is available in 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 Additional Source Code

To fetch source code for a package or repository you need to understand, run:

npx opensrc <package>           # npm package (e.g., npx opensrc zod)
npx opensrc pypi:<package>      # Python package (e.g., npx opensrc pypi:requests)
npx opensrc crates:<package>    # Rust crate (e.g., npx opensrc crates:serde)
npx opensrc <owner>/<repo>      # GitHub repo (e.g., npx opensrc vercel/ai)
<!-- 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.