# Give your agent project context

> Give your coding agent project rules and conventions with context files such as AGENTS.md.

A context file holds the project rules your coding agent reads at the start of each session.

## AGENTS.md, the common convention

`AGENTS.md` sits at the project root. Some agents use their own file or folder.

| Agent | Project context file |
| --- | --- |
| [UiPath Autopilot](agent-autopilot.md) | `AGENTS.md` |
| [Claude Code](agent-claude-code.md) | `CLAUDE.md` |
| [Codex](agent-codex.md) | `AGENTS.md` |
| [GitHub Copilot](agent-github-copilot.md) | `.github/copilot-instructions.md`; `AGENTS.md` in some surfaces, such as VS Code and Copilot CLI |
| [Grok Build (formerly Cursor)](agent-grok-build.md) | `AGENTS.md`, `.cursor/rules/*.mdc` |
| [Antigravity](agent-antigravity.md) | `AGENTS.md` or `GEMINI.md`, and rule files in `.agents/rules/` |
| [Devin Desktop (formerly Windsurf)](agent-devin.md) | `AGENTS.md`, `.devin/rules/`, `.windsurf/rules`, `.windsurfrules`, `global_rules.md` |
| [Kiro](agent-kiro.md) | `AGENTS.md`, steering files in `.kiro/steering/` |
| [OpenCode](agent-opencode.md) | `AGENTS.md`, or `CLAUDE.md` when there is no `AGENTS.md` |

For Devin, check its documentation.

## Scope

- **Global:** personal preferences, such as your default organization and tenant.
- **Project:** one project's conventions and team rules, stored in the repository.

## Project instructions

Keep the file short and current. Include:

- The UiPath skills for the project
- A quality rule, such as resolving every Workflow Analyzer problem
- Package and activity preferences
- Naming and structure conventions
- Constraints, such as not overwriting recorded UI workflows

```md
# Project conventions

- Use the `uipath-rpa` skill for automation work in this project.
- Always run the Workflow Analyzer (Analyze Project) and resolve every problem before calling work done.
- Prefer native activities over Invoke Code; keep UI activities inside a Use Application/Browser scope.
- Pin package versions in project.json; do not upgrade packages without asking.
```

See also [RPA workflows](build-rpa-workflows.md).

## Context files written by the UiPath skills

When project context is missing or out of date, the RPA skill writes the project's structure, dependencies, and conventions to:

- `.claude/rules/project-context.md`
- The root `AGENTS.md`, between `<!-- PROJECT-CONTEXT:START -->` and `<!-- PROJECT-CONTEXT:END -->` markers. Other content is unchanged. Without markers, the block is appended.

Projects created in Studio 2026.10 or later start with an `AGENTS.md` and a `CLAUDE.md`, unless a policy turns this off. Other empty projects get the files after the first build.

To refresh, ask the agent to regenerate the project context.
