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

Does Codefresh Remember Between Runs? The Shared Volume Is Cached for the Next Build. The Next Build Still Starts With Only Its Trigger and Variables.

Does Codefresh Remember Between Runs? The Shared Volume Is Cached for the Next Build. The Next Build Still Starts With Only Its Trigger and Variables. Codefresh remembers more between builds than most CI systems do, because its shared volume survives. A file a step copies into that volume is still there when the same pipeline runs again, and its Docker caches make the next build start warm instead of cold. What the next build does not inherit is the last build's working context: the conclusions

Does Codefresh Remember Between Runs? The Shared Volume Is Cached for the Next Build. The Next Build Still Starts With Only Its Trigger and Variables.

Codefresh remembers more between builds than most CI systems do, because its shared volume survives. A file a step copies into that volume is still there when the same pipeline runs again, and its Docker caches make the next build start warm instead of cold. What the next build does not inherit is the last build's working context: the conclusions an AI review step reached, or the reason a flaky test was waved through. The next build starts with its trigger, its declared variables, and whatever files the cached volume holds.

That distinction matters once a pipeline contains steps that reason. A build step produces an image. A review step produces a judgement. Codefresh carries the image and the files forward by design. The judgement travels only if someone writes it somewhere the next build reads.

How a Codefresh pipeline holds together

Every step in a Codefresh pipeline runs inside a Docker container, attached to the same shared Docker volume, mounted at /codefresh/volume. The project is cloned into that volume, so a file written by one step is visible to every later step without any artifact declaration. Build steps are the one exception: Docker does not allow volumes during an image build, so a Dockerfile cannot reach into the shared volume while it runs.

Steps pass small values as well as files. A step can run cf_export to publish an environment variable to later steps in the same build, and predefined variables describe the current build: repository, branch, revision, and build identifier. Shared configuration contexts add standing bundles of variables and credentials a pipeline references by name. All of that sharing is scoped to one build. cf_export values end when the build ends, and a context is configuration supplied at the start, not a notebook a step can write back into for tomorrow.

What Codefresh keeps between builds

The headline mechanism is the volume itself. The shared volume is automatically cached between pipeline executions. When a build finishes, Codefresh creates an image of the volume state, and the next build of the same pipeline restores it. That is why the standard pattern for caching dependencies is simply to leave them in the volume: copy a folder there once, and later builds find it waiting. One caution is built into the clone step, which deletes files not listed in .gitignore, so a cached folder inside the project directory has to be ignored by Git to survive the next clone.

Around the volume sits a second layer of caching, aimed at Docker itself. Codefresh caches step images after the first run, caches intermediate image layers the way a local Docker daemon does, can reuse a previous built image as cache for the next one, and adds registry caching for connected registries. These mechanisms are automatic, need no configuration, and are enabled on every account, including free accounts. They make rebuilds fast. They store layers and images, not notes.

Third, the outputs persist. Every successful pipeline automatically pushes its built Docker image to the default registry on the account, and each build leaves a record with its logs, status, and annotations for people to inspect later. That record is an audit trail, written for human review.

What the next build never sees

Lay the three mechanisms side by side and their direction is clear. The volume carries files forward, but only files, and only for the same pipeline: two parallel builds each start from the same last volume image, and the state that survives is the one from the build that finished last. The caches carry speed forward. The build record carries evidence forward, for people.

None of them carries reasoning forward to the next build itself. If an AI step in build 118 decides a dependency warning is safe because the affected service is being retired next week, build 119 receives that information only if it was written into a file in the volume, in a form build 119 is programmed to parse. The log line that explained it sits in build 118's record, available to any person who opens it, and invisible to the automated steps that follow. Variables offer no rescue: a cf_export value dies with its build, and a context is never updated by a build as a result of what that build learned.

Why teams end up briefing the pipeline by hand

The usual fixes grow around the volume. A step writes a summary file into /codefresh/volume, the next build reads it, and for a while the pipeline appears to remember. Then the format changes, an old file lingers past the change it described, or a second pipeline needs the same context and has a different volume entirely. Each fix stores a fragment in a mechanism designed for files and speed, and asks every future build to reconstruct the story from it.

What shared memory adds next to Codefresh

Vilix AI is a cloud-hosted memory service that AI tools and agents connect to over MCP, the Model Context Protocol. It is zero infrastructure to run: no database to provision, no cache to tune, and no volume convention to maintain. An AI step in a Codefresh pipeline connects, saves what it concluded, and the next build reads that context back when it starts.

The memory is the same everywhere the connection is used, so a review step in one pipeline, a deployment step in another, and a separate scheduled agent can all read and write one shared state instead of passing files between separate volumes. Vilix AI also keeps full conversation history, not just extracted facts, so the reasoning behind a release call, with its caveats in order, is still there for the next build to inspect rather than flattened into a one-line summary.

Trying it is low-friction. The free plan is free forever, and Pro offers a 7-day trial with no card required, so one pipeline can be connected and judged on whether its next build actually starts informed. Anything stored can be exported or deleted at any time.

A practical way to combine them

Leave Codefresh in charge of what it does best: running every step in a container, sharing one volume inside a build, caching that volume and the Docker layers between builds, and pushing a finished image to the registry. Add memory where a build produces a conclusion instead of a file. Let the review step save its findings to Vilix AI at the end of the build, and let the first AI step of the next build read them before acting.

The bottom line

Does Codefresh remember between runs? More than most: the shared volume is cached for the next build, Docker layers and step images are cached automatically, and every build leaves a complete record. What it does not remember is what a build learned, in a form the next build can use on its own.Codefresh supplies the files and the speed. A shared memory layer such as Vilix AI supplies the context, without changing how the pipeline is defined.

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
Why Do Agents Keep Forgetting Test Results?

Why Do Agents Keep Forgetting Test Results? Agents keep forgetting test results because a test outcome normally lives and dies inside the run that produced it. The result sits in that session's context, a CI log, or a chat thread, and the next agent, the next tool, or tomorrow's session starts without it. A shared memory workspace fixes this by saving each outcome where every connected agent can read it before it starts work. Where do test results actually live today? In four places, and non

Does Telegraf Remember Between Runs? Its Statefile Saves Plugin Offsets. Not the Reasoning.

Does Telegraf Remember Between Runs? Its Statefile Saves Plugin Offsets. Not the Reasoning. Telegraf runs on a schedule, collects metrics, flushes them, and repeats. When the process stops and starts again, what survives? The short answer is: very little by default, and only specific plugin state when a statefile is configured. Understanding that boundary matters, because a pipeline that resumes a file offset correctly can still restart every decision around that data from zero. The default:

One Workspace Folder or One Shared Memory? Clief Notes' Method and Vilix AI, Honestly Compared

One Workspace Folder or One Shared Memory? Clief Notes' Method and Vilix AI, Honestly Compared Two serious answers now exist to the same question: how do you share context between ChatGPT, Claude, and the other AI tools you use, so you stop explaining the same project three times? One answer is a folder. The Clief Notes lesson "Get your AI agents on the same page," verified on its own page on December 3, 2026, teaches a four-step method that gives every AI one workspace to read. The other answe