Skip to main content

How configuration works

Settings resolve in this order, first match wins:
  1. a per-call override,
  2. the workspace config (~/.pmb/workspaces/<name>/config.yaml),
  3. the global config (~/.pmb/config.yaml),
  4. the built-in schema default.
pmb config list             # common keys: value, source, default
pmb config list --pro       # everything, including advanced knobs
pmb config get <key>
pmb config set <key> <value>
pmb tune                    # interactive editor

Recall quality

KeyDefaultWhat it does
recall.top_k5How many results recall returns.
recall.bm25_weight0.7Lexical vs semantic balance (1.0 = pure BM25).
recall.recency_half_life_days30How fast a memory’s recency boost decays.
recall.keyed_fact_boost0.35Extra weight for current keyed facts (e.g. your city).
recall.ppr_enabledtrueUse the entity graph to spread relevance to related memory.
recall.rerankfalseRun a slower cross-encoder reranker on results.

The read hook (auto-recall)

KeyDefaultWhat it does
auto_recall.enabledtrueInject relevant memory before the model thinks.
auto_recall.budget_chars4000Size cap on the injected block.
auto_recall.correction_capturetrueOn pushback, record a DRAFT lesson on the first complaint.
auto_recall.repeat_guardtrueSurface an existing rule LOUD when a message strongly overlaps it.

Daemon & connect

KeyDefaultWhat it does
connect.default_daemontruePoint JSON hosts at the one shared daemon.
daemon.autostarttrueStart a daemon in the background when a cold hook runs.
daemon.idle_exit_min120Exit after N idle minutes (connecting pins this to 0).
daemon.tool_profile(set by connect)MCP tool profile: minimal / lean / default / full.

Ambient auto-write

KeyDefaultWhat it does
autowrite.enabledtrueJournal a turn the agent didn’t record itself.
autowrite.min_importance0.45Quality bar a turn must clear to be journaled.
autowrite.synthesizertemplatetemplate needs no model; an LLM backend gives richer summaries.

Agent logging (active mode)

KeyDefaultWhat it does
agent.active_modefalseInstall proactive-logging rules by default.
agent.apply_lessonstrueThe self-improvement loop: recall + follow lessons before a task.
agent.context_continuitytrueRe-orient after a long session with session_brief.

Background brain & maintenance

KeyDefaultWhat it does
consolidate.auto_triggerfalseRun sleep-stage consolidation automatically.
decay.factor_per_day0.985The forgetting curve applied by pmb decay.
dedup.enabletrueDeduplicate near-identical memories.
graph.extractorregexHow entities are pulled from text (regex / spacy / llm:*).
embedding.modelmultilingual MiniLMThe embedder. Change with pmb model (re-embeds for you).
There are ~150 advanced “pro” knobs (pmb config list --pro). They’re advanced on purpose - defaults are ablation-tuned and a blocking CI gate protects recall quality, so changing them is opt-in and rarely needed.