Skip to content

docs(musecode): note that claudecode global rules feed Muse Code user rules - #3966

Merged
dyoshikawa merged 3 commits into
mainfrom
resolve-issue-2790-musecode-user-rules
Nov 25, 2026
Merged

dyoshikawa merged 3 commits into
mainfrom
resolve-issue-2790-musecode-user-rules

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

The 2026-11-25 re-check on #2790 found that the Muse Code 1.4.23 changelog now names ~/.claude/CLAUDE.md as the user rules file. rulesync still described the Muse Code global rules path as undocumented. This PR corrects the docs and source comments. It does not change any generated output.

Verification against the primary sources

  • Changelog, 1.4.23 Fixes: in an untrusted workspace, sessions "now send your user rules file (~/.claude/CLAUDE.md or your own config-directory rules) on every turn". The name of the config-directory rules file is not published.
  • Configuration: "Your machine-wide user rules always load", project rules load only after the workspace is trusted, and project rules win over user rules.

What changed

  • docs/reference/file-formats.md (Muse Code rules note): Muse Code's documented user rules file is ~/.claude/CLAUDE.md, the file the claudecode target writes in global mode. The note now says to run rulesync generate --targets claudecode --global to feed Muse Code's user rules. It also covers trust and precedence.
  • src/features/rules/musecode-rule.ts, src/constants/musecode-paths.ts: comments updated to give the same reason for keeping the rules target project-scope only.
  • musecode-rule.test.ts: test name updated. The test is unchanged.
  • Regenerated src/generated/docs-content.ts.

What was skipped and why

  • No musecode global rules output. Having musecode write ~/.claude/CLAUDE.md would make two targets write the same file. Their content could differ (claudecode-specific frontmatter and handling), so the result would depend on target order, for no gain over the existing claudecode output. The same approach is already used for the project .mcp.json (see the Muse Code MCP note). A Muse-owned global path can be added once Meta publishes the filename of the config-directory rules file.
  • Hooks, permissions and ignore are still blocked on unpublished upstream schemas and are not touched.

Refs #2790

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4

dyoshikawa and others added 3 commits November 25, 2026 10:48
… rules

Muse Code 1.4.23's changelog names `~/.claude/CLAUDE.md` as the user
rules file. That is the claudecode target's global rules output, so the
musecode rules target stays project-scope only instead of writing the
same file a second time. Replace the "path is not documented" wording in
the docs, source comments and test name with that explanation.

Refs #2790

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…use Code

Only the root rule reaches ~/.claude/CLAUDE.md (non-root global rules go
to ~/.claude/rules/, which Muse Code is not documented to read), and the
rule must target claudecode. Also align the Muse Code doc link style.

Refs #2790

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…secode-user-rules

# Conflicts:
#	src/generated/docs-content.ts
@dyoshikawa
dyoshikawa merged commit bb9786a into main Nov 25, 2026
10 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2790-musecode-user-rules branch November 25, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant