HNHacker News
TopNewBestAskShowJobs

nielstron

55 karma · joined December 10, 2023

submissionscomments
nielstron··on I gave four coding agents $100 budget to build a PDF editor
I gave 4 coding agents a $100 budget to build a functional PDF editor. The implementations are okay, but not great: within a few clicks I find bugs in almost all of them. I hypothesize that this is partly because agents don’t interact with software like humans: they don’t pursue concrete goals and experience friction on their way, and they also just look at the UI much less. In consequence, unless we change the way LLMs operate, we will be cursed with annoying SlopWare.
nielstron··on Evaluating AGENTS.md: are they helpful for coding agents?
Yes that's a great summary and I agree broadly.

Note with different prompt types I refer to different types of meta-prompts to generate the AGENTS.md. All of these are quite useless. Some additional experiments not in the paper showed that other automated approaches are also useless ("memory" creating methods, broadly speaking).

nielstron··on Evaluating AGENTS.md: are they helpful for coding agents?
It could... but as pointed out by other the significance is unclear and per-model results have even less samples than the benchmark average. So: maybe :)
nielstron··on Evaluating AGENTS.md: are they helpful for coding agents?
Hey thanks for your review, a paper author here.

Regarding the 4% improvement for human written AGENTS.md: this would be huge indeed if it were a _consistent_ improvement. However, for example on Sonnet 4.5, performance _drops_ by over 2%. Qwen3 benefits most and GPT-5.2 improves by 1-2%.

The LLM-generated prompts follow the coding agent recommendations. We also show an ablation over different prompt types, and none have consistently better performance.

But ultimately I agree with your post. In fact we do recommend writing good AGENTS.md, manually and targetedly. This is emphasized for example at the end of our abstract and conclusion.

nielstron··on Evaluating AGENTS.md: are they helpful for coding agents?
This is life of an LLM researcher. We literally ran the last experiments only a month ago on what were the latest models back then...
nielstron··on Evaluating AGENTS.md: are they helpful for coding agents?
Exactly my thoughts... the model should just auto ingest README and CONTRIBUTING when started.
nielstron··on Evaluating AGENTS.md: are they helpful for coding agents?
Hey, paper author here. We did try to get an even sample - we include both SWE-bench repos (which are large, popular and mostly human-written) and a sample of smaller, more recent repositories with existing AGENTS.md (these tend to contain LLM written code of course). Our findings generalize across both these samples. What is arguably missing are small repositories of completely human-written code, but this is quite difficult to obtain nowadays.
nielstron··on Evaluating AGENTS.md: are they helpful for coding agents?
Hey, a paper author here :) I agree, if you know well about LLMs it shouldn't be too surprising that autogenerated context files are not helping - yet this is the default recommendation by major AI companies which we wanted to scrutinize.

> Their definition of context excludes prescriptive specs/requirements files.

Can you explain a bit what you mean here? If the context file specifies a desired behavior, we do check whether the LLM follows it, and this seems generally to work (Section 4.3).

nielstron··on K2-Think: A Parameter-Efficient Reasoning System
Debunking the Claims of K2-Think https://www.sri.inf.ethz.ch/blog/k2think
nielstron··on K2-Think: A Parameter-Efficient Reasoning System
Debunking the Claims of K2-Think https://www.sri.inf.ethz.ch/blog/k2think
nielstron··on Type-constrained code generation with language models
noted. we'll make sure to critizise turing complete type systems more thoroughly next time :))
nielstron··on Type-constrained code generation with language models
Yes this work is super cool too! Note that LSPs can not guarantee resolving the necessary types that we use to ensure the prefix property, which we leverage to avoid backtracking and generation loops.
nielstron··on Type-constrained code generation with language models
thank you!
nielstron··on Type-constrained code generation with language models
re detecting and switching language: you could run several constraint systems in parallel and switch as soon as one of them rejects the input and another accepts it

re backtracking: a core part of this paper is ensuring a prefix property. that is there is always a legitimate completion and the model can not "corner" itself!

research needs to be done for what kind of languages and language features this prefix property can be ensured

nielstron··on Type-constrained code generation with language models
the problem with LSPs is that they don't guarantee generating a type annotation that we can use for constraints, i.e. we can not ensure the prefix property using LSPs. so we had to roll our own :)

Pulling in more features to help the system is definitely worth looking into!

nielstron··on Type-constrained code generation with language models
The downside is that you need to properly preprocess code, have less non-code Training Data, and can not adapt easily to new programming languages
nielstron··on Type-constrained code generation with language models
we were thinking about doing exactly this, the closest current work is probably the amazing "Learning Formal Mathematics from Intrinsic Motivation" by Poesia et al (they use constraints too increase the likelihood of generating correct theorems/proofs during RL)

https://arxiv.org/abs/2407.00695