agentscope-ai/ReMe--packages-typescript ↗★ 3.3k
@agentscope-ai/reme
ReMe client and memory integrations for TypeScript agents
AI 分析
为 TypeScript 智能体提供共享的 ReMe HTTP 客户端及 DSH 适配器。适合需要记忆集成和管理功能的开发者。必要条件是需运行 ReMe HTTP 服务。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:agentscope-ai/ReMe#01ef1a6efb6e84be29347334b9043ab284e0ca73&path:packages/typescriptドキュメント
README 全文を読む ↗ReMe for TypeScript agents
@agentscope-ai/reme provides one shared ReMe HTTP client and host adapters for DeepSeek Harness and OpenClaw. Each
adapter uses its host's native lifecycle and tool interfaces; importing the root package does not load either host.
The package expects a running ReMe HTTP service with the search, auto_memory, and auto_dream jobs required by the
selected adapter:
reme start workspace_dir=/absolute/path/to/workspace
The default endpoint is http://127.0.0.1:2333. All entries support REME_URL, or REME_HOST plus REME_PORT.
ReMe's HTTP service does not use API-key authentication.
DeepSeek Harness
Install the package as a DSH profile bundle:
dsh plugin --profile web add @agentscope-ai/reme
The bundle loads @agentscope-ai/reme/dsh in an isolated remeMemory realm. It injects durable memory guidance,
registers reme_search, submits completed main-agent turns to auto_memory, and runs the optional daily auto_dream
schedule. Recalled plugin context and tool results are excluded from automatic memory capture.
Configure the bundle by replacing its row in the profile's cordis.patch.yml:
- id: reme-memory
config:
- id: reme-memory-runtime
name: "@agentscope-ai/reme/dsh"
config:
endpoint: http://127.0.0.1:2333
language: zh
timezone: Asia/Shanghai
autoMemoryInterval: 5
autoDreamEnabled: true
dreamCron: "0 23 * * *"
On the DSH Web profile, the same fields are available under Settings → Plugins → Plugin configuration → ReMe
Memory. Changes are stored in DSH's user settings document and apply to subsequent requests and captures. Changing
the daily dream controls reschedules the next run; changing the guidance language affects newly started sessions.
The test-only dreamIntervalMs value remains outside the user-settings section.
| Option | Default | Meaning |
|---|---|---|
endpoint | http://127.0.0.1:2333 | ReMe HTTP service URL |
language | en | Memory guidance language: en or zh |
autoMemoryEnabled | true | Capture completed main-agent turns |
autoMemoryInterval | 5 | Submit after this many completed turns |
autoDreamEnabled | true | Enable daily dream maintenance |
dreamCron | 0 23 * * * | Daily schedule in the workspace timezone |
rootAgentsOnly | true | Exclude subagents from guidance and capture |
requestTimeoutMs | 10000 | Search request timeout |
backgroundTimeoutMs | 3600000 | Automatic-memory and dream timeout |
shutdownTimeoutMs | 5000 | Best-effort shutdown drain budget |
timezone | Asia/Shanghai | IANA timezone used for batches and scheduling |
The ReMe card reads the service's health_check and status jobs on demand. It shows the ReMe version, component
health, chunk/index counts, process RSS, and estimated component memory; it can also display the redacted app_config
response and trigger one auto_dream run. Diagnostics are refreshed when the card first opens or when the user asks,
not polled continuously. The page calls the configured ReMe HTTP endpoint from the local browser, so that service must
remain browser-reachable and allow the DSH origin.
OpenClaw
OpenClaw 2026.3.12 or later can install the same package:
openclaw plugins install @agentscope-ai/reme
Select reme for plugins.slots.memory when another memory plugin is active. The adapter registers reme_search,
recalls memory before user-triggered agent runs, and sends the last completed user/assistant pair to auto_memory in a
serialized background queue. Recall is wrapped in `` and explicitly marked as untrusted historical data.
Cron and other non-user triggers do not recall or capture conversational memory.
OpenClaw plugin configuration accepts:
| Option | Default | Meaning |
|---|---|---|
endpoint | http://127.0.0.1:2333 | ReMe HTTP service URL |
autoRecall | true | Recall before user-triggered runs |
autoCapture | true | Capture successful user-triggered runs |
recallLimit | 5 | Maximum search results |
recallMinScore | 0 | Minimum search score |
requestTimeoutMs | 5000 | Recall and explicit search timeout |
backgroundTimeoutMs | 3600000 | Automatic-memory timeout |
shutdownTimeoutMs | 5000 | Background writer drain budget |
Library entry
Consumers that only need the transport can import the root package:
import { ReMeClient, formatReMeContext } from "@agentscope-ai/reme";
Host code is available only through @agentscope-ai/reme/dsh and @agentscope-ai/reme/openclaw.
Development
cd packages/typescript
npm ci
npm run format:check
npm run lint
npm run typecheck
npm test
npm run test:package
npm pack runs the TypeScript build and includes only dist, the DSH patch, the OpenClaw manifest, and the English and
Chinese READMEs.