mem-forever — плагин для Claude Code: память между сессиями
Хранит ваши предпочтения и решения в .ilang/ внутри приватного репозитория, чтобы каждая новая сессия начиналась не с нуля.
/plugin marketplace add anthropics/claude-plugins-community
/plugin install mem-forever@claude-communityЧто делает mem-forever
Плагин добавляет агенту постоянную память. Разговор превращается в два файла: soul.md с поведенческим профилем и memory.md с журналом решений и выводов. Оба лежат в .ilang/ и обновляются автоматически, вам их писать не нужно.
Память хранится как текстовые структуры iLang. Их можно читать глазами, сравнивать через git diff и переносить между инструментами — привязки к конкретному вендору нет. Схема простая: создаёте приватный репозиторий из шаблона, открываете его любым ИИ-инструментом, отвечаете на несколько вопросов. Дальше профиль уточняется сам, по правилам мутации и затухания.
Понадобится личный GitHub-репозиторий, и лучше сразу приватный: в soul.md попадают ваши рабочие привычки. При работе над другим проектом контекст возвращается одной фразой — с адресом репозитория и токеном доступа. Для нескольких проектов шаблон разворачивают повторно, каждый репозиторий становится отдельной памятью.
Какие задачи решает
- восстановить рабочий контекст после смены сессии или модели
- зафиксировать предпочтения по стилю ответов и не повторять их каждый раз
- вести журнал принятых решений и извлечённых уроков
- перенести накопленную память между разными ИИ-инструментами
- держать личные данные в своём репозитории без стороннего сервера
Примеры запросов агенту
- Мой репозиторий памяти лежит по адресу
https://github.com/YOU/mem-forever, токенghp_xxx. Склонируй его, прочитай.ilang/soul.mdи.ilang/memory.md, потом вернись сюда. - Запиши в память, что я предпочитаю вывод без лишних пояснений.
- Обнови
soul.mdпо итогам этой сессии.
Как установить mem-forever
Через маркетплейс плагинов
/plugin marketplace add anthropics/claude-plugins-community/plugin install mem-forever@claude-communityПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о mem-forever
Как установить mem-forever в Claude Code?
Сначала добавьте маркетплейс: /plugin marketplace add anthropics/claude-plugins-community. Затем установите плагин: /plugin install mem-forever@claude-community.
Что делает mem-forever?
Ведёт постоянную память агента в файлах .ilang/soul.md и .ilang/memory.md. Профиль собирается из разговора, журнал решений дописывается по ходу работы.
Где хранятся данные?
В вашем приватном GitHub-репозитории, созданном из шаблона. Сервера и аккаунта у плагина нет.
Исходный текст
SKILL.md · MIT
---
license: mit
language:
- en
- zh
- ja
- ko
- es
- fr
- de
- pt
- ru
tags:
- i-lang
- ai-memory
- agent
- cross-tool
- persistent-memory
pretty_name: Mem-Forever
---
# Mem-Forever
> **永久记忆 · 跨会话 · 跨模型**
> A persistent memory layer for AI agents, built on the iLang protocol.
>
> iLang is the first protocol to formally map Greek mathematical symbols (Σ, Δ, φ, λ, Ω, ∇, μ, Π, ψ, ξ, ζ, θ, ∂) as primitive verbs for AI-to-AI communication, and the first to define a computable vector space for AI judgment (11 dimensions, 4 axioms, fuzzy-mathematical foundation).
[](LICENSE)
[](https://ilang.ai)
[](https://github.com/ilang-ai/ilang-spec)
[]()
[](https://doi.org/10.5281/zenodo.22865160)
[中文](docs/README.zh.md) | [日本語](docs/README.ja.md) | [한국어](docs/README.ko.md) | [Español](docs/README.es.md) | [Français](docs/README.fr.md) | [Deutsch](docs/README.de.md) | [Português](docs/README.pt.md) | [Русский](docs/README.ru.md)
---
## Abstract
Every AI tool forgets you after every session. You close a window, and your preferences, decisions, and lessons vanish. Next session, you start from zero.
**Mem-Forever** is a Git-native memory layer that lets any AI agent remember you permanently. Memories are stored as compact iLang structures in your own private repo, readable by humans, parseable by machines, and portable across every tool.
Where context windows forget, **Mem-Forever endures**.
---
## Why
| | |
|---|---|
| **Persistent** | One memory, surviving every session and every model swap. |
| **Portable** | Plain-text iLang shards in `.ilang/`. `git diff`-able, no vendor lock-in. |
| **Automatic** | AI builds your profile from conversation. You never fill a form. |
| **Private** | Your repo, your data. No server, no account, no telemetry. |
---
## Quick Look
```
.ilang/
soul.md ← who you are (auto-generated from conversation)
memory.md ← what you decided, learned, built (auto-appended)
```
```ilang
::DNA{user}
::CORE{
::CONTEXT{role:fullstack_dev|experience:10yr}
::GENE{style|conf:confirmed}
T:conclusions_first
T:minimal_output|when:simple
A:verbose_without_signal⇒waste
}
::LESSONS{
::LESSON{id:serverless_no_shared_state|conf:confirmed}
}
```
Every preference is **addressable**, **scoped**, **versioned**, and **falsifiable**.
---
## Setup (seconds)
**Step 1**   Click **"Use this template"** → **Create a new repository** → Set to **Private**.
**Step 2**   There is no step 2.
Open the repo with any AI tool. It reads the instruction files, asks you a few questions, builds your profile. From that point on, it remembers.
---
## Works With Everything
| Tool | Auto-reads | How |
|---|---|---|
| Claude Code | `CLAUDE.md` | Open repo, start working |
| Cursor | `.cursorrules` | Open repo, start working |
| Codex | `AGENTS.md` | Open repo, start working |
| Copilot | `.github/copilot-instructions.md` | Open repo, start working |
| Gemini CLI | `GEMINI.md` | Open repo, start working |
| ChatGPT | Project knowledge | Upload `soul.md` |
| Claude.ai | Project knowledge | Upload `soul.md` |
| Gemini web | Google Drive | Sync `soul.md` to Drive |
### Working on a different project?
One sentence restores full context:
> *My memory repo is at `https://github.com/YOU/mem-forever`. PAT: `ghp_xxx`. Clone it, read `.ilang/soul.md` and `.ilang/memory.md`, then come back here.*
### Multiple projects?
Use this template again. `mem-forever-work`, `mem-forever-research`, `mem-forever-client-x`. Each repo is an independent memory. Same engine, different context.
---
## How It Works
```
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ You talk │────▶│ AI reads │────▶│ AI updates │
│ to any AI │ │ .ilang/ │ │ .ilang/ │
│ tool │ │ soul.md │ │ memory.md │
│ │ │ memory.md │ │ soul.md │
└─────────────┘ └──────────────┘ └──────┬──────┘
│
git commit
git push
│
┌──────▼──────┐
│ Your private │
│ GitHub repo │
└─────────────┘
```
**soul.md** is your behavioral profile. Built from conversation, sharpened every session through mutation and decay rules. Think of it as DNA that travels with you.
**memory.md** is your logbook. Decisions, lessons, facts, progress. Append-only. Git history preserves everything.
You never write these files. Your AI does. You can read, edit, or delete them anytime. They are yours.
---
## Comparison
| | Mem-Forever | Nowledge Mem | Mem0 |
|---|---|---|---|
| Install | Use template | Download app + configure | pip install + API key |
| Config | None | MCP + plugins + LLM | SDK integration |
| Storage | Your GitHub repo | Local SQLite | Cloud vectors |
| Cross-tool | Any tool that reads files | Plugin per tool | API per tool |
| Price | Free forever | Free / Pro | Free / Pro |
| Data ownership | You | You | Theirs |
| Migration | `git clone` | Export | API call |
---
## Under the Hood
The instruction files contain behavioral rules written in [iLang v4.0](https://ilang.ai), a structured protocol tested across ChatGPT, Claude, Gemini, DeepSeek, Kimi, Qwen and GLM. These rules tell the AI how to extract preferences, format memories, handle conflicts, and evolve your profile over time.
You don't need to know iLang. You just talk to your AI, and it gets better at working with you.
---
## Citation
[CITATION.cff](CITATION.cff); Zenodo archives each release. Concept DOI [10.5281/zenodo.22865160](https://doi.org/10.5281/zenodo.22865160) (all versions).
## License
MIT
---
<sub>Built by <a href="https://ilang.ai">iLang Protocol</a> · The native language of artificial intelligence</sub>
© ilang-ai · MIT · ilang-ai/Mem-Forever