Add root-level AI agent rules for repository-scoped behavior#11457
Open
Copilot wants to merge 8 commits into
Open
Add root-level AI agent rules for repository-scoped behavior#11457Copilot wants to merge 8 commits into
Copilot wants to merge 8 commits into
Conversation
|
|
Copilot
AI
changed the title
[WIP] Add rules for AI Agent in root directory
Add root-level AI agent rules for repository-scoped behavior
Jun 9, 2026
Member
|
@copilot |
Contributor
Author
已按意见精简并改成中英双语的简洁规则页,提交为 |
Member
|
@copilot
代码位置都理顺,放置好,严禁乱放,在主要的目录下新生成子目录。严禁在使用AI Agent过程中,随意生成 markdown 文档,而应该有明确指令才生成 markdown 文档。 另外,对于每个bsp来说,rtconfig.h 不应该被手工修改,而是由 |
Contributor
Author
已补充并提交,提交为 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a repository-level
AGENTS.mdfor Codex-like agents working inrt-thread. It defines, in a very concise bilingual format, what agents may do, what they must not do, and the minimal placement and precedence rules for repository-scoped behavior.What this adds
/AGENTS.mdat the repository root as the single entry point for AI-agent-specific rules.Allowed / prohibited behavior
rtconfig.h, requiring it to be generated from.configviascons --menuconfigorscons --pyconfig-silent.Repository structure rules
bsp/,components/,documentation/,examples/,include/,libcpu/,src/, andtools/.AGENTS.md,README.md, andLICENSEbelong in the root, while general documentation should live underdocumentation/.bsp/, kernel code insrc/, tests/examples inexamples/, component code incomponents/, abstracted driver code incomponents/drivers/, and shared chip/architecture porting code inlibcpu/.Rule precedence
.github/CONTRIBUTING.mddocumentation/7.contribution/coding_style_cn.mddocumentation/7.contribution/coding_style_en.mdPresentation
Example excerpt: