Skip to content

Job API 参考 ​

本页从 reme/config/default.yaml 自动生成。它描述默认应用中的可调用 Job;插件和自定义配置可以增加、删除或覆盖 Job。运行 reme help 可查看当前服务的实际能力。

后台 Job 和 Cron Job 不通过服务暴露,因此不列入调用参考。

系统与诊断 ​

proactive_refresh ​

Refresh proactive topics once for local maintenance or debugging; not exposed by HTTP/MCP.

bash
reme proactive_refresh ...
参数类型必填默认值说明
datestring否YYYY-MM-DD to refresh; defaults to today in the application's timezone

proactive_read ​

Proactive: read daily/<date>/interests.yaml and expose the latest user-interest topics.

bash
reme proactive_read ...
参数类型必填默认值说明
datestring否YYYY-MM-DD to read; defaults to today in the dreamer's timezone
include_contentboolean否truewhether to include the raw YAML content in the response answer and metadata
horizon_daysinteger否1merge interests.yaml across this many recent days (1 = single-day legacy behaviour)
min_confidencenumber否0.4minimum topic confidence to return (default 0.4 sits safely below the 0.5 fallback; v1 topics fall back to 0.5)

version ​

return reme package version

bash
reme version

无参数。

session_read ​

Read session history, including proactive user and assistant messages.

bash
reme session_read ...
参数类型必填默认值说明
session_idstring是—agent session identifier

session_status ​

Inspect session activity without waiting for generation.

bash
reme session_status ...
参数类型必填默认值说明
session_idstring是—agent session identifier

app_config ​

return the effective application config with secrets redacted

bash
reme app_config

无参数。

chat ​

Stream a read-only agent conversation over the ReMe workspace.

bash
reme chat ...
参数类型必填默认值说明
querystring是—user message
session_idstring否—agent session to resume
system_promptstring否—optional system prompt override

health_check ​

return a concise health-check snapshot of reme components

bash
reme health_check

无参数。

job_status ​

Query in-memory job executions and current step paths, newest first per job.

bash
reme job_status ...
参数类型必填默认值说明
namestring否—Optional job name; defaults to all tracked jobs
statusstring否—Optional execution status filter
limitinteger否20Maximum executions returned per job

status ​

report memory estimates for stateful data components and process RSS

bash
reme status

无参数。

help ​

list all registered jobs with their metadata

bash
reme help

无参数。

list_tags ​

List active tags with file counts. Returns {total_tags, total_pages, page, range, items}; range is the inclusive 1-based item range and each item is [tag, file_count]. A page past the end returns empty items and range [0, 0].

bash
reme list_tags ...
参数类型必填默认值说明
pageinteger否11-based page; values past the end return an empty page
order_bystring否tagsort by tag or file count
orderstring否—defaults to asc for tag, desc for file_count
page_sizeinteger否100items per page

list_tag_files ​

Browse existing files matching any selected memory tag, within a workspace directory.

bash
reme list_tag_files ...
参数类型必填默认值说明
tagsstring[]是——
pathstring否—
pageinteger否1—
page_sizeinteger否100—

Search the web with qwen3.8-flash; requires DASHSCOPE_API_KEY. Returns raw search_info sources and separate model-generated content; page bodies and snippets are not guaranteed.

bash
reme dashscope_search ...
参数类型必填默认值说明
querystring是—web search query

记忆演化 ​

auto_dream ​

Auto-dream: scan today's day-index and daily notes, globally extract merged units, integrate digest units, and persist the dream catalog.

bash
reme auto_dream ...
参数类型必填默认值说明
datestring否YYYY-MM-DD to scan; defaults to today in the dreamer's timezone
hintstring否caller guidance passed through to dream extract/integrate
scan_daysinteger否2number of recent daily directories to scan, ending at date
max_unitsinteger否5maximum number of extracted memory units
max_chars_per_batchinteger否40000estimated bytes of changed file content per extraction call, taken from file size; it excludes prompt overhead and a single oversized file still gets its own call, so it is a batching budget rather than a hard request limit

auto_memory ​

Auto-memory: record conversation facts into a daily note

bash
reme auto_memory ...
参数类型必填默认值说明
request_idstring否—Optional stable batch ID (1-128 characters); replay completed requests without rerunning the memory agent
messagesobject[]是—messages
session_idstring否source conversation session identifier
memory_hintstring否—optional hint
include_imagesboolean否falseUse session images with a vision-capable AgentScope model; save Base64 originals and cite sources
datestring否YYYY-MM-DD daily note date; empty = infer from message timestamps or today

auto_memory_cc ​

Auto-memory (Claude Code): record a Claude Code session into a daily note, resolved from its session_id

bash
reme auto_memory_cc ...
参数类型必填默认值说明
session_idstring是—Claude Code session id; its transcript is resolved from disk
memory_hintstring否—optional hint

auto_resource ​

Auto-resource: interpret resource files into daily notes

bash
reme auto_resource ...
参数类型必填默认值说明
include_imagesboolean否trueProcess image resource changes with a vision-capable AgentScope wrapper; false skips all image events, including deletes
changesobject[]是—resource change batch, each item has path/file_path and change

检索与图谱 ​

traverse ​

Return a readable bounded wikilink summary in answer and the complete structured graph in metadata.graph.

bash
reme traverse ...
参数类型必填默认值说明
pathstring or string[]是—workspace-relative path or paths used as graph seeds
depthinteger否1maximum number of wikilink hops
directionstring否bothtraversal direction; returned edges always preserve the original wikilink source-to-target direction

graph_snapshot ​

Return the category-rooted digest wikilink graph with daily-note leaves.

bash
reme graph_snapshot

无参数。

reindex ​

