Skip to content

Import from claudecode looks for .claude/CLAUDE.md instead of root CLAUDE.md #800

@adelin-b

Description

@adelin-b

Description

When running rulesync import -t claudecode, the tool looks for .claude/CLAUDE.md but Claude Code's standard location is CLAUDE.md at project root.

Error

[rulesync] ℹ Found 0 root tool rule files
[rulesync] ℹ Reading file: /path/to/project/.claude/CLAUDE.md
[rulesync]  ERROR  Failed to load tool files: Error: ENOENT: no such file or directory, open '/path/to/project/.claude/CLAUDE.md'

Expected Behavior

Rulesync should look for CLAUDE.md at project root (same directory as rulesync.jsonc), not inside .claude/ directory.

Claude Code Documentation

Per Claude Code docs, the standard locations are:

  • ./CLAUDE.md - Project root
  • ~/.claude/CLAUDE.md - Global user config

There is no .claude/CLAUDE.md in the standard Claude Code setup.

Environment

  • rulesync version: 5.2.1
  • OS: macOS

Workaround

Creating a symlink: ln -s ../CLAUDE.md .claude/CLAUDE.md resolves the error, but this shouldn't be necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions