Skip to content

Agent instructions and test improvements#10831

Merged
dfaure-kdab merged 3 commits intoslint-ui:masterfrom
dfaure-kdab:wip/dfaure/agent-and-tests
Feb 19, 2026
Merged

Agent instructions and test improvements#10831
dfaure-kdab merged 3 commits intoslint-ui:masterfrom
dfaure-kdab:wip/dfaure/agent-and-tests

Conversation

@dfaure-kdab
Copy link
Collaborator

  • Improve grid_with_model_in_row testcase (visually)
  • Improve run_tests.sh to only run the appropriate test executable(s)
  • Instruct LLM agents on how to generate rust code from a slint file.
    Just like humans, they don't find this obvious e.g. the .rs file
    generated for a unittest only has the test harness, and a slint!
    macro, which doesn't allow investigating the generated code.

tronical
tronical previously approved these changes Feb 19, 2026
Just like humans, they don't find this obvious e.g. the .rs file
generated for a unittest only has the test harness, and a slint!
macro, which doesn't allow investigating the generated code.
@expenses
Copy link
Contributor

Some of these comments seem valuable for human commenters too. Could they go in the development/building guide?

@dfaure-kdab
Copy link
Collaborator Author

Some of these comments seem valuable for human commenters too. Could they go in the development/building guide?

Aren't humans (hacking on slint itself) able to read docs/agents/*.md too?

I guess we could link some of those files from docs/development.md ?

@expenses
Copy link
Contributor

expenses commented Feb 19, 2026

Aren't humans (hacking on slint itself) able to read docs/agents/*.md too?

I'm not sure we want to make actual people feel 2nd class compared to machines.

@dfaure-kdab
Copy link
Collaborator Author

Aren't humans (hacking on slint itself) able to read docs/agents/*.md too?

I'm not sure we want to make actual people feel 2nd class compared to machines.

LOL I didn't realize there were politics and egos involved ;-)

What if we simply rename agents/ to contributors/ or developers/? And have something like the last section of AGENTS.md in development.md, to point to all this? (without the "Load when working on" which is really the only agent-specific thing I can see)

Copy link
Member

@tronical tronical left a comment

Choose a reason for hiding this comment

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

Sounds good to me to move these files into directories with more human exposure:). That doesn't have to be in those PR though:)

@dfaure-kdab
Copy link
Collaborator Author

Sounds good to me to move these files into directories with more human exposure:). That doesn't have to be in those PR though:)

Yep, I'll make another PR for that.

@dfaure-kdab dfaure-kdab merged commit 12e710f into slint-ui:master Feb 19, 2026
37 checks passed
@dfaure-kdab dfaure-kdab deleted the wip/dfaure/agent-and-tests branch February 19, 2026 20:05
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.

3 participants

Comments