Free forever, no credit card.Get Started for Free →
← All posts
November 28, 2026 · 6 min read

Does Dagger Remember Between Runs? A Cache Volume Carries Your Dependencies Forward. The Next Run Still Starts Without the Last One's Conclusions.

Does Dagger Remember Between Runs? A Cache Volume Carries Your Dependencies Forward. The Next Run Still Starts Without the Last One's Conclusions. Dagger remembers a run in the ways a fast pipeline engine should. It caches the layers a container build produced, so unchanged work is skipped next time. It keeps named cache volumes, so a package manager does not download the same dependencies on every run. And it records traces of each run, so a person can open Dagger Cloud and see what a pipeline

Does Dagger Remember Between Runs? A Cache Volume Carries Your Dependencies Forward. The Next Run Still Starts Without the Last One's Conclusions.

Dagger remembers a run in the ways a fast pipeline engine should. It caches the layers a container build produced, so unchanged work is skipped next time. It keeps named cache volumes, so a package manager does not download the same dependencies on every run. And it records traces of each run, so a person can open Dagger Cloud and see what a pipeline did. What a new run does not inherit is what the previous run figured out: which failing test an AI step cleared as flaky, or why a release was judged safe to hold that day. The next run starts with the module code, its arguments, and its secrets, and nothing the last run learned.

A pipeline is a program, and a program starts fresh

Dagger replaces YAML pipeline definitions with code: functions written in Go, Python, or TypeScript, executed by the Dagger Engine as a graph of container operations. That is why the same pipeline behaves the same on a laptop and on a CI runner.

Portability shapes what can persist. When a run ends, its containers end with it. Anything that survives does so through one of Dagger's explicit storage mechanisms, each designed for files and build results, not for knowledge.

The layer cache remembers unchanged work, keyed by its inputs

The first mechanism is layer caching, implemented by BuildKit underneath the Engine. As containers are built and functions are executed, Dagger caches the layers involved and the results of some API calls. On a later run, the Engine checks whether a function already has the layers it needs: if the inputs remain unchanged, the cached result is reused and the work is skipped.

The cache is content-addressed, keyed by the operation and its inputs. It answers one question: has this exact work, on these exact inputs, already been done? A hit saves minutes. It carries no findings: a function that reuses a cached layer learns nothing about why the previous run failed a check or changed course, because none of that was ever an input.

Function call results sit in the same position: a return value reused when the call and its arguments match is memoization, not memory. The pipeline gets the same answer faster, and gains no new knowledge.

Cache volumes persist directories, and directories only

The second mechanism is the cache volume: a named directory, created with cacheVolume and mounted with withMountedCache, persisted across Dagger Engine sessions. Its documented use is a tool's own cache directory: mount a volume at the npm, pip, Maven, or Go module cache path, and later runs find packages already downloaded. The guidance is specific: cache the tool's cache directory, not the installed dependencies directory.

A cache volume is the widest road data can travel between runs on one machine, and it still moves directories only. A later run can mount the volume and find files. It cannot find the reasoning that decided a dependency upgrade was safe, because reasoning was never stored as something a function reads at startup. Whatever a team places in a volume, a function has to be taught to read, in a format the team maintains by hand.

Where the volume lives also matters. On a developer machine the Engine's local cache persists. On ephemeral CI runners, created fresh and discarded after each job, the local cache goes with the runner. Dagger Cloud addresses that case with a distributed cache on the Team plan: volumes are downloaded at the start of a run and uploaded at the end, so data persists across hosts. Even then, what crosses is layer and volume data, synced for speed. No conclusion crosses with it.

Secrets and arguments configure a run; they do not learn from one

Configuration in Dagger is standing input. Functions receive arguments at call time. Environment variables and secrets are supplied to containers by the pipeline code and its caller, so credentials arrive where they are needed without living in the source tree.

Every one of those values is written by a person or by setup tooling, and read by runs. No function can update an argument or a secret as a side effect of what it learned and have the next run pick it up as knowledge. Traces in Dagger Cloud sit in the same position: a record a person opens after the fact, never working state the next run begins with. Teams that need state to survive build it themselves: a file committed back, a database row, a note in an external system their functions are taught to fetch.

Where an AI step falls through

Add an AI step to a module and the gap becomes concrete. Suppose a function asks an AI agent to review the failing tests, separate real regressions from flaky ones, and record which is which. Inside that run, the finding can travel as an output: returned to the caller, written to a directory, exported as a file. The run after that starts from the module code, the trigger, and the standing arguments. Unless someone wired that exported file into the function's first steps as a briefing, the finding is effectively gone, so the agent reviews the same failures from zero and the same investigation is paid for on every run.

The same pattern holds for a release-notes function or a migration check. Each produces reasoning, and Dagger offers it two exits: a file in an output or a volume, or text in a trace. Neither leads into the next run's memory on its own.

Give the agent a memory that outlives the container

The missing piece is a memory layer that sits outside the pipeline and is read at the start of every run. That is the job Vilix AI is built for. Vilix AI is cloud-hosted memory for AI tools and agents, connected over MCP, so there is no infrastructure to run, no database to maintain, and no state file to smuggle through a volume.

Because the memory lives outside any one tool, the same memory is available everywhere: the agent inside a Dagger function, the coding assistant on a laptop, and the chat tool used to plan the change all read and write one shared memory. Vilix AI keeps full conversation history, not just extracted facts, so a later run can recover what was decided and why a path was abandoned. A flaky-test finding written during Monday's run is there when Wednesday's run starts, and the investigation happens once.

Getting started costs nothing to test: the free plan is free forever, and the Pro trial runs 7 days with no card required. Your memory stays yours, with export and delete anytime.

Dagger's caches are the right tools for build speed. Conclusions need a different home: one memory, kept outside the run, that every agent reads before it starts and writes to before it finishes. Give a scheduled agent that, and each run begins where the last one ended.

Get Started for Free

Persistent memory across ChatGPT, Claude, and the AI tools you already use in Vilix AI.

Get Started for Free

Free forever, no credit card.

Keep reading
Does Softr Remember Between Runs?

Does Softr Remember Between Runs? No. A Softr workflow or scheduled agent remembers nothing from one run to the next on its own. Inside a single run, workflow variables carry data from step to step, and an app agent remembers details about a user during that conversation. Between runs, the only things that survive are what you wrote into a database record, and the run log Softr keeps for you to read. What does a Softr workflow remember inside one run? Quite a lot, while the run is alive. Var

Does Promtail Remember Between Runs? Its Positions File Resumes the Log. Nothing Resumes the Reasoning.

Does Promtail Remember Between Runs? Its Positions File Resumes the Log. Nothing Resumes the Reasoning. Promtail is the agent that ships local logs to Grafana Loki. It tails files, reads the systemd journal, discovers container logs, runs each line through pipeline stages, and pushes batches to Loki. It also restarts constantly in real deployments: config reloads, package upgrades, container recreations, host reboots. So the practical question matters. What does Promtail still know when it come

Markdown Files Are Everyone's Agent Memory Now. Here's Where They Break.

Markdown Files Are Everyone's Agent Memory Now. Here's Where They Break. Ask a room of people who run coding agents how their agent remembers anything between sessions, and you will hear the same answer in different fonts. A CLAUDE.md. A PLAN.md. A notes file in the repo. Somebody always says some version of: it's just markdown, it works, why would I pay for anything else. They are not wrong. That is exactly why the pattern won. A text file needs no account, no API key, no migration. It sits i