Project Instructions
The ai.instructions section configures the ATMOS.md file that provides persistent, project-specific
instructions to the AI assistant.
What are Project Instructions?
Project Instructions are stored in a markdown file (ATMOS.md) in your project root. You create and maintain this file yourself. When enabled, its contents are automatically included with every AI request, providing consistent context across all conversations.
Common things to include:
- Project Context: Organization name, Atmos version, regions, environments
- Common Commands: Frequently used Atmos commands for your project
- Stack Patterns: Naming conventions and YAML structure patterns
- Infrastructure Patterns: Multi-region setups, component dependencies
- Component Catalog: Your component organization and structure
- Team Conventions: Development practices and documentation standards
Configuration
atmos.yaml
Instruction Settings
instructions.enabled- Enable project instructions (default:
false). When enabled, the contents of the instructions file are automatically included with every AI request. instructions.file- Path to the instructions file, relative to project root or absolute (default:
ATMOS.md). The file uses Markdown format. If the file does not exist, instructions are silently skipped.
Creating Your Instructions File
Create an ATMOS.md file in your project root with any content relevant to your project:
ATMOS.md
Instructions vs Context Sharing
- Content
- Project Instructions: High-level patterns, conventions, common commands. Context Sharing: Actual stack YAML files and configurations.
- Update frequency
- Project Instructions: Updated manually by you. Context Sharing: Every request (real-time).
- Size
- Project Instructions: Small (few KB). Context Sharing: Large (multiple files).
- Privacy
- Project Instructions: Low risk (you control content). Context Sharing: Higher risk (may contain secrets).
- Use case
- Project Instructions: Consistent AI behavior across chats. Context Sharing: Deep analysis of specific configs.
Best Practice: Enable both for optimal results:
- Instructions provide consistent baseline knowledge
- Context sharing adds real-time specifics when needed
Performance Considerations
Project instructions add tokens to every AI request:
- Small file (1-2 KB)
- Negligible impact on performance and cost.
- Medium file (5-10 KB)
- ~500-1000 tokens per request.
- Large file (20+ KB)
- ~2000+ tokens per request. Keep your instructions concise.
Privacy
The contents of your ATMOS.md file are sent to your AI provider with every request when instructions
are enabled. Only include information you are comfortable sharing with your configured AI provider.
Troubleshooting
Instructions not loading:
# Check if file exists
ls -la ATMOS.md
# Verify configuration
grep -A3 "instructions:" atmos.yaml
AI not using instructions:
- Verify
instructions.enabled: truein atmos.yaml - Check that
ATMOS.mdexists in project root - Ensure the file is readable
Related Documentation
- AI Configuration - Configure AI provider settings
- AI Sessions - Persistent conversation management
- AI Tools - Available tools and permissions