Hacker News new | ask | show | jobs
by RugnirViking 6 days ago
imo its because of how they are training - they increasingly are learning one way or another that ALL of their output is being read, because in their training environment they are evaluated by other LLMs

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

5 comments

That describes well a common "failure" where it starts referring to things that technically wrote down a while back but you never read, so it'll produce a question like:

> "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.

I can't tell if its because I dont have the thinking window, but I notice this actually even for simpleish questions in web chat interfaces. It will just start saying things that don't make sense, and it looks like it could be missing context/thoughts it had and didn't relay, but honestly it also looks like the model might just be adjacent to hallucination
What I'm describing isn't hallucination as such, that kind of outright short-term hallucination I haven't really seen much since GPT3.

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, too, found this tendency to refer to vague antecedents frustrating. Especially so in long-running review/editing sessions.

I have had good luck with making the process explicit: https://agentzlerich.blogspot.com/2026/10/a-reusable-review-...

It’d be truly ironic (if not unexpected) to go from “stupid chatbot with its limited context keeps forgetting what I told it” to “stupid human with their limited working memory keeps forgetting what I told them” is such a short amount of time.
Or maybe it’s “didn’t read what I told them.” I often find answers so long-winded that fully reading them would eat up a lot of these tools’ productivity gains.
It's not just the anwser; It also expects you've to read every intermediate message before what it calls the "final summary" or similar, which you'd usually just call "the answer"
Yea these things spit out hundreds of lines of almost-completely useless info for even the simplest of questions oftentimes.
i would argue abusing a large context window and not being able to communicate properly is still stupid in its own way. the same way an expert who throws sophisticated but impenetrable jargon at their lay audience is.
Part of the issue will be the training and the reward function. It is difficult to reward for human readability, simplicity, etc.

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.

Surprisingly, getting an LLM to write a custom linter that checks for a lot of common pitfalls based on string pattern search, paragraph length, sentence length, etc etc is actually quite effective as a way to force your LLM to behave.

It’s what I ended up doing, and it works pretty well.

My experience as well. The current LLMs are unable to write or code-comment like a human as primary output, but if you ask "characterize human vs LLM writing, and fix it up" they are often able to substantially correct.
That sounds interesting. I'm making it write "walkthroughs" for me to follow along and exercise the functionality. Those were intiially very hit-and-miss, so are now getting linted on actually running my terminal (zsh), not containing dead links, etc - easy stuff. What needed constant hammering was making sure that the instructions are actually useful, and aren't accidentally burying some major required prep work in prose. Instructions are now making it write entry and exit criteria per instructions block.

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?

Honestly, I think it isn’t surprising at all. The tools that helped us mere mortals to stay consistent also help staying LLMs consistent. By having deterministic rules to provide the guardrails we can constrain the probabilistic mess that are LLMs.

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 won’t believe for a second that you can lint for “does this make unrelated changes” or “is this consistent with the rest of the codebase” with a regex match. I’m not sure you even read GP’s post.
Who says anything about regex? The linting (in the broad sense of the word) can look at which packages are changed. How many interfaces are affected by the change. Of course, that is not a metric of relatedness yet. We need more research in this area what it means to have “good” code if we ever want to rise from programming being an art.
"string pattern search" implied regex to me, perhaps also to GP.
> 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

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.

I think this is the correct answer. The proof is when I work with multiple agents from different vendors (opus and astra) they can understand each other pretty well, given they have access to the same project. They even use their cryptic language or shorthands when they talk to each other.

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 do the mirror image of this for PRs: a separate agent gets the diff alone, with no description and no prompt, and describes the change, then a second one grades how well that agrees with the description the authoring agent wrote (https://jonathannen.com/cold-read/).
> 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

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.