by RugnirViking · 1w ago · 0 comments
so referring casually to some function name or property from a random file in the code or some random term thats only defined on one line of a random .md file it wrote or found on some confluence page is fine because the evaluating agent can go read it in ms and can hold 200k tokens in context. They aren't taught an intuitive grasp of what a human "context window" looks like, or the importance of clear writing for human comprehension
There is also the separate problem of deterministic scripts in training, which then reward the longest possible output, because if you dont know what the script is looking for you might as well throw as much as possible at the wall to have the highest chance of hitting what it wants
The above is sort of the "common wisdom" I have found regarding this issue over the last year on here and amongst devs I work with. However I'm not sure its the whole story because tbh agents have quite poor mental models of how other agents will behave, too. If you've ever read how they write to each other they constantly repeat the same warnings to each other that they would have followed anyway
> "Proceed with P2 to fix H7 and H8 defects?"
And you're like, hold up, what the hell is H7?
And it turns out it was a whole taxonomy of errors it defined in a nested paragraph halfway through a response 3 turns ago and it just assumed you're digesting absolutely everything it is outputting.
It's more a subtle confusion between what's been made really clear to a user, and what has briefly flashed past as part of a wider conversation in mid-turn updates.
I have had good luck with making the process explicit: https://agentzlerich.blogspot.com/2026/10/a-reusable-review-...
You could use various tools and checks like:
- linters and other code style tools;
- line length;
- cyclometricity, etc.
- dead code checks (unused variables, etc.);
- lines of code/diff size.
Those don't check things like whether the code changes are minimal/don't make unrelated changes/etc.
There's also the issue of maintaining consistency. I.e. detecting the code style of the project/code and using that (quoting, etc.). You also find that in prose, such as with British vs American dialogue.
I think the only way to make the style consistent is to have some sort of "reasoning context" that can learn the overall style and apply/use that across all tokens. That way, the model wouldn't have to add it to the context, and it wouldn't suffer from things like the excluded middle and dropping out of the context.
It’s what I ended up doing, and it works pretty well.
But: the instructions rely on inference. Since the LLM can't truly judge what is important for me to experience myself, I rely on it actually being able to interpret the learnings and good/bad examples - classic prompt engineering tacticts.
I like the idea of using linters to reinforce this with something deterministic. Can you give me some example rules you're linting for?
It is just that as a human over time with a project we ingrain some of the rules and do it right the first time. Some of us can even type up a whole lot of code without letter the compiler run once in the interim and then make the compilation pass at the first attempt.
We need those tools. LLMs need them more and can go way faster because of them.
I find this when asking LLMs for a "skills retrospective", to see if there are any notes worth adding to skills/system prompts/etc. that would avoid repeated mistakes. Having a list of things it struggled with is useful, but the suggested notes are generally useless: either highly-specific things that would have only been useful for that one task; or highly verbose descriptions of things that it figured out quite easily, and hence aren't worth padding everyone's context with.
When I want them to generate a human readable article on the project they generate something hard to read, mostly because it has some undefined terms. Even when multiple agents review the article, they can’t correct it. The trick is to use a blind agent (without access to anything) for reviewing the article. Specifically asking for the undefined terms and a summary of what it understands from the article. Only after that feedback the writer agent gets what was wrong with the article.
Of course the above solution can be fully automated. It can be used in training or can be a skill.
I think eval artifacts play a role, but this is more because how transformers work where models use the output tokens as working memory of sorts to keep attention on track IIRC.