Learning resourcesReviewed · Mem0

Mem0 Development Contribution Guide

Mem0's Development page is an official guide for developers who want to contribute code to Mem0 or install its Python and TypeScript SDKs from source. The main catch is the contribution gate. A code pull request must link an issue that a maintainer has labelled accepted, or it is closed automatically. Documentation-only changes are exempt from that check. Separately, no pull request is merged until the contributor has signed a Contributor License Agreement. The page also covers the hatch and pnpm toolchains, lint, format and test commands, private security reporting and tag-based releases.

Researched 15 Nov 2026

In short.

Mem0's Development page is an official guide for developers who want to contribute code to Mem0 or install its Python and TypeScript SDKs from source. The main catch is the gatekeeping. A code pull request must link an issue that a maintainer has labelled accepted, or it is closed automatically. Documentation-only changes are exempt from that check. Separately, the page says no pull request can be merged until the contributor has signed a Contributor License Agreement. Beyond that, it explains how to install the Python SDK (mem0/) and TypeScript SDK (mem0-ts/) from source. It requires hatch for Python dependency management and pnpm v10 or later for TypeScript, and it lists the lint, format, test and type-check commands. It directs security reports to the linked Security Policy for private vulnerability reporting, and says GitHub Actions publishes releases based on tag prefixes (v* for Python, ts-v* for TypeScript). Everything below comes from the page itself. Nothing was run, so the commands are reported as documented, not as verified.

Researched and written by an AI model and checked by a second AI model. How it works

