Ownpast GitHub
Ownpast · AI identity runtime

Not just an agent. An agent with a past.

Ownpast is an AI Identity Runtime: a local-first system that gives AI agents persistent memory and identity continuity across sessions. It keeps an agent's memory, journal, history and session lifecycle on your own machine, so the identity does not start from zero every time a new session begins.

For example: on Monday you correct how your agent runs the tests. On Friday, in a new session, the agent recalls that correction as soon as the task touches the tests, and you can open the markdown file where it is kept and see when it was written and changed.

The memory drawn as a brain
The memory drawn as a brain. The pictures on this page show generated sample data.

Quick facts

Category
AI Identity Runtime: persistent AI memory and identity continuity for AI agents
Version
0.5.0, early software: the API, the CLI and the file formats may change before 1.0
Platform
macOS; Linux tested in a container, not yet on a desktop; WSL2 and Windows not tried yet
Integrations
Claude Code (plugin with skills and hooks); any MCP client that runs servers over stdio
Storage
Local and file-based: markdown memories and JSON reports, one Git repository per identity
Interfaces
An app (in a browser or its own window), a command line, a JSON API on 127.0.0.1, an MCP server
Built with
Python (FastAPI, Typer, the MCP Python SDK, uv); a React UI (Vite, TanStack)
License
Business Source License 1.1 (source-available) from 0.2.0; 0.1.0 remains under Apache License 2.0

Identity continuity: why an agent needs a past

A conversation is temporary. An identity should not be.

The model is the reasoning engine. Ownpast provides the continuity around it: what the identity remembers, what it has experienced, what it has learned, and the context it carries into its next session. The model can change; the identity's stored history and memory can remain. A small core and the relevant memory indexes are made available at session start, while specific memories are recalled when the task calls for them.

Who is this agent?

Identity

Its own core, working context, history and private archive.

What does it remember?

Memory

Layered knowledge that can be recalled, used, evaluated and maintained.

What happened?

Session lifecycle

A repeatable flow from session start through work to session-end reflection and journaling.

How reliable is its memory?

Curation

Review and maintenance that can propose corrections, merges, moves and other changes for approval.

How does the identity change over time?

Self Journey CONCEPT

The longer-term direction for reflecting on decisions, commitments, recurring patterns and changes in self-understanding. A conceptual direction, not yet implemented.

Core capabilities

The agent decides what to remember and writes it; Ownpast saves it, puts the right memory in front of the agent at the right moment, and helps keep it tidy. Everything stays on your machine, in plain files, and every save or change is a Git commit.

Memory in layers

A memory is a short markdown file with a trigger: when to recall it. It lives at the level it is true for: everywhere, a group of repos, one repo, or the personal layer about the user, with a small core read at every session start.

Recall at the right moment

Hooks show the agent the core and the triggers that fit the repo it works in, and hand it a memory when it opens one. Each memory outside the personal layer carries a score that fades with age unless it is confirmed or proves right in use.

Session lifecycle

At session start, a compact core and memory indexes instead of the entire archive. At session end, the agent records what happened and what it learned, evaluates the memories it used, and writes a journal entry and session report.

Curation

A mechanical check and a report propose merges, moves, trims and fixes; you decide each one on a page, and the agent applies them as commits you can undo.

Migration

Brings existing memory in: a memory store, a personal folder, Claude Code's own auto-memory and a subagent's notes. The sources are only read.

Journal and session reports

At the end of a session the agent writes what happened and what it learned; Ownpast keeps it as JSON in the identity's private folder.

Any MCP client

An MCP server serves the same memory, journal and report calls, so an agent outside Claude Code can work as an identity too.

Several identities

Each agent identity has its own folder, git history and token. A token reads and writes only its own identity.

An app to look at it all

A home page per identity, the memory as a list, a brain and rings, the reports, the curation and migration pages, and the settings.

Under the hood: what makes it different

Most memory systems focus on retrieval. But retrieving a memory does not make it true, current, or safe to rely on. Ownpast treats memory as an inspectable, versioned and self-correcting knowledge lifecycle: a memory has a source, a validity score, an outcome history and a place in an identity's evolving knowledge.

Truthness & Validity

Epistemic scoring

Where a memory came from is kept apart from whether it is still valid. Truthness captures its source and outcomes (held, misled, irrelevant); Validity tracks its level, score and age.

The validity score decays by 0.2 per 30 days; confirmation and successful use feed back into it. Personal memories, the core included, are not scored and do not decay.

Recall & write guards

Enforced recall, not passive retrieval

An agent should not have to remember to remember. A direct read of a memory file becomes a logged recall with a stated reason, an opened memory is put into the session's context, and writes into other memory folders are pointed back to validated storage.

Warnings

Memory carries its own warnings

Recalled memories include their source, score and age. The agent treats stale or uncertain information cautiously, regards weakly supported memories as assumptions rather than rules, and never applies historical records as current facts without checking.

Curation

Evidence-driven, human-controlled

Not an LLM asked to clean up notes: structured curation reports with candidate actions, reasons and evidence. Mechanical checks constrain proposed changes; you review them, and accepted changes go through versioned storage.

History

Inspectable, not a black box

Memories are human-readable files in an identity-specific store. Saves and changes are Git commits, so the evolution of an identity's knowledge can be inspected, reviewed and rolled back.

Compared

