For AI / AgentsAI / Agent entry point

AI / Agent entry point

Complete Bun tasks accurately with the smallest useful context

Last updated on

Reading order for agents

  1. Read /en/llms.txt for routing metadata only.
  2. Select the relevant page and append .md to its URL.
  3. Read /en/llms-full.txt only for genuinely cross-cutting work.
  4. Before edits, inspect package.json, bun.lock, bunfig.toml, tsconfig.json, and existing scripts.
  5. After edits, run tests proportional to risk. Do not replace verification with inference.

Task router

User goalRequired pageAdd when needed
Run or debug TypeScriptRuntimeCLI and config
Install packages or repair a lockfilePackage managerNode.js migration
Change workspaces or a task graphMonorepos and workspacesPackage manager
Add or migrate testsTest runnerAgent rules
Produce a deployment artifactBundlerThe target framework's official docs
Implement WebSocket / realtime pushWebSocket and realtimeServerless & edge
Set up frontend developmentFrontend with HTML importsEcosystem decisions
Connect SQL, Redis, or S3Data and storageThe target service's official docs
Build an AI serviceBuild AI apps with BunServerless & edge
Use vibe coding or a coding agentVibe coding workflowPaste-ready rules
Establish CI and production gatesProduction baselineContainers & Kubernetes
Choose a backend or full-stack frameworkEcosystem decisionsThe framework's official docs
Choose between Bun, Node.js, and DenoRuntime comparisonVersion matrix
Deploy to a cloud platformCloud deployment decisionsPlatform guides (Lambda, Vercel, Workers) or the platform's official docs
Move a Node.js project to BunNode.js migrationLoad core pages by boundary

Invariants

- Bun can execute TypeScript, but that does not replace static type checking.
- Do not replace framework build commands unless the framework supports the replacement.
- Treat trusted dependency install scripts as code execution; review before `bun pm trust`.
- Keep exactly one authoritative lockfile after migration is approved.
- Never assume Node.js compatibility for native addons or edge-case loaders; test them.
- Use argument arrays with Bun.spawn when input may be untrusted.

Query, do not guess

Check current primary sources for patch-version defaults, framework and deployment support, native packages, bunfig.toml keys, Node.js API compatibility, test matchers, and security-sensitive installation behavior.

Machine-readable endpoints

Use AGENT=1 bun test to reduce passing-test noise in a large suite. Preserve failure details, exit status, and complete CI logs.

URLPurpose
/en/llms.txtEnglish routing index
/llms.txtChinese routing index
/en/llms-full.txtFull English corpus
/en/docs/core/runtime.mdOne English page as Markdown
/docs/core/runtime.mdOne Chinese page as Markdown

Context is not authorization

Seeing a command does not authorize destructive changes. Deleting lockfiles, making major upgrades, changing production entrypoints, or accessing secrets still requires explicit scope.