Glossary

Agent artifacts

The durable outputs an AI agent produces while it works, such as reports, code, notes, data files and summaries, kept so people and later runs can use them.

AI agent artifacts are the durable outputs an agent produces while it works: reports, drafts, code files, data exports, summaries, notes and images. People and later runs open them again. Artifacts are separate from the agent’s reasoning and tool calls, which record how it got there, and from its scratch notes, which only matter while the run is in progress.

What counts as an artifact

Anything an agent writes that outlives the step that created it. A research agent produces a literature summary and a source list. A coding agent produces patches, test files and a description of the change. A deep research run produces a long report with citations, and a background agent that runs each morning produces a digest. Most are Markdown or JSON, but any file type can be one.

A useful test is whether the output has a reader beyond the current step. A to-do list the agent keeps while planning belongs on an agent scratchpad and can be dropped when the run ends. A finished plan that a person will approve is an artifact. Facts the agent learns about a user, such as a preferred format or a deadline, belong in agent memory, because they are retrieved one at a time instead of opened as a document.

Output

Where it belongs

Lifetime

Plan, to-do list, intermediate notes

Scratchpad

One run

Report, code, data file, summary

File system or workspace

Until deleted

Fact or preference about a user

Memory

Updated as it changes

Reasoning and tool calls

Run logs and traces

Set by retention policy

Why artifacts need somewhere to live

Outputs stay in the chat transcript, in the context window or on a sandbox disk that disappears when the session ends. That is fine for one-off answers and breaks down for long-running agents, whose later steps depend on earlier outputs. Writing intermediate results to storage and reading them back when needed, often called context offloading, keeps the context small while preserving the work.

Stored artifacts also make agents reviewable. A person can open the report, check the sources and edit it, which is a lighter form of human in the loop oversight than approving every action. Alongside agent tracing, artifacts form part of the audit trail of what an agent did and what it left behind, which matters most after a bad agent run.

Storing and managing artifacts

The simplest setup writes artifacts to object storage under a key the agent chooses. The bytes are safe, but the agent cannot find them again unless it remembers the exact key. An agent file system or agent workspace adds folders, tags and search on top, and four properties matter in practice.

Artifacts should be indexed as they are written, so a later run can find yesterday’s report by describing it; file indexing and hybrid search cover this, and file metadata such as kind, folder and date lets the agent filter. They should be scoped to the right user or customer, which is a multi-tenancy question. They should carry version history, since agents revise drafts. And they should be recoverable when a run overwrites or deletes something, through a filesystem snapshot, soft delete and the wider practice of agent rollback.

Agent artifacts in Exabase

In Exabase an agent saves artifacts as Resources inside a Base, the isolated workspace for one user, customer or project. Text outputs can be written as Markdown notes with the create note endpoint. Other outputs are uploaded as files: the agent gets a signed URL from the upload endpoint, uploads the bytes and then calls the create file endpoint. The creating resources guide walks through both routes.

Every resource is indexed when it is created, so artifacts are searchable straight away through Deep Search, down to the paragraph or page. Notes keep full version history. Workers, which run scheduled jobs inside a Base, save their reports and digests with the create-notepad and edit-notepad tools listed in the Worker tools guide. With snapshotting turned on, available on paid plans, you can see what an agent renamed, moved or deleted, and deleted resources stay in the bin for 30 days. Snapshots record resource metadata, not file content, so content history for notes comes from their version history. Agent undo describes the recovery pattern. Exabase stores and indexes the artifacts; what the agent produces and where it runs stay in your code.

FAQs

What are AI agent artifacts?

They are the durable outputs an agent produces, such as reports, code, notes, data files and images. People and later runs open them after the run that created them has finished.

How are artifacts different from agent memory?

Artifacts are documents opened as a whole, while memory holds individual facts retrieved one at a time. RAG vs agent memory and memory vs knowledge base cover the neighbouring distinctions.

Where should an agent store its artifacts?

In persistent storage that is indexed and scoped per user or project, rather than in a chat transcript or on a sandbox disk. Best file storage for AI agents compares the options.

Can artifacts live in a sandbox?

Only while they are being produced. A sandbox disk is usually discarded with the sandbox, so finished outputs should be copied to durable storage. Exabase vs E2B explains how the two fit together.

Can an agent search its own past artifacts?

Yes, if they are indexed when written. A later run can then find an earlier report by describing it.

How do you undo an agent overwriting an artifact?

Keep version history for documents and a snapshot record for the workspace. In Exabase, notes have version history, and snapshots plus the bin cover renamed, moved and deleted resources; the agent context versioning use case shows the pattern.

Related pages: Agent workspace, Agent scratchpad, Agent file system, Agent state, Version history, Resources, Agent undo, Best file storage for AI agents, Research agents, Why we built Bases as filesystems, AI agent.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.