How rules files merge
Create a file namedAGENTS.md and 100xprompt treats it as standing instructions. You can place rules at three levels, and 100xprompt merges them all into the guidance it follows:
- Global rules - how you like to work, on every project.
- Project rules - conventions for this repository, shared with your team.
- Folder rules - extra context for a specific subfolder, closest to the code it describes.
AGENTS.md is the recommended, cross-tool standard filename. 100xprompt also recognizes a native 100xprompt.md at the same locations if you prefer a project-specific name.Place rules at the right level
- Project (recommended)
- Folder-level
- Global
Put an
AGENTS.md at the root of your repository. This is the shared file: commit it, and everyone on your team - and every session on this project - follows the same conventions.Write rules worth following
The best rules files are short, concrete, and about this project. Aim for the things you’d tell a strong new engineer on day one.Conventions & style
Conventions & style
- Package manager and how to run, build, and test the project.
- Naming conventions, formatting, and import style.
- Preferred libraries - and ones you’ve deliberately moved away from.
Architecture notes
Architecture notes
A short map of how the project fits together saves 100xprompt from guessing.
Do & don't rules
Do & don't rules
Guardrails are some of the highest-value rules. Be explicit.
Domain context
Domain context
Business rules and vocabulary that aren’t obvious from the code.
Pull in other files with @ references
Suppose you already maintain a style guide or testing standard elsewhere. A rules file can include other files inline with an@ reference, so you compose guidance from focused pieces instead of duplicating them.
| Syntax | Resolves to |
|---|---|
@./relative/path.md | Relative to the file doing the including |
@path/to/file.md | Relative to the file doing the including |
@~/some/path.md | Relative to your home directory |
@/absolute/path.md | An absolute path |
Includes are resolved recursively - an included file can include others - and 100xprompt guards against loops. Only text files (Markdown, plain text,
.json, .yaml, and similar) can be included, and @ references inside code blocks or inline code are treated as literal text, not includes.Write your first AGENTS.md
Start with the essentials
Write down how to run the project and the two or three rules you’d most want followed.
Add architecture and domain notes
Give a short map of the codebase and any domain vocabulary that isn’t obvious from the code. A paragraph each is plenty.
Reference shared standards (optional)
If you keep style guides or testing standards elsewhere, pull them in with an
@ reference instead of duplicating them.Tips & limits
Order of specificity
Order of specificity
Global rules are the broadest, project rules narrow them to this repo, and folder rules add local detail. When you work deep in the tree, all applicable layers combine - so put universal rules high and specific rules close to the code.
Keep it lean
Keep it lean
Rules load into every session. A tight, current file is far more effective than a long one. Prune aggressively and let
@ includes hold the bulky reference material.Rules vs. memory
Rules vs. memory
Rules are explicit instructions you author and commit. Memory is what 100xprompt learns and recalls on its own over time. Use rules for the conventions you want enforced every time; let memory handle the softer, evolving context.
Related
Settings & Configuration
Point 100xprompt at extra instruction files and tune project behavior in
100xprompt.json.Memory & Context
How 100xprompt remembers durable facts across sessions - and how it differs from rules.
Best Practices
Patterns for getting the most out of 100xprompt on real projects.