41 ms·
Learnings from building AI agents
- deleted 1y ago[deleted]
- bumbledraven 1y agoWhat model were they using?
- jangletown 1y ago"51% fewer false positives", how were you measuring? is this an internal or benchmarking dataset?
- N_Lens 1y agoVery vague post light on details, and as usual, feels more like a marketing pitch for the website.
- flippyhead 1y agoI found it useful.
- weego 1y agoIt's recreating the monolith vs micro-service argument by proxy for a new generation to plan conference talks around.
- vinnymac 1y agoI’ve been testing this for the last few months, and it is now much quieter than before, and even more useful.
- kurtis_reed 1y agoThere was a blog post from another AI code review tool: "How to Make LLMs Shut Up" https://news.ycombinator.com/item?id=42451968 https://news.ycombinator.com/item?id=42451968
- h1fra 1y agowhat I saw using 5-6 tools like this: - PR description is never useful they barely summarize the file changes - 90% of comments are wrong or irrelevant wether it's because it's missing context, missing tribal knowledge, missing code quality rules or wrongly interpret the code change - 5-10% of the time it actually spots something Not entirely sure it's worth the noise
- bwfan123 1y agocode-reviews are not a good use-case for LLMs. here's why: LLMs shine in usecases when their output is not evaluated on accuracy - for example, recommendations, semantic-search, sample snippets, images of people riding horses etc. code-reviews require accuracy. What is a useful agent in the context of code-reviews in a large codebase is a semantic search agent which adds a comment containing related issues or PRs from the past for more context to human reviewers. This is a recommendation and is not rated on accuracy.
- asdev 1y agothe code reviews can't be effective because the LLM does not have the tribal knowledge and product context of the change. it's just reading the code at face value
- theonething 1y agoIsn't it possible to feed that knowledge and context to it? Have it scan your product website and docs, code documentation, git history, etc?
- mosura 1y agoLessons.
- chanux 1y agohttps://nolearnings.com/ https://nolearnings.com/
- flippyhead 1y agoThis is LITERALLY mind blowing.
- criddell 1y agoI don't like the word learnings either, but you write for your audience and this article was probably written with the hope that it would be shared on LinkedIn. Learnings might be the right choice here. I wouldn't complain if the HN headline mutator were to replace "Learnings" with "lessons".
- deleted 1y ago[deleted]
- tempodox 1y ago[flagged]
- curiousgal 1y ago> Encouraged structured thinking by forcing the AI to justify its findings first, significantly reducing arbitrary conclusions. Ah yes, because we know very well that the current generation of AI models reasons and draws conclusions based on logic and understanding... This is the true face palm.
- nico 1y agoHumans work pretty much the same way Several studies have shown that we first make the decision and then we reason about it to justify it In that sense, we are not much more rational than an LLM
- disgruntledphd2 1y agoHumans have a lot more introspection capabilities than any current LLM.
- alganet 1y ago> Several studies Please, cite those studies. I want to read them.
- elzbardico 1y agoThe "confidence" field in the structured output was what really baffled me.
- stavros 1y ago[flagged]
- deleted 1y ago[deleted]
- nzach 1y agoI agree with the sentiment of this post. I my personal experience the usefulness of a LLM positively correlated with your ability to constrain the problem it should solve. Prompts like 'Update this regex to match this new pattern' generally give better results than 'Fix this routing error in my server'. Although this pattern seems true empirically, I've never seen any hard data to confirm this property(?). And this post is interesting but seems like a missed opportunity to back this idea with some numbers.
- exitb 1y agoThis seems like really bad news for the „AI will soon replace all software developers” crowd.
- singron 1y agoI think they skipped over a non-obvious motivating example too fast. On first glance, commenting out your CI test suite would be very bad to sneak into a random PR, and that review note might be justified. I could imagine the situation might actually be more nuanced (e.g. adding new tests and some of them are commented out), but there isn't enough context to really determine that, and even in that case, it can be worth asking about commented out code in case the author left it that way by accident. Aren't there plenty of more obvious nitpicks to highlight? A great nitpick example would be one where the model will also ask to reverse the resolution. E.g. final var items = List.copyOf(...); <-- Consider using an explicit type for the variable. final List items = List.copyOf(...); <-- Consider using var to avoid redundant type name. This is clearly aggravating since it will always make review comments.
- willsmith72 1y agoyep completely agreed, how can that be the best example they chose to use? If I reviewed that PR, absolutely I'd question why you're commenting that out. There better be a very good reason, or even a link to a ticket with a clear deadline of when it can be cleaned up/reverted
- mattas 1y ago"After extensive trial-and-error..." IMO, this is the difference between building deterministic software and non-deterministic software (like an AI agent). It often boils down to randomly making tweaks and evaluating the outcome of those tweaks.
- s1mplicissimus 1y agoAfaik alchemists had a more reliable method than ... whatever this state of affairs is ^^
- snapcaster 1y agoYou're saying alchemy is better than the scientific method?
- AndrewKemendo 1y agoOtherwise known as science 1:Observation 2:Hypothesis 3:test 4:GOTO:1 This is every thing ever built ever What is the problem exactly?
- wrs 1y agoFor one thing, what you learned can stop working when you switch to a new model, or just a newer version of the “same” model.
- AndrewKemendo 1y agoAll that means is that you verified the null hypothesis which should be that it doesn’t work If you create hypothesis tests that are not written in or specific enough then you’re right you’re not gonna be able to do science Incidentally 99.9% of people I know have no instinct for how to actually do science or have rigor or focus to actually do it in a way that is usable
- neuronic 1y agoThat's because there is no intelligence or understanding involved. They are just trying to brute force a tool for a different purpose into their use case because marketing can't stop overselling AI.
- nico 1y ago> 2.3 Specialized Micro-Agents Over Generalized Rules Initially, our instinct was to continuously add more rules into a single large prompt to handle edge cases This has been my experience as well. However, it seems like the platforms like Cursor/Lovable/v0/et al are doing things differently For example, this is Lovable’s leaked system prompt, 1550 lines: https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools/blob/main/Lovable/Prompt.txt https://github.com/x1xhlol/system-prompts-and-models-of-ai-t... Is there a trick to making gigantic system prompts work well?
- shenberg 1y agoWhen I read "51% fewer false positives" followed immediately by "Median comments per pull request cut by half" it makes me wonder how many true positives they find. That's maybe unfair as my reference is automated tooling in the security world, where the true-positive/false-positive ratio is so bad that a 50% reduction in false positives is a drop in the bucket
- Oras 1y agoThe problem is that, regardless of how you try to use "micro-agents " as a marketing term, LLMs are instructed to return a result. They will always try to come up with something. The example provided was a poor one. The comment from LLM was solid. Why would you comment out a step in the pipeline instead of just deleting it? I would comment the same in a PR.
- SparkyMcUnicorn 1y agoI've found that giving agents an "opt out" works pretty well. For structured outputs, making fields optional isn't usually enough. Providing an additional field for it to dump some output, along with a description for how/when it should be used, covers several issues around this problem. I'm not claiming this would solve the specific issues discussed in the post. Just a potentially helpful tip for others out there.
- bjorgen 1y agoDo you have an example of this in practice? I'm having a hard understanding this and have a very similar problem of the agent wanting to give a response on optional fields.
- SparkyMcUnicorn 1y agoA (hopefully) clear and probably oversimplified example: Query -> Person Lookup -> Result-> Structured Output `{ firstName: "", lastName: "" }` When result doesn't have relevant information, structured output will basically always output a name, whether it found the correct person or not, because it wants to output something, even if the fields are optional. With this example, prompting can help turn the names into "Unknown", but the prompt usually ends up being excessive and/or time consuming to get correct and fix edge cases for. Weaker models might struggle more on details or relevance with this prompt-only approach. `{ found: boolean, missingFields: [], missingReason: "", firstName, lastName }` Including one or more of these additional text output properties has an almost magical affect sometimes, reducing the required prompting and hallucinated/incorrect outputs.
- 1y ago
- elzbardico 1y agoFunny thing is the structured output in the last example. ``` { "reasoning": "`cfg` can be nil on line 42; dereferenced without check on line 47", "finding": "Possible nil‑pointer dereference", "confidence": 0.81 } ``` You know the confidence value is completely bogus, don't you?
- sharkjacobs 1y agoDo you mean that there is no correlation between confidence and false positives or other errors?
- ramity 1y agoelzbardico is pointing out how the author is having the confidence value generated in the output of the response rather than it being the confidence of the output.
- ramity 1y agoI too once fell into the trap of having an LLM generate a confidence value in a response. This is a very genuine concern to raise.
- jstummbillig 1y agoThe multi agent thing with different roles is so obviously not a great concept, that I am very hesitant to build towards it, even thought it seems to win out right now. We want a AI that internally does what it needs to do to solve a problem, given a good enough problem description, tools and context. I really do not want to have to worry about breaking up tasks into chunks that are smaller than what I could handle myself, and I really hope that that in the near future this will go away.
- brabel 1y agoPeople creating products need to do what gives results right now. And I can attest that breaking up jobs into small steps seems to work better for most scenarios. When that becomes unnecessary, creating products that are useful will become much easier for sure, but I wouldn’t hold my breath.
- bckr 1y agoI’m not being sarcastic when I say that I think supervisor agents and agent swarms in general are the way forward here
- b0a04gl 1y ago[dead]
- EnPissant 1y ago> Explicit reasoning improves clarity. Require your AI to clearly explain its rationale first—this boosts accuracy and simplifies debugging. I wonder what models they are using because reasoning models do this by default, even if they don't give you that output. This post reads more like a marketing blog post than any real world advice.
- iandanforth 1y agoI learned from a recent post (https://sean.heelan.io/2025/05/22/how-i-used-o3-to-find-cve-2025-37899-a-remote-zeroday-vulnerability-in-the-linux-kernels-smb-implementation/ https://sean.heelan.io/2025/05/22/how-i-used-o3-to-find-cve-...) that finding security issues can take 100+ calls to an LLM to get good signal. So I wonder about agent implementers who are trying to get good signal out of single calls, even if they are specialized ones.
- bckr 1y agoI think that article is talking about finding a previously unknown exploit. A known and well documented vulnerability should be much easier to identify
- OnionBlender 1y agoWhat's funny about the bullet points in section 3 is that it only compares to the previous noisy agent, rather than having no agent. 51% fewer false positives, median comments per pull request cut by half, spending less time managing irrelevant comments? Turn it off and you could get a 100% reduction in false positives and spend zero time on irrevant AI generated comments.
- hbogert 1y agoah the joy of non-determinism. Have fun tweaking till you die. Also I wish youa lot of fun giving your customers buttons to disable/enable options.