Local-first 🧠memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.
TypeScript
import { test, expect } from "bun:test";
import { join } from "node:path";
import { resolveIndexPath } from "../../../src/core/search/paths.ts";
test("default points under <vault>/.open-second-brain", () => {
expect(resolveIndexPath("/v", null)).toBe(join("/v", ".open-second-brain", "brain.sqlite"));
});
test("explicit override wins", () => {
expect(resolveIndexPath("/v", "/tmp/custom.sqlite")).toBe("/tmp/custom.sqlite");
});
test("blank override falls back to default", () => {
expect(resolveIndexPath("/v", "")).toBe(join("/v", ".open-second-brain", "brain.sqlite"));
});