agentscope-ai/ReMe--packages-typescript3.3k

@agentscope-ai/reme

ReMe client and memory integrations for TypeScript agents

AI Analysis

为 TypeScript 智能体提供共享的 ReMe HTTP 客户端及 DSH 适配器。适合需要记忆集成和管理功能的开发者。必要条件是需运行 ReMe HTTP 服务。

Package
@agentscope-ai/reme
Version
0.1.0
License
Apache-2.0
Last updated
Aug 24, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:agentscope-ai/ReMe#01ef1a6efb6e84be29347334b9043ab284e0ca73&path:packages/typescript

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.

OptionDefaultMeaning
endpointhttp://127.0.0.1:2333ReMe HTTP service URL
languageenMemory guidance language: en or zh
autoMemoryEnabledtrueCapture completed main-agent turns
autoMemoryInterval5Submit after this many completed turns
autoDreamEnabledtrueEnable daily dream maintenance
dreamCron0 23 * * *Daily schedule in the workspace timezone
rootAgentsOnlytrueExclude subagents from guidance and capture
requestTimeoutMs10000Search request timeout
backgroundTimeoutMs3600000Automatic-memory and dream timeout
shutdownTimeoutMs5000Best-effort shutdown drain budget
timezoneAsia/ShanghaiIANA 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:

OptionDefaultMeaning
endpointhttp://127.0.0.1:2333ReMe HTTP service URL
autoRecalltrueRecall before user-triggered runs
autoCapturetrueCapture successful user-triggered runs
recallLimit5Maximum search results
recallMinScore0Minimum search score
requestTimeoutMs5000Recall and explicit search timeout
backgroundTimeoutMs3600000Automatic-memory timeout
shutdownTimeoutMs5000Background 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.