Skip to content
Loadout

Fix

CLAUDE.md vs AGENTS.md for Claude Code

Answer

Claude Code reads CLAUDE.md files, including a nested CLAUDE.md in a subfolder, and .claude/rules/. It does not read AGENTS.md on its own, root or nested. Put stack-specific rules in a nested CLAUDE.md in that subfolder or .claude/rules/, not a second copy of the root CLAUDE.md. If you want one shared file, CLAUDE.md can import it with an @AGENTS.md line. Put AGENTS.md in the project root for agents that read it, including Codex and Cursor.

  • Scope Tool-agnostic. Written against Cursor project rules (.mdc), Claude Code CLAUDE.md, AGENTS.md, and GitHub Copilot repository instructions as documented on 2026-10-15.

Last verified 2026-10-15

Agents still paste one long CLAUDE.md, or they drop a nested AGENTS.md and expect Claude Code to read it. The Vibe Coder Starter pack is the tool-agnostic file set. Its pinned scope is: Tool-agnostic. Written against Cursor project rules (.mdc), Claude Code CLAUDE.md, AGENTS.md, and GitHub Copilot repository instructions as documented on 2026-10-15. Claude Code reads CLAUDE.md in the project root as project memory on the next session. It also reads a nested CLAUDE.md in a subfolder, and markdown files in .claude/rules/. Copy CLAUDE.md into the project root.

Keep this file short. Put stack-specific rules in a nested CLAUDE.md in that subfolder or .claude/rules/, not a second copy of this file. Claude Code does not read AGENTS.md on its own, root or nested. If you want one shared file, import it with an @AGENTS.md line. Those lines are in the pack's CLAUDE.md. They are not repeated in AGENTS.md, the Cursor .mdc rule, or the Copilot instructions. A nested AGENTS.md does not replace the root CLAUDE.md.

Put AGENTS.md in the project root for agents that read AGENTS.md, including Codex and Cursor. That root file is the shared rule set in this pack. Claude Code uses it when CLAUDE.md imports it with an @AGENTS.md line. Cursor project rules in this pack are .mdc files in .cursor/rules, with description, globs, and alwaysApply frontmatter. A plain .md file in that directory is ignored. That trap is /fixes/cursor-mdc-rule-frontmatter. GitHub Copilot reads .github/copilot-instructions.md.

Do not spawn extra agents for a one-file edit. Use them only when the user asked for parallel work. That line is also only in the pack's CLAUDE.md. The shared rules still apply in every format. Never read, print, or commit secrets: .env, .env.* (except *.example), keys, tokens, or credential files. Do not run git commit, git push, git reset, or force-push unless the user asked for that exact action.

Last verified 2026-10-15. doc-verified.

Pro

Unity 6, Godot 4, and Next.js Pro rules, $1+

$1+ · pay what you want

Advanced rules for the same stacks as the free packs: Unity 6 Pro (Netcode, URP, Addressables, tests), Godot 4 Pro (multiplayer, GDExtension and C#, saves, export), and Next.js 16 + Supabase Pro (RLS, getClaims, Stripe webhooks, caching). Each pack is AGENTS.md, CLAUDE.md, Cursor .mdc, and Copilot instructions. The Phaser 4, three.js, and FastAPI packs stay on the Gumroad download as a bonus. 12 months of free updates.

Each pack ships as AGENTS.md, CLAUDE.md, Cursor .mdc, and Copilot instructions, with 12 months of free updates.

From the Unity 6 Pro rules

Mark an RPC with `[Rpc(SendTo.Server)]` and end the method name in `Rpc`. A missing `Rpc` suffix is an error. Do not write new `[ServerRpc]` or `[ClientRpc]` methods.
A client asks the server with `SendTo.Server`. The server talks to observers with `SendTo.NotServer`, or `SendTo.ClientsAndHost` when a host must run the method too. There is no direct client-to-client connection. The server forwards it.
Keep shared state on a `NetworkVariable<T>` and use `.Value`. It is sent to clients already connected and to a client that joins later. An RPC is not. Write `.Value` from the server when write permission is `NetworkVariableWritePermission.Server`.
Put a `NetworkObject` on the networked prefab and spawn it on the server. Do not use the removed UNet types `NetworkIdentity`, `[Command]`, or `UnityEngine.Networking`.
Buy Pro — $1+

Vibe Coder Starter pack — Safe defaults for any AI coding agent in any stack. Tool-agnostic rules for Cursor, Claude Code, AGENTS.md, and Copilot so agents stay scoped and stop guessing.

doc-verified

Sources in the pack

Questions

What is the difference between CLAUDE.md and AGENTS.md?
Claude Code reads CLAUDE.md files, including a nested CLAUDE.md in a subfolder, and .claude/rules/. It does not read AGENTS.md on its own, root or nested. Put stack-specific rules in a nested CLAUDE.md in that subfolder or .claude/rules/, not a second copy of the root CLAUDE.md. If you want one shared file, CLAUDE.md can import it with an @AGENTS.md line. Put AGENTS.md in the project root for agents that read it, including Codex and Cursor.
Where do stack-specific Claude Code rules go?
Put stack-specific rules in a nested CLAUDE.md in that subfolder or .claude/rules/. Claude Code reads those files. It does not read AGENTS.md on its own, root or nested. If you want one shared file, CLAUDE.md can import it with an @AGENTS.md line.
Does a root AGENTS.md replace CLAUDE.md?
No. Claude Code does not read AGENTS.md on its own, root or nested. Put AGENTS.md in the project root for agents that read it, including Codex and Cursor. If you want one shared file, CLAUDE.md can import it with an @AGENTS.md line.
When was this Claude Code file rule last checked?
Last verified 2026-10-15. doc-verified.