返回插件市场

ReMe

Agent 与工作流

agentscope-ai/ReMe

面向 AI 智能体的本地优先、自进化个人知识库与记忆管理工具包。

  • agent
  • ai-agents
  • dsh-plugin
  • memory
  • memoryscope
  • rag
  • reme
GitHub Stars
3380GitHub
浏览量
0DSH Plugin Hub
Forks
293GitHub
开放问题
25GitHub Issues
Manifest 版本
0.1.0@agentscope-ai/reme
最近推送
2026年9月1日GitHub
许可证
Apache-2.0Python
插件类型
Host + Client同时运行于 Host 与 Web Client

验证与兼容性

这里展示目录实际采集到的证据;未声明的信息会明确标为未知。

运行时已验证
01精确来源: npm · @agentscope-ai/reme@0.1.002验证时间: 2026年9月2日03验证版本: 0.1.0-rc.7
当前版本兼容性
已在当前目录版本验证
声明的 Harness 范围
未声明
声明的平台
未声明
适用 Profile
web
构建授权
未检测到需要
权限声明
未声明
外部服务
未声明
遥测声明
未知
未发现已知风险标记

这不是安全背书;安装前仍应查看源码、权限和配置。

查看证据与判定范围

验证仅覆盖标出的来源、版本和 Harness 环境,不代表未来版本仍然兼容。

  • @agentscope-ai/reme@0.1.0
  • 插件已在隔离环境完成加载检查。

README

查看源文件

Previous versions: 0.3.x · 0.2.x · MemoryScope

✨ 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.

  • 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.

📰 Latest Updates

🚀 Quick Start

Installation

ReMe requires Python 3.11+.

Install from pip:

pip install "reme-ai[core]"

Install from source:

git clone https://github.com/agentscope-ai/ReMe.git
cd ReMe
pip install -e reme_studio -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.

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.

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, and auto_dream.
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, then change components.file_store.default.embedding_store from "" to default. See the memory search guide for details.

Start the Service

reme start

The default service address is 127.0.0.1:2333. If the port is occupied, specify another port:

reme start service.port=8181
# reme start workspace_dir=/tmp/reme-demo service.port=8181
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:

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:

---
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. After starting ReMe, open http://127.0.0.1:2333/ to browse, edit, and search the workspace. To add Studio to a base installation, use pip install "reme-ai[web]". See the ReMe Studio guide for source builds, configuration, 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.

AgentRecommended pathAvailable after integration
DeepSeek HarnessInstall @agentscope-ai/reme with dsh plugin --profile web add @agentscope-ai/reme.Long-term memory guidance, the reme_search tool, and automatic capture of completed main-agent turns.
OpenClawInstall @agentscope-ai/reme with openclaw plugins install @agentscope-ai/reme.Native memory tools, recall before user-triggered runs, and automatic turn capture.
QwenPawEmbed ReMe in-process through its Python API.Reuse the host lifecycle and model config while keeping memory local and file-based.
Claude CodeStart the streamable HTTP MCP service and install the ReMe plugin.MCP recall tools, the reme-memory skill, and a Stop hook that records sessions automatically.
HermesStart the HTTP service and install the ReMe provider.Recall before model calls and asynchronous auto_memory after each completed turn.
Codex and other CLI agentsInstall or copy the ReMe Memory skill.Search, read, and write memory through the CLI; automatic capture requires host lifecycle integration.

🧠 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

<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

Memory Lifecycle

ReMe follows a capture → index → consolidate → recall loop. Workspace files remain the durable source of truth; everything under metadata/ is rebuildable.

CapabilityEntry pointWhat it doesOutput
auto_memoryAgent hook or reme auto_memoryDistills useful conversation facts while preserving a filtered conversation source record.session/dialog/*.jsonl, daily/<date>/<generated-name>.md
auto_resourceResource watcher or reme auto_resourceTurns files under resource/ into source-linked, content-named daily cards.daily/<date>/<resource-card>.md
auto_indexBackground watcher or reme reindexThe 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_dreamdream_cron or reme auto_dreamBy 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/**, daily/<date>/interests.yaml
proactivereme proactive before an agent decides to actReads topics generated by auto_dream; the host agent decides whether and how to mention them.Structured topics from daily/<date>/interests.yaml

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 only reads and exposes interest topics produced by Auto Dream. 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 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.

BenchmarkSettingSample sizeAgentic scoreFocus
LongMemEval cleaned-sOverall500 questions89.4%Cross-session retrieval, knowledge updates, and temporal reasoning
BEAM100K context20 cases / 400 questions66.1%Ten types of long-context memory tasks
BEAM1M context35 cases / 700 questions65.0%Ultra-long conversation settings

ReMe also achieved a 0.580 PROC score across five user personas in the repository's π-Bench evaluation, 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 the source distributions and their documentation for Daily Paper and Auto Fin.

PluginCapability
Daily PaperDiscover and rank papers, analyze PDFs with an agent, and generate file-native notes and a five-minute brief.
Auto FinFetch topic-related CLS news, search ReMe history, and generate wikilink-backed Markdown reports.

See 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.

GuideWhat you will learn
Quick StartInstall ReMe, start the service, and run the first file and memory operations.
Memory as FileUnderstand workspace layers, frontmatter, wikilinks, chunks, and the file-as-source-of-truth model.
Auto MemoryPreserve source conversations and distill reusable daily memory cards.
Auto ResourceImport supported text resources and turn them into source-linked daily cards.
Auto Dream and Auto LinkConsolidate daily notes into evolving digest nodes and readable wikilink relationships.
Memory SearchUse BM25, optional vectors, RRF fusion, line-range recall, and progressive link expansion.
ProactiveRead interest topics safely and integrate them into a host agent's decision flow.
Application ScenariosFollow concrete financial research, coding-memory, and personal knowledge-base examples.
FrameworkUnderstand Application, Job, Step, Component, service, configuration, and lifecycle boundaries.
TypeScript integrationsConfigure the shared client and native DeepSeek Harness and OpenClaw adapters.
ReMe BlogRead 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:

CommandPurpose
reme statusShow stateful data-component memory estimates and process RSS.
reme searchRetrieve memory with BM25 and wikilinks by default, plus vectors when enabled.
reme read / reme write / reme editInspect and maintain Markdown memory files.
reme traverse / reme graph_snapshotExplore wikilink neighborhoods or the category-rooted digest graph.
reme chatStream a read-only, workspace-aware agent conversation. Requires LLM credentials.
reme reindexRebuild BM25 and embedding indexes from already-ingested chunks.

🤝 Community and Contributing

  • Issues, requests, and help: Check Open 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. 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.

Contributors

Thanks to everyone who has contributed to ReMe:

📄 Citation

@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 for details.

评论

0
最新优先