ReMe/reme/config/default.yaml
jinliyl 524b1b6908
feat(studio): unify the workbench and proactive runtime (#764)
* 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
2026-11-23 17:19:21 +08:00

1133 lines
32 KiB
YAML

service:
backend: http
mcp_enabled: true
mcp_path: /mcp
jobs:
index_update_loop:
backend: background
watch_dirs: [daily_dir, digest_dir]
watch_suffixes: [md]
steps:
- backend: init_changes_step
monitor_type: file_store
monitor_name: default
dispatch_steps: [update_index_step]
- backend: watch_changes_step
watch_mode: awatch # Set to watch to isolate the blocking wait from AnyIO's shared thread limiter.
monitor_type: file_store
dispatch_steps:
- backend: update_index_step
persist: False
resource_watch_loop:
backend: background
watch_dirs: [resource_dir]
watch_suffixes: [md, txt, json, jsonl, csv, yaml, html, png, jpg, jpeg, webp, gif, bmp, tiff, heic]
steps:
- backend: init_changes_step
monitor_type: file_catalog
monitor_name: resource
dispatch_steps:
- backend: update_catalog_step
file_catalog: resource
- backend: auto_resource_step
dispatch_steps:
- auto_image_resource_step
- auto_text_resource_step
- backend: watch_changes_step
watch_mode: awatch
monitor_type: file_catalog
monitor_name: resource
dispatch_steps:
- backend: update_catalog_step
file_catalog: resource
- backend: auto_resource_step
dispatch_steps:
- auto_image_resource_step
- auto_text_resource_step
digest_watch_loop:
backend: background
watch_dirs: [daily_dir, digest_dir]
watch_suffixes: [md]
steps:
- backend: init_changes_step
monitor_type: file_catalog
monitor_name: digest
dispatch_steps:
- backend: update_catalog_step
file_catalog: digest
- backend: log_changes_step
- backend: watch_changes_step
watch_mode: awatch
monitor_type: file_catalog
monitor_name: digest
dispatch_steps:
- backend: update_catalog_step
file_catalog: digest
- backend: log_changes_step
dream_cron:
backend: cron
cron: "0 23 * * *"
steps: &dream_steps
- backend: dream_extract_step
file_catalog: dream
scan_days: 2
max_units: 5
max_chars_per_batch: 40000
- backend: dream_integrate_step
- backend: dream_finish_step
file_catalog: dream
- backend: auto_tag_step
optimize_index_cron:
backend: cron
cron: "0 2 * * *"
steps:
- backend: optimize_index_step
proactive_refresh:
backend: base
enable_serve: false
description: "Refresh proactive topics once for local maintenance or debugging; not exposed by HTTP/MCP."
parameters:
type: object
properties:
date:
type: string
description: "YYYY-MM-DD to refresh; defaults to today in the application's timezone"
default: ""
steps: &proactive_refresh_steps
- backend: proactive_extract_step
file_catalog: proactive
scan_days: 2
carry_forward_days: 14
max_carry_forward_topics: 20
llm_timeout_seconds: 300
max_chars_per_file: 60000
max_total_chars: 300000
- backend: proactive_topics_step
known_threshold: 0.85
known_threshold_calibrated_for: text-embedding-v4@1024
min_push_confidence: 0.5
max_topics: 10
- backend: proactive_plan_step
- backend: proactive_agenda_step
- backend: proactive_finish_step
file_catalog: proactive
proactive_refresh_cron:
backend: cron
cron: "0 18 * * *" # once a day at 18:00
steps: *proactive_refresh_steps
auto_dream:
backend: base
description: "Auto-dream: scan today's day-index and daily notes, globally extract merged units, integrate digest units, and persist the dream catalog."
parameters:
type: object
properties:
date:
type: string
description: "YYYY-MM-DD to scan; defaults to today in the dreamer's timezone"
default: ""
hint:
type: string
description: "caller guidance passed through to dream extract/integrate"
default: ""
scan_days:
type: integer
description: "number of recent daily directories to scan, ending at date"
default: 2
max_units:
type: integer
description: "maximum number of extracted memory units"
default: 5
max_chars_per_batch:
type: integer
description: "estimated 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"
default: 40000
steps: *dream_steps
auto_memory:
backend: base
description: "Auto-memory: record conversation facts into a daily note"
parameters:
type: object
properties:
request_id:
type: string
description: "Optional stable batch ID (1-128 characters); replay completed requests without rerunning the memory agent"
messages:
type: array
description: "messages"
items:
type: object
session_id:
type: string
description: "source conversation session identifier"
default: ""
memory_hint:
type: string
description: "optional hint"
include_images:
type: boolean
description: "Use session images with a vision-capable AgentScope model; save Base64 originals and cite sources"
default: false
date:
type: string
description: "YYYY-MM-DD daily note date; empty = infer from message timestamps or today"
default: ""
required:
- messages
steps:
- backend: auto_memory_step
- backend: auto_tag_step
auto_memory_cc:
backend: base
description: "Auto-memory (Claude Code): record a Claude Code session into a daily note, resolved from its session_id"
parameters:
type: object
properties:
session_id:
type: string
description: "Claude Code session id; its transcript is resolved from disk"
memory_hint:
type: string
description: "optional hint"
required:
- session_id
steps:
- backend: auto_memory_cc_step
- backend: auto_tag_step
auto_resource:
backend: base
description: "Auto-resource: interpret resource files into daily notes"
parameters:
type: object
properties:
include_images:
type: boolean
description: "Process image resource changes with a vision-capable AgentScope wrapper; false skips all image events, including deletes"
default: true
changes:
type: array
description: "resource change batch, each item has path/file_path and change"
items:
type: object
properties:
path:
type: string
file_path:
type: string
change:
type: string
description: "added/modified/deleted"
required:
- changes
steps:
- backend: auto_resource_step
dispatch_steps:
- auto_image_resource_step
- auto_text_resource_step
proactive_read:
backend: base
description: "Proactive: read daily/<date>/interests.yaml and expose the latest user-interest topics."
parameters:
type: object
properties:
date:
type: string
description: "YYYY-MM-DD to read; defaults to today in the dreamer's timezone"
default: ""
include_content:
type: boolean
description: "whether to include the raw YAML content in the response answer and metadata"
default: true
horizon_days:
type: integer
description: "merge interests.yaml across this many recent days (1 = single-day legacy behaviour)"
default: 1
min_confidence:
type: number
description: "minimum topic confidence to return (default 0.4 sits safely below the 0.5 fallback; v1 topics fall back to 0.5)"
default: 0.4
steps:
- backend: proactive_step
min_confidence: 0.4
version:
backend: base
description: "return reme package version"
parameters:
type: object
properties: { }
steps:
- backend: version_step
session_read:
backend: base
description: "Read session history, including proactive user and assistant messages."
parameters:
type: object
properties:
session_id: {type: string, description: "agent session identifier"}
required: [session_id]
steps:
- backend: session_read_step
agent_wrapper: default
session_status:
backend: base
description: "Inspect session activity without waiting for generation."
parameters:
type: object
properties:
session_id: {type: string, description: "agent session identifier"}
required: [session_id]
steps:
- backend: session_status_step
agent_wrapper: default
app_config:
backend: base
description: "return the effective application config with secrets redacted"
parameters:
type: object
properties: { }
steps:
- backend: app_config_step
chat:
backend: stream
description: "Stream a read-only agent conversation over the ReMe workspace."
system_prompt: |
You are ReMe Agent, an assistant for a local-first memory workspace.
Use the available ReMe tools when workspace facts are needed. Cite workspace-relative file paths
when referring to notes. Never invent file contents, and do not claim to have changed files because
this chat intentionally provides read-only tools. Reply in the user's language.
parameters:
type: object
properties:
query:
type: string
description: "user message"
session_id:
type: string
description: "agent session to resume"
system_prompt:
type: string
description: "optional system prompt override"
required:
- query
steps:
- backend: chat_step
agent_wrapper: default
health_check:
backend: base
description: "return a concise health-check snapshot of reme components"
parameters:
type: object
properties: { }
steps:
- backend: health_check_step
job_status:
backend: base
description: "Query in-memory job executions and current step paths, newest first per job."
parameters:
type: object
properties:
name:
type: string
description: "Optional job name; defaults to all tracked jobs"
status:
type: string
enum: [running, succeeded, failed, stopped, cancelled]
description: "Optional execution status filter"
limit:
type: integer
minimum: 1
default: 20
description: "Maximum executions returned per job"
steps:
- backend: job_status_step
status:
backend: base
description: "report memory estimates for stateful data components and process RSS"
parameters:
type: object
properties: { }
steps:
- backend: status_step
help:
backend: base
description: "list all registered jobs with their metadata"
parameters:
type: object
properties: { }
steps:
- backend: help_step
# shell:
# backend: base
# description: "execute a shell command in the workspace, with 1 MiB per output stream and child cleanup"
# parameters:
# type: object
# properties:
# cmd:
# type: string
# description: "shell command to execute"
# shell_timeout:
# type: number
# description: "maximum execution time in seconds"
# default: 86400
# required:
# - cmd
# steps:
# - backend: shell_step
traverse:
backend: base
description: >-
Return a readable bounded wikilink summary in answer and the complete structured graph in metadata.graph.
parameters:
type: object
properties:
path:
oneOf:
- type: string
- type: array
items:
type: string
minItems: 1
description: "workspace-relative path or paths used as graph seeds"
depth:
type: integer
minimum: 0
description: "maximum number of wikilink hops"
default: 1
direction:
type: string
description: >-
traversal direction; returned edges always preserve the original
wikilink source-to-target direction
enum:
- forward
- backward
- both
default: both
required:
- path
steps:
- backend: traverse_step
graph_snapshot:
backend: base
description: "Return the category-rooted digest wikilink graph with daily-note leaves."
parameters:
type: object
properties: { }
steps:
- backend: graph_snapshot_step
list_tags:
backend: base
description: >-
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].
parameters:
type: object
properties:
page:
type: integer
minimum: 1
default: 1
description: "1-based page; values past the end return an empty page"
order_by:
type: string
enum: [tag, file_count]
default: tag
description: "sort by tag or file count"
order:
type: string
enum: [asc, desc]
description: "defaults to asc for tag, desc for file_count"
page_size:
type: integer
minimum: 1
maximum: 1000
default: 100
description: "items per page"
steps:
- backend: list_tags_step
list_tag_files:
backend: base
description: Browse existing files matching any selected memory tag, within a workspace
directory.
parameters:
type: object
properties:
tags:
type: array
items:
type: string
minItems: 1
path:
type: string
default: ''
page:
type: integer
minimum: 1
default: 1
page_size:
type: integer
minimum: 1
maximum: 1000
default: 100
required:
- tags
steps:
- backend: list_tag_files_step
reindex:
backend: base
description: "rebuild BM25, embedding, and/or tag indexes without rescanning workspace files"
parameters:
type: object
properties:
scope:
type: string
enum: [all, bm25, embedding, tag]
default: all
steps:
- backend: reindex_step
search:
backend: base
description: "Hybrid workspace search (vector + BM25, RRF-fused)."
parameters:
type: object
properties:
query:
type: string
description: "search query"
limit:
type: integer
description: "max results"
default: 5
min_score:
type: number
description: >-
Minimum 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.
default: 0.0
tags:
type: array
items:
type: string
description: "optional tags filter; a file matches when it contains at least one valid tag"
default: []
start_date:
type: string
description: "optional inclusive start date filter (YYYY-MM-DD); results earlier than this date are excluded"
end_date:
type: string
description: "optional inclusive end date filter (YYYY-MM-DD); results later than this date are excluded"
required:
- query
steps:
- backend: search_step
vector_weight: 0.7
candidate_multiplier: 5.0
expand_links: true
max_links_per_direction: 10
dashscope_search:
backend: base
description: >-
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.
parameters:
type: object
properties:
query:
type: string
description: "web search query"
required:
- query
steps:
- backend: dashscope_search_step
model: qwen3.8-flash
api_key: ${DASHSCOPE_API_KEY:-}
search_strategy: turbo
timeout: 60
node_search:
backend: base
description: "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."
parameters:
type: object
properties:
query:
type: string
description: "search query"
limit:
type: integer
description: "max digest nodes to return"
default: 20
required:
- query
steps:
- backend: node_search_step
vector_weight: 0.7
candidate_multiplier: 5.0
daily_list:
backend: base
description: >-
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.
parameters:
type: object
properties:
date:
type: string
description: "YYYY-MM-DD; empty = today when no range is given; cannot be combined with a range"
default: ""
start_date:
type: string
description: "inclusive YYYY-MM-DD range start; requires end_date; cannot be combined with date"
end_date:
type: string
description: "inclusive YYYY-MM-DD range end; requires start_date"
page:
type: integer
minimum: 1
description: "optional 1-based page; defaults to 1 when paginating; past the end returns no notes"
page_size:
type: integer
minimum: 1
maximum: 1000
description: "optional notes per page; defaults to 100 when paginating"
steps:
- backend: daily_list_step
daily_reindex:
backend: base
description: "Rebuild the day-index page daily/<date>.md."
parameters:
type: object
properties:
date:
type: string
description: "YYYY-MM-DD; empty = today"
default: ""
steps:
- backend: daily_reindex_step
frontmatter_delete:
backend: base
description: "Drop keys from a file's frontmatter."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path"
keys:
type: array
description: "keys to remove"
items:
type: string
required:
- path
- keys
steps:
- backend: frontmatter_delete_step
frontmatter_read:
backend: base
description: "Read a file's frontmatter, one key: value per line."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path"
required:
- path
steps:
- backend: frontmatter_read_step
frontmatter_update:
backend: base
description: "Merge key-value pairs into a Markdown file's frontmatter while preserving its body and unrelated fields."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path"
metadata:
type: object
description: "key-values to merge"
required:
- path
- metadata
steps:
- backend: frontmatter_update_step
stat:
backend: base
description: "Stat path (size, mtime, exists, is_dir, is_file)."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path"
required:
- path
steps:
- backend: stat_step
list:
backend: base
description: "List files under a workspace path."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative dir; empty = root"
default: ""
recursive:
type: boolean
description: "recurse"
default: false
sort_by:
type: string
enum:
- mtime
description: "optional ordering; mtime returns most recently modified files first"
extensions:
type: array
items:
type: string
description: "optional extension allowlist applied before sorting and limiting"
limit:
type: integer
description: "max results"
default: 100
steps:
- backend: list_step
move:
backend: base
description: "Move / rename a workspace file; rewrites inbound wikilinks by default."
parameters:
type: object
properties:
src_path:
type: string
description: "workspace-relative source"
dst_path:
type: string
description: "workspace-relative destination"
overwrite:
type: boolean
description: "overwrite if dst exists"
default: false
retarget:
type: boolean
description: "rewrite [[src]] → [[dst]] across the workspace"
default: true
required:
- src_path
- dst_path
steps:
- backend: move_step
delete:
backend: base
description: "Delete a workspace file or folder; returns surviving inbound wikilinks."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path"
required:
- path
steps:
- backend: delete_step
read:
backend: base
description: "Read a markdown file under the workspace."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path; markdown only"
start_line:
type: integer
description: "first line (1-based, inclusive)"
end_line:
type: integer
description: "last line (1-based, inclusive)"
required:
- path
steps:
- backend: read_step
with_neighbors: false
max_neighbors_per_direction: 10
load:
backend: base
description: "Load a complete text file for the local editor without agent-output truncation."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path"
required:
- path
steps:
- backend: load_step
max_bytes: 5242880
read_image:
backend: base
description: "Read an image file as base64 (workspace-relative path)."
parameters:
type: object
properties:
path:
type: string
description: >-
workspace-relative path; common image formats supported
(png/jpg/jpeg/webp/gif/bmp/tiff/heic)
required:
- path
steps:
- backend: read_image_step
max_bytes: 5242880
write:
backend: base
description: "Write a markdown file (create or overwrite) with name/description frontmatter."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path; markdown only"
name:
type: string
description: "frontmatter name"
description:
type: string
description: "frontmatter description"
content:
type: string
description: "body"
metadata:
type: object
description: "Optional extra frontmatter fields (md only)."
required:
- path
- name
- description
- content
steps:
- backend: write_step
save:
backend: base
description: "Save text verbatim, optionally rejecting external changes since the file was opened."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path"
content:
type: string
description: "complete file content, including frontmatter"
expected_mtime:
type: string
description: "optional ISO mtime returned by stat"
required:
- path
- content
steps:
- backend: save_step
daily_write:
backend: base
description: "Write a daily markdown note with conversation source frontmatter."
parameters:
type: object
properties:
name:
type: string
description: "daily note filename stem and frontmatter name"
description:
type: string
description: "frontmatter description"
session_id:
type: string
description: "source conversation session identifier"
content:
type: string
description: "body"
date:
type: string
description: "YYYY-MM-DD daily note date; empty = today"
default: ""
metadata:
type: object
description: "Optional extra frontmatter fields."
required:
- name
- description
- session_id
- content
steps:
- backend: daily_write_step
edit:
backend: base
description: "Find-and-replace in a markdown file (all occurrences)."
parameters:
type: object
properties:
path:
type: string
description: "workspace-relative path"
old:
type: string
description: "text to find"
new:
type: string
description: "replacement"
default: ""
required:
- path
- old
- new
steps:
- backend: edit_step
components:
tokenizer:
default:
backend: regex
# as_embedding:
# default:
# backend: ${EMBEDDING_BACKEND:-openai}
# model: ${EMBEDDING_MODEL_NAME:-text-embedding-v4}
# dimensions: 1024
# credential:
# api_key: ${EMBEDDING_API_KEY:-}
# base_url: ${EMBEDDING_BASE_URL:-https://dashscope.aliyuncs.com/compatible-mode/v1}
# parameters: { }
#
# embedding_store:
# default:
# backend: local
# as_embedding: default
# as_decision_model:
# default:
# backend: ${DECISION_MODEL_BACKEND:-agentscope}
# model: ${DECISION_MODEL_NAME:-null}
# credential:
# api_key: ${DECISION_MODEL_API_KEY:-}
# base_url: ${DECISION_MODEL_BASE_URL:-null}
# timeout: 30
# max_retries: 2
# retry_delay: 0.5
as_llm:
default:
backend: ${LLM_BACKEND:-openai}
model: ${LLM_MODEL_NAME:-qwen3.7-plus}
stream: true
context_size: 200000
max_retries: 3
credential:
api_key: ${LLM_API_KEY:-}
base_url: ${LLM_BASE_URL:-}
parameters:
max_tokens: 65536
thinking_enable: false
codex_app_server:
default:
backend: sdk
auth_mode: api_key
api_key: ${CODEX_API_KEY:-}
base_url: ${CODEX_BASE_URL:-}
codex_home: .codex
supports_websockets: false
config_overrides:
- 'model_reasoning_effort="xhigh"'
- 'review_model="qwen3.8-max"'
- 'agents.default_subagent_model="qwen3.8-max"'
- 'agents.default_subagent_reasoning_effort="xhigh"'
- 'memories.extract_model="qwen3.8-flash"'
- 'memories.consolidation_model="qwen3.8-max"'
model_catalog:
models:
- &codex_model_defaults
slug: &codex_simple_model qwen3.8-flash
display_name: Qwen3.8 Flash
description: Simple tasks and automatic approval review
auto_review_model_override: *codex_simple_model
default_reasoning_level: xhigh
multi_agent_reasoning_effort: xhigh
supported_reasoning_levels:
- effort: xhigh
description: Maximum reasoning
context_window: 983616
input_modalities: [text, image]
supports_parallel_tool_calls: false
supports_reasoning_summaries: false
support_verbosity: false
shell_type: default
visibility: list
supported_in_api: true
priority: 1
base_instructions: ""
experimental_supported_tools: []
truncation_policy:
mode: bytes
limit: 10000
- <<: *codex_model_defaults
slug: &codex_complex_model qwen3.8-max
display_name: Qwen3.8 Max
description: Main conversations and complex tasks
default_reasoning_level: xhigh
priority: 0
oauth:
backend: sdk
auth_mode: oauth
codex_home: ${CODEX_HOME:-~/.codex}
agent_wrapper:
default:
backend: agentscope
as_llm: default
permission_mode: bypass
react_config:
max_iters: 30
context_config:
trigger_ratio: 0.8
reserve_ratio: 0.1
tool_result_limit: 50000
model_config:
max_retries: 1
claude_code:
backend: claude_code
model: ${CLAUDE_CODE_MODEL_NAME:-glm-5.1}
api_key: ${CLAUDE_CODE_API_KEY:-}
base_url: ${CLAUDE_CODE_BASE_URL:-https://dashscope.aliyuncs.com/apps/anthropic}
permission_mode: bypassPermissions
codex:
backend: codex
app_server: default
model: ${CODEX_MODEL_NAME:-qwen3.8-max}
effort: xhigh
approval_mode: deny_all
sandbox: full-access
codex_oauth:
backend: codex
app_server: oauth
model: ${CODEX_OAUTH_MODEL_NAME:-}
approval_mode: deny_all
sandbox: full-access
file_graph:
default:
backend: local
file_catalog:
default:
backend: local
resource:
backend: local
digest:
backend: local
dream:
backend: local
proactive:
backend: local
# Enable when jobs use Agent inboxes; each directory allows one writer.
# agent_inbox:
# default:
# backend: local
# directory: agent_inbox
# # inbox_unread.jsonl stores pending inputs; inbox_read.jsonl stores consumed batches.
# max_read_items: 1000 # Unread inputs are never evicted; trim oldest consumed batches.
file_chunker:
markdown:
backend: markdown
supported_extensions: [ "md" ]
embed_toc: true
max_ast_sections: 100
include_frontmatter_in_metadata: false
include_frontmatter_keys_in_metadata: [] # empty = all non-empty frontmatter keys
json:
backend: json
supported_extensions: [ "json" ]
jsonl:
backend: jsonl
supported_extensions: [ "jsonl" ] # noqa: keep #314 chunker scope intact after #325
default:
backend: default
supported_extensions: ["txt","log"]
keyword_index:
default:
backend: bm25
tokenizer: default
tag_index:
default:
backend: local
tag_key: memory_tags
max_tags_per_file: 3
max_tag_length: 64
file_store:
default:
backend: local
# backend: faiss
store_name: local
# embedding_store: default
embedding_store: ""
keyword_index: default
file_graph: default
tag_index: default