Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

core-memory

Latest version: v2.2.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: JohnnyFiv3r
26 Stars
3 Forks
5 Versions
646 Downloads
Rust Repo language

Scan summary

core-memory was last scanned on 28 Nov 2026 at version 2.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest 2 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 2.2.0.
  • Downloads: 646 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.2.0 LATEST 28 Nov 2026 No rules fired
2.1.0 23 Nov 2026 No rules fired
2.0.1 20 Nov 2026 No rules fired
2.0.0 20 Nov 2026 Not shown
1.1.2 26 Oct 2026 Not shown

No rules fired in 2.2.0

Findings

Findings for v2.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Core Memory

Give your AI agents memory that keeps the record straight. Core Memory 2 is a self-hosted memory engine, rewritten from the ground up in Rust. It turns any stream of source events into durable, auditable memory in PostgreSQL: chat messages, documents, CRM record changes and an agent's tool calls. Run it as a command, as an HTTP service, or inside your own database.

Most memory layers summarize what they are given and keep the summary. Core Memory keeps the original. The full text of every event is the memory. What models add is structure on top of that text, never a rewrite in its place.

Keep every event, exactly: Each event is admitted with its exact bytes and a stable identity, cut into deterministic chunks, and committed in one transaction. Offer it again and the answer is replay, never a duplicate.

Read by the model you choose: A model gives each chunk a type from your vocabulary and marks where its entities, actions and outcomes are, as ranges of the chunk's own text. Nothing the model writes is stored in place of the source.

Related by a judge: A judge model says how each new memory relates to the ones near it in time, and to the ones its source names: what caused what, what replaced what, and what cannot both hold. It answers in the arrows of Mark Burgess's Semantic Spacetime. A replacement is written only after a second read gives it again, and a contradiction keeps both sides.

Recall what still holds: recall returns the stored text that holds your words, verbatim. With it comes what replaced that text, what disputes it and what the judge's arrows lead to. All of it comes from the same tables, with no second store. Add an embedding model, from any provider or on your own machine, and recall also finds what answers a question in other words; each match says which search found it.


Quick Start

Install the command. Each wheel carries the compiled engine for Linux or macOS, so no Rust toolchain is needed:

uv tool install core-memory     # or: pipx install core-memory
core-memory --version           # core-memory 2.2.0

Start PostgreSQL 15 or newer:

docker run -d --name core-memory-pg -e POSTGRES_PASSWORD=secret \
    -p 127.0.0.1:5432:5432 postgres:18
export CORE_MEMORY_DATABASE_URL=postgresql://postgres:secret@127.0.0.1:5432/postgres

Store the example events and recall from them:

git clone https://github.com/JohnnyFiv3r/Core-Memory
cd Core-Memory/examples/quickstart

core-memory migrate                            # create the core_memory schema
core-memory scope add acme --workspace demo    # allow events for scope "acme"
core-memory ingest --input events.jsonl        # one typed outcome per event
core-memory recall phased cutover              # the stored text that holds those words

That stores four events: two Slack messages, a Salesforce opportunity and a planning doc. The recall returns the two that mention the phased cutover, word for word.

To have a model read what is stored, add a [reader] and a [[binding]] to core-memory.toml. Then let the scope send its text to that model:

core-memory scope allow acme --binding small   # consent, for this scope and this model's host
core-memory read run                           # read what is due now, then stop

See the full guide for:

  • the HTTP service;
  • model providers, including your ChatGPT plan;
  • tool calls, the judge, recall and erasure;
  • running the engine inside your own database.

Features

Verbatim memory: The full chunk text is the memory. The engine writes no summaries, gists or framing text in its place. What a model reads in a chunk is stored as a type and as byte ranges of the chunk itself. The one exception is a tool call: beside its full text, the engine keeps two short lines a model wrote about it.

Stable identity: An event is known by its scope, source, external ID and revision, never by its position or ingest order. Event and chunk IDs are derived from that key under each workspace's secret key, so they are the same on every replay and reveal nothing about what they name.

Typed outcomes, never guesses: Every event gets one of accepted, replay, identity_conflict, checkpoint_conflict, refused or busy. Input that could be read two ways is refused, not interpreted. busy means keep the event and send it again.

Consent before any model call: A scope's text goes to a model only after that scope allows the model's destination. Every call is permitted in the same transaction that reads the text, and held to the binding's daily budget if it has one. Its receipt is committed before anything is sent.

Models you choose: Anthropic, OpenAI, OpenAI-compatible servers such as a local model, or OpenAI's models on your own ChatGPT Plus or Pro plan. Any of them can be the reader, the tool reader or the judge.

Tool calls as memory: An agent's tool call is stored whole. Before a model reads it, fixed rules shorten it. The model writes two short lines about it: what the call did and what came of it.

Judged, never inferred: No relationship is made from similarity, chronology or shared keys alone. Code only chooses what the judge is shown, and it chooses by time and by what a source names. Every pair the judge sees gets a verdict, and "cannot tell" is never a no.

Recall with provenance: Every match comes back with its event key and its time, and says where that time came from. It also says whether the match is still current and whether another statement disputes it.

Erasure that reaches everything: Erasing a message removes its text and everything derived from it, in one transaction. Its ID stays as a tombstone, and the erasure is written to a journal.

