Skip to content

Refine a few agents instructions#25423

Merged
MichaReiser merged 2 commits into
mainfrom
micha/refine-agents-instructions
May 27, 2026
Merged

Refine a few agents instructions#25423
MichaReiser merged 2 commits into
mainfrom
micha/refine-agents-instructions

Conversation

@MichaReiser

Copy link
Copy Markdown
Member

No description provided.

@MichaReiser MichaReiser added the internal An internal refactor or improvement label May 27, 2026
Comment thread AGENTS.md Outdated
- **Salsa incrementality (ty):** Any method that accesses `.node()` must be `#[salsa::tracked]`, or it will break incrementality. Prefer higher-level semantic APIs over raw AST access.
- Run `cargo dev generate-all` after changing configuration options, CLI arguments, lint rules, or environment variable definitions, as these changes require regeneration of schemas, docs, and CLI references.
- Don't prefix tests with `test_`.
- Don't separate struct definitions from their impl blocks.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Worried about this because we do it intentionally in ty in a few places, specifically by splitting impl blocks for builder.rs and stuff into multiple files.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Any suggestions how to phrase this instead. WHat I've observed is that codex loves to do

struct A{}

< Codex inserts new struct and impl block here >

impl A {}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah totally agree. I might just add something like "unless the impl is deliberately placed in a separate file, as for large structs".

Comment thread AGENTS.md Outdated
@MichaReiser MichaReiser enabled auto-merge (squash) May 27, 2026 17:43
@MichaReiser MichaReiser merged commit 5432709 into main May 27, 2026
44 checks passed
@MichaReiser MichaReiser deleted the micha/refine-agents-instructions branch May 27, 2026 17:45
anishgirianish pushed a commit to anishgirianish/ruff that referenced this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants