Urgent.News

What's breaking now, across thousands of outlets.

Tech

Why Did My Coding Agent Say That? Tracing an Answer Back to the Memory and Session It Came From

AI coding agent memory provenance is the ability to trace a statement, suggestion, or code change from an AI coding agent back to the stored memory that shaped it, and from that memory back to the session, project, and tool where it was first recorded. If your agent says "use pnpm, not npm" or "we dropped Redis for SQLite," provenance tells you where that came from: which memory, which repo,…

Tracing the origins of an AI coding agent's responses can be crucial for understanding why an agent provided a particular answer. This process is known as memory provenance, which allows you to trace an answer back to the specific memory and session it originated from. OpenAB, a tool developed by Open Agentic Brain & Memory (OpenAB), focuses on providing clear memory provenance to help developers understand and trust the suggestions made by their coding agents.

Memory provenance is essential because it allows developers to determine where a suggestion came from, which project it belongs to, and whether it's still relevant or accurate. When an AI coding agent has persistent memory, its answers are not only based on the current prompt and code but also on information learned from earlier sessions, sometimes even from different tools or devices.

This added layer of information is helpful, but it only becomes valuable if developers can still understand why the agent provided a specific answer.

Without memory provenance, it would be difficult to audit an AI coding agent's reasoning. For example, if an agent suggests using pnpm instead of npm or switching from Redis to SQLite, knowing the source of this suggestion is vital. It could be from a specific decision made during a previous session, a different tool, or even a laptop. Provenance helps developers identify whether the agent is offering helpful advice or relying on outdated information.

To achieve effective memory provenance, each stored memory item should contain sufficient context that a person can trace back to its origin and decide on its trustworthiness. This involves creating a clear unit of memory, tagging memories with project identifiers, providing a visible briefing of what the agent was told at the start of a session, allowing on-demand lookup during the session, and offering edit and delete rights for memory items.

OpenAB addresses these needs by capturing decisions, fixes, and preferences from coding sessions and storing them in a local SQLite database on the user's machine. Each memory is tagged with a project, automatically determined by the presence of a .git folder. When a coding agent starts a session, OpenAB creates a briefing of relevant memories, which serves as the first provenance checkpoint. Developers can review this briefing to understand the context in which an agent's answers are generated.

If an answer from an AI coding agent raises questions, developers can trace the origin of the suggestion step by step using OpenAB. By checking the session briefing, running a recall query, and examining the scope of the memory, developers can pinpoint the source of the suggestion and decide whether to keep, edit, or delete it. This proactive approach to memory provenance helps developers maintain accurate and trustworthy code suggestions from their AI coding agents.

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 Tech

Why a local SMTP catcher is not an email integration test

Your Playwright test fills the signup form. The app sends the confirmation email. Mailpit shows the message with the right subject and link. The test passes.

  • Local SMTP catcher only catches errors within network, not external issues.
  • Real testing inbox needed to verify email reaches recipient's inbox.
  • Different real inbox per test run ensures accurate results.

810 blocking calls at once: what the .NET thread pool did to the first burst

I am building a cloud trade copier for MetaTrader. When a trader closes a position on the master account, the same close has to go out on every follower account, as fast as possible.

  • 27 positions closed simultaneously in MT4, causing delays in follower orders
  • Thread pool creates threads gradually during bursts, leading to staircase-like delay

Recycling ANSI Art: Tracing the Origins of BBS Logon Screens

BBS-era "door" games are preserved by the site Break Into Chat, along with their history. Now the site's actually traced the origins of several ANSI art screens in the 1980s and "how different people…

  • Fire Escape BBS in St. Louis popularized ANSI art in 1980s
  • Artists like Michael C. Ling and Violet Stymacks created logon screens
  • Violet Stymacks' screens used by 500+ BBS systems by late 1990s

More from Saturday 31 October →