跳到正文
cccskills
免费在 GitHub 公开

reme_memory

Set up and use ReMe as a file-native long-term memory system through the reme CLI. Use when an Agent needs to detect whether ReMe is installed or running, install and configure ReMe, start or verify its local service, retrieve prior context, or write and consolidate durable memory.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md9.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

ReMe Memory

Use ReMe as the persistent memory layer for this Agent. ReMe stores filtered conversation source records, daily notes, resources, and long-term digest memories in a user-owned local workspace. auto_memory omits recalled tool results and base64 data when it persists a source record so retrieved or binary content does not become conversation source material.

Bootstrap ReMe

Run this workflow before first use and whenever a ReMe command cannot reach the service. Distinguish a missing CLI from an installed but stopped service.

1. Check whether ReMe is installed

Run:

command -v reme

If this prints an executable path, treat ReMe as installed and continue to service discovery. Do not reinstall or upgrade an existing installation unless the user requests it.

If the command is missing, check Python before installing:

python3 -c 'import sys; print(sys.version); raise SystemExit(0 if sys.version_info >= (3, 11) else 1)'

ReMe requires Python 3.11 or newer. If the user has requested setup or installation, install the recommended package in the active Python environment:

python3 -m pip install "reme-ai[core]"

When working from a ReMe source checkout and the user explicitly wants an editable source installation, run this from the repository root instead:

python3 -m pip install -e ".[core]"

Do not silently install into or modify a Python environment when the user only asked to use memory. Explain that ReMe is missing and ask before installing. After installation, run command -v reme again. If it is still missing, check that the active environment's executable directory is on PATH; do not repeatedly reinstall.

2. Configure optional model credentials

Basic file operations, BM25 search, wikilink traversal, and reading existing proactive topics work without model credentials. auto_memory, auto_resource, auto_dream, and proactive refresh require an LLM configuration.

When those model-powered jobs are needed, have the user provide valid values through the environment or a .env file:

LLM_API_KEY=sk-xxx
LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1

The default LLM backend is OpenAI-compatible and the default model is qwen3.7-plus. Override them when the endpoint requires different values:

LLM_BACKEND=openai
LLM_MODEL_NAME=qwen3.7-plus

ReMe searches for .env in the directory where its command starts and up to five parent directories. Start the service from a stable directory where the intended .env is discoverable. Never expose, log, or commit credentials.

Embedding retrieval is disabled by default. Do not request EMBEDDING_API_KEY merely to use the default BM25 and wikilink search. Enabling vector retrieval also requires changing the embedding components in ReMe's configuration; do not claim that setting an embedding key alone enables it.

3. Discover or start the service

Check for an existing ReMe service before starting another one:

reme find_reme

If it prints HOST=... PORT=... PID=..., reuse that service and its workspace. Do not start a duplicate or change its workspace configuration.

If it reports reme not started, start ReMe in a persistent terminal or managed process and leave it running:

reme start

The default HTTP address is 127.0.0.1:2333, and the default workspace is .reme/ under the startup directory. For durable Agent memory, prefer a stable, user-selected workspace path so memory does not depend on the caller's current directory:

reme start workspace_dir="/absolute/path/to/reme-workspace"

If port 2333 is occupied, do not stop or replace the unknown listener. Start ReMe on another port:

reme start workspace_dir="/absolute/path/to/reme-workspace" service.port=8181

Keep the startup command and workspace choice consistent across restarts. ReMe CLI commands discover a locally running ReMe process, including one started with a custom port.

4. Verify readiness

After the service starts, run these commands from another terminal or tool session:

reme find_reme
reme version
reme health_check

Proceed only when version responds and health_check reports a healthy service. Use reme help to inspect the jobs exposed by the running configuration. If verification fails, report the exact error and keep installation failure, service discovery failure, port conflict, and missing model credentials as separate diagnoses.

Retrieve Memory

Before answering questions about previous conversations, user preferences, project history, decisions, resources, or long-term context, search ReMe first:

reme search query="<question or keywords>" limit=5

Read a relevant Markdown result rather than relying only on the search snippet:

reme read path="<workspace-relative-path>"
reme read path="<workspace-relative-path>" start_line=1 end_line=80

read accepts Markdown only. For a non-Markdown text result, use reme load path="<workspace-relative-path>"; because load returns the complete file, inspect its size with reme stat first when the file may be large.

Use traverse when wikilink neighbors may matter:

reme traverse path="<workspace-relative-path>" depth=1 direction=both

Cite the workspace-relative paths used. If retrieval returns nothing useful, say so plainly instead of inventing prior context.

Write Memory

Record durable facts, user preferences, important decisions, project context, and lessons learned. Avoid secrets or sensitive personal data unless the user explicitly asks to store them.

For an ordinary conversation, call auto_memory with the current messages and a stable session ID:

reme auto_memory \
  session_id="<session-id>" \
  messages='[{"role":"user","content":"..."},{"role":"assistant","content":"..."}]' \
  memory_hint="<why this should be remembered>"

This job requires the LLM configuration described above. A missing LLM credential is not evidence that basic ReMe file operations or BM25 retrieval are unavailable.

For explicit file operations, read before editing and preserve existing content unless replacement is intended:

reme write path="daily/<YYYY-MM-DD>/<name>.md" name="<name>" description="<description>" content="<markdown>"
reme edit path="<workspace-relative-path>" old="<old text>" new="<new text>"

Use ReMe commands instead of editing memory files directly unless the user explicitly asks for direct file maintenance.

Ingest Resources

Place external documents under resource/YYYY-MM-DD/ in the selected ReMe workspace. While reme start is running, the default background watcher processes new or changed md, txt, json, jsonl, csv, yaml, html, and image files (png, jpg, jpeg, webp, gif, bmp, tiff, heic); images produce caption cards linked to the original file.

To request processing explicitly:

reme auto_resource changes='[{"path":"resource/<YYYY-MM-DD>/<file>","change":"added"}]'

auto_resource requires LLM credentials. Image captioning requires a vision-capable AgentScope model; HEIC also requires reme-ai[image-heif].

Consolidate and Use Proactive Topics

The default service runs background and cron jobs while it remains active. auto_dream consolidates daily notes and resource interpretations into long-term digest memory. Proactive refresh independently generates interest topics. Run Auto Dream manually when the host owns the schedule or the user requests consolidation:

reme auto_dream date="<YYYY-MM-DD>"

Read topics generated by the service's scheduled proactive refresh from another terminal or tool session:

reme proactive_read date="<YYYY-MM-DD>"

auto_dream and proactive refresh require LLM credentials. proactive_read reads existing structured topics and works without an LLM call. Pass include_content=false when raw YAML content is unnecessary. The host Agent decides whether and how to mention topics; ReMe does not independently notify the user or take external action.

Local One-shot Refresh for Maintenance

For an explicitly requested immediate refresh, run the private writer locally without serving it through HTTP or MCP:

reme start config=default job=proactive_refresh date="<YYYY-MM-DD>"

proactive_refresh has enable_serve: false; it cannot be invoked through reme proactive_refresh against the running service. This is a local maintenance exception. Normal memory commands reuse the service started above.

Integration Rules

  • Reuse a healthy running service; never start one ReMe process per command or conversation.
  • Keep one stable workspace for contexts that should share memory. Use separate workspaces when profiles must be isolated.
  • Call auto_memory after useful conversation turns only when the host owns lifecycle integration.
  • Use ReMe's in-process ReMe Python API instead of the CLI when embedding it into a Python host application.
  • Prefer the dedicated integrations under integrations/claude_code/reme and integrations/hermes_agent for those hosts.
  • Treat user-owned memory files as source data. Do not delete, rewrite, or migrate a workspace merely to repair an index; use rebuildable index operations such as reme reindex when appropriate.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

钉钉消息发送技能。支持企业内部机器人(批量单聊/群聊)和 Webhook 自定义机器人两种接入方式,支持多机器人管理,支持文本、Markdown、链接、ActionCard、FeedCard等多种消息类型。

中文简介正在准备中。当前显示原文说明。

agentscope-ai/ReMe36542026年10月16日 更新

qwenpaw_memory

中文简介正在准备中。当前显示原文说明。

agentscope-ai/ReMe36542026年10月16日 更新

Recall past conversations, preferences, project history, and decisions from ReMe in Claude Code, or check the ReMe connection.

中文简介正在准备中。当前显示原文说明。

agentscope-ai/ReMe36542026年10月16日 更新

Recall past facts, preferences, and decisions from ReMe; inspect memory delivery, service health, and the consolidation schedule; or consolidate memory when requested.

中文简介正在准备中。当前显示原文说明。

agentscope-ai/ReMe36542026年10月16日 更新

Search the public web through Serper instead of the built-in WebSearch tool. Use when an agent needs current information, general web sources, or URLs not available from local files and project APIs. SERPER_API_KEY is available in the environment.

中文简介正在准备中。当前显示原文说明。

agentscope-ai/ReMe36542026年10月16日 更新

面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

中文简介正在准备中。当前显示原文说明。

agentscope-ai/ReMe36542026年10月16日 更新

查看 agentscope-ai 的全部技能

报告此技能的问题