Built to live in your database: The engine uses one PostgreSQL schema. Row security is on for every table, and the engine's own role is least-privilege. Hosts govern it through SQL functions. Rows commit in a fixed order, so a reader that pages through them never misses one.

Authenticated HTTP service: Per-token scope grants, readiness and health checks, and an OpenAPI 3.1 document.

Export everything: Events, chunks, reads, tool outcomes, verdicts, edges, name links and erasures, as core_memory.record.v2 JSON Lines.

Measured with live models: 104 messages were written to mislead a reader or a judge. Over three runs, the reader got 193 of 201 answers right and the judge 86 to 87 of 87. See the evaluations.


Supported Providers and Hosts

Model providers

Provider provider Paid with Guide
Anthropic anthropic An API key Reading with a model
OpenAI openai An API key Reading with a model
OpenAI-compatible servers (a local model, a gateway) openai-compatible Your own server Reading with a model
OpenAI on your ChatGPT plan openai-chatgpt Your Plus or Pro plan Using your ChatGPT plan

Ways to run it

Host How Guide
Command line core-memory ingest, read run, recall, erase and export Try it
HTTP service core-memory serve: POST /v1/events, POST /v1/recall, GET /v1/openapi.json Over HTTP
Inside your own PostgreSQL The engine owns one core_memory schema. Your system governs it through SQL functions and reads its tables, or two read views, through grants and policies of its own, with no copy to keep in step. Running inside another system's database

flowchart LR
    S[Source events] --> A[Admit<br/>identity, chunks, facets]
    A --> P[(PostgreSQL<br/>core_memory)]
    P --> R[Reader<br/>type and spans]
    P --> T[Tool reader<br/>action and outcome]
    P --> J[Judge<br/>arrows between memories]
    R --> P
    T --> P
    J --> P
    P --> Q[Recall and export]

How It Works

Core Memory keeps its writes deterministic and puts every model call behind a gate. Each event follows the same path:

Admit: An event arrives from the command, the HTTP service or a reader that tails a source. The engine checks its identity before cutting it into chunks, so a change to the chunker never looks like a conflict. It then cuts the text into chunks that reproduce it byte for byte and attaches deterministic facets. The event, its chunks, their text and its beads commit in one transaction, and only while the scope is active.

Read: With a reader configured, each chunk is queued for a model. The model picks one type from your vocabulary, or abstains and says why. It also quotes the chunk's entities, actions and outcomes. Each quote is kept only as the byte range where it was found, so a quote that is not in the chunk is dropped. With a tool reader configured, each tool call goes to a model that writes what the call did and what came of it.

Judge: With a judge configured, each new memory is shown beside the memories near it in time, from every scope of the workspace that allows it, and beside the ones its source names as what it replies to, belongs under or is a revision of, however long ago they were. The judge answers each pair with an arrow, with none, or with "cannot tell". A memory stays current until a later statement replaces or withdraws it. Such a chain never branches, and a contradiction ends neither side. Finding related pairs across the whole store, beyond what the judge reads in time order, is a host's work and not the engine's: memoriesQL does it.

Recall: Recall uses PostgreSQL's full-text search over the stored text and makes no model call. A match that was replaced is answered by its successor. Disputed statements are marked, and the judge's arrows are followed up to two steps.

Erase: Erasing removes a message's text and everything derived from it in one transaction. The message's ID stays as a tombstone, so links to it never dangle and the same message is refused if it is offered again.

Core Concepts

SourceEvent One thing a source said or changed: a message, a document revision, a record change or a tool call. It is known by (scope, source_ns, external_id, revision) and stored with its exact bytes.

Scope and Workspace A scope is one connection to one source, such as one Slack workspace or one agent harness. Events are admitted only for a scope that is enrolled and active. A workspace is a set of scopes that belong together. Its secret key is what event and chunk IDs are derived from.

Chunk and Bead A chunk is a deterministic piece of an event's text, and the chunks of an event concatenate back to it exactly. A bead is a unit of memory: a chunk, a tool call as a whole, or a group the judge made of memories that are parts of one.

Destination and Consent A destination is where a model call sends text, taken from the binding's endpoint and never written by hand. A binding paid by one person's ChatGPT plan is a destination of its own. Consent is given per scope and per destination, and only through a governance function.

Permit and Receipt Every model call is permitted first. The permit checks that the scope is active and has allowed the destination, and that the day's budget is not spent. It then reads the text and commits a receipt naming the destination and what was sent. A refusal sends nothing. Receipts, queues and logs hold IDs, counts and problem codes, never text.

Verdict, Edge and Arrow A verdict is recorded for every pair the judge was shown, whatever it said. An edge records an arrow from one memory to another. Arrows come from a fixed directory of four types: leadsto, contains, express and near. Edges have no weight and are never changed.

Learn more in the architecture docs.


Recall Example

Request

core-memory recall phased cutover

Or over HTTP, with a token that may recall from the scope:

curl -s localhost:7600/v1/recall -H "Authorization: Bearer $TOKEN" \
    -d '{"query": "phased cutover", "scopes": ["acme"]}'

Response

This is the real answer for the Quick Start's events. The IDs are the ones the engine derived for them.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases core-memory

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229