Skip to main content
EMBEDDER.md is your project’s guide for Embedder. It records the exact target, build and flash commands, bench setup, and rules that apply in every conversation, in every mode. Embedder reads only the EMBEDDER.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: Keep the guide concise. Embedder 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 EMBEDDER.md exists.
  1. Embedder switches to Act mode and inspects the repository, build files, debugger configuration, and connected hardware. This discovery only reads your project.
  2. Embedder 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 Embedder 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 Embedder 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. Embedder doesn’t write EMBEDDER.md until you answer these questions. It runs a build, flash, or debug check only when you choose one: Choosing a probe or flash command records it; it doesn’t authorize a flash.
Embedder 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, Embedder 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

Embedder treats the folder you open as the project root. In the terminal UI, that’s the directory you start Embedder from. It reads EMBEDDER.md from that folder and stores project memory and skills in that folder’s .embedder/ directory. To give each firmware project in a monorepo its own setup:
  1. Open the project’s subfolder in VS Code, or start Embedder from that subfolder in a terminal.
  2. Run /init. Embedder writes EMBEDDER.md in that subfolder. Memory and skills you add later go in that subfolder’s .embedder/ directory.
  3. Repeat for each project.
Embedder uses only the setup for the folder you opened. It doesn’t merge EMBEDDER.md files or .embedder/ directories from parent folders or subfolders. If you open the monorepo root, Embedder uses the root’s EMBEDDER.md and .embedder/ only. Personal skills in ~/.embedder/skills/ (and ~/.agents/skills/ or ~/.claude/skills/) still load in every project.

Use instructions written for other tools

Embedder 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 EMBEDDER.md and links to each source file. When those files change, run /init again or update EMBEDDER.md yourself.

Review the generated guide

Open EMBEDDER.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: 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:
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 Embedder 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:

Edit commands and connection settings

Setup writes the target and commands as fields you can edit:
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 .embedder/xmos.json instead. XMOS keys in EMBEDDER.md aren’t read. See XMOS.

Check that the guide works

Ask Embedder to read the guide, identify the selected target, and run one recorded check:
If it reports an outdated command or a missing tool, correct the guide before you ask for a larger change. Embedder can keep using the version of the guide it already loaded. After you or /init change EMBEDDER.md, run /clear or start a new chat so the next request uses the new version.
Last modified on November 13, 2026