{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "opencode-recall Configuration", "description": "Configuration file for the opencode-recall plugin", "type": "object", "properties": { "$schema": { "type": "string", "description": "JSON Schema URL for editor autocompletion" }, "database": { "type": "object", "description": "OpenCode history and recall sidecar database paths", "properties": { "sources": { "type": "array", "minItems": 1, "description": "Named read-only source databases. Both runtimes may share each source's dedicated sidecar. Overrides path/indexPath.", "items": { "type": "object", "required": ["id", "path"], "properties": { "id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$", "description": "Stable source name used in qualified cursors." }, "path": { "type": "string", "minLength": 1 }, "indexPath": { "type": "string", "minLength": 1, "description": "Dedicated sidecar; defaults to a hash of the canonical source path." } }, "additionalProperties": false } }, "path": { "type": "string", "default": "~/.local/share/opencode/opencode.db", "description": "OpenCode SQLite session database. Opened read-only by recall." }, "indexPath": { "type": "string", "description": "Recall sidecar embedding index. Defaults to opencode-recall-.db in the OpenCode data directory. Safe to delete and rebuild." }, "legacyPath": { "type": "string", "description": "Deprecated: use sources. Resolved as a separate source named legacy with its own index." } }, "additionalProperties": false }, "embeddings": { "type": "object", "description": "Ollama embedding backend settings", "properties": { "ollamaUrl": { "type": "string", "default": "http://127.0.0.1:11434", "description": "Ollama base URL." }, "model": { "type": "string", "default": "all-minilm", "description": "Ollama embedding model. Try mxbai-embed-large for higher quality." } }, "additionalProperties": false } }, "additionalProperties": false }