I made up an attempt at a solution, https://ktext.dev.
Basically a structured context file, that can be used to generate AGENTS.md, and also can be validated and scored.
I think it could help with this problem.