Skip to main content

Reusable memory runtime for AI agents

Project description

agent-memory

CI npm License: MIT

Local-first memory for AI agents.

agent-memory gives CLI agents a small SQLite-backed memory layer for storing approved facts, procedures, and other durable context locally. The default setup keeps your memory database on your machine at ~/.agent-memory/memory.db.

Install

Recommended npm install:

npm install -g @cafitac/agent-memory

Initialize the local database and check that the CLI works:

agent-memory bootstrap
agent-memory doctor

That is enough for the default local setup.

One-shot usage without global install

If you do not want to install globally, run the CLI through npm:

npm exec --yes --package @cafitac/agent-memory -- agent-memory doctor

Basic example

DB=~/.agent-memory/memory.db

agent-memory init "$DB"
agent-memory create-fact "$DB" "agent-memory" "install" "npm install -g @cafitac/agent-memory" "user:default"
agent-memory approve-fact "$DB" 1
agent-memory retrieve "$DB" "How do I install agent-memory?" --preferred-scope user:default

Normal retrieval uses approved memories by default. Candidate or disputed memories stay out of normal prompt context unless you explicitly review or request them.

Hermes integration

For Hermes users, bootstrap creates or updates the local Hermes hook config so Hermes can retrieve bounded memory context before model calls:

agent-memory bootstrap
hermes hooks doctor

Existing Hermes hooks are preserved when possible.

Local-first privacy model

By default, agent-memory stores data in your local SQLite database. It is not a hosted service and does not upload your memory database for you.

Be careful when sharing:

  • ~/.agent-memory/memory.db
  • backup bundles
  • exported graph/report files
  • dogfood or debug artifacts

More docs

License

MIT

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cafitac_agent_memory-0.1.156.tar.gz (230.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cafitac_agent_memory-0.1.156-py3-none-any.whl (143.7 kB view details)

Uploaded Python 3

File details

Details for the file cafitac_agent_memory-0.1.156.tar.gz.

File metadata

  • Download URL: cafitac_agent_memory-0.1.156.tar.gz
  • Upload date:
  • Size: 230.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cafitac_agent_memory-0.1.156.tar.gz
Algorithm Hash digest
SHA256 1be66835ee735d1b89f2c6cbfb0044b39cc00f5a5906019fcf34bdaa9163a5ae
MD5 a972378268a8a423e607b62d0c3f3546
BLAKE2b-256 b754d66760f883a6532154c73b47bdf34ed2d33c592ec8dd9e5a076b7b5d26e4

See more details on using hashes here.

File details

Details for the file cafitac_agent_memory-0.1.156-py3-none-any.whl.

File metadata

File hashes

Hashes for cafitac_agent_memory-0.1.156-py3-none-any.whl
Algorithm Hash digest
SHA256 152cf1d7b781eaf0ea1a8ebfde7e0e27ba2ae6dcada90372192ebb1b07b2ee9b
MD5 83ac49868f44cc7fa2843c9624c6d1b8
BLAKE2b-256 0212fbdea1d97efd7f55ed79c55c0b1ed085d5952e26c2413c4fce7433477cba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page