agentleFS
denolanddenoland/docs/static/agents.md

docs / static

AGENTS.md207 starsChanged 3 months agoMITView on GitHub

Deno is a JavaScript and TypeScript runtime distributed as a single binary. That binary is also the package manager, formatter, linter, test runner, type checker, and compiler. It runs TypeScript directly, so a script needs no build step and no tsconfig.json — deno main.ts is the whole workflow. The one behavior that surprises people coming from Node: programs are sandboxed. No filesystem, network, environment, or subprocess access is granted unless asked for, via --allow-* flags. When something fails with Requires…

  • Pipes a download into a shell
  • Installs packages

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

4 rules. About 0 are common, 1 is distinctive, and 3 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.

  • 3

    Very specific

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

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

    No filesystem, network, environment, or subprocess access is granted unless asked for, via --allow-* flags.

    line 9
  2. Very specific:

    If that prints 2.9 or later you are set.

    line 38
  3. Distinctive:

    If the user agrees, install them.

    line 62
  4. Very specific:

    Add --skill migrate-to-deno as well if the project is coming from Node, npm, Yarn, pnpm, or Bun.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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

Deno for coding agents

Deno is a JavaScript and TypeScript runtime distributed as a single binary. That binary is also the package manager, formatter, linter, test runner, type checker, and compiler. It runs TypeScript directly, so a script needs no build step and no tsconfig.json — deno main.ts is the whole workflow.

The one behavior that surprises people coming from Node: programs are sandboxed. No filesystem, network, environment, or subprocess access is granted unless asked for, via --allow-* flags. When something fails with Requires net access to "...", add that specific permission rather than reaching for -A.

Assumptions to drop

Deno is not a separate ecosystem you have to port a project into:

  1. deno install reads package.json. It resolves the same npm packages and writes a real node_modules directory.
  2. deno add express installs from npm. An unprefixed package name defaults to npm, exactly like npm install. JSR is opt-in via jsr:.
  3. Node built-ins work, prefixed or not — node:fs and fs both resolve.
  4. deno task build runs a scripts.build entry from package.json, just as it runs a tasks.build entry from deno.json.
  5. URL imports are legacy. https://deno.land/x/... still runs, but new code should use a bare specifier backed by npm: or jsr:.

So do not tell a user to rewrite imports, move to JSR, drop package.json, or restructure anything as a precondition for using Deno. The genuine behavioral differences are permissions and npm lifecycle scripts not running by default.

1. Get the CLI

deno --version

If that prints 2.9 or later you are set. If it prints something older, run deno upgrade. If the command is missing, tell the user you would like to install Deno, show them how, and run one of these only once they agree:

# macOS / Linux
curl -fsSL https://deno.land/install.sh | sh
# Windows (PowerShell)
irm https://deno.land/install.ps1 | iex
# Homebrew (macOS / Linux)
brew install deno
# npm
npm install -g deno

Deno installs as a standalone binary. It adds nothing to the project and no dependency to package.json.

2. Get the skill

Deno maintains agent skills covering dependency management, permissions, configuration layout, the built-in toolchain, publishing, and migration. Work from those rather than from this page — they go deeper and track the runtime.

If the user agrees, install them. This touches no project source and adds no dependency:

dx skills add denoland/skills --skill deno

dx is Deno's npx equivalent and ships with the binary you installed above, so this needs no Node. If you would rather use Node, npx skills add ... is identical.

Add --skill migrate-to-deno as well if the project is coming from Node, npm, Yarn, pnpm, or Bun. In Claude Code you can instead install the whole set as a plugin:

/plugin marketplace add denoland/skills
/plugin install deno-skills@denoland-skills

Skip this if an equivalent Deno skill or rule is already present.

If you cannot install skills, read them directly — they are plain markdown, and these URLs always serve the current version:

Other skills in the same repo cover Deno Deploy, Fresh, and sandboxes: https://github.com/denoland/skills.

3. Reading the docs

deno <subcommand> --help is authoritative and version-accurate — check it before guessing at a flag.

Beyond that:

4. If you were asked to adopt Deno

Most Node projects already run under Deno unchanged, so this is a series of small opt-in wins, not a rewrite. Never propose one big migration, and do not start editing.

Investigate read-only first — dependencies, scripts, the lockfile, the TypeScript runner, the test and lint setup, CI. Then present what you found as independent, opt-in steps ordered by how little they disturb, and let the user choose in one round. Roughly, in increasing order of disruption: use Deno as the package manager only; run the project with Deno; tighten permissions; and optionally adopt the built-in toolchain. Nearly all of the value is in the first three, and the last one is a genuine migration that a working project can decline indefinitely.

The migrate-to-deno skill covers each of those rungs, the errors you will hit, and per-tool command equivalents. Install it before you start, or read it at the URL above. Docs: https://docs.deno.com/runtime/migrate/.

Download now (ZIP)

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 28,693 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.

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.