AGENTS.md files to give Poolside instructions to follow during a session. Add instructions for coding standards, project structure, common commands, response preferences, and constraints.
To learn more about AGENTS.md across tools, see https://agents.md.
How Poolside uses instructions
Poolside uses instructions from personal, project, and directory-levelAGENTS.md files. When multiple files apply to the same path, Poolside follows this priority order:
At the start of a session, Poolside reads your personal instructions and the
AGENTS.md files that apply to the working directory. If the working directory is inside a Git repository, Poolside reads AGENTS.md files from the Git repository root through the working directory. If the working directory is not inside a Git repository, Poolside treats the working directory as the root for instruction loading.
As Poolside works in different directories, it also reads any nested AGENTS.md files that apply to those paths.
In the following example, three AGENTS.md files apply when Poolside works in app/ui/: app/ui/AGENTS.md, app/AGENTS.md, and the root AGENTS.md. If you start pool from app/, Poolside reads the root AGENTS.md and app/AGENTS.md at the start of the session. Because app/ui/AGENTS.md is the most specific file, it takes priority for work in app/ui/.
Because model behavior is not deterministic, responses might not always follow the instruction priority perfectly.
Set up project instructions
Start with project instructions at the repository root. Use directory instructions only when one part of the codebase needs different rules. Use personal instructions for preferences that should follow you across projects.- Create an
AGENTS.mdfile at the root of your repository. - Add a few clear rules about project structure, coding conventions, and common workflows. See Example project AGENTS.md.
- Refine your instructions if Poolside misses important context or behaves inconsistently.
Example project AGENTS.md
Add directory-specific instructions
For rules that apply only to one part of a repository, add a nestedAGENTS.md file in the relevant directory.
Use directory instructions for areas with different setup steps, commands, conventions, or constraints. For example, you might add separate instructions for frontend code, backend code, generated files, or documentation.
Example directory AGENTS.md
Create personal instructions
Use personal instructions for preferences that are not tied to one repository.- Create an
AGENTS.mdfile in your Poolside config directory. By default, Poolside looks for personal instructions at~/.config/poolside/AGENTS.mdon macOS and Linux. To use a different config directory, set theXDG_CONFIG_HOMEenvironment variable. - Add personal preferences that should follow you across projects. See Example personal AGENTS.md.
- Keep project-specific rules in project
AGENTS.mdfiles instead.
AGENTS.md files. This Markdown file is separate from the .poolside/ directory that stores settings such as permissions.
Example personal AGENTS.md
Tips for effective instructions
- Keep instructions short and specific.
- Use Markdown headings to separate project structure, commands, conventions, and workflow rules.
- Include commands Poolside should run before or after common changes.
- Link to existing project documentation instead of duplicating long reference material.
- Keep instructions current. Stale instructions can cause incorrect behavior.
Understand instruction behavior
AGENTS.mdfiles are guidance, not strict enforcement. For rules that must always apply, such as blocking specific tools, use permissions instead.- Poolside skips
AGENTS.mdfiles in ignored directories, including.git/,node_modules/, common cache or vendor directories, and paths ignored by repository ignore rules. - Instructions you type during a session can override
AGENTS.mdinstructions. - Empty
AGENTS.mdfiles are not sent to the model. - The model might not follow instructions consistently.