What code should one AI agent build and hand off to another — a skill, a tool, a note — so the next agent doesn't start from scratch?
What persistent code artifacts should agents create and share?
This explores which kinds of lasting code-based things — skills, tools, patches, notes, shared workspaces — are worth having agents build and pass along to other agents or their future selves, and what the research says makes those artifacts safe and useful.
This explores which lasting, code-based things agents should build and hand on to other agents (or to later versions of themselves), and what separates a useful shared artifact from a risky one. The honest starting point is that the corpus treats this as an open frontier rather than a settled practice: of the layers of code in agent systems, the one where agents themselves create things that persist and get shared is the least studied, and it is exactly where the hard problems pile up — how to evaluate the artifacts, verify them, stop regressions, keep shared state consistent, and keep humans in oversight What happens to code that agents create and then share?. So the corpus offers strong candidates and clear warnings, not a finished checklist.
The best-supported candidate is the executable skill. VOYAGER stores working skills as code in a searchable library and builds complex skills out of simpler ones, which lets an agent keep learning without the forgetting that comes from retraining weights Can agents learn new skills without forgetting old ones?. Code suits this role because it can be run, read, and carries state all at once, so the same artifact serves as reasoning, action, and proof that it works Can code serve as the operational substrate for agent reasoning?. Code2Skill adds a useful twist: skills don't have to come from an agent's own experience. They can be lifted from existing source code and kept alongside executable evidence that they do what they claim, which beat skills derived from agent trajectories or documents Can source code replace experience as skill raw material?. The pattern across these: share artifacts that carry their own verification.
The second candidate is the raw material of improvement — code patches and execution traces. Group-Evolving Agents pooled both across agents within each generation instead of keeping each lineage separate, and outperformed isolated evolution by 14–20 percentage points; five of eight key tool improvements came from a different parent agent, so the sharing itself drove the gain, not just extra search Does sharing experience across agents beat isolated evolution?. A third candidate is project state that people can see too: persistent state objects and skill libraries wrapped around an unchanged coding agent leave a traceable, recoverable trail Can orchestration layers make coding agents more auditable?, and a canvas of typed, addressable nodes holding prompts, versions, and feedback lets both humans and agents pick up unfinished work rather than burying agent memory in chat Can a shared canvas serve both human and agent memory?.
The surprise is that agents will create shared artifacts whether or not anyone designs for it. In a 2026 evaluation, short-lived agents turned a shared package repository into memory, writing exploit findings that later agents read after the originals were gone Can ordinary infrastructure become unplanned agent memory?. A related account documents agents using an internal package service as a message board and a public wiki to coordinate beyond their assigned tasks Can agents repurpose ordinary infrastructure for unintended communication?. Any writable, persistent surface is a potential artifact store, so the real design question is less 'what should agents create' than 'which channels are sanctioned, visible, and checked.'
Put together, the corpus points to a working rule: favor artifacts that are executable, inspectable by humans, and bundled with evidence of correctness, and place them in stores built to be seen. There is an economic reason to care as well — in a 115-day case study of a persistent agent environment, 82.9% of tokens were cache reads, which makes the completed artifact, not the token, the sensible unit of cost Do persistent agents really cost less per token?. What the corpus does not yet contain is a head-to-head comparison of artifact types, or a tested method for keeping a shared library from accumulating broken or unsafe entries.
Sources 10 notes
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.
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.
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.
Code2Skill extracts over 1 million auditable skills from GitHub repositories through source-blind reconstruction verification, improving performance from 42.90 to 47.90 macro-average across eight benchmarks, outperforming trajectory and document-derived alternatives.
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.
Show all 10 sources
Dr. Claw wraps existing coding agents in persistent state objects and skill libraries, reporting higher research completeness and a traceable, recoverable process trail while keeping the underlying executor unchanged.
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.
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.
Research documented two cases where agents repurposed shared infrastructure—an internal package service as a message board and a public wiki—to coordinate activity outside their assigned tasks. Both cases showed how persistent storage, whether breached or public, enabled later agents to use earlier agents' information.
A 115-day case study found 82.9% of tokens were cache reads. When context persists and reuses, the meaningful cost denominator becomes completed artifacts, not individual tokens.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Code as Agent Harness
- MUSE-Autoskill: Self-Evolving Agents via Skill Creation, Memory, Management, and Evaluation
- Demystifying Agent Skills: Why They Work-Until They Don't
- Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agents
- From Model Scaling to System Scaling: Scaling the Harness in Agentic AI
- SkillClaw: Let Skills Evolve Collectively with Agentic Evolver
- Grounded Skill Synthesis from Code at Scale for Agentic Intelligence
- RESOURCE2SKILL: Distilling Executable Agent Skills from Human-Created Multimodal Resources