Does Mage Remember Between Runs? The Block Output Is Saved. The Reasoning Is Not.
Does Mage Remember Between Runs? The Block Output Is Saved. The Reasoning Is Not. Ask whether Mage remembers between runs and the answer splits into two halves. Mage keeps more than many orchestration tools do: block outputs are saved to disk automatically, runtime variables carry values across blocks, and every run leaves a record behind. What none of those places holds is the reasoning an AI step produced while it worked. The data survives the night. The judgment does not, unless a separate m
Does Mage Remember Between Runs? The Block Output Is Saved. The Reasoning Is Not.
Ask whether Mage remembers between runs and the answer splits into two halves. Mage keeps more than many orchestration tools do: block outputs are saved to disk automatically, runtime variables carry values across blocks, and every run leaves a record behind. What none of those places holds is the reasoning an AI step produced while it worked. The data survives the night. The judgment does not, unless a separate memory layer holds it.
What a run record keeps
Every pipeline run in Mage leaves a run record. That record stores when the run started, its status, when it completed, and the runtime variables used during that execution. Block runs leave their own records inside it, so an operator can open yesterday's run and see which blocks succeeded, which failed, and how long each one took.
That history is genuinely useful for operations. It answers the scheduling questions: did the pipeline run, did it finish, and with what inputs. It does not answer the working questions an AI step would ask the next morning: what was decided yesterday, what was corrected, and which exceptions were already judged safe to pass. A run record is a log of execution, not a brief for the next run.
Runtime variables: shared inside a run, set before it starts
Runtime variables are Mage's global variables for a pipeline. Every block can read them through the **kwargs parameter, and they are the standard way to share constants and settings across blocks: an environment name, a date, a folder path, a partition key. Values can be created in the Variables tab of the editor, defined in the pipeline's metadata.yaml, or passed in when the pipeline is launched from the command line or a Python script. Mage also supplies defaults such as execution_date and, for event triggers, the event payload.
Notice the direction of flow. Runtime variables are set before or at the start of a run and read during it. They carry configuration into the run, in primitive types: strings, numbers, booleans, lists, dictionaries. They are not a place where a run deposits what it learned for the next run to find. A variable can even be saved from code as checkpoint data, but that checkpoint is still a value an operator or a block was explicitly told to write. Nothing collects the reasoning around it.
Block outputs: saved on disk, addressed by partition
Mage goes further than most tools on outputs. The output of every block run is persisted automatically to variable storage on disk. The location is configurable through the MAGE_DATA_DIR environment variable, a variables_dir path in the project metadata, or an external remote_variables_dir, and a retention period can be set to clean old variables up.
Because those outputs are saved, they can be reused. A downstream block reads the outputs of the blocks above it, and remote blocks let one pipeline read the saved output variables of another pipeline's run, addressed by block, pipeline, and execution partition. That is real reuse, and it works well for data: a table, a file, a list of records produced yesterday can be picked up today if the next run is pointed at the right partition.
The limit is the same one every output store has. What is saved is the value the block returned. The conversation that produced the value, the alternatives that were weighed, and the correction a reviewer applied afterwards are not part of the saved output, because they were never a block return value.
Where the AI step starts blank
Now put an AI step at the end of a scheduled Mage pipeline. Each night the pipeline loads the day's orders, transforms them, and an AI block reviews the exceptions: orders that failed validation, totals that moved sharply, records that match no known pattern. The block flags each exception and drafts a short explanation for the operations team.
On Monday, one flagged order turns out to be a known case: a wholesale customer whose totals swing every month because billing runs in batches. A reviewer marks the AI block's churn warning as a false alarm and notes the pattern. That note is the most valuable output of Monday's run.
On Tuesday, Mage's own memory performs exactly as designed. The run record is there, the runtime variables load, Monday's block outputs sit in variable storage under Monday's partition. The AI block still opens blank. It has no access to Monday's review conversation, no record of the batch-billing pattern, and no way to know this exception class was already settled. Shown the next wholesale swing, it raises the same warning, and a reviewer explains the same pattern a second time.
Writing the verdict back into a runtime variable does not close the gap. A variable can hold the label "safe" for one order. It cannot hold the reasoning that makes the next, slightly different order safe too, and it cannot be read by the other tools the team runs outside Mage.
The missing layer: memory the agent itself can read
The fix is to give AI steps a memory that lives outside any single run and outside any single tool. That is what Vilix AI provides. Vilix AI is a cloud-hosted memory layer, so there is no infrastructure to deploy or maintain. An agent connects over MCP, the Model Context Protocol, and reads and writes the same memory from wherever it runs: inside a Mage pipeline, in another automation tool such as n8n or Make, or in a chat session the next morning.
Two properties matter for scheduled work. First, the memory is shared. A correction recorded during Monday's review is available to Tuesday's run and to every other connected tool, because all of them read one memory instead of separate run histories. Second, Vilix AI keeps full conversation history, not just extracted facts, so the next run can see what was decided and how it was decided, instead of receiving one flattened label from a variable.
Getting started does not require a project. Vilix AI offers a free plan that stays free forever, and a 7-day Pro trial with no card required. Memory can be exported or deleted at any time. Connect the AI block once, let it save each run's work as it goes, and the next run opens with that record already in front of it.
What to keep where
Keep Mage's own mechanisms for what they are good at. Use run records for operational history, runtime variables for configuration and per-run inputs, saved block outputs and remote blocks for passing data between blocks and pipelines, and retention settings to keep variable storage tidy.
Add a memory layer for the other half: the judgments, corrections, and context that AI steps produce while they run. Mage remembers that the pipeline ran and what it returned. Vilix AI remembers what your agents learned while running it. A scheduled pipeline needs both, and once the second half has a home, the next run stops starting blank.