Skip to content
BENIBIX Learn

CLAUDE.md Import

AI⌨️ Claude CodeClaude Code Concepts

Also known as @path import, @ import, Memory import

A line in CLAUDE.md that pulls in one more file.

Think of it like

It is like a recipe that says see page 12 for the sauce.

Example

Emma already has a long testing guide in docs. Instead of copying it, she adds one @ line to CLAUDE.md that points to it.

Why it matters

You keep one copy of a document and still give it to Claude.

Definition

An import pulls another file into CLAUDE.md. You write @ and then the path, such as @docs/testing.md. Claude Code loads that file into the session beside the CLAUDE.md that names it. A path is read from the folder of the file that holds it. An imported file can import more files, up to four steps deep. A path inside backticks is left as plain text and is not loaded.

Example code

markdown
See @docs/testing.md for how we test.
One line that loads the testing notes too.
One @ line brings a second file along.

Common mistake

Importing big files you rarely need. They load every time, so a path rule may fit better.

Key takeaways

  1. 1
    @ and a path. Pulls a file in.
  2. 2
    Up to four steps. Imports can chain.
  3. 3
    Backticks stop it. Plain text, not loaded.

Learn it properly