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
@READMEstays 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
- How Claude remembers your project, Anthropic documentation, read 2026-11-24: "CLAUDE.md files can import additional files using
@path/to/importsyntax." - Claude Code changelog, 2.1.331, Anthropic documentation, read 2026-11-24: "November 23, 2026"
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