Skip to main content

Module loop_memory

Module loop_memory 

Source
Expand description

Loop memory store for durable loop-engineering state.

The loop memory store provides append-only markdown files that the agent writes during a loop run and reads on the next iteration. This is the “memory” primitive from Osmani’s loop engineering pattern:

“The agent forgets, the repo doesn’t.”

The default implementation writes to {workspace}/.vtcode/state/notes.md and {workspace}/.vtcode/state/decisions.md.

Structs§

MarkdownLoopMemory
Markdown-backed loop memory store. Writes to .vtcode/state/notes.md and .vtcode/state/decisions.md under the workspace root.
SqliteLoopMemory
Sqlite-backed loop memory store for faster queries. Enabled behind the sqlite feature flag. Stores notes and decisions in a single database file under .vtcode/state/loop_memory.db.

Traits§

LoopMemoryStore
A trait for persisting loop-level memory across runs. Implementations may store notes and decisions in markdown, a database, or any other durable form.