agentleFS
mem0aimem0ai/mem0/mem0-ts/AGENTS.md

mem0 / mem0-ts

AGENTS.md67k starsChanged 3 months agoApache-2.0View on GitHub

The mem0ai package on npm. Hosted client plus self-hosted OSS memory. pnpm only. Never npm, never yarn. Run pnpm run typecheck after every change. The method surface mirrors the Python SDK: add, search, get, getAll, update, delete, deleteAll, history. Changing any public signature means updating docs/ in the same PR. Tag prefix ts-v* triggers ts-sdk-cd.yml, which publishes to npm over OIDC. Bump the version in package.json first.

  • Reads credentials
  • Installs packages

Trending

Less talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 2 mentionsFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 21 mentionsJun 2026: 9 mentionsJul 2026: 6 mentionsAug 2026: 4 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 1 mention
Dec 2025Jun 2026Nov 2026
Mentions a month of the mem0ai/mem0 repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about mem0ai/mem0

The biggest 5 of 62 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 62

Talked about on GitHub, Bluesky and Hacker News (62 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 9

4 more on Bluesky

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run pnpm run typecheck after every change.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

TypeScript SDK (mem0-ts/)

The mem0ai package on npm. Hosted client plus self-hosted OSS memory.

Commands

pnpm install
pnpm run build              # tsup (CJS + ESM)
pnpm run test               # jest, all tests
pnpm run test:unit          # jest --coverage
pnpm run test:integration   # jest, needs MEM0_API_KEY
pnpm run test:ci            # jest --coverage --ci
pnpm run test:watch
pnpm run typecheck          # tsc --noEmit

pnpm only. Never npm, never yarn.

Conventions

  • Node 20 and 22 are the CI-tested versions.
  • Build: tsup, dual CJS + ESM output.
  • Formatter: Prettier. No linter is configured here; cli/node/ uses Biome and integrations/vercel-ai-sdk/ uses ESLint, so do not assume a shared setup.
  • Tests: jest. cli/node/ and integrations/openclaw/ use vitest instead.
  • TypeScript strict mode.
  • ES module import syntax only. Never require().
  • Source files are snake_case.ts, tests are <module>.test.ts.

Run pnpm run typecheck after every change.

Layout

mem0-ts/src/
├── client/          MemoryClient (hosted platform)
└── oss/             Memory (self-hosted)
    ├── llms/
    ├── embeddings/
    ├── vector_stores/
    └── graphs/

Public API

ExportPurposeImport
MemoryClientHosted platform clientimport { MemoryClient } from 'mem0ai'
MemorySelf-hosted OSS memoryimport { Memory } from 'mem0ai/oss'
ProvidersOSS building blocksimport { OpenAIEmbedding } from 'mem0ai/oss'

The method surface mirrors the Python SDK: add, search, get, getAll, update, delete, deleteAll, history. Changing any public signature means updating docs/ in the same PR.

Releasing

Tag prefix ts-v* triggers ts-sdk-cd.yml, which publishes to npm over OIDC. Bump the version in package.json first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.