Skip to content

Job API 参考

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

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

记忆演化

auto_dream

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

bash
reme auto_dream ...
参数类型必填默认值说明
datestringYYYY-MM-DD to scan; defaults to today in the dreamer's timezone
hintstringcaller guidance passed through to dream extract/integrate
scan_daysinteger2number of recent daily directories to scan, ending at date
max_unitsinteger5maximum number of extracted memory units
topic_countinteger3maximum number of final daily interest topics
topic_diversity_daysinteger7number of previous interests.yaml days to avoid repeating

auto_memory

Auto-memory: record conversation facts into a daily note

bash
reme auto_memory ...
参数类型必填默认值说明
messagesobject[]messages
session_idstringsource conversation session identifier
memory_hintstringoptional hint
datestringYYYY-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_idstringClaude Code session id; its transcript is resolved from disk
memory_hintstringoptional hint

auto_resource

Auto-resource: interpret resource files into daily notes

bash
reme auto_resource ...
参数类型必填默认值说明
changesobject[]resource change batch, each item has path/file_path and change

proactive

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

bash
reme proactive ...
参数类型必填默认值说明
datestringYYYY-MM-DD to read; defaults to today in the dreamer's timezone
include_contentbooleantruewhether to include the raw YAML content in the response answer and metadata

系统与诊断

version

return reme package version

bash
reme version

无参数。

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 ...
参数类型必填默认值说明
querystringuser message
session_idstringagent session to resume
system_promptstringoptional system prompt override

health_check

return a concise health-check snapshot of reme components

bash
reme health_check

无参数。

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

无参数。

检索与图谱

traverse

Return a bounded wikilink graph with frontend-ready nodes and directed edges.

bash
reme traverse ...
参数类型必填默认值说明
pathstring or string[]workspace-relative path or paths used as graph seeds
depthinteger1maximum number of wikilink hops
directionstringbothtraversal 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 and/or embedding indexes from current file_chunks

bash
reme reindex ...
参数类型必填默认值说明
scopestringall

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

bash
reme search ...
参数类型必填默认值说明
querystringsearch query
limitinteger5max results
min_scorenumber0min fused score
start_datestringoptional inclusive start date filter (YYYY-MM-DD); results earlier than this date are excluded
end_datestringoptional 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 ...
参数类型必填默认值说明
querystringsearch query
limitinteger20max digest nodes to return

Daily Note

daily_list

List notes under a single day.

bash
reme daily_list ...
参数类型必填默认值说明
datestringYYYY-MM-DD; empty = today

daily_reindex

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

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

daily_write

Write a daily markdown note with conversation source frontmatter.

bash
reme daily_write ...
参数类型必填默认值说明
namestringdaily note filename stem and frontmatter name
descriptionstringfrontmatter description
session_idstringsource conversation session identifier
contentstringbody
datestringYYYY-MM-DD daily note date; empty = today
metadataobjectOptional extra frontmatter fields.

文件操作

frontmatter_delete

Drop keys from a file's frontmatter.

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

frontmatter_read

Read a file's frontmatter as a dict.

bash
reme frontmatter_read ...
参数类型必填默认值说明
pathstringworkspace-relative path

frontmatter_update

Merge key-values into a file's frontmatter.

bash
reme frontmatter_update ...
参数类型必填默认值说明
pathstringworkspace-relative path
metadataobjectkey-values to merge

stat

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

bash
reme stat ...
参数类型必填默认值说明
pathstringworkspace-relative path

list

List files under a workspace path.

bash
reme list ...
参数类型必填默认值说明
pathstringworkspace-relative dir; empty = root
recursivebooleanfalserecurse
sort_bystringoptional ordering; mtime returns most recently modified files first
extensionsstring[]optional extension allowlist applied before sorting and limiting
limitinteger100max results

move

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

bash
reme move ...
参数类型必填默认值说明
src_pathstringworkspace-relative source
dst_pathstringworkspace-relative destination
overwritebooleanfalseoverwrite if dst exists
retargetbooleantruerewrite [[src]] → [[dst]] across the workspace

delete

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

bash
reme delete ...
参数类型必填默认值说明
pathstringworkspace-relative path

read

Read a markdown file under the workspace.

bash
reme read ...
参数类型必填默认值说明
pathstringworkspace-relative path; markdown only
start_lineintegerfirst line (1-based, inclusive)
end_lineintegerlast line (1-based, inclusive)

load

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

bash
reme load ...
参数类型必填默认值说明
pathstringworkspace-relative path

read_image

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

bash
reme read_image ...
参数类型必填默认值说明
pathstringworkspace-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 ...
参数类型必填默认值说明
pathstringworkspace-relative path; markdown only
namestringfrontmatter name
descriptionstringfrontmatter description
contentstringbody
metadataobjectOptional extra frontmatter fields (md only).

save

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

bash
reme save ...
参数类型必填默认值说明
pathstringworkspace-relative path
contentstringcomplete file content, including frontmatter
expected_mtimestringoptional ISO mtime returned by stat

edit

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

bash
reme edit ...
参数类型必填默认值说明
pathstringworkspace-relative path
oldstringtext to find
newstringreplacement

Released under the Apache-2.0 License.