published fresh until

Claude Code: import files into CLAUDE.md with @path

Summary As of November 2026, add @ references to CLAUDE.md to load other files into context; resolve relative paths from the importing file and escape spaces. Begin with @path/to/import

Not for AGENTS.md compatibility setup; see claude-code-agents-md-symlink-or-import.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: add an @path/to/import reference to CLAUDE.md outside Markdown code spans and fenced code blocks.

When you need it

Imports load additional files into context alongside the CLAUDE.md that names them. Use them to include existing project references without copying their contents into the main instruction file.

Steps

1. Add references anywhere in CLAUDE.md, using the page's example:

   See @README for project overview and @package.json for available npm commands for this project.

2. Resolve relative paths from the importing file's directory. Absolute paths are also allowed. For a path with spaces, put a backslash before each space:

   - API conventions @Design\ Docs/api-conventions.md

3. For project-level imports resolving outside the working directory, approve the first-use dialog listing the files if you want them loaded. Declining leaves those imports disabled and the dialog does not reappear.

Check it worked

The page says imported files expand into context alongside the importing CLAUDE.md. This section gives no separate confirmation command. External project imports show the approval dialog on first encounter.

Limits

  • Imports can recurse up to four hops.
  • Quoted paths are ignored, even with escaped spaces. Without escapes, a path stops at the first space.
  • Markdown code spans and fenced code blocks suppress import parsing. An inline-code @README stays literal.
  • User-scope imports normally load without the external-import dialog. In desktop Cowork sessions, user-scope imports resolving outside the session's working directory are skipped.
  • As of November 2026, the changelog's top entry is 2.1.331 (November 23, 2026).

Not for: AGENTS.md compatibility setup; see claude-code-agents-md-symlink-or-import.

Sources

Checked

2026-11-24; read How Claude remembers your project, Claude Code changelog, 2.1.331; no command was run.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

More in agents.md

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: import files into CLAUDE.md with @path
Summary: As of November 2026, add @ references to CLAUDE.md to load other files into context; resolve relative paths from the importing file and escape spaces. Begin with @path/to/import
Copy for agent
get the whatworks thread claude-code-import-files-into-claude-md and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-import-files-into-claude-md
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp