{"card": 1, "name": "bun", "version": "0.1.0", "description": "How the Bun repository runs its agents: a shell guard that stops slow or wrong build and test commands, format on edit, and skills for its C++, Rust and test work.", "hash": "sha256:57616b6ace047f14a1e6b4a7f3fee4991bd70514444fd1d16bf90c72a0e08f4e", "origin": {"repository": "https://github.com/oven-sh/bun", "commit": "e13b16bc7ed7f69252196cb5c93852d6337fbcba", "license": "MIT", "license_basis": "reviewed", "share_alike": false, "absorbed_at": "2026-11-26"}, "review": {"pieces": 17, "mention_project": 11}, "inside": {"hooks": [{"event": "PreToolUse", "matcher": "Bash", "runs": "pre-bash-guard.js"}, {"event": "PostToolUse", "matcher": "Write|Edit|MultiEdit", "runs": "post-edit-format.js"}], "rules": {}, "skills": [{"name": "implementing-jsc-classes-cpp", "description": "How the JavaScript classes that are written by hand in C++ are built. Use when changing one of them. For a new class use implementing-jsc-classes-rust."}, {"name": "implementing-jsc-classes-rust", "description": "Creates JavaScript classes using Bun's bindings generator (.bind.ts). Use when implementing new JS APIs in Rust with JSC integration, prototypes, or constructors."}, {"name": "javascriptcore-garbage-collector", "description": "JSC GC reference for Bun. Use for use-after-free, JS object leaks, \"collected too early\", or when touching WriteBarrier, visitChildren, visitAdditionalChildren, JSRef, JSC::Strong/Weak, hasPendingActivity, ensureStillAlive, addOpaqueRoot, reportExtraMemoryAllocated, IsoSubspace, HeapAnalyzer, finalize."}, {"name": "rust-system-calls", "description": "Guides using bun_sys for system calls and file I/O in Rust. Use when implementing file operations, opening fds, or any syscall path instead of std::fs or libc."}, {"name": "slowest-tests", "description": "Find the top-N slowest test files in CI from a recent BuildKite run, optionally posting the results to a Slack channel as a formatted table. Use when asked to find slow CI tests, \"what's making CI slow\", or to post a slow-test report to Slack."}, {"name": "verify", "description": "Verify a Bun runtime change by driving the debug binary end-to-end."}, {"name": "writing-bundler-tests", "description": "Guides writing bundler tests using itBundled/expectBundled in test/bundler/. Use when creating or modifying bundler, transpiler, or code transformation tests."}, {"name": "writing-dev-server-tests", "description": "Guides writing HMR/Dev Server tests in test/bake/. Use when creating or modifying dev server, hot reloading, or bundling tests."}, {"name": "find-duplicate-prs", "description": "Find open PRs that may duplicate a given PR"}, {"name": "find-issues", "description": "Find GitHub issues that a PR might fix"}, {"name": "upgrade-boringssl", "description": "Upgrade Bun's BoringSSL fork (oven-sh/boringssl) to the latest upstream google/boringssl"}, {"name": "upgrade-nodejs", "description": "Upgrading Bun's Self-Reported Node.js Version"}, {"name": "upgrade-webkit", "description": "Upgrade Bun's WebKit fork to the latest upstream version of WebKit"}], "subagents": [], "mcp_servers": [], "instructions": 0}, "needs": ["bun"], "guards": [{"name": "rustfmt run directly", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "cargo fmt", "expect": "allow", "event": "PreToolUse", "tool": "Bash"}, {"name": "bun bd under a timeout", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "bun bd without a timeout", "expect": "allow", "event": "PreToolUse", "tool": "Bash"}, {"name": "updating snapshots with a test name filter", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "the release bun used for tests", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "the release bun, asked for on purpose", "expect": "allow", "event": "PreToolUse", "tool": "Bash"}, {"name": "the debug build testing one file", "expect": "allow", "event": "PreToolUse", "tool": "Bash"}, {"name": "a harmless command", "expect": "allow", "event": "PreToolUse", "tool": "Bash"}], "agents": {"claude": {"native": 15, "emulated": 0, "lost": 0, "pieces": [{"piece": "implementing-jsc-classes-cpp", "kind": "skill", "status": "native", "note": ""}, {"piece": "implementing-jsc-classes-rust", "kind": "skill", "status": "native", "note": ""}, {"piece": "javascriptcore-garbage-collector", "kind": "skill", "status": "native", "note": ""}, {"piece": "rust-system-calls", "kind": "skill", "status": "native", "note": ""}, {"piece": "slowest-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "verify", "kind": "skill", "status": "native", "note": ""}, {"piece": "writing-bundler-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "writing-dev-server-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-duplicate-prs", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-issues", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-boringssl", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-nodejs", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-webkit", "kind": "skill", "status": "native", "note": ""}, {"piece": "PreToolUse [Bash] → pre-bash-guard.js", "kind": "hook", "status": "native", "note": ""}, {"piece": "PostToolUse [Write|Edit|MultiEdit] → post-edit-format.js", "kind": "hook", "status": "native", "note": ""}]}, "codex": {"native": 14, "emulated": 1, "lost": 2, "pieces": [{"piece": "implementing-jsc-classes-cpp", "kind": "skill", "status": "native", "note": ""}, {"piece": "implementing-jsc-classes-rust", "kind": "skill", "status": "native", "note": ""}, {"piece": "javascriptcore-garbage-collector", "kind": "skill", "status": "native", "note": ""}, {"piece": "rust-system-calls", "kind": "skill", "status": "native", "note": ""}, {"piece": "slowest-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "verify", "kind": "skill", "status": "native", "note": ""}, {"piece": "writing-bundler-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "writing-dev-server-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-duplicate-prs", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-duplicate-prs: allowed-tools", "kind": "skill option", "status": "lost", "note": "Claude Code frontmatter that Codex does not read; the skill's text is unchanged"}, {"piece": "find-issues", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-issues: allowed-tools", "kind": "skill option", "status": "lost", "note": "Claude Code frontmatter that Codex does not read; the skill's text is unchanged"}, {"piece": "upgrade-boringssl", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-nodejs", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-webkit", "kind": "skill", "status": "native", "note": ""}, {"piece": "PreToolUse [Bash] → pre-bash-guard.js", "kind": "hook", "status": "native", "note": "same event; runs through the adapter, which sets CLAUDE_PROJECT_DIR"}, {"piece": "PostToolUse [Write|Edit|MultiEdit] → post-edit-format.js", "kind": "hook", "status": "emulated", "note": "Codex edits files with apply_patch: the adapter rebuilds a Write or Edit payload per file and blocks the patch if the hook blocks one of them. Deleting a file is not checked"}]}, "copilot": {"native": 14, "emulated": 1, "lost": 0, "pieces": [{"piece": "implementing-jsc-classes-cpp", "kind": "skill", "status": "native", "note": ""}, {"piece": "implementing-jsc-classes-rust", "kind": "skill", "status": "native", "note": ""}, {"piece": "javascriptcore-garbage-collector", "kind": "skill", "status": "native", "note": ""}, {"piece": "rust-system-calls", "kind": "skill", "status": "native", "note": ""}, {"piece": "slowest-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "verify", "kind": "skill", "status": "native", "note": ""}, {"piece": "writing-bundler-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "writing-dev-server-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-duplicate-prs", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-issues", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-boringssl", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-nodejs", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-webkit", "kind": "skill", "status": "native", "note": ""}, {"piece": "PreToolUse [Bash] → pre-bash-guard.js", "kind": "hook", "status": "native", "note": "same event; runs through the adapter, which sets CLAUDE_PROJECT_DIR"}, {"piece": "PostToolUse [Write|Edit|MultiEdit] → post-edit-format.js", "kind": "hook", "status": "emulated", "note": "Copilot names its edit arguments differently (path, file_text, old_str, new_str): the adapter rebuilds the Write or Edit payload the hook expects, file by file for a patch"}]}, "generic": {"native": 13, "emulated": 0, "lost": 2, "pieces": [{"piece": "implementing-jsc-classes-cpp", "kind": "skill", "status": "native", "note": ""}, {"piece": "implementing-jsc-classes-rust", "kind": "skill", "status": "native", "note": ""}, {"piece": "javascriptcore-garbage-collector", "kind": "skill", "status": "native", "note": ""}, {"piece": "rust-system-calls", "kind": "skill", "status": "native", "note": ""}, {"piece": "slowest-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "verify", "kind": "skill", "status": "native", "note": ""}, {"piece": "writing-bundler-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "writing-dev-server-tests", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-duplicate-prs", "kind": "skill", "status": "native", "note": ""}, {"piece": "find-issues", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-boringssl", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-nodejs", "kind": "skill", "status": "native", "note": ""}, {"piece": "upgrade-webkit", "kind": "skill", "status": "native", "note": ""}, {"piece": "PreToolUse [Bash] → pre-bash-guard.js", "kind": "hook", "status": "lost", "note": "no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it"}, {"piece": "PostToolUse [Write|Edit|MultiEdit] → post-edit-format.js", "kind": "hook", "status": "lost", "note": "no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it"}]}}, "proof": {"hash": "sha256:57616b6ace047f14a1e6b4a7f3fee4991bd70514444fd1d16bf90c72a0e08f4e", "date": "2026-11-27", "cases": [{"name": "rustfmt run directly", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "cargo fmt", "expect": "allow", "claude": "allow", "codex": "allow", "copilot": "allow"}, {"name": "bun bd under a timeout", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "bun bd without a timeout", "expect": "allow", "claude": "allow", "codex": "allow", "copilot": "allow"}, {"name": "updating snapshots with a test name filter", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "the release bun used for tests", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "the release bun, asked for on purpose", "expect": "allow", "claude": "allow", "codex": "allow", "copilot": "allow"}, {"name": "the debug build testing one file", "expect": "allow", "claude": "allow", "codex": "allow", "copilot": "allow"}, {"name": "a harmless command", "expect": "allow", "claude": "allow", "codex": "allow", "copilot": "allow"}]}, "files": [{"path": "ABSORB_REPORT.md", "bytes": 5698, "sha256": "adb3497005c5152d61ea0b9b5411fb114609e784d163672d1aef6d0279feb38c"}, {"path": "ATTRIBUTION.md", "bytes": 1358, "sha256": "5fa02a2264c6885aefb84d812419df8b62c6a21692ef4517252054549d6eec00"}, {"path": "LICENSE.md", "bytes": 16758, "sha256": "76638ecfbeb3dabc198f86eee8071aa2c3a0afc6a3904ca473741839463be7cc"}, {"path": "harness.yaml", "bytes": 1713, "sha256": "68cff98552eb847e7a68d612f96c2120efe6b4a5c9b4677a41eb18ce2de0cca1"}, {"path": "hooks/post-edit-format.js", "bytes": 1340, "sha256": "a05184ccf4dd45078b08ebf484dd397e90a3cc59271817a4a60c78e0ccced9ca"}, {"path": "hooks/pre-bash-guard.js", "bytes": 7251, "sha256": "2cc14d9a8eb8af77faf68bd47fd1b7589d33e4b698a4486852faf0df551b0d89"}, {"path": "selftest/cases.yaml", "bytes": 1173, "sha256": "3c231653df68ba6dcac7a7493bb57b6f448c49505e7f23ccebb2ffbe43365d78"}, {"path": "skills/find-duplicate-prs/SKILL.md", "bytes": 3305, "sha256": "2712cf540ffc32caa8306ad38e3e26c8a883f0055814c1b64deb778f823d752b"}, {"path": "skills/find-issues/SKILL.md", "bytes": 3872, "sha256": "20c91c77bb23c57f7e96d0b598cace103dc59f438b206cbf572021e3f0ff8afa"}, {"path": "skills/implementing-jsc-classes-cpp/SKILL.md", "bytes": 6994, "sha256": "58c88d4458b713898f923ffa6e96a6147da3b4ce38bc2b352c26534c172b4b0b"}, {"path": "skills/implementing-jsc-classes-rust/SKILL.md", "bytes": 2842, "sha256": "bdbeb59d46fa69398973342186433a3a9b1add8347351d8590670345e95a8d58"}, {"path": "skills/javascriptcore-garbage-collector/SKILL.md", "bytes": 25082, "sha256": "59bbcb1afd28a80c621995c88c220b79fd240883e55a3cba999545673cd5bb18"}, {"path": "skills/rust-system-calls/SKILL.md", "bytes": 3872, "sha256": "45f99628b70000c1d8421db0df019da3391b3b024425c64d730ca09d13c049b3"}, {"path": "skills/slowest-tests/SKILL.md", "bytes": 3553, "sha256": "64faac05cc20b499c28a54f3ead9d394375ff065de8f8084fd1cdff7dbc78a31"}, {"path": "skills/upgrade-boringssl/SKILL.md", "bytes": 7034, "sha256": "c9e71afc65891729b7b930b351c84e0bc60aa1a97feaeed26f3ac183adb196ea"}, {"path": "skills/upgrade-nodejs/SKILL.md", "bytes": 3650, "sha256": "256ce36b734eef1a2e4e3191bc20157258b6c67036dbd9a89eaa5db926301b2b"}, {"path": "skills/upgrade-webkit/SKILL.md", "bytes": 4218, "sha256": "df24e29e54db1be34ab978482136866a7284b514ad934c4e26d5d529cef7edbb"}, {"path": "skills/verify/SKILL.md", "bytes": 2616, "sha256": "1e99cc52b938290e78d774c498b110366a3d8ccad331cc53b28a05c24a2fcfb5"}, {"path": "skills/writing-bundler-tests/SKILL.md", "bytes": 4455, "sha256": "5e9ef4c764da8224c8ec254d9405c5da35c53b85c859fc7c36f4180b0b00a090"}, {"path": "skills/writing-dev-server-tests/SKILL.md", "bytes": 3002, "sha256": "22beced2e69413c74d5421570046bc58fdcf2b8f497056889ea740025d2f0e0c"}]}
