Skip to main content

agemem

PyPI

Experimental coding-project memory: a readable Markdown memory bank, screened SQLite notes, and cited original evidence. Jev is the default decision model. GPU-only QSIV, local ollaya jevk5:4b, and a QSIV → Jev confidence cascade are optional.

The answering agent receives current context, selected durable notes and source excerpts. Decision models screen, classify and select memories; your coding agent writes the final answer. No automatic conversation capture or automatic bank rewriting is installed.

Agemem architecture

Install and use

Requires Git and uv. From your project directory:

uvx --python 3.12 agemem@0.1.0 project init

Or paste this prompt into your coding agent:

Integrate Agemem 0.1.0 into this project using the linked installation and agent-integration guides. Inspect the environment and existing setup first. Ask which clients to configure (Claude Code only, or also Cursor/Codex if detected), whether to use hosted Jev, local GPU QSIV, or the experimental QSIV → Jev cascade, and any installation constraints. Recommend considering the cascade if I have a compatible NVIDIA GPU. Explain QSIV's hardware and download requirements and that cascade fallback uses hosted Jev. Have me supply a Jev key privately through configuration or the environment, never in chat. Run uvx --python 3.12 agemem@0.1.0 project init --model <jev|qsiv> --mcp <selected clients> --no-input with the agreed choices; claude means Claude Code. For cascade, initialize with QSIV and then configure the cascade as described in the local backends guide; it is not a --model option. Preserve existing settings and guidance, resolve conflicts with me, and add the suggested memory workflow to the appropriate agent instructions. Agree on validation, run provider diagnostics and an MCP handshake/tool-list/recall smoke test, and ask before tests that incur hosted API charges. Report what passed, any skipped checks, and required client restart or approval steps.

Setup connects Codex, Cursor or Claude Code and configures hosted Jev or local GPU QSIV. Restart your client and enable the server.

If you have a compatible NVIDIA GPU, consider the experimental confidence cascade: QSIV handles decisions locally and sends low-confidence decisions to hosted Jev. It requires both QSIV setup and a Jev key; fallback can incur API charges. The default cutoff is not a guarantee of correctness, and cascade may be slower.

Give your agent memory instructions

Add the suggested memory workflow to your project’s agent instructions (for example, AGENTS.md for Codex or CLAUDE.md for Claude Code). This tells the agent when to recall, verify, capture and maintain memory; installation does not edit these files.

Claude/Codex lifecycle hooks load local context automatically and are installed by default for those clients. Use --no-hooks to skip installation. Hooks complement the instructions: they supply context, while the instructions guide how the agent uses and updates memory. See the installation guide for details. For development, install from source.

How it works

The default is local BM25 + dense retrieval, combined with bank context and screened notes. An optional retrieval backend adapts RAW-RAG’s token chunking and dense/reranking pipeline. The default incorporates original evidence without depending on RAW-RAG's entire pipeline. RAW-RAG setup includes a validated offline MCP path with local embedding/reranking models and no paid retrieval API.

Project config and bank files are readable; SQLite notes, source snapshots and vectors live under ignored .agemem/local/. Notes are project- and branch-scoped, unless explicitly shared. Source excerpts include provenance; obsolete snapshots require --history. Recall always searches raw sources, even when the note-only sufficiency check succeeds. Its context budget uses regex units, not an exact model tokenizer count.

Recall combines working context, durable notes and original evidence

Indexing applies file selection, size and secret filters. Filters are best-effort: inspect material before calling hosted decisions. Retrieved text is untrusted data. Hosted Jev can receive selected memory/source context during screening and recall; indexing itself makes no hosted calls.

The MCP is the intended product interface; the note engine now incorporates selected MIT-licensed jev-mem code without requiring its package. See implementation boundaries and release direction, configuration, local backends, and the editable PlantUML diagrams.

Evaluation

On 50 author-labeled synthetic typed decisions: Jev 49/50, QSIV 42/50, cascade 49/50. At a fixed 0.90 native confidence cutoff the cascade kept 16 locally and sent 34 to Jev. This is an exploratory decision test, not proof of improved coding-task outcomes. The cascade is slower in this run and remains experimental.

A controlled coding-memory selection evaluation uses the fixtures in evaluation/. The ten final fixtures scored Jev 9/10, QSIV 7/10 and cascade 10/10; QSIV accepted 5/6 unsupported proposed memories. These author-created fixtures do not establish end-to-end coding improvement. See standalone QSIV setup.

Runtime utilities live in agemem/evidence.py. The historical comparison harness has been removed; current evaluation fixtures remain available. Reports and findings are local maintainer artifacts.

See the release checklist and CI/publishing guide.

Attribution

Agemem combines selected work from these projects and providers:

  • jev-mem: adapted MIT-licensed SQLite notes, screening, retrieval and maintenance code; full notice.
  • RAW-RAG: adapted MIT-licensed token-window and dense/reranking retrieval; full notice and adaptation details.
  • QSIV: optional local decision model and runtime, downloaded separately under Apache-2.0 with its original LICENSE and NOTICE.
  • Jev / TypeSafe AI: default hosted decision provider through its separately installed Python SDK; Jev weights and service implementation are not bundled.

See third-party attribution for versions, source hashes, license boundaries and additional credits.

Checks

.venv/bin/python -m unittest discover -s tests_live -q

Metadata

Release files for agemem 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agemem 0.1.0
File Size Uploaded Provenance Actions
agemem-0.1.0.tar.gz 120.7 kB With provenance Details for agemem-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agemem 0.1.0
File Interpreter ABI Platform Actions
agemem-0.1.0-py3-none-any.whl Python 3 none any Details for agemem-0.1.0-py3-none-any.whl

Total release size: 204.5 kB

Release files / agemem-0.1.0.tar.gz

Download URL agemem-0.1.0.tar.gz
Size 120.7 kB
Tags Source
SHA-256 checksum
How to use checksums
59cc06283c5eae42ec2a0d781188e686b14a426c57538aac9e8039a90843f2ab
BLAKE2b-256 checksum
How to use checksums
06c79f3ccbeebf35c6026f82763cfbe806acab3f4d1f680732ae8ebf66768ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / agemem-0.1.0-py3-none-any.whl

Download URL agemem-0.1.0-py3-none-any.whl
Size 83.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fe335732c963b6cbc221229796369ea6f9f6ef42c8bce2d4216a498a7fdb342
BLAKE2b-256 checksum
How to use checksums
23b82e240460f2f9f0c3c13828878ae1d8224f6951ad3d0ed43b3fda99df4dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for agemem 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agemem-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page