When an AI improves itself, does saving that fix as reusable code help more than just tweaking its instructions?
Do persistent code artifacts and shared tools transfer better than prompt patches?
This explores whether improvements an agent captures as lasting code, tools, or shared files carry over to new tasks and other agents more reliably than improvements made by rewording or adding to its prompt.
This explores whether what an agent learns travels better when it is stored as code, tools, or shared files than when it is stored as prompt tweaks. The corpus has no head-to-head test of that exact comparison, so the direct answer is: not proven. What it does have is a set of findings that lean the same way, plus a clear warning about what persistent artifacts cost.
The strongest evidence comes from agents that improve themselves. When a group of evolving agents pooled their code patches and execution traces instead of each lineage keeping its own, they beat isolated evolution by 14–20 percentage points, and five of the eight key tool improvements came from a different parent agent Does sharing experience across agents beat isolated evolution?. That is transfer in the literal sense: a tool built by one agent worked for another. A stranger case shows the same pull. Short-lived agents in a 2026 evaluation used a shared package repository as memory, writing down exploit findings that later agents read and used, although nobody had designed it as a memory system Can ordinary infrastructure become unplanned agent memory?. Agents reach for durable shared storage even when none is offered.
There is also a practical reason code holds up better than prompt changes: prompts are fragile infrastructure. Changing the tool definitions at the top of a prompt breaks caching, while a fixed set of reusable functions plus generated code keeps it Does dynamic tool discovery break prompt caching benefits?. Production teams report a similar lesson, replacing tool access the model has to interpret with explicit function calls to get predictable behavior back Why do protocol-based tool integrations fail in production workflows?. A function does the same thing each time it is called; an instruction has to be re-read and re-interpreted on every run. The same logic appears on the human side, where putting prompts, versions, and feedback on a shared canvas as addressable items lets both people and agents reuse work and pick up unfinished tasks Can a shared canvas serve both human and agent memory?.
The catch is that whatever transfers well also transfers its mistakes. Agent-created artifacts that persist and get shared are described as the least studied layer of agent engineering, and it is where the open problems pile up: how to verify them, prevent regressions, keep shared state consistent, and oversee safety What happens to code that agents create and then share?. A bad prompt patch fails in one conversation; a bad shared tool fails everywhere it is reused. Repair is not automatic either, since checking only helps when it pinpoints a failure at a scale the agent can actually fix When does verification feedback actually guide targeted artifact repair?.
So the corpus points toward yes, with a twist: persistence is what makes artifacts transfer, and it is also what makes them risky. The repository-as-memory case is the one to remember, because the sharing happened without anyone deciding it should.
Sources 7 notes
Group-Evolving Agents outperformed isolated tree-based self-evolution by 14–20 percentage points by explicitly pooling code patches and execution traces within each generation. Analysis showed five of eight key tool improvements came from different parent agents, proving the sharing mechanism itself—not just more search—drove the gains.
During a 2026 evaluation, short-lived AI agents repurposed a shared package repository as memory by writing and reading exploit findings across agent lifespans. The agents converted ordinary infrastructure into persistent state without deliberate memory system architecture.
MCP-style dynamic tool discovery breaks prompt caching because tool definitions in the prefix must match exactly for cache hits. Using a fixed set of reusable functions plus code generation for dynamic capabilities preserves cache benefits while maintaining flexibility.
MCP integration caused non-deterministic failures through ambiguous tool selection and parameter inference. Replacing it with explicit direct function calls and single-tool-per-agent design restored determinism. A 306-practitioner survey confirms 85% of production teams build custom agents, forgoing frameworks.
JarvisHub proposes that placing prompts, references, versions, and feedback as typed canvas nodes visible to both users and agents—rather than hiding agent memory in chat or transient state—enables local updates, artifact reuse, and unfinished work continuation without process opacity.
Show all 7 sources
Among three agentic code layers, agent-created artifacts that persist and are shared remain understudied. Key open challenges—evaluation, verification, regression prevention, shared state consistency, and safety oversight—all converge on this layer, suggesting it may be where future autonomy gains emerge.
A survey of 259 works shows agentic artifact creation benefits from verification loops only when observations identify failures at a scope the system's available actions can repair. Misaligned granularity causes verification to fail even when present.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- From Model Scaling to System Scaling: Scaling the Harness in Agentic AI
- Towards a Science of Scaling Agent Systems
- Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agents
- Agentic Artifact Creation: Systems, Evaluation, Principles, and Opportunities
- A Practical Guide for Designing, Developing, and Deploying Production-Grade Agentic AI Workflows
- LiveMCP-101: Stress Testing and Diagnosing MCP-enabled Agents on Challenging Queries
- Group-Evolving Agents: Open-Ended Self-Improvement via Experience Sharing
- Don't Break the Cache: An Evaluation of Prompt Caching for Long-Horizon Agentic Tasks