Skip to content

AI agent instruction updates#13335

Open
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:agent-instruction-updates
Open

AI agent instruction updates#13335
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:agent-instruction-updates

Conversation

@bneradt

@bneradt bneradt commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

A few tweaks for guiding AI agents.


Undraft this after @moonchen 's similar updates land and this is merged with those changes:
#13306

@bneradt bneradt added this to the 11.0.0 milestone Jun 25, 2026
@bneradt bneradt self-assigned this Jun 25, 2026
Copilot AI review requested due to automatic review settings June 25, 2026 16:34

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bneradt bneradt marked this pull request as draft June 25, 2026 16:55
Comment thread .github/copilot-instructions.md Outdated
@bneradt bneradt force-pushed the agent-instruction-updates branch from 7828aaf to 11fbce8 Compare June 25, 2026 17:30
@bneradt bneradt marked this pull request as ready for review June 25, 2026 17:30
Copilot AI review requested due to automatic review settings June 25, 2026 17:30

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bneradt bneradt force-pushed the agent-instruction-updates branch from 11fbce8 to c6e5a47 Compare July 14, 2026 22:54
Copilot AI review requested due to automatic review settings July 14, 2026 22:54

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread AGENTS.md Outdated
Comment thread .github/copilot-instructions.md Outdated
AI coding guidance does not fully reflect project conventions, which can
lead agents toward inconsistent names and less maintainable tests.

This aligns the instructions with established AuTest, Python, and C++
practices. It also documents both private-member prefix styles and the
community preference for `_` in new files.
Copilot AI review requested due to automatic review settings July 15, 2026 02:32
@bneradt bneradt force-pushed the agent-instruction-updates branch from c6e5a47 to a168946 Compare July 15, 2026 02:32

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread AGENTS.md
Comment on lines +319 to +323
- Private member variables use both `_` and `m_` prefixes in the source code;
be consistent with the surrounding code. For new files, prefer the `_` prefix
because that reflects the community consensus.
- Boolean variables and functions returning boolean values are named as
predicates: use `was_modified` rather than `modified`.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also, recommending leading-underscore names in new code is risky because leading underscores can be reserved in some contexts.

Yeah, you and I lost that argument. The community prefers _ prefixes for private variables.

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.

It seems identifiers with leading _ prefixes followed by lowercase letters are only reserved if they have external linkage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the reference.

Comment thread .github/copilot-instructions.md
Comment thread .github/copilot-instructions.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants