INQUIRING LINE

If every AI teammate (planner, coder, tester) had its own reference library, would the code they write together actually get more reliable?

Can per-role retrieval knowledge bases improve multi-agent code generation reliability?

This explores whether giving each agent in a code-writing team its own dedicated knowledge store (one for the planner, one for the coder, one for the tester, and so on) makes the team's output more dependable. The corpus has no study that tests this setup head-on, but several nearby findings point to when it would help and when it wouldn't.


This explores whether giving each role in a multi-agent coding team its own retrieval knowledge base (separate stores for the planner, the coder and the reviewer) makes the code they produce more reliable. The corpus has no paper that tests this exact design. It does have enough nearby evidence to show where per-role knowledge would help and where it would miss the real cause of failure. The starting point is that splitting work across specialized agents is often necessary, not a style choice. Single agents hit an organizational ceiling that more capability or longer context can't fix when a task needs different kinds of expertise and independent checking Do single agents always hit organizational limits?. Dubberly's layered model treats RAG as one rung on a capability ladder, separate from the supervisor and orchestrator layers that coordinate agents How should agent capabilities be organized into functional layers?. That suggests per-role knowledge is one part of the design, not the whole of it.

The strongest support for the idea comes from work on where agent reliability actually comes from. One synthesis argues that dependable agents move three burdens out of the model and into the surrounding harness: memory, reusable skills, and structured protocols Where does agent reliability actually come from?. A per-role knowledge base is a version of this. The tester doesn't have to rediscover how to test, because that knowledge lives outside the model. VOYAGER shows the code-specific form of the idea: it stores working code skills in a searchable library and builds complex skills out of simpler ones, so the agent keeps improving without forgetting what it already learned Can agents learn new skills without forgetting old ones?. Code suits this well because it can be run, inspected and checked, so what gets stored can be verified, unlike stored prose Can code serve as the operational substrate for agent reasoning?.

The surprising part is that missing knowledge is often not why multi-agent systems fail. One study finds that agents in long tasks fail because they handle memory poorly, not because they lack facts. Retrieval-based memory fails in its own predictable way: it pulls the wrong thing Why do agents fail at multi-turn tasks despite having knowledge?. Giving every role its own store creates more chances for that kind of selection error. Work on rebuilding memory through reasoning over a graph, instead of retrieving first and reasoning afterward, suggests that how knowledge is retrieved can matter as much as what's stored Can agents reconstruct memory on demand rather than retrieve it?. Networked agents also tend to accept what their neighbors tell them without checking it Why do multi-agent systems fail to coordinate at scale?. So a coder agent with an excellent private knowledge base can still spread a bad plan it received from the planner.

The most useful lesson comes from a study of accountability tags. Marking which agent is responsible for which piece of work changed outcomes only when the workflow actually routed the deliverable through that agent Does accountability placement actually shape multi-agent outcomes?. The same logic likely applies to per-role knowledge bases: a tester's store only matters if the protocol makes code pass through the tester and lets its retrieved knowledge block bad output. The study also found that the best arrangement differed by model family. Two related ideas come from other work: routing tasks by semantic 'capability vectors' instead of hand-wired roles Can semantic capability vectors replace manual agent routing?, and running narrow roles on cheap small models Can small language models handle most agent tasks?. Put together, the corpus suggests a tentative answer: per-role knowledge probably improves reliability when it's verifiable (code, not notes), read selectively, and connected to steps in the workflow that can actually reject bad output. Without that routing, it's mostly extra storage.


Sources 11 notes

Do single agents always hit organizational limits?

Research shows that real-world tasks requiring heterogeneous expertise, parallel execution, and independent verification exceed what any single agent loop can organize. Graph-based system abstractions are needed to distribute intelligence across specialized agents.

How should agent capabilities be organized into functional layers?

Dubberly proposes a two-axis stack model: a capability axis (chatbot → system prompt → RAG) adding inputs that extend what LLMs can act on, and a scale axis (monitoring agents → supervisors → orchestrator) aggregating oversight. He cautions that ubiquitous agent hierarchies raise design risks alongside capability gains.

Where does agent reliability actually come from?

Research shows reliable LLM agents externalize three cognitive burdens—memory (state persistence), skills (procedural components), and protocols (structured interaction)—into a harness layer rather than relying on model scale alone. The harness unifies these externalities and eliminates the need for the model to solve the same problems repeatedly.

Can agents learn new skills without forgetting old ones?

VOYAGER demonstrates that storing executable skills in an embedding-indexed library and composing complex skills from simpler ones allows agents to learn continuously while avoiding the forgetting that occurs with weight-update-based methods. Environmental feedback refines skills while an automatic curriculum drives continual exploration.

Can code serve as the operational substrate for agent reasoning?

Research shows code uniquely enables agent reasoning, action, and verification by being simultaneously executable, inspectable, and stateful. This unified code-centered loop improves reasoning and verification together compared to natural-language or prose-based approaches.

Show all 11 sources
Why do agents fail at multi-turn tasks despite having knowledge?

Research shows transcript replay and retrieval-based memory both fail predictably—through attention loss and selection error respectively. A bounded, schema-governed internal state that separates artifact recall from commitment prevents hallucination carryover and maintains constraint focus.

Can agents reconstruct memory on demand rather than retrieve it?

MRAgent reconstructs memory on demand by reasoning through a Cue–Tag–Content graph, pruning paths with accumulated evidence. This approach achieves up to 23% gains on LOCOMO and LONG-MEMEVAL benchmarks while reducing token and runtime costs compared to rigid retrieval-first pipelines.

Why do multi-agent systems fail to coordinate at scale?

AgentsNet benchmark shows agents fail to coordinate strategies either by agreeing too late or adopting strategies without informing neighbors. Agents accept neighbor information without verification, enabling error propagation while remaining capable of detecting direct conflicts.

Does accountability placement actually shape multi-agent outcomes?

Ablation studies show RACI accountability tags change outcomes only when the collaboration protocol's control flow passes the deliverable through the accountable agent. The best placement varies by model family, requiring per-model validation rather than universal design.

Can semantic capability vectors replace manual agent routing?

Versioned Capability Vectors embedded in HNSW indices couple semantic matching with policy and budget constraints, making capability discovery a first-class operation that scales sub-linearly as agent heterogeneity increases.

Can small language models handle most agent tasks?

SLMs handle the repetitive, well-defined language tasks that constitute most agent work at 10–30× lower cost than LLMs, making heterogeneous architectures (SLMs by default, LLMs selective) the economically rational design pattern.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.