rebuild BM25, embedding, and/or tag indexes without rescanning workspace files

bash
reme reindex ...
参数类型必填默认值说明
scopestring否all—

Hybrid workspace search (vector + BM25, RRF-fused).

bash
reme search ...
参数类型必填默认值说明
querystring是—search query
limitinteger否5max results
min_scorenumber否0Minimum returned score; 0 disables filtering (recommended). Uses native vector or BM25 scores when only one branch has hits, and rank-based RRF scores (at most 1/61, about 0.01639) when both have hits. The scale can change per query; this is not a normalized relevance threshold.
tagsstring[]否[]optional tags filter; a file matches when it contains at least one valid tag
start_datestring否—optional inclusive start date filter (YYYY-MM-DD); results earlier than this date are excluded
end_datestring否—optional inclusive end date filter (YYYY-MM-DD); results later than this date are excluded

Digest node recall — given a candidate abstraction's name+description, surface existing digest nodes similar enough to either dedup against or link to as related.

bash
reme node_search ...
参数类型必填默认值说明
querystring是—search query
limitinteger否20max digest nodes to return

Daily Note ​

daily_list ​

List daily notes without changing files or indexes. Defaults to all notes for today; date selects one day. Alternatively, start_date and end_date select an inclusive range, newest day first then path ascending. Range queries or explicit page/page_size opt into pagination (defaults: page 1, page_size 100). Metadata adds page, page_size, total_notes and total_pages; count and notes describe the returned page.

bash
reme daily_list ...
参数类型必填默认值说明
datestring否YYYY-MM-DD; empty = today when no range is given; cannot be combined with a range
start_datestring否—inclusive YYYY-MM-DD range start; requires end_date; cannot be combined with date
end_datestring否—inclusive YYYY-MM-DD range end; requires start_date
pageinteger否—optional 1-based page; defaults to 1 when paginating; past the end returns no notes
page_sizeinteger否—optional notes per page; defaults to 100 when paginating

daily_reindex ​

Rebuild the day-index page daily/<date>.md.

bash
reme daily_reindex ...
参数类型必填默认值说明
datestring否YYYY-MM-DD; empty = today

daily_write ​

Write a daily markdown note with conversation source frontmatter.

bash
reme daily_write ...
参数类型必填默认值说明
namestring是—daily note filename stem and frontmatter name
descriptionstring是—frontmatter description
session_idstring是—source conversation session identifier
contentstring是—body
datestring否YYYY-MM-DD daily note date; empty = today
metadataobject否—Optional extra frontmatter fields.

文件操作 ​

frontmatter_delete ​

Drop keys from a file's frontmatter.

bash
reme frontmatter_delete ...
参数类型必填默认值说明
pathstring是—workspace-relative path
keysstring[]是—keys to remove

frontmatter_read ​

Read a file's frontmatter, one key: value per line.

bash
reme frontmatter_read ...
参数类型必填默认值说明
pathstring是—workspace-relative path

frontmatter_update ​

Merge key-value pairs into a Markdown file's frontmatter while preserving its body and unrelated fields.

bash
reme frontmatter_update ...
参数类型必填默认值说明
pathstring是—workspace-relative path
metadataobject是—key-values to merge

stat ​

Stat path (size, mtime, exists, is_dir, is_file).

bash
reme stat ...
参数类型必填默认值说明
pathstring是—workspace-relative path

list ​

List files under a workspace path.

bash
reme list ...
参数类型必填默认值说明
pathstring否workspace-relative dir; empty = root
recursiveboolean否falserecurse
sort_bystring否—optional ordering; mtime returns most recently modified files first
extensionsstring[]否—optional extension allowlist applied before sorting and limiting
limitinteger否100max results

move ​

Move / rename a workspace file; rewrites inbound wikilinks by default.

bash
reme move ...
参数类型必填默认值说明
src_pathstring是—workspace-relative source
dst_pathstring是—workspace-relative destination
overwriteboolean否falseoverwrite if dst exists
retargetboolean否truerewrite [[src]] → [[dst]] across the workspace

delete ​

Delete a workspace file or folder; returns surviving inbound wikilinks.

bash
reme delete ...
参数类型必填默认值说明
pathstring是—workspace-relative path

read ​

Read a markdown file under the workspace.

bash
reme read ...
参数类型必填默认值说明
pathstring是—workspace-relative path; markdown only
start_lineinteger否—first line (1-based, inclusive)
end_lineinteger否—last line (1-based, inclusive)

load ​

Load a complete text file for the local editor without agent-output truncation.

bash
reme load ...
参数类型必填默认值说明
pathstring是—workspace-relative path

read_image ​

Read an image file as base64 (workspace-relative path).

bash
reme read_image ...
参数类型必填默认值说明
pathstring是—workspace-relative path; common image formats supported (png/jpg/jpeg/webp/gif/bmp/tiff/heic)

write ​

Write a markdown file (create or overwrite) with name/description frontmatter.

bash
reme write ...
参数类型必填默认值说明
pathstring是—workspace-relative path; markdown only
namestring是—frontmatter name
descriptionstring是—frontmatter description
contentstring是—body
metadataobject否—Optional extra frontmatter fields (md only).

save ​

Save text verbatim, optionally rejecting external changes since the file was opened.

bash
reme save ...
参数类型必填默认值说明
pathstring是—workspace-relative path
contentstring是—complete file content, including frontmatter
expected_mtimestring否—optional ISO mtime returned by stat

edit ​

Find-and-replace in a markdown file (all occurrences).

bash
reme edit ...
参数类型必填默认值说明
pathstring是—workspace-relative path
oldstring是—text to find
newstring是replacement

Released under the Apache-2.0 License.