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
- Very specific: line 9
No filesystem, network, environment, or subprocess access is granted unless asked for, via --allow-* flags.
- Very specific: line 38
If that prints 2.9 or later you are set.
- Distinctive: line 62
If the user agrees, install them.
- Very specific: line 73
Add --skill migrate-to-deno as well if the project is coming from Node, npm, Yarn, pnpm, or Bun.
≈ “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.
Files
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:
deno installreadspackage.json. It resolves the same npm packages and writes a realnode_modulesdirectory.deno add expressinstalls from npm. An unprefixed package name defaults to npm, exactly likenpm install. JSR is opt-in viajsr:.- Node built-ins work, prefixed or not —
node:fsandfsboth resolve. deno task buildruns ascripts.buildentry frompackage.json, just as it runs atasks.buildentry fromdeno.json.- URL imports are legacy.
https://deno.land/x/...still runs, but new code should use a bare specifier backed bynpm:orjsr:.
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 --versionIf 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 denoDeno 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 denodx 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-skillsSkip 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:
- https://raw.githubusercontent.com/denoland/skills/main/skills/deno/SKILL.md
- https://raw.githubusercontent.com/denoland/skills/main/skills/migrate-to-deno/SKILL.md
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:
- https://docs.deno.com/llms.txt — index of the documentation
- Any docs page also serves its markdown source: append
.mdto the URL, as in https://docs.deno.com/runtime/fundamentals/security.md - https://docs.deno.com/api/ — the
Deno.*API reference deno doc jsr:@std/path— a package's API without leaving the terminal
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/.
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.
- AGENTS.mdAGENTS.md
- static/llms.txtllms.txt
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.

