explaingit

nomarin-ui/agent-memory-ledger

Analysis updated 2026-05-18

0PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A tamper-evident, append-only ledger that logs everything an AI agent believed and read, so you can debug why it acted on stale information.

Mindmap

mindmap
  root((Agent Memory Ledger))
    What it does
      Append only memory log
      Tamper evident records
    Tech stack
      Python
    Use cases
      Debug stale beliefs
      Audit agent decisions
      Verify record integrity
    Audience
      AI agent developers
    Design
      Hash chained writes
      Bitemporal facts
      Separate read log

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Debug why an AI agent acted on outdated or incorrect information.

USE CASE 2

Audit what an AI agent believed and read at any past point in time.

USE CASE 3

Prove a memory record has not been tampered with using its hash chain.

USE CASE 4

Track when facts changed over time, like a vendor's payment terms, without losing history.

What is it built with?

Python

How does it compare?

nomarin-ui/agent-memory-ledger0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultyeasymoderatemoderate
Complexity2/52/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Not yet published to PyPI, install from source with pip in editable mode.

In plain English

Agent Memory Ledger is a Python tool that keeps a permanent, tamper evident record of everything an AI agent remembers, so that when an agent makes a bad decision based on old or wrong information, you can actually find out what it believed and why. Normal memory storage for AI agents just holds a current value, like a user's employer, with no record of when that fact was learned, whether it was ever double checked, or whether the agent even read it before acting on it. The ledger fixes this by recording every write and every read as a permanent entry. When you write a piece of information, you can attach where it came from. When the agent reads a piece of information later, that read is logged too, along with how old the information was at that exact moment. This lets you replay an incident afterward and see exactly what the agent believed right before it acted, and flag which of those beliefs were dangerously out of date. Nothing already written is ever changed or removed. If a fact is deleted, that deletion itself becomes a permanent entry, since the tool treats an agent forgetting something as a fact worth keeping. Every entry is linked to the one before it using a hash chain, so if anyone tries to edit or erase a past record afterward, a built in verification check will catch it. The system also tracks time in two ways: when something became true in the real world, and when the agent learned it, which lets you ask what the agent believed as of any past date with a single query instead of replaying history from scratch. You install it with pip and use either its command line tool or its Python API, which includes functions for writing, reading, checking history, verifying the record has not been tampered with, and resolving when two different names, like Acme Corp and ACME, refer to the same entity. The project has 81 passing tests, is not yet published to PyPI, and is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me install agent-memory-ledger and run its stale belief incident example.
Prompt 2
Explain how the hash chain in agent-memory-ledger makes records tamper-evident.
Prompt 3
Show me how to use as_of and stale_reads to investigate an agent's bad decision.
Prompt 4
Walk me through wiring agent-memory-ledger into my existing agent's memory writes and reads.

Frequently asked questions

What is agent-memory-ledger?

A tamper-evident, append-only ledger that logs everything an AI agent believed and read, so you can debug why it acted on stale information.

What language is agent-memory-ledger written in?

Mainly Python. The stack also includes Python.

How hard is agent-memory-ledger to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is agent-memory-ledger for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.