### Prepare Home experiment: install plugin and run preparation Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/longmemeval/README.md Run from the repository root after obtaining the dataset. Installs the 'home' plugin and prepares the fixed group_1–group_5 training split (250 cases), workspace, and committed candidate code. Exits after preparation; does not evaluate or start optimization. A successful preparation cannot be repeated; use --workspace-dir for a separate workspace. ```bash reme plugins install plugins/home python benchmark/longmemeval/run_home.py # Optional separate workspace (a successful preparation cannot be repeated): python benchmark/longmemeval/run_home.py --workspace-dir /path/to/new-workspace ``` -------------------------------- ### Run local one-shot optimization with same configuration Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/longmemeval/README.md Starts a fresh application, applies both budgets and the sampling policy, runs home_optimize, and closes the application. Does not repeat preparation. Use the same --config and --workspace-dir overrides as preparation if supplied. ```bash python benchmark/longmemeval/run_home.py --optimize # Use the same --config and --workspace-dir overrides as preparation, if supplied. python benchmark/longmemeval/run_home.py --optimize --instruction "Improve retrieval quality" ``` -------------------------------- ### Local development setup Source: https://github.com/agentscope-ai/reme/blob/main/github-pages/README.md Install dependencies and start the development server. Requires Node.js 22.13 or newer and npm. Restart the server after changing mirrored READMEs or reme/config/default.yaml to refresh generated content. ```bash cd github-pages npm ci npm ci --prefix ../reme_studio npm run dev ``` -------------------------------- ### Install plugin and prepare Home experiment Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/beam/README.md Run from repository root after obtaining the dataset. Installs the 'home' plugin and prepares all BEAM 100K cases, workspace, and committed candidate code. Exits after preparation; does not evaluate or start optimization. Optional separate workspace cannot be repeated after a successful preparation. ```bash reme plugins install plugins/home python benchmark/beam/run_home.py # Optional separate workspace (a successful preparation cannot be repeated): python benchmark/beam/run_home.py --workspace-dir /path/to/new-workspace ``` -------------------------------- ### Install ReMe and LongMemEval plugins Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/longmemeval/README.md Install ReMe with the 'as' extra and the LongMemEval plugins in editable mode from the repository root. Then validate the lme plugin. ```bash python -m pip install -e ".[as]" reme plugins install ./plugins/lme --editable reme plugins install ./plugins/lme-judge --editable reme plugins validate lme ``` -------------------------------- ### Install π-Bench with AppWorld Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/pibench/README.md Clones the Pi-Bench repository, creates a Python 3.11 virtual environment named .venv (exactly this name is required), installs the pibench runner via pip, and runs the AppWorld setup script which downloads large data. ```bash git clone https://github.com/Simplified-Reasoning/Pi-Bench.git cd python3.11 -m venv .venv # scripts expect exactly this venv name source .venv/bin/activate pip install -e . # pibench runner (src.main) bash scripts/setup_appworld.sh # install AppWorld and download its data (large) ``` -------------------------------- ### Start the Service Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/context_compaction.md Start the service with the decision_compaction configuration preset. ```bash reme start config=decision_compaction ``` -------------------------------- ### Install additional plugins and start ReMe with cookbook config Source: https://github.com/agentscope-ai/reme/blob/main/plugins/dingtalk/README.md Install the Auto Fin and Daily Paper plugins, then start ReMe with the cookbook configuration that composes DingTalk with these plugins. ```bash reme plugins install plugins/auto-fin reme plugins install plugins/daily_paper reme start config=cookbook ``` -------------------------------- ### Prepare and run evaluation with two terminals Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/longmemeval/README.md Prepare the evaluation first, then use the service from two terminals. Replace CANDIDATE_SHA with the full candidate SHA or unambiguous hexadecimal prefix. The default excludes the source experiment's actual training IDs from the full dataset. ```bash python benchmark/longmemeval/run_home_eval.py --commit CANDIDATE_SHA --prepare-only # Terminal 1: reme start workspace_dir=benchmark/longmemeval/workspaces/home-test-held-out 'plugins=["home","lme-judge"]' # Terminal 2: reme home_evaluate workspace_dir=benchmark/longmemeval/workspaces/home-test-held-out record_history=false ``` -------------------------------- ### Install ReMe package Source: https://github.com/agentscope-ai/reme/blob/main/skills/reme_memory/SKILL.md Install the recommended ReMe package in the active Python environment. Use this when the user has requested setup or installation and ReMe is not already installed. ```bash python3 -m pip install "reme-ai[core]" ``` -------------------------------- ### Start Configuration Command Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/framework.md Starts the configuration in one terminal and leaves it running. ```bash reme start config=/path/to/uppercase.yaml ``` -------------------------------- ### Start ReMe service Source: https://github.com/agentscope-ai/reme/blob/main/integrations/openclaw/README.md Installs ReMe and starts it with a user-owned workspace, bound to loopback on port 3458. Disables the daily Dream cron so the plugin can own the schedule. ReMe HTTP does not add API-key authentication, so keep it on loopback or behind a trusted proxy. ```bash pip install "reme-ai[core]" reme start \ workspace_dir=/absolute/path/to/reme-workspace \ service.host=127.0.0.1 \ service.port=3458 \ jobs.dream_cron.enabled=false ``` -------------------------------- ### Start Reme with Custom Workspace Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Starts the Reme service with a custom workspace directory and port. ```bash reme start workspace_dir=/tmp/reme-demo service.port=8181 ``` -------------------------------- ### Build and install ReMe plugin from source Source: https://github.com/agentscope-ai/reme/blob/main/integrations/openclaw/README.md Builds the plugin from the repository and installs the exact tested archive. Requires npm and openclaw CLI. Restart the Gateway after installation. ```bash cd /path/to/ReMe/integrations/openclaw npm ci npm run build PACKAGE_TARBALL="$(npm pack --silent)" openclaw plugins install --force "./${PACKAGE_TARBALL}" ``` -------------------------------- ### Start Service with Configuration File: reme start command Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Starts the service using a custom YAML or JSON configuration file specified with the config parameter. ```bash reme start config=/path/to/custom.yaml ``` -------------------------------- ### Start a service Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/reference/cli.md Choose one startup command and leave it running. Plain `start` runs the configured Service; omit `config` to use `default`. ```bash reme start ``` ```bash reme start config=demo ``` ```bash reme start workspace_dir=/data/reme service.port=8181 ``` -------------------------------- ### Start Home service and evaluate prepared candidates Source: https://github.com/agentscope-ai/reme/blob/main/plugins/home/README.md Start a service with Home enabled, then run home_evaluate from another terminal to evaluate all prepared training cases and their queries. ```bash reme start config= # In another terminal: all prepared training cases, all their queries reme home_evaluate ``` -------------------------------- ### Install ReMe Studio via npm Source: https://github.com/agentscope-ai/reme/blob/main/reme_studio/README.md Installs the prebuilt static workspace for Node.js applications. The static entry point is installed at @agentscope-ai/reme_studio/dist-static/index.html. ```bash npm install @agentscope-ai/reme_studio ``` -------------------------------- ### Start ReMe with Docker Source: https://github.com/agentscope-ai/reme/blob/main/README.md Build and start ReMe with the bundled Studio using Docker and Compose 2.24.0+. The workspace persists in ./.reme. ```bash mkdir -p .reme docker compose up --build -d ``` -------------------------------- ### Install ReMe editable from source Source: https://github.com/agentscope-ai/reme/blob/main/skills/reme_memory/SKILL.md Install ReMe in editable mode from a source checkout. Run this from the repository root when the user explicitly wants an editable source installation. ```bash python3 -m pip install -e ".[core]" ``` -------------------------------- ### Smoke check the installation Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/pibench/README.md Run syntax checks on run_all.sh and run_persona.sh, then verify that the reme package is importable from the virtual environment. This does not start the evaluation. ```bash bash -n run_all.sh && bash -n run_persona.sh source env.sh && "$REME_DIR/.venv/bin/python" -c "import reme; print('reme ok')" ``` -------------------------------- ### Check if ReMe is installed Source: https://github.com/agentscope-ai/reme/blob/main/skills/reme_memory/SKILL.md Run this command to verify whether the ReMe CLI is installed. If it 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. ```bash command -v reme ``` -------------------------------- ### Python caller: run preparation lifecycle Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/longmemeval/README.md Python callers can use the same lifecycle as the CLI preparation. The default run() and CLI behavior remain preparation only. ```python from benchmark.longmemeval.run_home import run result = await run(workspace_dir="/path/to/new-workspace") ``` -------------------------------- ### Start ReMe and run frontend development server Source: https://github.com/agentscope-ai/reme/blob/main/reme_studio/README.md Start ReMe from the repository root, then run the frontend in another terminal. Open http://localhost:3000. The development frontend connects to http://127.0.0.1:2333 by default. ```bash # Terminal 1, from the repository root reme start # Terminal 2 cd reme_studio npm install npm run dev ``` -------------------------------- ### Plugin Management Commands Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/framework.md Commands to list, install, show, validate, and uninstall plugins, plus start the application with the cookbook configuration. These management commands use the current Python interpreter's pip and never run through an HTTP or MCP service. ```bash reme plugins list reme plugins install plugins/dingtalk reme plugins install plugins/auto-fin reme plugins install plugins/daily_paper reme plugins show daily-paper reme plugins validate daily-paper reme plugins uninstall daily-paper reme start config=cookbook ``` -------------------------------- ### Start Home service with reme start Source: https://github.com/agentscope-ai/reme/blob/main/plugins/home/README.md Start the configured Home service in one terminal before calling Home Jobs. Requires a config file at the given absolute path. ```bash reme start config=/absolute/path/to/home.yaml ``` -------------------------------- ### Development setup for DingTalk plugin Source: https://github.com/agentscope-ai/reme/blob/main/plugins/dingtalk/README.md Install the plugin in editable mode, validate it, and run its tests from the repository root. ```bash reme plugins install ./plugins/dingtalk --editable reme plugins validate dingtalk python -m pytest plugins/dingtalk -v ``` -------------------------------- ### Start service and run home_prepare via CLI Source: https://github.com/agentscope-ai/reme/blob/main/plugins/home/README.md Start a ReMe service configured with the home plugin, then call home_prepare from another terminal using the same service selection as other jobs. Requires a prepare.yaml spec file in the workspace. ```bash reme start config= # In another terminal: reme home_prepare spec_path=prepare.yaml ``` -------------------------------- ### Start service with proactive config and TTL override Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/auto_resource.md Starts the service with config=proactive and overrides the resource TTL to 7 days. ```bash reme start config=proactive components.file_catalog.resource.ttl_days=7 ``` -------------------------------- ### HTTP Service: curl requests to version and search endpoints Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Every service-enabled Job is exposed as POST /. These examples query the version and search endpoints on the default service port 2333. ```bash curl -s http://127.0.0.1:2333/version \ -H 'Content-Type: application/json' \ -d '{}' ``` ```bash curl -s http://127.0.0.1:2333/search \ -H 'Content-Type: application/json' \ -d '{"query":"quick start","limit":5}' ``` -------------------------------- ### Start Service with Dot Notation Configuration: reme start command Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Starts the service with configuration overrides using dot notation. The default configuration comes from reme/config/default.yaml. ```bash reme start \ workspace_dir=/tmp/reme-demo \ service.host=127.0.0.1 \ service.port=8181 \ enable_logo=false ``` -------------------------------- ### Start ReMe with custom workspace Source: https://github.com/agentscope-ai/reme/blob/main/skills/reme_memory/SKILL.md Start ReMe with a stable, user-selected workspace path for durable Agent memory. The default workspace is .reme/ under the startup directory. ```bash reme start workspace_dir="/absolute/path/to/reme-workspace" ``` -------------------------------- ### Local one-shot test evaluation Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/longmemeval/README.md Run a one-shot test evaluation with optional overrides for configuration, source workspace, and test workspace paths. The runner rebuilds construction and scores every selected query with sampling and history recording disabled. ```bash python benchmark/longmemeval/run_home_eval.py --commit CANDIDATE_SHA # Optional overrides: --config /path/to/test.yaml --source-workspace /path/to/search --test-workspace /path/to/test ``` -------------------------------- ### Set up local development environment with Python 3.11+ Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/contributing.md Sets up a local development environment for ReMe. Requires Python 3.11 or later. Creates a virtual environment, installs the package with development and full dependencies, builds the reme_studio frontend, and installs pre-commit hooks. ```bash python -m venv .venv source .venv/bin/activate pip install -e reme_studio -e ".[dev,full]" cd reme_studio npm ci npm run build:static cd .. pre-commit install ``` -------------------------------- ### Run the ReMe LongMemEval benchmark Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/longmemeval/README.md Executes the benchmark from the repository root. Supports optional flags: --config for a YAML config, -q for quiet eval-level logs, --log-level to reduce eval runner logs, --reme-log-level to reduce reme internal logs, and --eval_only to reuse existing workspaces and only query and judge. ```bash python benchmark/longmemeval/run.py ``` ```bash python benchmark/longmemeval/run.py --config benchmark/longmemeval/config.yaml ``` ```bash python benchmark/longmemeval/run.py -q # quiet: only eval-level logs ``` ```bash python benchmark/longmemeval/run.py --log-level WARNING # reduce eval runner logs ``` ```bash python benchmark/longmemeval/run.py --reme-log-level WARNING # reduce reme internal logs ``` ```bash python benchmark/longmemeval/run.py --eval_only # reuse existing workspaces, query + judge only ``` -------------------------------- ### Service startup and job registration flow (Mermaid flowchart) Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/framework.md Shows how BaseService.run_app() builds the service, registers enabled and selected jobs, and starts the application. ```mermaid flowchart LR A["Service.build_service(app)"] --> B["read app.context.jobs"] B --> C{"enabled and selected by service.jobs?"} C -->|yes| D["Service.add_job(job)"] C -->|no| E["skip registration"] D --> F["Service.start_service(app)"] E --> F F --> G["app.start() during lifespan"] G --> H["Application starts jobs"] ``` -------------------------------- ### Download the ReMe LongMemEval dataset Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/longmemeval/README.md Downloads the cleaned-S split from HuggingFace via hf-mirror.com. Saves to dataset/longmemeval_s_reme_cleaned.json and skips if already present. Modify BASE_URL in download.py to use a different mirror. ```bash cd benchmark/longmemeval python download.py # saves dataset/longmemeval_s_reme_cleaned.json; skips if already present ``` -------------------------------- ### Install editable development environment Source: https://github.com/agentscope-ai/reme/blob/main/AGENTS.md Install the editable development environment with Python 3.11 or newer. Includes reme_studio and dev/core extras. ```bash pip install -e reme_studio -e ".[dev,core]" ``` -------------------------------- ### Start ReMe service on custom port Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Start the service on a different port if the default is already in use. ```bash reme start service.port=8181 ``` -------------------------------- ### Install ReMe Hermes plugin from repository subdirectory Source: https://github.com/agentscope-ai/reme/blob/main/integrations/hermes_agent/README.md Installs the ReMe Hermes plugin directly from the repository subdirectory and sets up memory. Requires the Hermes CLI. ```bash hermes plugins install agentscope-ai/ReMe/integrations/hermes_agent hermes memory setup ``` -------------------------------- ### Start service with proactive config Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/services.md Starts the service with config=proactive to expose the pa_* Jobs instead of chat. ```bash reme start config=proactive ``` -------------------------------- ### Install ReMe repository and sanity check Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/pibench/README.md Sets up a Python 3.11 virtual environment in the ReMe repository root (exactly named .venv), installs ReMe so that `import reme` works, and verifies the package with a quick sanity check. ```bash cd # ReMe repository root (contains the reme/ package) python3.11 -m venv .venv # scripts expect exactly this venv name source .venv/bin/activate pip install -e . # or ReMe's own install flow; `import reme` must work ``` ```bash .venv/bin/python -c "import reme; print('ok')" ``` -------------------------------- ### Example plugin list output Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/plugin_management.md Example output from 'reme plugins list' showing the table columns and a sample row. ```text PLUGIN DISTRIBUTION VERSION FORMAT -------- ------------- ------- -------- auto-fin reme-auto-fin X.Y.Z manifest ``` -------------------------------- ### Install ReMe from source Source: https://github.com/agentscope-ai/reme/blob/main/README.md Clone the repository and install ReMe from source. Requires Node.js 22.13 or newer for the static build. ```bash 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 .. ``` -------------------------------- ### Install ReMe and Daily Paper Source: https://github.com/agentscope-ai/reme/blob/main/plugins/daily_paper/README.md Install the ReMe core package and the Daily Paper plugin from the local directory. ```bash python -m pip install "reme-ai[core]>=0.4.1.12" reme plugins install plugins/daily_paper ``` -------------------------------- ### List installed plugins Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/plugin_management.md Lists installed plugins with entry-point name, distribution, version, and contract format. ```bash reme plugins list ``` -------------------------------- ### Install a local plugin project Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/plugin_management.md Installs a plugin from a local directory path. Use this for development or when the plugin is not published. ```bash reme plugins install ./plugins/auto-fin ``` -------------------------------- ### POST /list Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md HTTP endpoint to list files and directories under a specified path, with optional recursion and limit. ```APIDOC ## [POST] /list ### Description HTTP endpoint to list files and directories under a specified path, with optional recursion and limit. ### Method POST ### Endpoint `/list` ### Parameters #### Request Body - **path** (string) - Required - The path to list. - **recursive** (boolean) - Optional - Whether to list recursively. - **limit** (integer) - Optional - The maximum number of items to return. ### Request Example ```bash curl -s http://127.0.0.1:2333/list \ -H 'Content-Type: application/json' \ -d '{"path":"digest","recursive":true,"limit":50}' ``` ``` -------------------------------- ### Start ReMe with custom workspace and port Source: https://github.com/agentscope-ai/reme/blob/main/reme_studio/README.md Starts the ReMe HTTP service with a different workspace and port using normal ReMe configuration overrides. ```bash reme start workspace_dir=/absolute/path/to/workspace service.port=8000 ``` -------------------------------- ### Install ReMe and DingTalk plugin Source: https://github.com/agentscope-ai/reme/blob/main/plugins/dingtalk/README.md Install the ReMe core package and the DingTalk plugin, then validate the plugin installation. ```bash python -m pip install "reme-ai[core]>=0.4.1.12" reme plugins install plugins/dingtalk reme plugins validate dingtalk ``` -------------------------------- ### Create the environment file from env.sh.example Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/pibench/README.md Copy the environment template to env.sh. Then open env.sh and fill in required variables: PI_BENCH_ROOT, USER_API_KEY, JUDGER_API_KEY, and optionally BRAVE_SEARCH_API_KEY. Optional tuning includes REME_MODEL_NAME, REME_DIR, and REME_LLM_BASE_URL. ```bash cp env.sh.example env.sh ``` -------------------------------- ### Start ReMe service with HTTP backend Source: https://github.com/agentscope-ai/reme/blob/main/integrations/codex/README.md Install the reme-ai[core] package and start the ReMe service with an HTTP backend on 127.0.0.1:2333. Keep service.tool_error_on_failure=true so failed writes can be retried later. This example lets Codex manage daily consolidation; omit the last two options if your ReMe service already has a schedule you want to keep. ```bash pip install "reme-ai[core]" ``` ```bash reme start \ workspace_dir=/absolute/path/to/reme-workspace \ service.backend=http \ service.host=127.0.0.1 \ service.port=2333 \ service.tool_error_on_failure=true \ jobs.dream_cron.backend=base \ jobs.dream_cron.enable_serve=false ``` -------------------------------- ### Install ReMe and Auto Fin Source: https://github.com/agentscope-ai/reme/blob/main/plugins/auto-fin/README.md Install the ReMe core package and the Auto Fin plugin from the local directory. ```bash python -m pip install "reme-ai[core]>=0.4.1.12" reme plugins install plugins/auto-fin ``` -------------------------------- ### Start service with image count limit Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/auto_resource.md Configure the agent wrapper to allow one image per agent context when starting the persistent service. The wrapper's configured image-count limit must allow at least one image per resource call. ```bash reme start components.agent_wrapper.default.context_config.max_image_num=1 ``` -------------------------------- ### Install and Configure Decision Model Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/context_compaction.md Install reme-ai with core and decision extras, then set the required environment variables for the decision model. The CLI also loads DECISION_MODEL_* from .env; an omitted or null model uses the SDK default. ```bash pip install "reme-ai[core,decision]" export DECISION_MODEL_API_KEY=your-typesafe-api-key export DECISION_MODEL_BACKEND=agentscope # Optional: DECISION_MODEL_NAME and DECISION_MODEL_BASE_URL ``` -------------------------------- ### Install ReMe Studio with web extra only Source: https://github.com/agentscope-ai/reme/blob/main/reme_studio/README.md Installs only the web extra when other optional integrations are unnecessary. The base reme-ai package is headless and does not include frontend assets. ```bash pip install "reme-ai[web]" ``` -------------------------------- ### Start ReMe on a custom port Source: https://github.com/agentscope-ai/reme/blob/main/README.md Start ReMe on a custom port when the default port is occupied. ```bash reme start service.port=8181 # reme start workspace_dir=/tmp/reme-demo service.port=8181 ``` -------------------------------- ### Install ReMe from pip Source: https://github.com/agentscope-ai/reme/blob/main/README.md Install ReMe with core features using pip. Requires Python 3.11+. ```bash pip install "reme-ai[core]" ``` -------------------------------- ### Install and enable plugin operations Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/plugin_management.md Shows the two separate operations: installing a package into the current Python environment and enabling an installed plugin for one Application. ```text reme plugins install ... install a package into the current Python environment plugins: [auto-fin] enable an installed plugin for one Application ``` -------------------------------- ### Develop the browser demo Source: https://github.com/agentscope-ai/reme/blob/main/reme_studio/README.md Run the development server and build the demo for static hosting. The demo builds to `dist-demo/` and is included at `/studio/` in the GitHub Pages build. ```bash npm run dev:demo npm run build:demo ``` -------------------------------- ### Start the ReMe service Source: https://github.com/agentscope-ai/reme/blob/main/README.md Start ReMe with the default service address 127.0.0.1:2333. Specify another port if the default is occupied. ```bash reme start ``` -------------------------------- ### Install ReMe and BEAM plugins Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/beam/README.md Install ReMe and the BEAM plugin in editable mode from the repository root. The runner enables the installed beam plugin and combines its defaults with ReMe's built-in benchmark preset. ```bash python -m pip install -e ".[as]" reme plugins install ./plugins/beam --editable reme plugins install ./plugins/beam-judge --editable reme plugins validate beam ``` -------------------------------- ### reme write Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Creates a daily note with specified content. ```APIDOC ## [CLI] reme write ### Description Creates a daily note with specified content. ### Method CLI ### Endpoint `reme write` ### Parameters #### Path Parameters - **path** (string) - Required - The path where the note should be created. - **name** (string) - Required - The name of the note. - **description** (string) - Required - A description of the note. - **content** (string) - Required - The content of the note. ### Example ```bash reme write path=daily/2026-06-20/demo-session.md name=demo-session description="Demo session" content="Recorded content" ``` ``` -------------------------------- ### Link local plugin for development Source: https://github.com/agentscope-ai/reme/blob/main/integrations/dsh/README.md Sets up a local plugin for development: links the package into the DSH workspace and installs its bundle into the web profile. The first command makes the package resolver see the local plugin; the second installs its bundle. Do not commit a machine-specific link: dependency. ```bash cd /path/to/deepseek-harness pnpm link /path/to/ReMe/integrations/dsh --workspace-root dsh plugin --profile web add /path/to/ReMe/integrations/dsh ``` -------------------------------- ### Enable a plugin for the Application Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/faq.md Enables a plugin for the Application. Installation only makes the distribution discoverable; restart a running service after changing package or enablement state. ```bash reme start plugins='["auto-fin"]' ``` -------------------------------- ### Example resource directory layout Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/auto_resource.md Shows the recommended directory structure for Auto Resource. Files directly under resource/ enter today's daily layer; files under a date directory enter that date's layer. ```text workspace/ resource/ quick-note.txt # enters today's daily layer 2026-06-20/ market-report.md meeting-notes.csv ``` -------------------------------- ### Sources section example Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/memory_as_file.md Shows how to record the origin of a long-term memory using wikilinks to daily notes and resource files. ```markdown ## Sources The preference was observed in [[daily/2026-06-20/documentation-style.md]], and the supporting report evidence is retained in [[resource/2026-06-20/report.pdf]]. ``` -------------------------------- ### Start ReMe on custom port Source: https://github.com/agentscope-ai/reme/blob/main/skills/reme_memory/SKILL.md Start ReMe on another port if port 2333 is occupied. Do not stop or replace the unknown listener. ```bash reme start workspace_dir="/absolute/path/to/reme-workspace" service.port=8181 ``` -------------------------------- ### Example PR titles Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/contributing.md Example PR titles using the required format. Each line demonstrates a valid type, scope, and description. ```text feat(auto-memory): persist source conversation metadata fix(markdown): keep wikilink aliases during edit docs(en): add contribution guide ``` -------------------------------- ### Start ReMe with OpenAI-compatible vision model Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/blog_20261009.md Starts ReMe with an OpenAI-compatible backend, specifying the vision model and max tokens. Replace YOUR_VISION_MODEL with the model name from your service. ```bash reme start \ components.as_llm.default.backend=openai \ components.as_llm.default.model=YOUR_VISION_MODEL \ components.as_llm.default.parameters.max_tokens=4096 ``` -------------------------------- ### Install ReMe and BEAM plugins in editable mode Source: https://github.com/agentscope-ai/reme/blob/main/plugins/beam/README.md Run from the repository root to install ReMe and the beam and beam-judge plugins in editable mode, then validate them and run the benchmark. Editable installation registers the beam entry point while keeping source changes immediately visible. ```bash python -m pip install -e ".[as]" reme plugins install ./plugins/beam --editable reme plugins install ./plugins/beam-judge --editable reme plugins validate beam reme plugins validate beam-judge python benchmark/beam/run.py ``` -------------------------------- ### Default Workspace Layout Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Shows the default workspace structure created automatically at startup under `.reme/`. ```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 ``` -------------------------------- ### Install and build base image Source: https://github.com/agentscope-ai/reme/blob/main/deploy/benchmark_docker/README.md Install the benchmark-docker extra and build the base Docker image with the tag reme-benchmark-base:agentscope-2.0.11. Run from the repository root. ```bash pip install -e '.[benchmark-docker]' docker build -f deploy/benchmark_docker/Dockerfile.base \ -t reme-benchmark-base:agentscope-2.0.11 . ``` -------------------------------- ### reme list Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Lists files and directories under a specified path, with optional recursion and limit. ```APIDOC ## [CLI] reme list ### Description Lists files and directories under a specified path, with optional recursion and limit. ### Method CLI ### Endpoint `reme list` ### Parameters #### Path Parameters - **path** (string) - Required - The path to list. - **recursive** (boolean) - Optional - Whether to list recursively. - **limit** (integer) - Optional - The maximum number of items to return. ### Example ```bash reme list path=digest recursive=true limit=50 ``` ``` -------------------------------- ### Start service with new workspace path Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/operations.md Use this command to start the service with a new absolute workspace path after migrating the workspace. Ensure the old service is stopped before copying to prevent writes during the copy. ```bash reme start workspace_dir=/new/location/reme-memory ``` -------------------------------- ### Example commit messages Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/contributing.md Example commit messages using the Conventional Commits format. Each line shows a valid type and scope combination. ```bash feat(search): add link expansion option fix(file-graph): handle pending wikilinks after move docs(memory): update auto memory guide test(config): cover default yaml parsing chore(pre-commit): update lint hooks ``` -------------------------------- ### Install a plugin package Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/plugin_management.md Installs a published distribution by its package name. ReMe invokes pip through the same Python interpreter that runs the `reme` command; pip handles resolution, downloads, dependencies, and builds. Install only packages and local projects you trust. ```bash reme plugins install your-plugin-package ``` -------------------------------- ### Start ReMe with a custom workspace directory Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/faq.md Starts ReMe with a custom workspace directory. Ordinary CLI calls discover the running service, so they do not need the workspace argument again. ```bash reme start workspace_dir=/absolute/path/to/memory ``` -------------------------------- ### Start service and call auto_bash job Source: https://github.com/agentscope-ai/reme/blob/main/plugins/home/README.md Start the ReMe service with the Home plugin enabled, then call the auto_bash job from another terminal. The job runs in a sandbox with read-only workspace by default. ```bash reme start config= # In another terminal: reme auto_bash command=pwd ``` -------------------------------- ### Start ReMe service with HTTP backend Source: https://github.com/agentscope-ai/reme/blob/main/integrations/claude_code/README.md Install ReMe core and start the HTTP service with a workspace directory. The default endpoint is http://127.0.0.1:2333 with MCP at /mcp. Keep the unauthenticated service on loopback or behind a protected proxy. ```bash pip install "reme-ai[core]" reme start workspace_dir=/absolute/path/to/workspace service.backend=http ``` -------------------------------- ### HTTP API: list files Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Equivalent HTTP call to the list Job, sending a JSON payload to /list. ```bash curl -s http://127.0.0.1:2333/list \ -H 'Content-Type: application/json' \ -d '{"path":"digest","recursive":true,"limit":50}' ``` -------------------------------- ### Start service with decision_demo config Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/configuration.md Start the service with the `decision_demo` configuration. Set the TypeSafe API key and override the timeout to 15 seconds. Run in one terminal. ```bash export DECISION_MODEL_API_KEY=your-typesafe-api-key reme start config=decision_demo \ components.as_decision_model.default.timeout=15 ``` -------------------------------- ### Install Home and judge plugins Source: https://github.com/agentscope-ai/reme/blob/main/plugins/home/README.md Install the Home plugin and a matching judge plugin into the same Python environment as ReMe. Use plugins/lme-judge for LongMemEval. ```bash reme plugins install plugins/home reme plugins install plugins/beam-judge # Use plugins/lme-judge for LongMemEval. ``` -------------------------------- ### CLI startup flow (Mermaid flowchart) Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/framework.md Shows the call chain from main() through parse_args, action dispatch, and service startup or client calls. ```mermaid flowchart LR A["main()"] --> B["parse_args(*sys.argv[1:])"] B --> C{action} C -->|" start "| D["load_env()"] D --> E["resolve_app_config(**kwargs)"] E --> F["precheck_start(service)"] F --> G["ReMe(**config).run_app()"] C -->|" find_reme "| H["cli_find_reme()"] C -->|" other actions "| I["call_server(action, **kwargs)"] I --> J["R.get(ComponentEnum.CLIENT, backend)"] J --> K["client(action=action, **kwargs)"] ``` -------------------------------- ### Start DSH Web with environment variables for OpenAI-compatible endpoint Source: https://github.com/agentscope-ai/reme/blob/main/integrations/dsh/README.md Loads the ReMe repository's .env file to expose LLM_API_KEY and LLM_BASE_URL environment variables, then starts DSH Web. The patch/settings document references these variables without containing the actual secret. Use this to share an OpenAI-compatible endpoint without copying secrets into YAML. ```bash set -a source /path/to/ReMe/.env set +a # The patch/settings document contains only these references, never the value. # apiKeyEnv: LLM_API_KEY # baseURL: !!js process.env.LLM_BASE_URL dsh web --no-open --port 3090 ``` -------------------------------- ### Install ReMe and plugins for LongMemEval benchmark Source: https://github.com/agentscope-ai/reme/blob/main/plugins/lme/README.md Run from the repository root to install ReMe and the lme and lme-judge plugins in editable mode, then validate and run the benchmark. Editable installation registers the lme entry point while keeping source changes immediately visible. ```bash python -m pip install -e ".[as]" reme plugins install ./plugins/lme --editable reme plugins install ./plugins/lme-judge --editable reme plugins validate lme reme plugins validate lme-judge python benchmark/longmemeval/run.py ``` -------------------------------- ### Verify ReMe service readiness Source: https://github.com/agentscope-ai/reme/blob/main/skills/reme_memory/SKILL.md Run these commands from another terminal or tool session after the service starts. Proceed only when version responds and health_check reports a healthy service. ```bash reme find_reme reme version reme health_check ``` -------------------------------- ### Run local one-shot optimization Source: https://github.com/agentscope-ai/reme/blob/main/benchmark/beam/README.md Starts a fresh application, applies both budgets and the sampling policy, runs home_optimize, and closes the application. Does not repeat preparation. Use the same --config and --workspace-dir overrides as preparation if supplied. ```bash python benchmark/beam/run_home.py --optimize # Use the same --config and --workspace-dir overrides as preparation, if supplied. python benchmark/beam/run_home.py --optimize --instruction "Improve retrieval quality" ``` -------------------------------- ### Direct plugin installation Source: https://github.com/agentscope-ai/reme/blob/main/integrations/qoder/README.md Installs the ReMe Qoder plugin directly from the plugin directory without adding a marketplace. Uses user scope. ```bash qodercli plugins install /path/to/ReMe/integrations/qoder/reme --scope user ``` -------------------------------- ### Run proactive_refresh locally with reme start Source: https://github.com/agentscope-ai/reme/blob/main/skills/reme_memory/SKILL.md Runs the proactive refresh job locally without serving it through HTTP or MCP. This is a maintenance exception because `proactive_refresh` has `enable_serve: false` and cannot be invoked via `reme proactive_refresh` against the running service. ```bash reme start config=default job=proactive_refresh date="" ``` -------------------------------- ### Start one-shot job Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/services.md Runs a one-shot job using the CLI Service while retaining the normal Application, Component, and Job lifecycle. ```bash reme start job=search query="user preferences" limit=5 ``` -------------------------------- ### Build github-pages site with npm Source: https://github.com/agentscope-ai/reme/blob/main/AGENTS.md Run from the github-pages directory when documentation or the documentation theme changes. ```bash npm run build ``` -------------------------------- ### Example citation in memory prompt Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/auto_memory.md Each image is accompanied by its exact source link in the model input. The memory prompt asks the Agent to cite that source beside the corresponding visual facts, as shown in this markdown example. ```markdown The diagram places Gateway before Worker and PostgreSQL. See [[session/images/session-a/msg-6d6573736167652d61-image-1.png]]. ``` -------------------------------- ### Run home_prepare via Python Application API Source: https://github.com/agentscope-ai/reme/blob/main/plugins/home/README.md Use the ReMe Application class to run home_prepare programmatically. Pass exactly one of spec_path or spec (a configuration dictionary). The example uses a CLI backend and checks response.success. ```python from reme.application import Application app = Application(workspace_dir="/experiments/run-1", plugins=["home", "beam-judge"], service={"backend": "cli"}) try: await app.start() response = await app.run_job("home_prepare", spec=preparation_config) if not response.success: raise RuntimeError(response.answer) finally: await app.close() ``` -------------------------------- ### Offload and reload context with ReMe short-term memory Source: https://github.com/agentscope-ai/reme/wiki/ReMeV2-深度设计文档:渐进式-Agentic-Memory-方案 Use ReMe's offload_context and reload_context methods to manage short-term conversational memory. Requires the same environment variables as the basic setup. The example shows offloading a message list and then reloading relevant context with a query and limit, printing the results. ```python import os from reme_ai import ReMe os.environ["REME_LLM_API_KEY"] = "sk-..." os.environ["REME_LLM_BASE_URL"] = "https://dashscope.aliyuncs.com/compatible-mode/v1" os.environ["REME_EMBEDDING_API_KEY"] = "sk-..." os.environ["REME_EMBEDDING_BASE_URL"] = "https://dashscope.aliyuncs.com/compatible-mode/v1" memory = ReMe( memory_space="remy", llm={"backend": "openai", "model": "qwen-plus", "temperature": 0.6}, embedding={"backend": "openai", "model": "text-embedding-v4", "dimension": 1024}, vector_store={"backend": "local_file"}, ) # Offload context when conversation gets too long result = memory.offload_context( messages=[ {"role": "user", "content": "I'm travelling to SF"}, {"role": "assistant", "content": "That's great to hear!"} ], ) # Reload relevant context when needed memories = memory.reload_context( query="what is your travel plan?", limit=3, ) memories_str = "\n".join(f"- {m['memory']}" for m in memories["results"]) print(memories_str) ``` -------------------------------- ### Quick diagnosis commands Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/operations.md Run these commands in order from another terminal to inspect a running ReMe service. For a new deployment, start the service first as shown in Quick Start. ```bash reme find_reme reme version reme health_check reme status reme app_config ``` -------------------------------- ### Reme CLI: list files Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Lists files under a path with recursion and a limit. The file-listing Job can be called directly from the CLI. ```bash reme list path=digest recursive=true limit=50 ``` -------------------------------- ### Configure LLM for agent workflows Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Set up an OpenAI-compatible LLM backend for agent workflows like auto_memory, auto_resource, auto_dream, and proactive refresh. Replace your_api_key with a valid key. ```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 ``` -------------------------------- ### Read a Markdown memory file with reme read Source: https://github.com/agentscope-ai/reme/blob/main/skills/reme_memory/SKILL.md Reads a relevant Markdown result to get full context rather than relying only on the search snippet. Accepts Markdown only; use `reme load` for non-Markdown text files. Optionally specify start_line and end_line to read a range. ```bash reme read path="" ``` ```bash reme read path="" start_line=1 end_line=80 ``` -------------------------------- ### reme daily_list Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/quick_start.md Lists daily notes, optionally filtered by date range and with pagination. ```APIDOC ## [CLI] reme daily_list ### Description Lists daily notes, optionally filtered by date range and with pagination. ### Method CLI ### Endpoint `reme daily_list` ### Parameters #### Query Parameters - **start_date** (string) - Optional - The start date for the range (inclusive). - **end_date** (string) - Optional - The end date for the range (inclusive). - **page** (integer) - Optional - The page number for pagination (default: 1). - **page_size** (integer) - Optional - The number of items per page (default: 100, max: 1000). ### Response #### Success Response (200) - **date** (string) - The date of the notes listed. - **count** (integer) - The number of notes listed. - **notes** (array) - The list of notes. ### Example ```bash reme daily_list reme daily_list start_date=2026-06-01 end_date=2026-06-20 page=1 page_size=20 ``` ``` -------------------------------- ### One-shot local execution of home_prepare Source: https://github.com/agentscope-ai/reme/blob/main/plugins/home/README.md Run home_prepare as a one-shot job in a single command. Pass the spec file path via spec_path. ```bash reme start config= job=home_prepare spec_path=prepare.yaml ``` -------------------------------- ### Set DashScope API key and start service Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/configuration.md Export the DashScope API key and start the reme service with the default configuration. A missing key does not prevent service startup; calls to the dashscope_search Job will return a failure. ```bash export DASHSCOPE_API_KEY=sk-xxx reme start config=default ``` -------------------------------- ### LangChain integration placeholder Source: https://github.com/agentscope-ai/reme/wiki/ReMeV2-深度设计文档:渐进式-Agentic-Memory-方案 Placeholder for a LangChain integration example. No actual code is provided yet. ```python # TODO: Provide LangChain integration example ``` -------------------------------- ### Show service capabilities with reme help and reme app_config Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/faq.md Shows the capabilities the running service exposes. Static documentation describes defaults; plugins and custom configuration may change the active service. ```bash reme help reme app_config ``` -------------------------------- ### Validate documentation site Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/contributing.md Commands to validate the documentation site. Run from the github-pages directory: install dependencies, run tests, and build. ```bash cd github-pages npm ci npm test npm run build ``` -------------------------------- ### Run static dev server with VITE_REME_API_URL Source: https://github.com/agentscope-ai/reme/blob/main/reme_studio/README.md Starts the static development server for standalone development, using the specified API URL. Requires the API to be reachable at that URL. ```bash VITE_REME_API_URL=http://127.0.0.1:2333 npm run dev:static ``` -------------------------------- ### List and validate installed plugins Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/plugin_management.md Lists installed plugins and validates a specific plugin by name. Confirms the discovered plugin name after installation. ```bash reme plugins list ``` ```bash reme plugins validate auto-fin ``` -------------------------------- ### Enable ReMe plugin and set memory provider Source: https://github.com/agentscope-ai/reme/blob/main/integrations/hermes_agent/README.md Run these commands to enable the reme plugin, set it as the memory provider, and verify the status. Start a new session after configuration. ```bash hermes plugins enable reme hermes config set memory.provider reme hermes memory status ``` -------------------------------- ### Start the service with reme start config=default Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/auto_dream.md Starts the Auto Dream service in the current terminal. Leave it running while you call it from another terminal. ```bash reme start config=default ``` -------------------------------- ### Build static frontend and restart ReMe Source: https://github.com/agentscope-ai/reme/blob/main/reme_studio/README.md Builds the static frontend for ReMe-hosted serving and restarts ReMe. Run from the project root. Requires npm and a ReMe installation. ```bash cd reme_studio npm ci npm run build:static cd .. reme start ``` -------------------------------- ### Install or upgrade a pinned version Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/plugin_management.md Installs a specific version using pip's version specifier syntax, or upgrades an existing installation with the `--upgrade` flag. ```bash reme plugins install 'your-plugin-package==X.Y.Z' ``` ```bash reme plugins install your-plugin-package --upgrade ``` -------------------------------- ### Install ReMe plugin in Claude Code Source: https://github.com/agentscope-ai/reme/blob/main/integrations/claude_code/README.md Add the ReMe marketplace and install the plugin using absolute paths. Restart or reload Claude Code after installation. ```text /plugin marketplace add /absolute/path/to/ReMe/integrations/claude_code /plugin install reme@reme-marketplace ``` -------------------------------- ### Validate a local plugin project before installation Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/plugin_management.md Validates a local plugin project before installation. Performs the same checks as validating an installed plugin. Imports backend modules, so run only for trusted code. ```bash reme plugins validate ./plugins/auto-fin ``` -------------------------------- ### Example digest/personal/code-style.md Source: https://github.com/agentscope-ai/reme/blob/main/docs/en/reme_scene.md Example personal digest for user coding-style preferences. ```markdown --- name: User coding-style preferences description: Engineering preferences repeatedly expressed by the user --- # User Coding-style Preferences ## Comments The user dislikes comments that restate what the code literally does. Comments should explain WHY or a complex constraint. ## Tests The user prefers focused tests around the risk and dislikes broad, unrelated refactoring. ``` -------------------------------- ### Start ReMe with the daily-paper plugin Source: https://github.com/agentscope-ai/reme/blob/main/plugins/daily_paper/README.md Start ReMe with the daily-paper plugin. With no explicit config, ReMe loads default.yaml and adds the plugin to that service. The plugin starts daily_paper_cron, which runs daily at 08:00. ```bash reme start plugins='["daily-paper"]' ```