Overview
Loop loads project instructions into the system prompt from the agent directory, your home directory, and the working directory and its parents.Supported Files
In each directory, Loop loads every group that exists. Within a group, the first spelling wins.
Search order:
- The agent directory (
~/.loop/agent/, orLOOP_CODING_AGENT_DIR) ~/.claude/CLAUDE.md- The working directory, then each parent up to the filesystem root
<project_context>. A symlink or a second copy with the same contents is included once.
Writing Context Files
AGENTS.md
Best Practices
Be specific about conventions
Be specific about conventions
Instead of “follow best practices,” specify exactly what patterns to use:
Document non-obvious architecture
Document non-obvious architecture
Help the agent understand design decisions:
Keep it focused
Keep it focused
Context files consume tokens. Focus on information the agent needs to write correct code — skip general documentation the agent can find by reading source files.
Disabling Context Files
Skip context file loading with the--no-context-files or -c flag:
- Context files are large and you want to save tokens
- You’re working outside the project’s conventions
- You want a clean agent context
Claude Code Compatibility
Loop loadsCLAUDE.md, CLAUDE.local.md, and .claude/CLAUDE.md alongside AGENTS.md. If you’re migrating from Claude Code, your existing context files work without changes.