Skip to content

feat(cli): list plugin rules in AGENTS.md for codex and kimi - #1389

Merged
blafourcade merged 12 commits into
nextfrom
feat/rules-agents-md-every-host
Nov 26, 2026
Merged

blafourcade merged 12 commits into
nextfrom
feat/rules-agents-md-every-host

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

Summary

Codex and Kimi read Markdown guidance only from AGENTS.md, so their plugin rules now reach them there. A marked block lists each plugin's rules in the project's AGENTS.md on every install route: the native plugin install, the flat build and the install from a built tree. The project's own text is never touched.

  • One owner, syncRulesListing, decides whether to list or unlist on every route. An update that drops a plugin's last rule removes its block, and removing the plugin removes it too.
  • Codex probe (0.172.0, gpt-6-luna): a rule referenced from AGENTS.md reached the model.
  • The generated support table now marks Codex and Kimi rules as supported.
  • Red line for the unlist fix: the AGENTS.md block was still present after an update with no rule. The mutation that replaces the unlist branch turns exactly three tests red.

🤖 Generated with Claude Code

blafourcade and others added 12 commits November 26, 2026 06:57
Codex and Kimi read markdown guidance only from AGENTS.md, so a plugin's
rules are placed in the tool's own instructions folder and listed by glob
in one marked block of the project's AGENTS.md, beside the team's text.
One owner, agents-rules-index, writes and removes that block for the Kimi
install and removal and for the Codex and Kimi flat builds. Codex's native
plugin install carries no rules and is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…moval starts

Review of the rules listing for codex and kimi:
- the intro tells the model that a rule stating no files applies to every file
- the block markers count only alone on a line, as the rule generator reads its own
- a block whose markers do not pair refuses the install and the build instead of
  being skipped, before any plugin file is written
- the removal proves AGENTS.md sits inside the project before it touches hooks
- the listing is its own step beside the MCP merge, with a built-tree route test
- the bundle budget is back to what it was

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rough Codex's native route

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ore and non-local installs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…every-host

# Conflicts:
#	cli/src/composition/tool-profiles/kimi.ts
#	cli/src/contexts/tools/domain/behaviours/kimi/kimi-build.model.ts
#	docs/COMPATIBILITY.md
@blafourcade
blafourcade marked this pull request as ready for review November 26, 2026 08:23
@blafourcade
blafourcade requested a review from a team as a code owner November 26, 2026 08:23
@blafourcade
blafourcade merged commit 61aa77c into next Nov 26, 2026
4 checks passed
@blafourcade
blafourcade deleted the feat/rules-agents-md-every-host branch November 26, 2026 08:24
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