> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AGENTS.md files for Devin

> Add AGENTS.md files to give Devin repository context and instructions, including the 16 KiB automatic injection limit and how to structure longer guidance.

Devin supports [AGENTS.md](https://agents.md/) - a simple, open standard for providing context and instructions to AI agents. Think of AGENTS.md as a README for agents.

## Creating an AGENTS.md File

Just put an `AGENTS.md` file in your project root (or anywhere else). Devin will look for the file before it starts coding.

Devin automatically includes up to 16 KiB (16,384 bytes) from the beginning of each `AGENTS.md` file in its context. For longer files, Devin receives a truncation notice and can read the full file on demand, but instructions after the limit are not included automatically. Keep critical instructions near the top, keep always-on guidance under 16 KiB, and move longer or situational guidance into [skills](/product-guides/skills) or referenced files.

Here's an example:

```markdown theme={null}
# AGENTS.md

## Setup Commands
- Install dependencies: `npm install`
- Start development server: `npm run dev`
- Run tests: `npm test`
- Build for production: `npm run build`

## Code Style
- Use TypeScript strict mode
- Prefer functional components in React
- Use ESLint and Prettier configurations
- Follow conventional commit format

## Testing Guidelines
- Write unit tests for all new functions
- Use Jest for testing framework
- Aim for >80% code coverage
- Run tests before committing

## Project Structure
- `/src` - Main application code
- `/tests` - Test files
- `/docs` - Documentation
- `/public` - Static assets

## Development Workflow
- Create feature branches from `main`
- Use pull requests for code review
- Squash commits before merging
- Update documentation for new features
```

We also highly recommend doing [repo setup](/onboard-devin/environment) to give Devin context on how to work with your repository.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.