mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-30 00:47:36 +00:00
* feat(integrations): add ZCode memory plugin Package ReMe lifecycle hooks, MCP tools, and the reme-memory skill as an installable ZCode plugin. The hook queues completed turns locally and retries delivery from later sessions so transient service failures do not lose memory. * fix(zcode): resolve pre-commit failures without blocking delivery * fix(zcode): honor disabled memory, keep one prompt copy, document setup Address the review on the ZCode integration: - config.example.json ships an empty api_url so the default single-port deployment is derived from mcp_url instead of pointing at a port the default `reme start` does not open. - remember_prompt writes a single cache record per turn: a payload without a turn ID is read back from latest.json, so the extra hashed copy left plaintext prompt text behind after the turn was delivered. - flush_worker re-reads auto_memory before delivering and leaves pending files untouched when recording was disabled mid-flight; it also uses a worker.rerun marker so a delivery request arriving while another pass holds the lock triggers a rescan instead of being dropped. - README/README_ZH now follow the Qoder guide: dependency install, model credentials, an executable `reme start` with an explicit workspace, platform-specific commands, empty-api_url derivation, the memory_interval example vs default, MCP reconnect after endpoint changes, a health_check/version check before the memory test, and a qualified statement about the async hook field and the detached worker. - Regression tests cover all four behaviors. Co-Authored-By: Claude Code <noreply@anthropic.com> * docs(zcode): state the verified ZCode build Name the build the plugin was verified on and the reason compatibility rests on payload fields rather than a version number. Co-Authored-By: Claude Code <noreply@anthropic.com> * test(zcode): name unused flush_all config with an underscore * fix(zcode): make worker handoff race-safe and honor the recording switch The rerun marker was written only after a failed lock acquisition, so a contender suspended between the failed acquire and the marker write left a queued session and a marker with no worker to process them. The worker now publishes its request before contending for the lock, which leaves exactly two outcomes: the owner sees the marker and scans again, or the lock is free and this worker delivers itself. worker.rerun also dropped force semantics, so a SessionStart force request lost to a Stop owner whose rerun pass then stayed non-forced. A separate, never downgraded worker.force marker keeps the stronger request until the next pass. The auto_memory switch was checked once at worker entry and the snapshot reused for every batch, so disabling recording during a run still submitted later batches. The switch is now rechecked before every network submission and unsent queue files are preserved when it is disabled. Co-Authored-By: Claude Code <noreply@anthropic.com> * fix(zcode): claim worker requests atomically and scope them by endpoint The force marker was read with exists() and removed with unlink(), so a SessionStart contender that published worker.rerun and worker.force while a force=False owner held the lock had its request deleted by a pass that never saw it; the owner then delivered unforced and both markers were gone. Requests are now consumed by one atomic rename that returns whether this pass owns the force request, so a marker published after that step stays on disk for the next pass. worker.lock, worker.rerun and worker.force lived in the shared data directory while the queues are endpoint-scoped. An old-endpoint worker awaiting its acknowledgement therefore blocked a worker for a newly configured endpoint and then consumed its request while rescanning only the old queue. Scheduling state now lives under workers/<endpoint digest>, beside the queue it serves, so each endpoint's request reaches a worker that scans that endpoint. validate_config resolved the default Asia/Shanghai without checking whether an IANA database exists, so a Windows host without tzdata failed with "timezone must be an IANA timezone". Missing timezone data and an invalid key now report different errors, and the setup docs install tzdata on Windows and state what a missing database logs. Co-Authored-By: Claude Code <noreply@anthropic.com> * style(zcode): satisfy pre-commit on the timezone and endpoint tests Add the trailing comma add-trailing-comma expects in the missing-timezone-data error and rename the unused call() argument in the endpoint-switch regression test, so Pre-commit stays green without touching behavior. Co-Authored-By: Claude Code <noreply@anthropic.com> --------- Co-authored-by: Claude Code <noreply@anthropic.com>
473 lines
30 KiB
Markdown
473 lines
30 KiB
Markdown
<p align="center">
|
|
<img src="https://raw.githubusercontent.com/agentscope-ai/ReMe/main/docs/figure/reme_logo.png" alt="ReMe Logo" width="50%">
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://pypi.org/project/reme-ai/"><img src="https://img.shields.io/badge/python-3.11+-blue" alt="Python Version"></a>
|
|
<a href="https://pypi.org/project/reme-ai/"><img src="https://img.shields.io/pypi/v/reme-ai.svg?logo=pypi" alt="PyPI Version"></a>
|
|
<a href="https://pepy.tech/project/reme-ai/"><img src="https://img.shields.io/pypi/dm/reme-ai" alt="PyPI Downloads"></a>
|
|
<a href="https://github.com/agentscope-ai/ReMe"><img src="https://img.shields.io/github/commit-activity/m/agentscope-ai/ReMe?style=flat-square" alt="GitHub commit activity"></a>
|
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-black" alt="License"></a>
|
|
<a href="https://reme.agentscope.io"><img src="https://img.shields.io/badge/docs-ReMe-blue" alt="Documentation"></a>
|
|
<a href="./README.md"><img src="https://img.shields.io/badge/English-Click-yellow" alt="English"></a>
|
|
<a href="./README_ZH.md"><img src="https://img.shields.io/badge/简体中文-点击查看-orange" alt="简体中文"></a>
|
|
<a href="https://github.com/agentscope-ai/ReMe"><img src="https://img.shields.io/github/stars/agentscope-ai/ReMe?style=social" alt="GitHub Stars"></a>
|
|
<a href="https://deepwiki.com/agentscope-ai/ReMe"><img src="https://img.shields.io/badge/DeepWiki-Ask_Devin-navy.svg" alt="DeepWiki"></a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://trendshift.io/repositories/20528" target="_blank"><img src="https://trendshift.io/api/badge/repositories/20528" alt="agentscope-ai%2FReMe | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<strong>A local-first, self-evolving personal knowledge base for AI agents.</strong><br>
|
|
</p>
|
|
|
|
> Previous versions: [0.3.x](https://github.com/agentscope-ai/ReMe/tree/reme_v3) ·
|
|
> [0.2.x](https://github.com/agentscope-ai/ReMe/tree/v0.2.0.6) ·
|
|
> [MemoryScope](https://github.com/agentscope-ai/ReMe/tree/memoryscope_branch)
|
|
|
|
## ✨ Why ReMe?
|
|
|
|
🧠 ReMe turns conversations and resources into readable, editable, searchable, and interconnected Markdown memory. Agents
|
|
such as QwenPaw and DeepSeek Harness can share the same workspace to retrieve, maintain, and evolve knowledge, while
|
|
users retain control of the durable files.
|
|
|
|
The **Proactive Runtime** uses that memory in ongoing tasks. It schedules work from new events or a cron expression, delegates execution to an agent runtime such as Codex, and records results and reminders in the workspace.
|
|
|
|
- **Memory as File, File as Memory**: ReMe stores durable memory as ordinary Markdown with frontmatter and wikilinks.
|
|
Users and agents can inspect, edit, move, sync, and back it up with familiar tools, while indexes and generated
|
|
metadata remain rebuildable.
|
|
- **Self-evolving knowledge base**: ReMe progressively turns conversations and resources into daily notes and long-term
|
|
knowledge, preserving sources while refining facts, preferences, procedures, and relationships over time.
|
|
- **Recall is precise and context-aware.** BM25, optional embeddings, and wikilink expansion retrieve relevant
|
|
line-level passages and their relationships without loading the entire knowledge base into the agent context.
|
|
- **One memory workspace works across agents.** Personal assistants, coding agents, and other agent runtimes can share
|
|
the same local workspace through native integrations, SKILL.md, CLI, HTTP, MCP, or Python APIs.
|
|
|
|
<p align="center">
|
|
<img src="docs/figure/design-philosophy.svg" alt="ReMe Design Philosophy" width="92%">
|
|
</p>
|
|
|
|
## 📰 Latest Updates
|
|
|
|
<!-- Keep at most 5 updates expanded; move older entries into the collapsed section below. -->
|
|
|
|
- [ROADMAP] - **[ReMe5 Preview — Proactive Runtime](docs/en/reme5_preview.md)**. ReMe puts file-native memory at
|
|
the core of its event-driven and scheduled agents. Give ReMe a task to follow, and it will record new developments
|
|
and let you know when your attention is needed. We aim to release ReMe5 **by the end of 2026**. Read the preview
|
|
for the design, development plan, and milestones.
|
|
- [2026.10] - **[Decision-model context compaction](docs/en/context_compaction.md)**: score old tool calls and results
|
|
against the next action, preserve protected history, and return a recoverable compaction proposal. Includes an SVG
|
|
walkthrough, two live-model integration scenarios, and a 14-query fixed-summary Top-N benchmark with a forced Hermes summary baseline.
|
|
- [2026.10] - **[ReMe Multimodal Memory](https://reme.agentscope.io/en/blog_20261009) update**: Auto Memory reads images
|
|
with their conversation context and preserves image sources; Auto Resource turns image files into searchable daily
|
|
cards linked to the originals. With Qwen3.8-Max, ReMe Image scores
|
|
[72.49% on MemLens-256K](benchmark/memlens/docs/en/evaluation.md) and
|
|
[60.69% on MobileMem](benchmark/mobilemem/docs/en/evaluation.md) in LLM-Judge accuracy; the reports also cover Kimi
|
|
and DeepSeek.
|
|
- [2026.09] - **[ReMe Memory Tags](https://reme.agentscope.io/en/blog_20260920) published**: an introduction
|
|
to file-native entity tags, rebuildable tag indexes, and tag-filtered memory search.
|
|
|
|
<details>
|
|
<summary>More updates</summary>
|
|
|
|
- [2026.09] - **[Hermes Agent memory provider](https://reme.agentscope.io/en/integrations/hermes) available**: choose HTTP or embedded
|
|
mode for automatic recall before model calls and asynchronous `auto_memory` after completed turns. The integration
|
|
supports Hermes Agent 0.21+ and includes profile-aware background work.
|
|
|
|
- [2026.09] - **[OpenClaw plugin](https://reme.agentscope.io/en/integrations/openclaw) released**: install it from
|
|
[ClawHub](https://clawhub.ai/agentscope-ai/plugins/reme-openclaw-plugin) or
|
|
[npm](https://www.npmjs.com/package/@agentscope-ai/reme-openclaw-plugin) to add native memory recall, automatic
|
|
conversation capture, and scheduled consolidation to OpenClaw.
|
|
- [2026.09] - **[DeepSeek Harness plugin](https://reme.agentscope.io/en/integrations/dsh) released**: install it from
|
|
[Awesome DSH Plugin](https://awesome-dsh-plugin.com/p/agentscope-ai/ReMe--integrations-dsh/) or
|
|
[npm](https://www.npmjs.com/package/@agentscope-ai/reme-dsh-plugin) for long-term-memory guidance, `reme_search`,
|
|
automatic memory, Auto Dream, and ReMe Status.
|
|
|
|
- [2026.08] - **ReMe blog published**: the [ReMe blog](https://reme.agentscope.io/en/reme-blog) introduces the
|
|
local-first memory architecture, self-evolving workflows, hybrid search, proactive discovery, and benchmark results.
|
|
- [2026.08] - **New ReMe ecosystem plugins**: [Daily Paper](https://reme.agentscope.io/en/plugins/daily-paper)
|
|
discovers and analyzes papers and generates file-native briefs, while
|
|
[Auto Fin](https://reme.agentscope.io/en/plugins/auto-fin) researches the latest 24 hours of topic-related CLS news
|
|
and builds traceable reports with local memory. Try them out.
|
|
- [2026.08] - **Plugin development support released**: use [Plugin Development](https://reme.agentscope.io/en/plugin_development) and
|
|
[Plugin Management](https://reme.agentscope.io/en/plugin_management) to extend ReMe with Components, Steps, and Jobs. Contributions and
|
|
new community plugins are welcome.
|
|
- [2026.08] - ReMe's [experience-driven enhancement method](https://reme.agentscope.io/en/benchmarks/toolmemory) for
|
|
agent tool use is available on [arXiv:2608.03403](https://arxiv.org/abs/2608.03403).
|
|
- [2026.07] - Our
|
|
paper [Remember Me, Refine Me: A Dynamic Procedural Memory Framework for Experience-Driven Agent Evolution](https://aclanthology.org/2026.findings-acl.829/)
|
|
has been accepted to Findings of ACL 2026.
|
|
|
|
</details>
|
|
|
|
## 🚀 Quick Start
|
|
|
|
### Installation
|
|
|
|
ReMe requires Python 3.11+.
|
|
|
|
Install from pip:
|
|
|
|
```bash
|
|
pip install "reme-ai[core]"
|
|
```
|
|
|
|
Install from source:
|
|
|
|
```bash
|
|
git clone https://github.com/agentscope-ai/ReMe.git
|
|
cd ReMe
|
|
pip install -e reme_studio/web/python -e ".[core]"
|
|
cd reme_studio
|
|
npm ci
|
|
npm run build:static
|
|
cd ..
|
|
```
|
|
|
|
The static build requires Node.js 22.13 or newer and makes Studio available from the source tree.
|
|
|
|
Optional decision models use `pip install "reme-ai[core,decision]"`. Configure a TypeSafe API key and run the
|
|
service demo as described in [Decision model configuration](https://reme.agentscope.io/en/configuration#decision-model-configuration).
|
|
|
|
### Docker
|
|
|
|
With Docker and Compose 2.24.0+, build and start ReMe with the bundled Studio:
|
|
|
|
```bash
|
|
mkdir -p .reme
|
|
docker compose up --build -d
|
|
```
|
|
|
|
Open <http://127.0.0.1:2333>. The complete workspace persists in `./.reme`. On Linux, set `REME_UID` and `REME_GID` to your
|
|
user's IDs when they differ from 1000. See [Docker deployment](https://reme.agentscope.io/en/docker) for model credentials,
|
|
custom paths, published images, and upgrades.
|
|
|
|
### Environment Variables
|
|
|
|
Configure environment variables when you want LLM-powered memory evolution or embedding retrieval. Embeddings are
|
|
disabled by default, so the default setup does not start an embedding model or require an embedding API key.
|
|
|
|
```bash
|
|
cat > .env <<'EOF'
|
|
# Optional: used only after embedding components are explicitly enabled in the config.
|
|
# EMBEDDING_API_KEY=sk-xxx
|
|
# EMBEDDING_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
|
|
# Required for auto_memory, auto_resource, auto_dream, and proactive refresh.
|
|
LLM_API_KEY=sk-xxx
|
|
LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
EOF
|
|
```
|
|
|
|
Basic file operations, BM25 search, wikilink traversal, and reading proactive topics can run without LLM credentials.
|
|
|
|
> [!NOTE]
|
|
> To enable embedding-based semantic retrieval, uncomment `components.as_embedding` and
|
|
> `components.embedding_store` in [`reme/config/default.yaml`](reme/config/default.yaml), then change
|
|
> `components.file_store.default.embedding_store` from `""` to `default`. See the
|
|
> [memory search guide](https://reme.agentscope.io/en/memory_search) for details.
|
|
|
|
### Start the Service
|
|
|
|
Start ReMe in one terminal and leave it running:
|
|
|
|
```bash
|
|
reme start
|
|
```
|
|
|
|
The default service address is `127.0.0.1:2333`. If the port is occupied, specify another port:
|
|
|
|
```bash
|
|
reme start service.port=8181
|
|
# reme start workspace_dir=/tmp/reme-demo service.port=8181
|
|
```
|
|
|
|
From another terminal, call the running service. The CLI discovers its configuration; the `curl` example uses the
|
|
default port `2333`:
|
|
|
|
```bash
|
|
reme version
|
|
reme health_check
|
|
reme help
|
|
curl -s http://127.0.0.1:2333/version -H 'Content-Type: application/json' -d '{}'
|
|
```
|
|
|
|
### 5-Minute Memory Demo
|
|
|
|
With the service running, write a memory node, let ReMe index it, then retrieve it:
|
|
|
|
```bash
|
|
reme write \
|
|
path=digest/wiki/quick-start-demo \
|
|
name="Quick Start Demo" \
|
|
description="A first ReMe memory node" \
|
|
content="# Quick Start Demo
|
|
|
|
ReMe stores agent memory as readable Markdown.
|
|
|
|
Related: [[digest/wiki/memory-as-file.md]]"
|
|
|
|
reme search query="agent memory markdown" limit=5
|
|
reme read path=digest/wiki/quick-start-demo start_line=1 end_line=20
|
|
```
|
|
|
|
The generated file is ordinary Markdown with frontmatter:
|
|
|
|
```markdown
|
|
---
|
|
name: Quick Start Demo
|
|
description: A first ReMe memory node
|
|
---
|
|
|
|
# Quick Start Demo
|
|
|
|
ReMe stores agent memory as readable Markdown.
|
|
|
|
Related: [[digest/wiki/memory-as-file.md]]
|
|
```
|
|
|
|
### ReMe Studio (Optional)
|
|
|
|
The `core` installation includes Studio. Run `reme start config=proactive`, then open <http://127.0.0.1:2333/> for
|
|
Remy, Proactive AI, Notebook, and Knowledge. To add Studio to a base installation, use `pip install "reme-ai[web]"`. See the
|
|
[ReMe Studio guide](https://github.com/agentscope-ai/ReMe/blob/main/reme_studio/README.md) for source builds and development.
|
|
|
|
## 🤝 Use ReMe with Your Agent
|
|
|
|
ReMe can run as a local memory service accessed through the CLI, HTTP API, or MCP server, or it can be embedded in the
|
|
host process through its Python API. Host integrations can add memory guidance, recall, and capture to the agent
|
|
lifecycle according to the capabilities of each runtime.
|
|
|
|
| Agent | Recommended path | Available after integration |
|
|
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
| **DeepSeek Harness** | Install [`@agentscope-ai/reme-dsh-plugin`](https://reme.agentscope.io/en/integrations/dsh) with `dsh plugin --profile web add @agentscope-ai/reme-dsh-plugin`. | Configurable memory guidance, `reme_search`, automatic turn capture, scheduled Auto Dream, and ReMe Status. |
|
|
| **OpenClaw** | Install [`@agentscope-ai/reme-openclaw-plugin`](https://reme.agentscope.io/en/integrations/openclaw) with `openclaw plugins install clawhub:@agentscope-ai/reme-openclaw-plugin`. | Native memory tools, recall before user-triggered runs, and automatic turn capture. |
|
|
| **QwenPaw** | Embed ReMe in-process through its Python API. | Reuse the host lifecycle and model config while keeping memory local and file-based. |
|
|
| **Claude Code** | Start ReMe, then install the [Claude Code plugin](integrations/claude_code/README.md). | Automatic recall, batched completed-turn recording, and MCP tools. |
|
|
| **Qoder** | Start ReMe, then install the [Qoder plugin](integrations/qoder/README.md). | Automatic recall, retryable completed-turn recording, MCP tools, and the bundled skill. |
|
|
| **ZCode** | Start ReMe, then install the [ZCode plugin](integrations/zcode/README.md). | Automatic recall, detached retryable recording, MCP tools, and the bundled skill. |
|
|
| **Hermes** | Install [the ReMe provider](https://reme.agentscope.io/en/integrations/hermes) and choose HTTP or embedded mode. | Recall before model calls and asynchronous `auto_memory` after each completed turn. |
|
|
| **Codex** | Start ReMe, then install the [Codex plugin](integrations/codex/README.md). | Native hooks for automatic recall and batched recording, plus MCP tools. |
|
|
| **Other CLI agents** | Install or copy the [ReMe Memory skill](skills/reme_memory/SKILL.md). | Search, read, and write memory through the CLI. |
|
|
|
|
<p align="center"><b>Integration demos</b></p>
|
|
|
|
<table>
|
|
<tr>
|
|
<td align="center"></td>
|
|
<td width="45%" align="center"><b>Auto Memory</b></td>
|
|
<td width="45%" align="center"><b>Auto Dream</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center"><b>QwenPaw</b></td>
|
|
<td width="45%">
|
|
<img src="docs/figure/qwenpaw-auto-memory.gif" alt="QwenPaw Auto Memory demo" width="100%">
|
|
</td>
|
|
<td width="45%">
|
|
<img src="docs/figure/qwenpaw-auto-dream.gif" alt="QwenPaw Auto Dream demo" width="100%">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center"><b>Claude Code</b></td>
|
|
<td width="45%">
|
|
<img src="docs/figure/cc-auto-memory.gif" alt="Claude Code Auto Memory demo" width="100%">
|
|
</td>
|
|
<td width="45%">
|
|
<img src="docs/figure/cc-auto-dream.gif" alt="Claude Code Auto Dream demo" width="100%">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
## 🧠 How ReMe Works
|
|
|
|
> Memory as File, File as Memory.
|
|
|
|
ReMe treats **memory as files**, progressively processing filtered conversation source records and external resources
|
|
from `session/` and `resource/` into `daily/`, then `digest/`. The default workspace is `.reme/` under the current
|
|
directory; `workspace_dir=...` selects a different user-owned location.
|
|
|
|
### Workspace Layout
|
|
|
|
```text
|
|
<workspace_dir>/
|
|
├── metadata/ # Rebuildable indexes, graphs, catalogs, and caches
|
|
├── session/ # Conversation source records and agent sessions
|
|
│ ├── dialog/
|
|
│ │ └── <session_id>.jsonl # Source messages saved by auto_memory
|
|
│ └── claude_code/
|
|
│ └── <session_id>.jsonl # ReMe copy used by auto_memory_cc
|
|
├── mem_session/ # Generated agent-wrapper sessions/config, not user memory
|
|
│ ├── agentscope/
|
|
│ ├── claude_config/
|
|
│ └── codex/
|
|
├── resource/ # External raw materials
|
|
│ ├── <resource>.<ext> # Root-level files enter today's daily layer
|
|
│ └── YYYY-MM-DD/
|
|
│ └── <resource>.<ext>
|
|
├── daily/ # Lightly processed memory: daily facts, conversation summaries, resource readings
|
|
│ ├── YYYY-MM-DD.md
|
|
│ └── YYYY-MM-DD/
|
|
│ ├── <generated_name>.md # Topic-named conversation or resource card
|
|
│ └── interests.yaml
|
|
└── digest/ # Long-term memory: personal facts, procedural experience, knowledge nodes
|
|
├── personal/
|
|
│ └── {topic/event}.md
|
|
├── procedure/
|
|
│ └── {topic/event}.md
|
|
└── wiki/
|
|
└── {topic/event}.md
|
|
```
|
|
|
|
<p align="center">
|
|
<img src="docs/figure/reme-overview.svg" alt="ReMe file-based memory system overview" width="92%">
|
|
</p>
|
|
|
|
### Memory Lifecycle
|
|
|
|
ReMe follows a capture → index → consolidate → recall loop. Workspace files remain the durable source of truth;
|
|
everything under `metadata/` is rebuildable.
|
|
|
|
| Capability | Entry point | What it does | Output |
|
|
| ------------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
|
|
| [`auto_memory`](https://reme.agentscope.io/en/auto_memory) | Agent hook or `reme auto_memory` | Distills useful conversation facts while preserving a filtered conversation source record. | `session/dialog/*.jsonl`, `daily/<date>/<generated-name>.md` |
|
|
| [`auto_resource`](https://reme.agentscope.io/en/auto_resource) | Resource watcher or `reme auto_resource` | Turns files under `resource/` into source-linked, content-named daily cards. | `daily/<date>/<resource-card>.md` |
|
|
| [`auto_index`](https://reme.agentscope.io/en/memory_search) | Background watcher or `reme reindex` | The watcher ingests Markdown from `daily/` and `digest/`; `reindex` only rebuilds BM25 and embeddings from already-ingested chunks. | Searchable chunks, BM25, wikilink graph, and optional vectors |
|
|
| [`auto_dream`](https://reme.agentscope.io/en/auto_dream) | `dream_cron` or `reme auto_dream` | By default, extracts up to five reusable units from changed files in the latest two-day window, then creates, corroborates, refines, or corrects digest nodes. | `digest/**` |
|
|
| [`proactive_read`](https://reme.agentscope.io/en/proactive) | `reme proactive_read` before an agent decides to act | Reads topics generated by the independent proactive refresh flow; the host agent decides whether and how to mention them. | Structured topics from `daily/<date>/interests.yaml` |
|
|
|
|
<table>
|
|
<tr>
|
|
<td align="center" width="50%">
|
|
<img src="docs/figure/memory-as-file.svg" alt="Memory as File" width="92%">
|
|
</td>
|
|
<td align="center" width="50%">
|
|
<img src="docs/figure/auto-memory-resource.svg" alt="Auto Memory and Resource" width="92%">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="50%">
|
|
<img src="docs/figure/auto-dream-and-proactive.svg" alt="Auto Dream and Proactive" width="92%">
|
|
</td>
|
|
<td align="center" width="50%">
|
|
<img src="docs/figure/auto-index-and-memory-search.svg" alt="Auto Index and Memory Search" width="92%">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
Search returns matching chunks with line ranges and bounded wikilink neighbors. Optional vector results are fused with
|
|
BM25 through reciprocal rank fusion (RRF).
|
|
|
|
> [!IMPORTANT]
|
|
>
|
|
> `proactive_read` only reads and exposes interest topics produced by proactive refresh. It does not independently browse the web,
|
|
> send notifications, or rewrite the knowledge base; the host agent decides whether and how to act on a topic.
|
|
|
|
## 📊 Benchmarks
|
|
|
|
ReMe evaluates multi-session and long-context text and multimodal memory with agentic search-and-read workflows. The figures below are the
|
|
published reference runs in this repository; model, prompt, dataset, and judging details are documented with each
|
|
benchmark.
|
|
|
|
| Benchmark | Setting | Sample size | Agentic score | Focus |
|
|
| --------------------------------------------------------------------------- | ------------ | -----------------------: | ------------: | ------------------------------------------------------------------ |
|
|
| **[LongMemEval cleaned-s](https://reme.agentscope.io/en/benchmarks/longmemeval)** | **Overall** | **500 questions** | **89.4%** | Cross-session retrieval, knowledge updates, and temporal reasoning |
|
|
| [BEAM](https://reme.agentscope.io/en/benchmarks/beam) | 100K context | 20 cases / 400 questions | 66.1% | Ten types of long-context memory tasks |
|
|
| [BEAM](https://reme.agentscope.io/en/benchmarks/beam) | 1M context | 35 cases / 700 questions | 65.0% | Ultra-long conversation settings |
|
|
| [MemLens-256K](benchmark/memlens/docs/en/evaluation.md) | ReMe Image · Qwen3.8-Max | 189 / 195 questions | 72.49% | Multimodal long-history question answering |
|
|
| [MobileMem-Omni](benchmark/mobilemem/docs/en/evaluation.md) | ReMe Image · Qwen3.8-Max | 20 users / 1,333 questions | 60.69% | Personal visual memory and reasoning |
|
|
|
|
ReMe also achieved a **0.580 PROC score across five user personas** in the repository's
|
|
[π-Bench evaluation](https://reme.agentscope.io/en/benchmarks/pibench), 2.4% above NanoBot under the same test-model configuration. PROC
|
|
measures proactive handling of hidden intent, clarification, cross-session preferences and conventions, task
|
|
dependencies, and underspecified requests.
|
|
|
|
## 🧩 Extensions and Plugins
|
|
|
|
Plugins are optional Python distributions that contribute Component, Step, or Job backends and configuration. They are
|
|
installed separately and enabled explicitly by configuration. Daily Paper and Auto Fin are independently packaged
|
|
plugins; see their documentation for [Daily Paper](https://reme.agentscope.io/en/plugins/daily-paper) and
|
|
[Auto Fin](https://reme.agentscope.io/en/plugins/auto-fin).
|
|
|
|
| Plugin | Capability |
|
|
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
| [Daily Paper](https://reme.agentscope.io/en/plugins/daily-paper) | Discover and rank papers, analyze PDFs with an agent, and generate file-native notes and a five-minute brief. |
|
|
| [Auto Fin](https://reme.agentscope.io/en/plugins/auto-fin) | Fetch topic-related CLS news, search ReMe history, and generate wikilink-backed Markdown reports. |
|
|
|
|
See [Plugin Management](https://reme.agentscope.io/en/plugin_management) to install, inspect, validate, enable, and uninstall ReMe plugins.
|
|
|
|
## 📚 Documentation
|
|
|
|
These guides cover the main user workflows and the runtime contracts implemented by the current code.
|
|
|
|
| Guide | What you will learn |
|
|
| ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
|
| [Quick Start](https://reme.agentscope.io/en/quick_start) | Install ReMe, start the service, and run the first file and memory operations. |
|
|
| [Configuration](https://reme.agentscope.io/en/configuration) | Configure the workspace, models, Service, Jobs, Components, plugins, and CLI overrides. |
|
|
| [Services and Deployment](https://reme.agentscope.io/en/services) | Use HTTP, SSE, MCP, and Studio while respecting the default security boundary. |
|
|
| [Memory as File](https://reme.agentscope.io/en/memory_as_file) | Understand workspace layers, frontmatter, wikilinks, chunks, and the file-as-source-of-truth model. |
|
|
| [Auto Memory](https://reme.agentscope.io/en/auto_memory) | Preserve source conversations and distill reusable daily memory cards. |
|
|
| [Auto Resource](https://reme.agentscope.io/en/auto_resource) | Import supported text and image resources as source-linked daily cards. |
|
|
| [Auto Dream](https://reme.agentscope.io/en/auto_dream) and [Auto Link](https://reme.agentscope.io/en/auto_link) | Consolidate daily notes into evolving digest nodes and readable wikilink relationships. |
|
|
| [Memory Search](https://reme.agentscope.io/en/memory_search) | Use BM25, optional vectors, RRF fusion, line-range recall, and progressive link expansion. |
|
|
| [Proactive](https://reme.agentscope.io/en/proactive) | Read interest topics safely and integrate them into a host agent's decision flow. |
|
|
| [Proactive Runtime](https://reme.agentscope.io/en/proactive_runtime) | Use long-term memory to follow tasks, act on events and schedules, and deliver reminders. |
|
|
| [Application Scenarios](https://reme.agentscope.io/en/reme_scene) | Follow concrete financial research, coding-memory, and personal knowledge-base examples. |
|
|
| [Framework](https://reme.agentscope.io/en/framework) | Understand Application, Job, Step, Component, service, configuration, and lifecycle boundaries. |
|
|
| [Agent Integrations](https://reme.agentscope.io/en/integrations) | Choose an interface and connect DSH, Claude Code, Codex, Qoder, ZCode, OpenClaw, Hermes, or another agent. |
|
|
| [DSH plugin](https://reme.agentscope.io/en/integrations/dsh), [Claude Code plugin](https://reme.agentscope.io/en/integrations/claude-code), [Qoder plugin](https://reme.agentscope.io/en/integrations/qoder), and [ZCode plugin](https://reme.agentscope.io/en/integrations/zcode) | Configure host-native recall, automatic capture, consolidation, and diagnostics. |
|
|
| [CLI and Job API](https://reme.agentscope.io/en/reference/cli) | Learn command syntax and use the generated default Job parameter reference. |
|
|
| [Operations and Recovery](https://reme.agentscope.io/en/operations) | Diagnose services, maintain indexes, and back up, migrate, or recover a workspace. |
|
|
| [ReMe Blog](https://reme.agentscope.io/en/reme-blog) | Read the product story, design rationale, examples, and benchmark summary. |
|
|
|
|
## 🛠️ Common Commands
|
|
|
|
Run `reme help` for the full job list. Common workspace and maintenance commands are:
|
|
|
|
| Command | Purpose |
|
|
| ----------------------------------------- | --------------------------------------------------------------------------------- |
|
|
| `reme status` | Show stateful data-component memory estimates and process RSS. |
|
|
| [`reme search`](https://reme.agentscope.io/en/memory_search) | Retrieve memory with BM25 and wikilinks by default, plus vectors when enabled. |
|
|
| `reme read` / `reme write` / `reme edit` | Inspect and maintain Markdown memory files. |
|
|
| `reme traverse` / `reme graph_snapshot` | Explore wikilink neighborhoods or the category-rooted digest graph. |
|
|
| `reme chat` | Stream a read-only, workspace-aware agent conversation. Requires LLM credentials. |
|
|
| `reme reindex` | Rebuild BM25 and embedding indexes from already-ingested chunks. |
|
|
|
|
## 🤝 Community and Contributing
|
|
|
|
- **Issues, requests, and help**: Check [Open Issues](https://github.com/agentscope-ai/ReMe/issues) first. If there is no
|
|
related discussion, open one with the background, expected behavior, and impact scope.
|
|
- **Code contributions**: Before making changes, read the repository's
|
|
[contribution guide](https://reme.agentscope.io/en/contributing). Source, schemas, and tests are the authoritative architecture and
|
|
extension guide.
|
|
- **Documentation contributions**: Update the canonical files under `docs/en/`, `docs/zh/`, or the relevant package
|
|
directory in this repository. The documentation site is generated from these files.
|
|
- **Commit convention**: Conventional Commits are recommended, for example `feat(search): add link expansion option` or
|
|
`docs(zh): update quick start`.
|
|
- **Pre-submit checks**: Before submitting a PR, try to run `pre-commit run --all-files` and `pytest`. If tests that
|
|
depend on LLMs, embeddings, or external services cannot run, explain that in the PR.
|
|
- **Documentation**: Visit [reme.agentscope.io](https://reme.agentscope.io).
|
|
|
|
### Contributors
|
|
|
|
Thanks to everyone who has contributed to ReMe:
|
|
|
|
<a href="https://github.com/agentscope-ai/ReMe/graphs/contributors">
|
|
<img src="https://contrib.rocks/image?repo=agentscope-ai/ReMe" alt="Contributors" />
|
|
</a>
|
|
|
|
## 📄 Citation
|
|
|
|
```bibtex
|
|
@software{ReMe2026,
|
|
title = {Remember me, Refine me: Memory Management Kit for Agents},
|
|
author = {ReMe Team},
|
|
url = {https://reme.agentscope.io},
|
|
year = {2026}
|
|
}
|
|
```
|
|
|
|
## ⚖️ License
|
|
|
|
This project is open source under the Apache License 2.0. See [LICENSE](./LICENSE) for details.
|