mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-29 00:38:33 +00:00
* fix(proactive): simplify round files and restore failed summaries * fix(proactive): validate document-relative Markdown links * feat(proactive_agent): implement v2 daily record workflow with single-file decision - Add ProactiveAgentStepV2 class to support single daily note decision and reminder - Introduce RoundOutputs for v2 round file tracking, and keep RoundArtifacts for v1 summary backup - Refactor AgentOutbox to support both v1 standalone reminder files and v2 daily reminder records - Add proactive_record utilities to parse and validate v2 daily record frontmatter and metadata - Enhance proactive_agent to prepare, read, and manage artifacts for both v1 and v2 flows - Add configuration profile proactive_v2 to enable new workflow with backward compatibility - Update proactive.yaml and reactive proactive_agent_step configuration comment for easy switching - Provide extensive schema validation for v2 reminders ensuring priority and message consistency - Document v2 workflow and usage in English and Chinese runtime docs - Add unit tests for v2 step verifying single file output and proper decision handling * refactor(agent/runtime): replace ReminderRef with string keys and simplify reminder handling - Remove ReminderRef model and switch to using workspace-relative string keys for reminders - Simplify AgentOutbox to read, write, and manage reminders keyed by strings - Change file locking and version checking to protect concurrent edits on daily record files - Replace legacy and v2 reminder file handling with unified ReminderFiles storage - Adjust ChatNotifications to operate with the new key scheme and update pending/read sets - Refactor RoundOutputs to RoundRecord for safer round record tracking and rollback - Remove unused ProactiveRunResult and related references from imports and exports - Update InboxWakeRequest, AgentReminder, and related models for consistent ID and path validation - Adjust proactive agent runtime and local runtime to check reminder versions before commit - Correct language and docs to describe reminders as daily records instead of separate files - Clean up roles of inbox and outbox for reminder ownership, delivery, and acknowledgments * fix(proactive): serialize round commits and align desktop reminders * refactor(proactive): unify task triggers in Proactive Runtime * fix(proactive): bound reminder payloads and simplify receipts * refactor(studio): share workbench and simplify proactive delivery * fix(studio): update and centralize build dependencies * fix(proactive): guard draft repair and verify Studio deployments * chore(docs): update source-map-js * feat(release): support publishing selected artifacts from a tag * chore(studio): remove the public playground * refactor: simplify reminders and release workflows * fix: preserve proactive records and align release provenance * test(proactive): remove brittle prompt and preset assertions * fix(proactive): register reminders after input acknowledgement * feat(notebook): list projects across todos and ideas * feat(studio): connect mobile apps to configurable ReMe services * fix(proactive): reserve registered reminder paths * fix(studio): request Android local network access * fix(proactive): reserve reminder paths referenced by receipts
258 lines
7.3 KiB
Markdown
258 lines
7.3 KiB
Markdown
---
|
|
title: Quick Start
|
|
description: Install and start ReMe, then complete a first file, retrieval, and automatic-memory workflow.
|
|
---
|
|
|
|
# Quick Start
|
|
|
|
This page gets one working loop running. See [Configuration](./configuration.md) for the full configuration contract and [Services and Deployment](./services.md) for HTTP or MCP integration.
|
|
|
|
## 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 step requires Node.js 22.13 or newer and makes Studio available when running ReMe from the source tree.
|
|
|
|
Installing the `core` extra is recommended. The current code imports the AgentScope wrapper, and self-evolving memory
|
|
also depends on it.
|
|
|
|
To use agent workflows such as `auto_memory`, `auto_resource`, `auto_dream`, and proactive refresh, configure an LLM:
|
|
|
|
```bash
|
|
cat > .env <<'EOF'
|
|
LLM_BACKEND=openai
|
|
LLM_MODEL_NAME=qwen3.7-plus
|
|
LLM_API_KEY=your_api_key
|
|
LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
EOF
|
|
```
|
|
|
|
You can initially omit the LLM configuration if you only need basic file operations and BM25 retrieval.
|
|
|
|
---
|
|
|
|
## 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 already in use:
|
|
|
|
```bash
|
|
reme start service.port=8181
|
|
```
|
|
|
|
From another terminal, call the running service:
|
|
|
|
```bash
|
|
reme version
|
|
reme health_check
|
|
reme help
|
|
```
|
|
|
|
`reme help` lists server actions. Ordinary commands invoke server Jobs over HTTP.
|
|
|
|
For ReMe Studio, install `reme-ai[core]`, start ReMe with `reme start config=proactive`, and open
|
|
<http://127.0.0.1:2333/>. The [Studio guide](https://github.com/agentscope-ai/ReMe/blob/main/reme_studio/README.md)
|
|
covers setup and development.
|
|
|
|
---
|
|
|
|
## Workspace Layout
|
|
|
|
The default workspace is `.reme/` under the current directory. It is created automatically at startup:
|
|
|
|
```text
|
|
.reme/
|
|
├── metadata/ # persistent indexes, graph, catalogs, and related state
|
|
├── session/ # source conversation records
|
|
├── mem_session/ # generated Agent wrapper sessions/config
|
|
├── resource/ # external resources
|
|
├── daily/ # daily notes
|
|
└── digest/ # long-term memory
|
|
```
|
|
|
|
For directory layers, Markdown frontmatter, and wikilink semantics, see
|
|
[Memory as File](./memory_as_file.md).
|
|
|
|
You can also specify the workspace at startup:
|
|
|
|
```bash
|
|
reme start workspace_dir=/tmp/reme-demo service.port=8181
|
|
```
|
|
|
|
---
|
|
|
|
## Write, Index, and Search
|
|
|
|
```bash
|
|
reme write \
|
|
path=digest/wiki/quick-start-demo \
|
|
name="Quick Start Demo" \
|
|
description="Example memory for the quick start" \
|
|
content="# Quick Start Demo
|
|
|
|
The default live watcher indexes Markdown under the daily and digest directories.
|
|
|
|
Related link: [[digest/wiki/search-demo.md]]"
|
|
```
|
|
|
|
`path` is relative to the workspace. A missing suffix is automatically completed with `.md`. For Markdown files, `name`
|
|
and
|
|
`description` are written to frontmatter.
|
|
|
|
The background watcher ingests workspace files automatically. You can manually rebuild the derived BM25 and embedding
|
|
indexes from the chunks it has already ingested:
|
|
|
|
```bash
|
|
reme reindex
|
|
```
|
|
|
|
This command does not scan workspace files, rechunk content, or rebuild the wikilink graph.
|
|
|
|
Search:
|
|
|
|
```bash
|
|
reme search query="quick start example memory" limit=5
|
|
```
|
|
|
|
Read:
|
|
|
|
```bash
|
|
reme read path=digest/wiki/quick-start-demo start_line=1 end_line=20
|
|
```
|
|
|
|
With the default configuration, retrieval is primarily BM25 plus wikilink graph expansion. Vector retrieval is supported
|
|
by the code, but the embedding store is disabled by default. For the full retrieval flow, see
|
|
[Memory Search](./memory_search.md).
|
|
|
|
---
|
|
|
|
## Files and Daily Notes
|
|
|
|
```bash
|
|
reme stat path=digest/wiki/quick-start-demo
|
|
reme edit path=digest/wiki/quick-start-demo old="indexes" new="continuously indexes"
|
|
reme frontmatter_read path=digest/wiki/quick-start-demo
|
|
reme frontmatter_update path=digest/wiki/quick-start-demo metadata='{"tags":["demo"]}'
|
|
```
|
|
|
|
The file-listing Job can be called directly from the CLI:
|
|
|
|
```bash
|
|
reme list path=digest recursive=true limit=50
|
|
```
|
|
|
|
The equivalent HTTP call is:
|
|
|
|
```bash
|
|
curl -s http://127.0.0.1:2333/list \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{"path":"digest","recursive":true,"limit":50}'
|
|
```
|
|
|
|
Daily notes:
|
|
|
|
```bash
|
|
reme write path=daily/2026-06-20/demo-session.md name=demo-session description="Demo session" content="Recorded content"
|
|
reme daily_list date=2026-06-20
|
|
reme daily_list start_date=2026-06-01 end_date=2026-06-20 page=1 page_size=20
|
|
reme daily_reindex date=2026-06-20
|
|
```
|
|
|
|
`write` can create a daily note directly. Run `daily_reindex` when the day's index needs to be refreshed.
|
|
|
|
`daily_list` is read-only. Without new parameters, it still lists all notes for `date` (default: today) and returns
|
|
`{date, count, notes}`. Both range dates are required, inclusive, and cannot be combined with a non-empty `date`.
|
|
Ranges sort by date descending, then path ascending. Ranges or an explicit `page`/`page_size` enable pagination:
|
|
page defaults to 1, page size to 100 (maximum 1000), and metadata adds `page`, `page_size`, `total_notes`, `total_pages`.
|
|
An empty range has zero pages; a page past the end returns no notes. Totals count readable, valid, authorized notes.
|
|
Pagination limits output, not scanning; each request reflects the current files rather than a cross-page snapshot.
|
|
|
|
---
|
|
|
|
## Automatic Memory
|
|
|
|
```bash
|
|
reme auto_memory \
|
|
session_id=chat-demo \
|
|
messages='[{"role":"user","content":"I prefer to preserve project experience as Markdown."},{"role":"assistant","content":"Recorded."}]' \
|
|
memory_hint="Record the user's preference"
|
|
```
|
|
|
|
After placing external material under `resource/YYYY-MM-DD/` or directly under `resource/`, the default background task
|
|
watches text resources (`md/txt/json/jsonl/csv/yaml/html`) and image resources
|
|
(`png/jpg/jpeg/webp/gif/bmp/tiff/heic`). You can also trigger processing manually:
|
|
|
|
```bash
|
|
reme auto_resource changes='[{"path":"resource/2026-06-20/report.md","change":"added"}]'
|
|
```
|
|
|
|
Distill daily notes into long-term digest memory:
|
|
|
|
```bash
|
|
reme auto_dream date=2026-06-20
|
|
reme proactive_read date=2026-06-20
|
|
```
|
|
|
|
These flows require a working LLM. Without an LLM configuration, start with basic capabilities such as `write`, `read`,
|
|
and
|
|
`search`.
|
|
|
|
For more detail, see [Auto Memory](./auto_memory.md), [Auto Resource](./auto_resource.md),
|
|
[Auto Dream](./auto_dream.md), and [Proactive](./proactive.md).
|
|
|
|
---
|
|
|
|
## HTTP and Configuration
|
|
|
|
Every service-enabled Job is exposed as `POST /<job>`:
|
|
|
|
```bash
|
|
curl -s http://127.0.0.1:2333/version \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{}'
|
|
|
|
curl -s http://127.0.0.1:2333/search \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{"query":"quick start","limit":5}'
|
|
```
|
|
|
|
The default configuration comes from `reme/config/default.yaml`. Override it at startup with dot notation:
|
|
|
|
```bash
|
|
reme start \
|
|
workspace_dir=/tmp/reme-demo \
|
|
service.host=127.0.0.1 \
|
|
service.port=8181 \
|
|
enable_logo=false
|
|
```
|
|
|
|
You can also specify a YAML or JSON configuration file:
|
|
|
|
```bash
|
|
reme start config=/path/to/custom.yaml
|
|
```
|
|
|
|
Continue with the [CLI Reference](./reference/cli.md), [Job API Reference](./reference/jobs.md), or [Diagnostics, Backup, and Recovery](./operations.md).
|