repo budget: Copilot profiles get Claude Code's root CLAUDE* rule, so a root AGENTS.md reads off

Open
#372 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
devtools

Research direction

Start in repos/budget.py: the if root_claude: branch of _displaced and the off assignment for a root CLAUDE* file both key on guidance names rather than the guidance.claude_displaces_agents flag that #366 added. Check how repo receipt computes expected and whether it applies budget's rules for every harness. Done when a test with --harness copilot and copilot-review reports a root AGENTS.md as start next to a root CLAUDE.md, and receipt agrees.

Written by the indexing model from the issue text.

Description

repo budget applies Claude Code's root rule to any profile whose guidance names include CLAUDE.md: a root CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md turns every AGENTS.md off, with the warning "Claude Code does not read it". copilot.yaml and copilot-review.yaml list CLAUDE.md, so with --harness copilot a tree holding a root AGENTS.md and a root CLAUDE.md reports AGENTS.md as off. Yet copilot.yaml's own notes say Copilot CLI 1.0.91 applied both the root AGENTS.md and the CLAUDE.md.

#366 gates the new same-directory rule on the profile flag guidance.claude_displaces_agents, which only claude-code.yaml sets. The root rule (the if root_claude: branch of _displaced in repos/budget.py, and the off assignment for a root CLAUDE*) predates that PR and still keys on the names. The fix is likely the same gate: a Copilot budget then reads the root AGENTS.md as start, and a test pins it with --harness copilot and copilot-review. Check repo receipt's expected too: it takes off from budget, but it applies budget's rules only for claude-code.

Found while answering https://github.com/intel/dokimi/pull/366#discussion_r4445841674.

Dominant language
Python
Stars
9
Forks
9
Avg merge
1d 8h
Merged PRs (30d)
282

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intel/dokimi

All issues in intel/dokimi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.