Browse the docs
Docs/Sharing and publishing

Export code as a ZIP

Direct answer

Export → Export code (.zip) downloads the current source files of an app artifact. It is not available on document artifacts because documents have no code to export; documents instead offer Export as Markdown and Export as PDF. An absent code-export option on a document is expected, not a fault.

When to export

Export an app's source files:

  • before deleting an artifact, because deletion is not recoverable;
  • to hand code to a developer who does not use AgentGrid.io;
  • to move a project elsewhere; or
  • to keep an offline copy of important work.

UI-only steps

The agent should instruct the human to:

  1. Open the artifact.
  2. Select Export.
  3. For an app, choose Export code (.zip). For a document, choose Export as Markdown or Export as PDF.

A human may also ask a connected AI assistant:

Export the code of this AgentGrid.io artifact and tell me what's in it.

Export contents and invariants

The ZIP contains the artifact's current files only. It does not include version history or deployment settings.

Exporting is a read operation and does not change the artifact.

Reimport and update behavior

An AI can push an exported copy back into AgentGrid.io, but it lands as a second artifact rather than updating the original. To update the original artifact, edit it in place or ask the AI to change that existing artifact.

Version history remains with the original artifact and is not included in the export.