This report covers the complete selected documentation page at [https://docs.mem0.ai/contributing/development], including its full text, code blocks, links, navigation and metadata. Material linked from the page is excluded and was not read: CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, the bug report and feature request issue forms, GitHub's pull request documentation, the Conventional Commits site, the hatch and pnpm sites, and other pages of the documentation site. Other repository material is also outside this evidence. That includes pyproject.toml and the PR template, which the page names without linking; the CLA text, which the page says a bot links on a first PR; the Makefile and GitHub Actions workflows behind the documented make commands and releases, which the page does not link; and any repository licence, which the page neither names nor links. Anything said about this material comes only from what the page itself says. Nothing was executed. The commands, bots and automatic checks are reported as documented, not tested. Python and Node version support, test prerequisites, the cost of running tests and the licence terms are unknown.

The overview

What this resource is

Mem0's Development page is an official guide for developers who want to contribute code to Mem0 or install its Python and TypeScript SDKs from source. It sits in the Community and Support section of the Mem0 documentation site at [https://docs.mem0.ai/contributing/development] and covers contributions to the Mem0 repository at [https://github.com/mem0ai/mem0]. The page describes the repository as a polyglot monorepo containing the Python SDK (mem0/), the TypeScript SDK (mem0-ts/), CLIs, integrations, the self-hosted server and the docs site.

The site describes Mem0 itself as a self-improving memory layer for LLM applications. This page does not explain how Mem0 works. It covers only the contribution process and the development environment.

The page is a rendered documentation page with a Copy page option, an edit link to docs/contributing/development.mdx on the main branch, and a Raise issue link. The guide is a learning resource, not software you install.

Overall assessment

The page is short and concrete, and it follows the order a new contributor would work in: rules first (issue, CLA, PR steps), then source installs, then the environment for each language, then security and releases. It gives exact commands: make install, hatch shell, make install_all, pre-commit install, make lint, make format, make sort, make test, pnpm install, pnpm run build, pnpm run test, pnpm run test:unit and pnpm run typecheck. It states a few hard rules plainly: use hatch rather than pip or conda for dependency management, use pnpm rather than npm or yarn, and use ES module import syntax rather than require().

It is not a full onboarding document. It leaves the complete contributor checklist to CONTRIBUTING.md in the repository root. It gives no architecture overview of the code and no minimum Python or Node versions; the only versioned requirement is pnpm v10 or later. It does not say what the test suites need at run time, such as API keys or running services. It does not say which tool make format runs, and the TypeScript section names Prettier without giving a format command. It also has no licence statement. It is a reliable map of the process, but check the repository files it points to for everything else.

Who it is for

The main audience is developers who want to contribute a bug fix, feature, test or documentation change to Mem0, in either the Python or the TypeScript SDK. The page assumes you know git, GitHub forks and pull requests, shell commands and make. For pull request mechanics it links to GitHub's own documentation.

A second audience is developers who do not want to contribute but want to run unreleased SDK code, for example to try a fix before it ships or to depend on a fork. The Installing from Source section is written for them and says they can skip the full contributor environment.

It is not aimed at people who only want to use Mem0 in an application. The page gives no usage guidance, though the site navigation on the page lists separate quickstart pages. It is also not the place to learn how Mem0's memory algorithm, vector store or LLM integrations work.

What it covers

Contribution rules. Always open an issue before a pull request. Search existing issues, then use the bug report or feature request form. For anything beyond a trivial fix, wait for a maintainer to confirm the approach. Every PR must link its issue with Closes #<issue-number>, and that issue must carry the accepted label; documentation-only changes are exempt. The issue forms ask how you verified the problem and whether AI was involved. The page says the AI question is about how the problem was found and confirmed, not about how the text was written, and that PRs carry a matching disclosure for the code in the diff.

Pull request steps. Fork and clone the repository and create a feature branch (the page's example is feature/my-new-feature). Add tests, documentation, docstrings and runnable examples. Run linting and tests. Commit with Conventional Commits (feat:, fix:, docs:, refactor:, test:), then open a PR against main using the PR template.

Environment setup. Python uses hatch, make targets, ruff linting with a line length of 120, isort with profile black, pytest through make test, and pre-commit hooks that run ruff and isort. TypeScript uses pnpm, tsup for builds (CJS and ESM), jest for tests and Prettier for formatting, with a type check after changes.

Other topics. Security vulnerabilities are reported privately through the repository's Security Policy. For releases, GitHub Actions publishes packages when a GitHub Release is created with the right tag prefix.

Using it

What you need

The page names these requirements: a GitHub account that can fork the repository and open issues and pull requests; git; make; hatch for the Python contributor environment, installed per its official instructions; pre-commit; pnpm v10 or later for the TypeScript packages; and a signed Contributor License Agreement before any PR can be merged.

For the editable Python install from source, the page uses pip install -e . and mentions optional extras such as .[vector-stores], with the full list in pyproject.toml. For the TypeScript build it uses pnpm install and pnpm run build inside mem0-ts.

The page does not state supported Python or Node versions, supported operating systems, or whether the tests need network access, API keys for LLM or vector-store providers, or running services such as a database. It mentions a dev_py_3_11 hatch environment and says the differences are documented in pyproject.toml, which is not part of this page. These requirements are unknown from this evidence.

How the process works

The workflow has several gates, and the page describes automation at some of them. First is the issue gate for code changes. A code pull request that does not link an issue carrying the accepted label is closed automatically, with instructions to reopen once the label is applied. Documentation-only changes are exempt from that check. The page says the check reruns on reopen and that getting the label and reopening takes about a minute. Second is the CLA gate. It is separate from the issue check, and the page applies it to every merge with no exemption stated. When you open your first PR, a CLA bot comments with a signing link. You sign once, and no pull request is merged until you have signed. Third are the local quality checks. Pre-commit hooks run ruff and isort, and make lint, make format, make sort and make test cover linting, formatting, import sorting and tests. On the TypeScript side, pnpm run test runs all tests, pnpm run test:unit runs unit tests with coverage, and pnpm run typecheck (or tsc --noEmit) checks types.

For Python dependencies, the page gives this order: make install for base dependencies, then hatch shell (or hatch -e dev_py_3_11 shell) to activate the environment, then make install_all for all optional dependencies. It explains that some dependencies were removed from the main set to reduce package size, which is why make install_all is needed before running tests. It does not say how those make targets are implemented, and the Makefile is not part of this page.

For releases, the page says GitHub Actions publishes packages when a GitHub Release is created with the correct tag prefix: v* for the Python SDK and ts-v* for the TypeScript SDK. The full tag-prefix table is in CONTRIBUTING.md, outside this page.

Setup steps as documented

To run unreleased SDK code without contributing, the page gives two routes. For Python, clone the repository, change into mem0 and run pip install -e . for an editable install, so edits under mem0/ take effect without reinstalling. For TypeScript, clone the repository, change into mem0/mem0-ts, and run pnpm install and pnpm run build. This produces mem0-ts/dist with CJS and ESM output. To use the build in another local project, add it as a file: dependency pointing at mem0-ts, or run pnpm link --global inside mem0-ts and pnpm link --global mem0ai in the consuming project.

To set up the full Python contributor environment, install hatch, then run make install, activate a hatch shell, run make install_all and run pre-commit install. The page says not to use pip or conda for dependency management in this environment. For TypeScript, work inside mem0-ts with pnpm only, not npm or yarn.

These steps come from the page and were not executed, so whether they work on a given machine is not assessed.

Worked example from the page

A typical Python contribution, put together from the page's own steps and not run, looks like this. Search the existing issues, open a bug report or feature request, and wait for a maintainer to apply the accepted label. Fork the repository at [https://github.com/mem0ai/mem0] on GitHub, then clone your own fork and change into its root directory before running any make commands. Create a branch such as feature/my-new-feature. Run make install, activate the environment with hatch shell, run make install_all, and run pre-commit install. Make the change with tests, docstrings and a runnable example. Run make lint, make format, make sort and make test. Commit with a Conventional Commits message such as fix: .... Open a PR against main that includes Closes #<issue-number> and fills out the PR template. Sign the CLA when the bot comments.

A TypeScript contribution follows the same rules. From the root of your fork, change into mem0-ts, then run pnpm install and pnpm run build. The page lists two separate test commands: pnpm run test runs all tests with jest, and pnpm run test:unit runs the unit tests with coverage. After changes, run the type check with pnpm run typecheck. New code should use ES module import syntax and never require().

According to the page, a documentation-only change is exempt from the accepted-issue requirement. The steps for contributing documentation are on a separate page that is not covered here.

Assessment & evidence

Limitations and catches

The main catch is process friction. A code pull request that does not link an issue labelled accepted is closed automatically. Documentation-only changes are exempt from that check. The page says closure is not rejection and that getting the label and reopening takes about a minute. It does not say whether maintainers review pull requests while they are closed, or how quickly maintainers respond to issues or pull requests.

The tooling rules are strict and differ by language: hatch rather than pip or conda for Python dependency management, and pnpm rather than npm or yarn for TypeScript. The page also shows pip install -e . for source installs, presenting it as the lightweight path for users who are not setting up the contributor environment.

The page has gaps. It gives no supported-version matrix for Python or Node and does not describe what the tests need at run time. It does not say which tool make format uses, and it gives no TypeScript format or lint command, no guidance on running a single test and no explanation of the code layout. It also leaves the complete checklist, the release tag table and the security policy to files that are not part of this page. Finally, the commands were not executed, so whether they work is unverified.

Why this reading

This reading rests on what the page documents directly. That includes its contribution rules: issue first, the accepted label for code pull requests, the documentation-only exemption, a signed CLA before any merge, Conventional Commits, and pull requests against main. It also includes the setup and quality commands for the Python and TypeScript SDKs and the release tag prefixes. Two points are interpretations rather than direct statements. The order of the Python steps suggests make install_all runs inside the activated hatch shell. The rule against pip and conda is read as applying to the contributor environment, because the same page presents pip install -e . as the lightweight route for source installs.

Several things remain unverified. The contents of the files the page links to are not covered: CONTRIBUTING.md, the Code of Conduct, the Security Policy and the bug report and feature request forms. Nor are the PR template and pyproject.toml, which the page names without linking, the CLA text, which the page says a bot supplies, or the Makefile behind its make commands, which the page does not link. It is also unverified whether the documented commands succeed, whether the automatic issue check and the CLA bot behave as described, and whether releases are actually published from the stated tag prefixes. The page offers no evidence on review speed, test duration, test coverage, code quality or how actively the project is maintained, so none of those is assessed.

Alternatives and related material

The page itself points to the closest related material: CONTRIBUTING.md in the repository root for the complete checklist and release tag table, the Code of Conduct, the Security Policy, and GitHub's general documentation on creating pull requests. The site navigation also lists a Documentation contributing page and a Contribution Hub. These are only named on the page and in its navigation; their contents are not covered here.

For using Mem0 rather than changing it, the page contrasts installing from source with the published mem0ai package, and the site navigation links separate Python and Node quickstart pages whose contents are unknown here. The page's examples of when to install from source are trying a fix before it ships and depending on a fork. For general guidance on forks and pull requests, the GitHub documentation linked from the page is a neutral reference.

Evidence base

The evidence is the single documentation page at [https://docs.mem0.ai/contributing/development], including its full text, headings, code blocks, links, navigation and page metadata. Statements about rules, commands, tools and release tags come from that text. The page documents the contribution rules and the setup and quality commands. It links to, but does not reproduce, CONTRIBUTING.md, the Code of Conduct, the Security Policy and the bug report and feature request issue forms. It names pyproject.toml and a PR template without linking them, and it says a CLA bot supplies the signing link on a first PR, but the CLA text is not on the page. It documents make commands and GitHub Actions releases without linking the Makefile or workflow files behind them. It neither names nor links a repository licence. The contents of all of this material are not part of this evidence. Nothing on the page was executed, so it is unverified whether the commands, the automatic issue check, the CLA bot and the release automation work as described.

Access & freshness

Costs

The page states no price, fee or subscription for contributing, and it does not say whether any step costs money. The tools it names (git, make, hatch, pre-commit, pnpm, ruff, isort, jest, tsup, Prettier) are not priced on the page. It also does not say whether running the test suites calls paid third-party LLM, embedding or vector-store services, so any such cost is unknown. The site navigation shows a Your Dashboard link to a hosted Mem0 platform. The page gives no pricing for it and does not say whether a hosted account is needed for any tests or SDK operations. Account requirements and any related costs are therefore unknown.

Rights and licensing

The page does not state the licence of the Mem0 code or of the documentation, and it has no copyright notice. It neither names nor links a repository licence. The licence is therefore unknown from this evidence; you would need to check the repository itself for licence terms.

What the page does establish is the contributor side. No pull request is merged until a Contributor License Agreement is signed, once per contributor, through a link the bot provides. The CLA terms are not shown on the page, so the rights contributors grant are unknown. Participation is also governed by a Code of Conduct linked from the page, and security vulnerabilities must be reported privately by following the linked Security Policy. The page invites suggested edits to the documentation through GitHub.

Freshness

The page metadata gives a last-modified time of 2026-08-20T09:54:28.964Z. The page was captured on 2026-11-15, about three months later. Any later edits to the page, or to the repository's Makefile, pyproject.toml, workflows and CONTRIBUTING.md, are unknown. The page has no version number of its own, and pnpm v10 or later is its only versioned requirement. Process details such as the accepted-label rule, the CLA bot and the tag prefixes may change, so check the live page and CONTRIBUTING.md before relying on them.

Suggested next steps

If you plan to contribute code, read CONTRIBUTING.md and the Code of Conduct first. Search existing issues, then open a bug report or feature request that shows what you ran and the real output. Wait for the accepted label before writing a large change. A code pull request must link an issue labelled accepted, using Closes #<issue-number>, or it will be closed automatically; documentation-only changes are exempt from that check. Separately, every pull request needs a signed CLA before it can be merged. Sign it when the bot asks on your first PR, but read the terms first, since they are not shown on this page. Set up hatch (Python) or pnpm v10 or later (TypeScript), and run the lint, format, test and type-check commands before opening a PR against main.

If you only want unreleased code, use the editable pip install or the pnpm build route and skip the contributor environment. Before depending on it, check the repository for the licence and for the Python and Node versions the project supports, since neither is on this page. Report security problems privately through the Security Policy, never through a public issue or PR.

Evidence for this report

selected-page.htmlselected · checked 2026-11-15