CapabilityRaw CLAUDE.md / auto-memoryVector-based RAG memoryOwnpast
Human-readable memoryYesOften indirectYes
Versioned memory historyManual / externalImplementation-dependentAutomatic Git commits
Source and confidence awarenessLimitedImplementation-dependentTruthness & Validity
Time-based validity and outcome feedbackNo built-in lifecycleImplementation-dependentScored validity with outcome feedback
Guided memory recallAgent-dependentUsually retrieval-drivenRecall hooks and explicit access logging
Session-aware memory lifecycleManual / customImplementation-dependentSession hooks, framing and outcomes
Human-reviewed maintenanceManual editingImplementation-dependentStructured curation and approval

It does not just give an agent access to its past. It gives that past structure, provenance, feedback and a history that can be inspected and corrected.

Measured, not only claimed

Measured on version 0.3.0 in November 2026, on our own working memory (in daily use since late September 2026, across eight repositories) and on throwaway test identities. The samples are small: read them as evidence, not as benchmarks.

88%of recalled memories held · 1,530 judgements on 317 memories
11%irrelevant to the task
2%misled
593memories in the store
596recalls of 214 memories in 64 sessions
~4 msrecall index, server side

Our own memory in daily use

MeasureResult
Changes, each one a commit513 added, 859 changed, 37 deleted
Memories that misled at least once25: curation checks that each was fixed
Memories irrelevant two or more times29: curation proposes a better trigger for each

The agent itself records whether a recalled memory held, was irrelevant or misled, at the end of each task.

Behaviour and speed

MeasureResultHow
Trust warningsNamed a stale memory's age: 100% with the trust lines, 0% without. With a weakly backed memory, based the decision on evidence in the repository: 80% with, 0% without; without the lines it followed the memory as a rule every timeHeadless agent runs on fresh copies, the current build against one without the trust lines; 5 runs per case and build
Contradicting evidenceA likely memory (validity 0.6): followed, with the contradiction named, 100%. An uncertain memory (0.5): put to the user as a question, 100%Headless agent runs on fresh copies; the code contradicted the memory; 5 runs per level
Parallel saves112 of 112 committed, no warning, clean repository28 memory and journal saves sent to one identity at the same moment, four rounds
Recall indexabout 4 msServer side, on a store of 593 memories (2.6 MB)
Memory graphabout 120 msSame store
Report listabout 21 ms198 reports
One hook callabout 0.05 sPython start-up and the call to the running server

What it looks like

Status: what works, what is planned

Version 0.5.0: early software. Until 1.0, the API, the CLI and the file formats may change from one version to the next.

Works today

The runtime

Layered memory with recall and scoring, saving through the agent, curation, migration, the journal and session reports, several identities, the Claude Code plugin, the MCP layer and the app.

Platform

macOS daily, Linux tested

macOS, in daily use. Linux tested in a Debian container: the server, the app window and real Claude Code sessions through the plugin; not yet on a Linux desktop. WSL2 and native Windows not tried yet.

Concept

Self Journey

Looking across sessions for an identity's longer-term development.

Requirements

Ownpast runs from a clone of the repository today: build the UI, start the server and connect Claude Code from your project folder. The steps are in Getting started in the README ›

Security and privacy

Local only

The server listens on 127.0.0.1, and every memory, journal and report is a file on your machine. It calls no outside service and never pushes a Git repository. The one outside request is the app loading its fonts from Google Fonts.

One token per identity

An identity's token reads and writes only that identity's folder. The admin token sees every identity but names none, so it cannot write anyone's memory or journal.

Tokens stay out of the memory

The server checks a SHA-256 digest of each token. Tokens are kept in the state folder, never in an identity's Git repository.

Private files

Memory files are readable only by you (folders 700, files 600).

Frequently asked questions

What is an AI Identity Runtime?

A system that keeps the persistent memory, history and context an AI agent needs to stay the same identity across sessions. Ownpast is one: it holds the identity's memory, journal and reports, and puts the relevant part in front of the agent when a session starts and when a task calls for it.

Is it an AI model?

No. Ownpast is not a language model and runs no model. It provides the identity, memory and session lifecycle around an AI agent that runs on a model of its own.

Does it work with different AI models?

Ownpast keeps the identity apart from the model: nothing in it depends on which model the agent runs on. It connects to Claude Code through its plugin and to other agents through its MCP server; which models those clients can use depends on the client.

Does it store data in the cloud?

No. Memories, journals and reports stay on your machine, in plain files and local Git repositories, and the server calls no outside service; the app only loads its fonts from Google Fonts.

Does it support MCP?

Yes. Its MCP (Model Context Protocol) server over stdio offers the memory, journal and report calls as tools. Without the Claude Code plugin's hooks, recall is not enforced; the tool descriptions explain the steps.

Does it replace Claude Code's own memory?

For the agent that works through Ownpast, yes: a hook declines writes into Claude Code's auto-memory and points the agent to Ownpast, and recall goes through Ownpast. Your CLAUDE.md files keep working. It can also run next to your current setup, in a separate Claude Code config.

Can I bring my existing memory in?

Yes. The migration reads a memory store, a personal memory folder, Claude Code's auto-memory and a subagent's memory, and imports the groups you choose. It never changes the sources.

Which operating systems are supported?

macOS, which is where it is used every day. Linux has been tested in a Debian container, with the server, the app window and real Claude Code sessions, but not yet on a Linux desktop. WSL2 and native Windows have groundwork in the code and have not been tried yet.

What license does it use?

Version 0.2.0 and later, including 0.5.0, are licensed under the Business Source License 1.1, which makes the code source-available, not open source. Release 0.1.0 remains under the Apache License 2.0.