Skip to content
Agent Memory
Skill

/decision-model-setup

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

From plugin
open-second-brain
6046 skills9 hooks

Claude Code

$ npx -y skills add itechmeat/open-second-brain --skill decision-model-setup --agent claude-code

SKILL.md

decision-model-setup.SKILL.md
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.

Decision-model setup

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.

Step 1: always start with `check`

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.

Step 2: pick a route

Ask the user which route they want; never pick one for them.

  • **TypeSafe** (`typesafe`): the model vendor, directly.
  • **OpenRouter** (`openrouter`): the same model through OpenRouter.
  • **Vercel AI Gateway** (`vercel` for the compatible route,

`vercel-evaluate` for the gateway's own evaluate endpoint).

  • **OpenCode Zen** (`opencode-zen`).
  • **Self-hosted on loopback** (`laya`, `openjev`, or `compatible` with

`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.

  • **`llm-emulation`**: a generative chat endpoint asked only for

probabilities. Uncalibrated, costs far more, and meant for `shadow` evaluation only. Never suggest it as the default.

  • **Converse gateway** (`converse`): a bearer-authenticated gateway

speaking the Bedrock-style Converse protocol. Uncalibrated like `llm-emulation` (the model behind the gateway writes its own probabilities), so `enforce` needs `decision_model_allow_uncalibrated`, and its `converse` threshold profile has no tuned uses yet, so every `enforce` runs as `shadow` until tuned from this route's own shadow data. The base URL, model id and key variable are the user's to set. 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.

Step 3: the key, by name only

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"
  • Never write the key into the config, the vault, a tracked file or the

chat. Never echo it. Ask the user to set the variable themselves, then rerun `check`.

  • The config lives outside the vault (the machine config); the shared

brain setting `decision_model.enabled` can only turn the feature off, never on.

  • Plain `http://` is accepted only on loopback. For another host without

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

Step 4: one use in shadow

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:

  • `rerank`: search ordering (needs `search_rerank_enabled: "true"` and

`search_rerank_kind: decision-model`; pays off with a semantic lane).

  • `answerable`: an advisory "can these results answer the question"

signal, carried by the rerank request.

  • `skills`: which skills `skills_attach` offers.
  • `extract_prefilter`: which user turns the extract-signals envelope

carries.

  • `recall_inject`: which notes the prompt-time recall hook injects. It

adds a request to every prompt that injects; mention the latency.

  • `dedup`, `tension`, `labels`: advisory verdicts on proposals the

deterministic detectors made (`brain_hygiene scan`, `brain_tension verify`, `brain_labels suggest`).

  • `topic_route`: which topic an unassigned record lands on in the dream

pass. Mention that the planner's word overlap stays the fallback.

  • `event_kind`: which item a record a topic holds deriv
Read more
@itechmeat
Ships withopen-second-brain

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.

Stars on GitHub

Momentum

stars in total
604
Star history of itechmeat/open-second-brain on GitHub, a chart by star-history.com

Other skills on open-second-brain.

brain-memory

brain-memory

Record taste signals and apply-evidence events into the Brain observing-memory layer of Open Second Brain. INVOKE this skill (and…

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

claude-mem13d116k
@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

hindsight13d60k
@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about decision-model-setup.

Which coding agents can use decision-model-setup?
decision-model-setup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.