Maintainer input and code review
Maintainer input and code review
Posted Apr 21, 2026 16:15 UTC (Tue) by jorgegv (subscriber, #60484)Parent article: Using LLMs to find Python C-extension bugs
First, it would be great if the maintainers specified, broadly, which categories or types of bugs they are _not_ interested in. Then the LLM can be instructed to assess each bug against these restrictions and modify or discard its output accordingly.
As a second improvement, I always have a prompt request similar to the following: "For every piece of code developed (feature, bugfix, test, etc.), have an independent agent review the code. Be very critical. An agent should NEVER review its own code". This definitely increases the number of tokens consumed per feature, but I have found that the reviewer often finds things that the original developer has not or has misdeveloped. In extreme cases (e.g. when designing a complicated architecture refactor and test plan design) I have even requested a second review, to undo any ties between the first 2 agents.
