# How Pulumi Neo Uses Kopia Snapshots to Preserve Long-Running Agent Workspaces

DevFeed: [How Pulumi Neo Uses Kopia Snapshots to Preserve Long-Running Agent Workspaces](<https://devfeed.tech/articles/ai-agents-need-continuity-not-just-context-60167.md>)

Original publisher: [Read original article](<https://www.pulumi.com/blog/neo-kopia-workspace-snapshots/>)

Author: Derek Schaller

Published: 2026-09-25T19:00:00Z

Content type: article

Language: en

Sources: [Pulumi](<https://devfeed.tech/sources/pulumi.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [pulumi-neo](<https://devfeed.tech/topics/pulumi-neo.md>), [Repository](<https://devfeed.tech/topics/repository.md>), [Git](<https://devfeed.tech/topics/git.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [systems](<https://devfeed.tech/topics/systems.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [git](<https://devfeed.tech/tags/git.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [object-storage](<https://devfeed.tech/tags/object-storage.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [pulumi-neo](<https://devfeed.tech/tags/pulumi-neo.md>), [repository](<https://devfeed.tech/tags/repository.md>)

## AI overview

Pulumi describes how Neo preserves hosted-runtime workspaces for long-running agent tasks. After finding Git-based recovery insufficient for generated files, dependencies, scratch output, and other workspace state, the team chose Kopia for encrypted, incremental, content-addressed snapshots stored in backends such as object storage.

## Source excerpt

Pulumi Neo works on infrastructure the way an engineer does: it clones repositories, edits files, installs dependencies, runs previews, and produces intermediate work along the way. A task is not only a conversation with a model. It is also a working directory that has to survive long enough for the agent to keep making progress. Imagine asking an agent to upgrade a Pulumi provider version across a repository, regenerate SDK code, run previews and tests, inspect the failures, and open a pull request. Halfway through, the runtime restarts. Conversation replay can recover what the agent said and which tools it called, but it does not recover the generated files, dependency state, local commits, or scratch output the next step may depend on. Without workspace continuity, the agent can wake up remembering the plan but missing the room it was working in. For early hosted Neo tasks, workspace recovery started with Git. We persisted enough information to reconstruct repositories later: remotes, branches, commits, and local diffs. This was about the hosted runtime workspace, not a user's local checkout when running pulumi neo, where local filesystem and shell tools execute on the user's machine. The Git-based approach worked for simple hosted-runtime cases, but it was the wrong abstraction for long-running agent work. We needed to recover the workspace Neo had actually used. This post walks through how we tackled workspace continuity for long-running agent tasks, what we learned along the way, and how the same techniques can help you build more resilient agentic systems of your own. The core primitive we chose was Kopia, an open source backup tool that creates encrypted, incremental, content-addressed snapshots and stores them in backends such as object storage. Git was the wrong recovery boundary The original persistence model was repository-oriented. After a turn, the hosted agent runtime scanned its own working directory for Git repositories, recorded each remote, branch