Skip to content

feat(agent): support loading CLAUDE.md alongside AGENTS.md (#2401)#2487

Open
nankingjing wants to merge 1 commit into
MoonshotAI:mainfrom
nankingjing:contrib/fix-readme-link-and-claude-md
Open

feat(agent): support loading CLAUDE.md alongside AGENTS.md (#2401)#2487
nankingjing wants to merge 1 commit into
MoonshotAI:mainfrom
nankingjing:contrib/fix-readme-link-and-claude-md

Conversation

@nankingjing

@nankingjing nankingjing commented Jul 9, 2026

Copy link
Copy Markdown

Closes #2401

Summary

Adds discovery of CLAUDE.md and .claude/CLAUDE.md files in the load_agents_md() function, so projects that already have Claude Code configuration are automatically picked up by Kimi CLI.

What changed

In src/kimi_cli/soul/agent.py:load_agents_md(), added two new candidate file checks per directory:

  1. .claude/CLAUDE.md — Claude project-local config (analogous to .kimi/AGENTS.md)
  2. CLAUDE.md / claude.md — standard Claude config (analogous to AGENTS.md / agents.md), mutually exclusive with uppercase winning

Priority order (unchanged for existing files, new entries at the end)

  1. .kimi/AGENTS.md (highest)
  2. AGENTS.md or agents.md
  3. .claude/CLAUDE.md (new)
  4. CLAUDE.md or claude.md (new)

Why

Many developers use both Claude Code and Kimi CLI. Projects with existing CLAUDE.md files no longer need to duplicate content into AGENTS.md. This respects the "it just works" principle — Kimi CLI automatically picks up project context from whichever convention the project already uses.


Open in Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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.

Feature Request: Support loading CLAUDE.md alongside AGENTS.md for Claude Code compatibility

1 participant