brain-memory
Record taste signals and apply-evidence events into the Brain observing-memory layer of Open Second Brain. INVOKE this skill (and…
Set up, evaluate or turn off the optional Open Second Brain decision-model feature (typed judgments that rerank search, pick skills, pre-filter extract-signals turns, filter recalled notes and annotate dedup, tension, label and answerable proposals). INVOKE when the user
$ npx -y skills add itechmeat/open-second-brain --skill decision-model-setup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/decision-model-setupContext preview
The summary Claude sees to decide when to auto-load this skill.
Set up, evaluate or turn off the optional Open Second Brain decision-model feature (typed judgments that rerank search, pick skills, pre-filter extract-signals turns, filter recalled notes and annotate dedup, tension, label and answerable proposals). INVOKE when the user
name: decision-model-setup description: Set up, evaluate or turn off the optional Open Second Brain decision-model feature (typed judgments that rerank search, pick skills, pre-filter extract-signals turns, filter recalled notes and annotate dedup, tension, label and answerable proposals). INVOKE when the user mentions decision models, Jev, TypeSafe, OpenRouter or Vercel decisions, the `decision_model_*` config keys, or after `o2b decision-model check` reports an error, a warning or a hint. SKIP when the user only asks conceptual questions about decision models or compares providers without intent to set up; answer those directly and change nothing.
A decision model answers typed questions (yes/no probability, one of a list, a position on a scale) about text Open Second Brain hands it, and never generates text. Open Second Brain uses it only to choose among candidates its own code produced: which search results come first, which skills to offer, which transcript turns the host should mine, which recalled notes to inject, and advisory verdicts next to dedup, tension, label and answerable proposals. It never writes to the vault.
The feature is off by default. Without it Open Second Brain behaves exactly as it does today and makes no network call. Full reference: `docs/decision-models.md` (the hub, with the per-use table) and `docs/decision-models/providers.md` (every route).
For a conceptual question ("what is Jev", "is this worth it", "which route is cheaper") answer from the docs and change nothing. Walk the steps below only when the user wants to set it up, measure it or turn it off.
o2b decision-model check
It prints the status (`disabled`, `no_key`, `disabled_by_vault`, `invalid`, `active`), the provider and processor, the key variable's NAME and whether it is set (never the value), every use with its configured mode, the threshold profile, the uses whose `enforce` runs as `shadow`, the daily cost gate, and a `hint:` line naming only what is missing. Exit 1 means an invalid config or a failed ping; fix the named key first.
Ask the user which route they want; never pick one for them.
`vercel-evaluate` for the gateway's own evaluate endpoint).
`decision_model_base_url` on `localhost`, `127.0.0.1` or `::1`): nothing leaves the machine. `laya` and `openjev` need no key on loopback. Check the model's licence (`check` prints a licence note where the weights carry a restriction). Installing the server is the user's job; this skill does not download weights.
probabilities. Uncalibrated, costs far more, and meant for `shadow` evaluation only. Never suggest it as the default.
A `compatible` server enforces nothing until `decision_model_threshold_profile` names the model family it serves; until then every `enforce` runs as `shadow`, and `check` says so.
The key lives in an environment variable of the environment that runs Open Second Brain (a shell profile, the host's env file, a secrets manager). The machine config holds only the variable's **name**:
decision_model_enabled: "true" decision_model_provider: <preset> decision_model_env_key: <VARIABLE_NAME> # the name, never the key decision_model_uses: "<use>:shadow"
chat. Never echo it. Ask the user to set the variable themselves, then rerun `check`.
`Brain/_brain.yaml` can only turn the feature off, never on.
TLS, explain what `decision_model_allow_insecure_http` means (text and key cross the network unencrypted) before the user sets it.
Then verify connectivity with one synthetic request that carries no vault content:
o2b decision-model check --ping
Start with ONE use in `shadow`. Shadow sends and records every request but returns today's result unchanged, so the user sees no difference yet. Pick the use that matches what the user wants to improve:
`search_rerank_kind: decision-model`; pays off with a semantic lane).
signal, carried by the rerank request.
carries.
adds a request to every prompt that injects; mention the latency.
deterministic detectors made (`brain_hygiene scan`, `brain_tension verify`, `brain_labels suggest`).
Each use has its own page under `docs/decision-models/`.
After about a week of normal use, read the numbers:
o2b decision-model report --use <use> o2b search rerank-eval --dataset <queries.json> --kind decision-model --compare-local # rerank only
`report` prints the calls, outcomes, latency, tokens and cost, plus the use's own evaluation metric. Recommend `enforce` only when that metric shows a gain against the deterministic baseline without a regression. For `extract_prefilter`, `enforce` needs zero regret (no committed signal from a turn the filter would have dropped); otherwise stay in shadow. Switching to `enforce` is the user's decision, one use at a time:
decisio
Open Second Brain is a memory layer for AI agents that lives in an Obsidian vault. Agents read and write it through MCP servers, lifecycle hooks and the o2b CLI.
Record taste signals and apply-evidence events into the Brain observing-memory layer of Open Second Brain. INVOKE this skill (and…
Use when the user explicitly mentions codegraph, asks structural code questions such as callers/callees/impact, asks where a…
Bring Open Second Brain semantic search online — embedding API key, sqlite-vec extension, first reindex, optional periodic…
Use Open Second Brain to read, write, and maintain an agent-owned second brain in an Obsidian-compatible Markdown vault. The…
Use when adding, renaming, reviewing, or explaining Brain schema tokens, aliases, prefixes, link types, extractability, or expert…