页面简介
Configure always-on personal and project instructions for Zed Agent with AGENTS.md and compatible project instruction files.
正文摘录
Instructions Instructions are always-on context for the Zed Agent. Use instructions for persistent guidance that should apply to every relevant agent interaction. Use Skills instead when you want reusable task instructions that can be invoked by name. Zed supports AGENTS.md as the primary instruction file for personal and project-level agent guidance. Personal Instructions Personal instructions apply to every project you open with the Zed Agent. Create or edit: ~/.config/zed/AGENTS.md On Windows, the equivalent file is under %APPDATA%\Zed\AGENTS.md. Project Instructions Project instruction files apply to the current project. Zed uses the first matching file in this list: .rules .cursorrules .windsurfrules .clinerules .github/copilot-instructions.md AGENT.md AGENTS.md CLAUDE.md GEMINI.md Project instructions override personal AGENTS.md when they conflict. Instruction File Support FileZed AgentExternal AgentsTerminal Threads ~/.config/zed/AGENTS.mdLoaded as personal instructionsNot generally usedNot used unless the CLI reads it Project AGENTS.mdLoaded as project instructionsDepends on the agentDepends on the CLI CLAUDE.mdLoaded as compatible project instructions by Zed AgentClaude reads nativelyClaude Code CLI reads natively .github/copilot-instructions.mdLoaded as compatible project instructions by Zed AgentDepends on the agentDepends on the CLI External Agents and Terminal Threads may read their own native instruction files directly. Do not assume Zed’s instruction loader controls those agents. Instructions vs. Skills UseBest forExample InstructionsAlways-on guidanceRepository conventions, preferred tone, project constraints SkillsReusable task workflowsCode review checklist, release workflow, migration helper Migrating from Rules Rules have been replaced by Skills and Instructions: reusable, on-demand Rules become Skills default, always-on Rules become personal AGENTS.md project .rules files remain supported as compatibility project instruction files Skills Parallel Agents