gitwtfhub

wtf is lastmemory?

uxkero/lastmemory — explained in plain English

Analysis updated 2026-05-18

1PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TL;DR

A Claude Code skill that gives coding agents a persistent, linked-markdown memory of a project that loads in cheap layers and forgets what stops mattering.

Mindmap

mindmap
  root((lastmemory))
    What it does
      Linked markdown memory network
      Layered cheap loading
      Active forgetting via dream
    Tech stack
      Python scripts
      Markdown storage
      Claude Code skill
    Use cases
      Cross session project memory
      Query past decisions
      Visualize memory graph
    Audience
      Developers
      Claude Code users
    Setup
      Install as skill
      Run lastmemory on
      Save with lastmemory command

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

Why would anyone build with this?

REASON 1

Give a coding agent memory of a project across sessions without re-reading everything each time.

REASON 2

Query past project decisions and failures with cited sources instead of scrolling old chat logs.

REASON 3

Visualize a project's accumulated knowledge as an offline interactive graph.

REASON 4

Automatically compress and forget stale or low-value memories over time.

What's in the stack?

PythonMarkdownClaude Code

How it stacks up

uxkero/lastmemory0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultyeasyhardhard
Complexity2/54/54/5
Audiencedeveloperdeveloperresearcher

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

How do you spin it up?

Difficulty · easy Time to first run · 5min

Drop the folder into your Claude Code skills directory and run /lastmemory on to set up the memory folder.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

Wtf does this do

lastmemory is a memory skill for Claude Code and similar AI coding assistants that gives them a persistent memory of your project without eating up huge amounts of context every time. It keeps a small folder of linked markdown files inside your project, where each file acts like a neuron representing a coding session, a part of the repo, a decision that was made, a failure worth remembering, or a pattern noticed across sessions, connected to each other by links the agent can walk instead of reading everything at once. The README describes four core ideas behind the design: memory is organized by which part of the repo it relates to rather than by a simple timestamped log, files link to each other like a small network, information loads in cheap layers so the full context is rarely dumped in at once, and old or unimportant memories actively get merged, compressed, or dropped over time through a process called a dream pass, rather than growing forever. You use it through slash commands inside Claude Code. Turning it on for a project creates the memory folder, saving a session writes a summary and updates the relevant zones, and asking it a question queries the network and answers with the source cited. A dream command consolidates old memories, and a view command generates an offline HTML graph you can open in a browser to see the whole memory network, colored and sized by how connected and recently used each piece is. The README backs its efficiency claim with a measured benchmark script, reporting that catching up on a sample project costs about 1,435 tokens through lastmemory versus 10,713 tokens to dump every memory file directly, roughly an 86 percent saving, measured with the tiktoken tokenizer on a bundled example project. It draws its underlying techniques from several existing memory research projects, credited openly in the README. The project is released under the MIT license.

Yoink these prompts

Prompt 1
Walk me through installing lastmemory as a Claude Code skill and turning it on for my project.
Prompt 2
Explain the difference between session, zone, decision, and scar neurons in lastmemory.
Prompt 3
Show me how to run the dream command and what consolidation actually does to old memories.
Prompt 4
How does lastmemory's layered loading keep token cost low compared to dumping all memory files?

Frequently asked questions

wtf is lastmemory?

A Claude Code skill that gives coding agents a persistent, linked-markdown memory of a project that loads in cheap layers and forgets what stops mattering.

What language is lastmemory written in?

Mainly Python. The stack also includes Python, Markdown, Claude Code.

What license does lastmemory use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is lastmemory to set up?

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

Who is lastmemory for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.