Full Pro free for 7 days, no credit card. Start free →
← All posts
September 25, 2026 · 6 min read

Your Scheduled Agents Start Every Run Blank. 6 Memory Options That Actually Work

Your Scheduled Agents Start Every Run Blank. 6 Memory Options That Actually Work If you run scheduled AI agents, you know the tax: every run re-briefs itself from scratch, paying in tokens, latency, and occasionally a hallucinated "fact" where a memory should have been. The cause is structural, not a misconfiguration. Language models are stateless: each run is a fresh context window, and framework session state dies with the process unless somebody writes it to durable storage. So every automa

Your Scheduled Agents Start Every Run Blank. 6 Memory Options That Actually Work

If you run scheduled AI agents, you know the tax: every run re-briefs itself from scratch, paying in tokens, latency, and occasionally a hallucinated "fact" where a memory should have been.

The cause is structural, not a misconfiguration. Language models are stateless: each run is a fresh context window, and framework session state dies with the process unless somebody writes it to durable storage. So every automation operator eventually decides: where does the memory live? Here are the six options that work in production in 2026, judged by ops cost, not marketing.

Option 1: Notes in files, restored by hooks

The cheapest working memory: the agent writes a recap file at the end of each run and reads it back at the start of the next. Claude Code operators do this with session hooks, a save step on session end, a restore step on session start.

Free and transparent. It breaks at team scale: cross-tool invisibility, write collisions, and rot when nobody maintains the file. Fine for a solo workflow, not a fleet strategy.

Option 2: Your framework's session service, on a real database

When your agents are code you own, swap the in-memory session default for a database-backed one. Google's ADK ships DatabaseSessionService for SQLite, Postgres, or MySQL, with memory tooling for cross-session recall; LangGraph's checkpointing layer does the same, commonly backed by Redis for fast restores.

Memory as infrastructure you already understand: persistence without a new vendor. The catch: you now own the schema migrations, backup, retrieval quality, and the ops runbook. Session state preserves what happened, not what you learned, the reasoning behind decisions still has to be saved explicitly.

Option 3: A hosted memory API

If the agent is a feature of your product, call a memory API from your code. Mem0 extracts facts from conversations behind add/search endpoints and advertises 26% higher accuracy than OpenAI's memory on the LOCOMO benchmark with far fewer tokens than full-context replay (their evaluation, their marketing, their paper, weight it accordingly). Zep stores a bi-temporal knowledge graph: it knows both what was true and when it became true, so "the policy changed last month" is answerable instead of contradictory.

You trade an SDK integration for never thinking about storage. Real costs: developers-only, and extracted facts are summaries.

Option 4: A self-hosted MCP memory server on your own box

EchoVault exposes memory tools directly to Claude Code, Cursor, Codex, and OpenCode, keeps everything as local markdown, and needs no subscription. Mem0's open-source build covers the other end: self-hosted, SDK-driven, with MCP integration for the same agents.

Full control, zero data egress, but you inherit a system to babysit: updates, backups, and the embedding model are yours. Local means local, a phone-based agent cannot reach it. Most of these projects are small teams, so vet commit activity first.

Option 5: One cloud memory service over MCP, shared by every tool

This is where Vilix AI lives: a cloud-hosted memory layer that every AI tool connects to over the Model Context Protocol. Connect Claude, Codex, Cursor, and your headless scheduled agents to one Vilix AI account, and they all read from and write to the same memory. Cloud-hosted means zero infrastructure on your side; the same memory follows you across tools and devices.

What separates this from per-tool notes is scope and fidelity: the agent stores full conversation exchanges with save_turn and pulls relevant context with get_context, using semantic retrieval that finds what you meant rather than what you typed. Projects, tasks, and personal rules live in the same account, editable from the dashboard at app.vilix.ai or any connected AI. Conflicts follow a stated last-write-wins policy: one correction in one tool becomes the truth everywhere.

The honest limitation is cloud-only, no self-host option, so option 4 is your lane if compliance forbids that. The mitigating facts: export everything in a portable format or wipe the account instantly, a free plan forever, and a 7-day Pro trial with no credit card (Starter $10/month or $100/year, Pro $20/month or $200/year).

Option 6: Automatic session capture and compression

The newest approach, led by thedotmack/claude-mem, hooks into the agent's session lifecycle, records what the agent investigated, learned, completed, and queued next, compresses those observations into semantic summaries, and injects the relevant ones into future sessions. Storage is local (SQLite plus Chroma), install is a plugin, compatible with several CLI agents.

For coding agents this is the lowest-effort continuity: nobody writes memory by hand. Price in two realities: compression is lossy by design, the detail that mattered can vanish inside a summarized dead end; and it ships under AGPL-3.0, which deserves a read before it touches commercial client work. It targets coding sessions, not the cross-tool scheduled fleet.

Side-by-side

Approach Fits Your ops burden Shared across tools Reasoning preserved
Files + hooks Solo coding workflow Files No If you write it
Framework session DB Agent code you own A database No Rarely
Hosted memory API Memory as a product feature None Through your code As summaries
Self-hosted MCP server No data leaves the building The server On that machine Varies
Cloud MCP memory Multi-tool fleets, scheduled agents None Yes Full exchanges
Session capture Coding-agent continuity A plugin On that machine Compressed

FAQ

How do I make an AI agent remember context between runs? Persist what matters outside the context window: recap files, a database-backed framework session service, a hosted memory API, a self-hosted MCP memory server, or a cloud memory service over MCP so every tool shares one account.

Why do scheduled agents forget everything between runs? Each run is a new, stateless context window. Anything a previous run knew is gone unless deliberately persisted; only durable storage survives the gap.

Does a bigger context window remove the need for memory? No. It helps inside one run, but the next run still starts empty. Memory stores once and retrieves only the relevant slice.

Local or cloud memory? Local when privacy or cost dominates. Cloud when the memory must be reachable from multiple tools and devices. If compliance forbids external storage, the decision is made for you.

What breaks most often? Stale memory nobody updates, retrieval returning noise, and conflicting facts from different tools with no conflict rule. Confirm a stated conflict policy before committing.

Picking for your fleet

Work backwards from constraints. One developer, one machine: files. Codebase you control: the framework's session service. Memory inside a product feature: the hosted API. Regulated data: a self-hosted MCP server. Several tools plus scheduled runs, no infrastructure appetite: a shared cloud memory layer. Coding agents where nobody will write memory by hand: session capture. The expensive mistake is not choosing wrong. It is running a fleet on hope and paying the re-briefing tax every morning.

Try Vilix Pro free for 7 days

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

Start 7-day free trial