Urgent.News

What's breaking now, across thousands of outlets.

AI

An agent can suggest a lesson. Should it become a rule?

If you are running an agentic workflow for coding, I am pretty sure you already know that - sometimes an AI coding agent can get stuck for a stupid, boring reason. For example, in a recent run of my own workflow, an agent failed because it was missing Jam credentials. I use Jam to report bugs and provide a link and the MCP to the triage agent to help it understand the bug, but this run failed…

When using an agentic workflow for coding, it is common to encounter situations where an AI coding agent may become stuck due to minor, seemingly irrelevant issues. For instance, in a recent scenario, an agent failed because it lacked Jam credentials. Although a human would not dwell on this issue, the agent would until instructed otherwise.

These sorts of corrections can serve as valuable lessons for future runs; however, turning each correction into a permanent instruction can lead to an accumulation of rules with no one monitoring their relevance.

To address this issue, a proposed solution involves allowing agents to submit learning proposals. These proposals are reviewed by a librarian agent, which then generalizes them into readable candidate rules, taking into account the original prompt's instructions. The librarian agent then presents these rules and their corresponding agent instructions to an operator for approval, editing, or rejection. This process ensures that the proposed rules are useful, specific, and applicable to the appropriate agents and stages.

By employing this system, the learning process becomes more efficient and targeted. It prevents an unnecessary accumulation of rules while still providing agents with useful guidance. Agents report when they utilize a rule, and the librarian uses this data to identify rules that are not frequently utilized, potentially leading to their retirement. Furthermore, when a proposal is rejected, the reason for rejection is recorded and used by the librarian for future proposals.

Ultimately, this self-learning system helps maintain instructions without overwhelming agents with excessive guidance. It strikes a balance between being too specific and too broad, ensuring that only relevant rules are passed on to future runs. However, the question remains: how much instruction should persist from one task to the next? If you utilize coding agents, what strategies do you employ to handle this issue today? Do you continuously add instructions, or do you also review and remove them?

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

A free AI chat that costs me nothing: BYOK on Cloudflare Workers AI

TL;DR There is no free tier that stays free. The usual answer is to buy credits and hope. There is another: make the user pay, using their own key. Workers AI gives out tokens; you relay the request.

  • Users pay for their own AI chat key, avoiding credit purchases
  • Cloudflare Workers AI provides tokens for request relay
  • Backend handles requests, forwards credentials to appropriate model

Privacy-Preserving Active Learning for precision oncology clinical workflows with inverse simulation verification

Privacy-Preserving Active Learning for precision oncology clinical workflows with inverse simulation verification When I first started exploring the intersection of federated learning and clinical…

  • Privacy-preserving active learning combines federated learning and verification mechanism
  • Inverse simulation verification allows clinicians to falsify audit model behavior

Menu Translator

What I Built Local Menu Translator is an AI-powered application that helps people understand restaurant menus in their preferred language.

  • Local Menu Translator bridges language barriers for restaurant menus
  • Application focuses on regional dishes, ingredients, and cooking techniques
  • Open-weight AI model preserves original menu item names while providing cultural context

More from Tuesday 13 October →