Every page below has the exact text to paste, the exact path to paste it at, and a one-line test you can run to confirm it took. The snippets are the same rule in different config formats — pick the one for the agent you actually use.
§ Pick your agent
- Claude Code CLAUDE.md Anthropic's CLI. The reference implementation.
- Cursor .cursorrules The AI-first IDE built on VS Code.
- Codex CLI ~/.codex/config.toml OpenAI's terminal coding agent.
- Aider .aider.conf.yml + .aider/foldermd.md Git-aware AI pair programmer in your terminal.
- Windsurf .windsurfrules Codeium's agentic IDE (formerly Codeium Cascade).
- GitHub Copilot .github/copilot-instructions.md Repository-level instructions for Copilot Chat.
- Grok AGENTS.md xAI's Grok Build CLI — agentic coding in your terminal.
- Any Agent AGENTS.md Universal instructions for agents that support AGENTS.md (Grok, Codex, Aider, Windsurf, and more).
§ The rule, in one paragraph
If you'd rather hand-write your own version: when the agent produces long-form markdown — multiple sections, code blocks, tables, anything the user will want to read rather than skim — it should write the document to <project>/.foldermd/<timestamp>-<slug>.md (project-local) or ~/Library/Application Support/foldermd/inbox/<timestamp>-<slug>.md (global), then tell the user briefly what it wrote and where. Short replies stay inline. That's the whole protocol.
§ Why these specific files
Each of these agents reads a single, predictable config file at startup and treats its contents as a system-prompt extension. Drop the snippet there once, commit if it's project-local, and every future session knows to use FolderMD without you having to remind it.
Using an agent that isn't listed above? Use the Any Agent (AGENTS.md) page — it works with most modern tools that support the AGENTS.md convention.