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

# Configure INLAY.md

> Create and maintain the project guide that records your target, commands, bench setup, and rules for Inlay.

`INLAY.md` is your project's guide for Inlay. It records the exact target, build and flash commands, bench setup, and rules that apply in every conversation, in every mode.

Inlay reads only the `INLAY.md` at the root of the folder you open. In a multi-root VS Code workspace, that's the first folder. Files with the same name in subfolders aren't loaded.

Use it for instructions that should hold across conversations. Other kinds of project knowledge have their own place:

| Put it in | Use it for |
| - | - |
| `INLAY.md` | Commands, target, hardware limits, and rules for every conversation in this project |
| [Project memory](/docs/core-concepts/memory.md) | A confirmed fact or decision from earlier work |
| [Skills](/docs/core-concepts/skills.md) | A reusable procedure, such as a bring-up or review checklist |
| [`.inlayignore`](/docs/core-concepts/inlayignore) | Files Inlay can read but shouldn't edit |

Keep the guide concise. Inlay includes it with every request, so it counts toward the conversation's context.

## Create or refresh the guide

Run `/init` in chat. In VS Code, you can also select **Setup Project** at the top of a new chat. The button reads **Configure Project** once `INLAY.md` exists.

```text theme={"theme":"css-variables"}
/init
```

1. Inlay switches to Act mode and inspects the repository, build files, debugger configuration, and connected hardware. This discovery only reads your project.
2. Inlay asks about five areas, one step at a time: **Target hardware**, **Build & test**, **Debug & deploy**, **Bench & integrations**, and **Quality & rules**. Each step shows a step count, such as **1/5**, what Inlay detected and the evidence for it, with the recommended choice first.
3. Choose an option in each step and select **Continue**. To correct a detected value, choose **Something else...** and type it. If you can't confirm a value, choose the option to be guided, and Inlay records the item as unverified with steps to check it.
4. In the last step, select **Finish setup**.

In the terminal UI, the same five questions appear one after another in the chat.

Inlay doesn't write `INLAY.md` until you answer these questions. It runs a build, flash, or debug check only when you choose one:

| Step | Choices that affect what runs |
| - | - |
| **Build & test** | Record the commands without running them, or run a build and test smoke check now. |
| **Debug & deploy** | Record the setup only, test probe attachment without programming, or run a flash and debug smoke check after a successful build. |

Choosing a probe or flash command records it; it doesn't authorize a flash.

> [!WARNING]
>
> Inlay doesn't show its usual approval prompts while `/init` runs. Choose a flash or debug smoke check only when the connected board is safe to program, halt, and reset.

When setup finishes, Inlay summarizes which workflows are ready and what remains unresolved.

Run `/init` again when the board, toolchain, or build layout changes. It refreshes the generated section and keeps your own notes.

## Work in a monorepo

Inlay treats the folder you open as the project root. In the terminal UI, that's the directory you start Inlay from. It reads `INLAY.md` from that folder and stores project memory and skills in that folder's `.inlay/` directory.

To give each firmware project in a monorepo its own setup:

1. Open the project's subfolder in VS Code, or start Inlay from that subfolder in a terminal.
2. Run `/init`. Inlay writes `INLAY.md` in that subfolder. Memory and skills you add later go in that subfolder's `.inlay/` directory.
3. Repeat for each project.

Inlay uses only the setup for the folder you opened. It doesn't merge `INLAY.md` files or `.inlay/` directories from parent folders or subfolders. If you open the monorepo root, Inlay uses the root's `INLAY.md` and `.inlay/` only.

Personal skills in `~/.inlay/skills/` (and `~/.agents/skills/` or `~/.claude/skills/`) still load in every project.

## Use instructions written for other tools

Inlay doesn't load instruction files written for other coding assistants, such as `AGENTS.md`, `CLAUDE.md`, `.cursorrules`, or `.github/copilot-instructions.md`. `/init` reads them, along with `CONTRIBUTING.md`, `.editorconfig`, and your formatter, linter, and static-analysis configuration. It then summarizes the enforceable rules in `INLAY.md` and links to each source file.

When those files change, run `/init` again or update `INLAY.md` yourself.

## Review the generated guide

Open `INLAY.md` and check it before you rely on it. The generated section usually includes:

* An overview: the project name, target MCU, board, toolchain, debug interface, and RTOS or SDK.
* A commands block with build, clean, test, lint, format, flash, GDB server, and serial settings.
* Sections for architecture, hardware and peripherals, debug and bench setup, developer workflows, compliance, rules, integrations, safety boundaries, and open setup items.

Each workflow, such as Build, Flash/Deploy, or Debug, carries one status:

| Status | Meaning |
| - | - |
| `verified` | It ran successfully during setup, or existing CI shows it working and you confirmed it. |
| `user-confirmed` | You confirmed it, but it didn't run during setup. |
| `inferred` | The repository suggests it, but nobody confirmed it. |
| `unavailable` | A required tool or device is missing, or the check failed. |
| `not configured` | No workflow exists yet. |

Correct any wrong target, command, or pin assignment. Describe a command as verified only if it actually ran.

## Keep manual notes outside the generated block

`/init` refreshes only the section between these markers:

```markdown theme={"theme":"css-variables"}
<!-- inlay:init:start -->
...generated project guide...
<!-- inlay:init:end -->
```

Keep your own notes outside the markers so a later `/init` preserves them. Don't duplicate the markers or rename the fields that setup generates. Some Inlay features read fields such as `Target MCU` and `Debug Interface` directly to choose debugger and capture settings.

## Record actionable instructions

A useful guide identifies:

* The exact board, MCU, SDK or RTOS, and toolchain.
* Build, clean, test, flash, and debug commands, with the artifacts they produce.
* The intended probe, serial port, baud rate, and power limits.
* Generated or vendor files that shouldn't be edited.
* Required checks and the result that counts as success.
* Setup items that need attention before a workflow can run.

For example, a manual note might say:

```markdown theme={"theme":"css-variables"}
## Board validation

Use the Rev C sensor board. UART runs at 115200 baud.
A successful smoke test prints "self-test: pass" within 10 seconds of reset.
Do not change the bootloader region or enable the heater during a smoke test.
```

## Edit commands and connection settings

Setup writes the target and commands as fields you can edit:

```text theme={"theme":"css-variables"}
<OVERVIEW>
Name = sensor-node
Target MCU = STM32L476RG
Board = NUCLEO-L476RG
Debug Interface = st-link
</OVERVIEW>

<COMMANDS>
build_command = cmake --build build
flash_command = cmake --build build --target flash
serial_port = /dev/ttyACM0
serial_baudrate = 115200
</COMMANDS>
```

Use your project's real values. When ports differ between workstations, record a rule for selecting the right one. Update the guide when the board or build layout changes.

Name the environment variables a command needs without putting secret values in this file.

For XMOS xcore projects, setup writes XMOS settings, such as the application image, target, and adapter, to `.inlay/xmos.json` instead. XMOS keys in `INLAY.md` aren't read. See [XMOS](/docs/supported-hardware/xmos.md).

## Check that the guide works

Ask Inlay to read the guide, identify the selected target, and run one recorded check:

```text theme={"theme":"css-variables"}
Read INLAY.md, tell me the selected target and debug interface, then run
the recorded build command and report the artifact path.
```

If it reports an outdated command or a missing tool, correct the guide before you ask for a larger change.

Inlay can keep using the version of the guide it already loaded. After you or `/init` change `INLAY.md`, run `/clear` or start a new chat so the next request uses the new version.


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