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
/**
* Aggregation seam for the Brain MCP tool surface.
*
* The handlers live in per-domain modules under `./brain/` (one
* module per concern, mirroring the sibling search-tools.ts /
* schema-tools.ts split). This file only concatenates their tool
* arrays in a stable order; `tools.ts` and the test suite import
* `BRAIN_TOOLS` from here, so the registration point is unchanged.
* The tests/mcp/brain-tools-parity.test.ts guard pins the frozen
* v1.x tool-name set.
*/
import { FEEDBACK_TOOLS } from "./brain/feedback-tools.ts";
import { REVIEW_TOOLS } from "./brain/review-tools.ts";
import { CONTEXT_TOOLS } from "./brain/context-tools.ts";
import { PACK_TOOLS } from "./brain/pack-tools.ts";
import { QUERY_TOOLS } from "./brain/query-tools.ts";
import { ENTITY_TOOLS } from "./brain/entity-tools.ts";
import { HEALTH_TOOLS } from "./brain/health-tools.ts";
import { ATTEST_TOOLS } from "./brain/attest-tools.ts";
import { BRIEF_TOOLS } from "./brain/brief-tools.ts";
import { ANALYTICS_TOOLS } from "./brain/analytics-tools.ts";
import { KNOWLEDGE_TOOLS } from "./brain/knowledge-tools.ts";
import { ADMIN_TOOLS } from "./brain/admin-tools.ts";
import { RECALL_TOOLS } from "./brain/recall-tools.ts";
import { WORKSPACE_TOOLS } from "./brain/workspace-tools.ts";
import { PROCEDURE_TOOLS } from "./brain/procedure-tools.ts";
import { LANDSCAPE_TOOLS } from "./brain/landscape-tools.ts";
import { HYGIENE_TOOLS } from "./brain/hygiene-tools.ts";
import { NER_TOOLS } from "./brain/ner-tools.ts";
import { INGEST_TOOLS } from "./brain/ingest-tools.ts";
import { DISTILL_TOOLS } from "./brain/distill-tools.ts";
import { EXTRACT_TOOLS } from "./brain/extract-tools.ts";
import { DESIGN_NOTE_TOOLS } from "./brain/design-note-tools.ts";
import { RESEARCH_TOOLS } from "./brain/research-tools.ts";
import { DERIVE_TOOLS } from "./brain/derive-tools.ts";
import { NOTES_TOOLS } from "./brain/notes-tools.ts";
import { WRITE_BATCH_TOOLS } from "./brain/write-batch-tools.ts";
import { SYNTHESIS_TOOLS } from "./brain/synthesis-tools.ts";
import { GENERATION_TOOLS } from "./brain/generation-tools.ts";
import { CALENDAR_TOOLS } from "./brain/calendar-tools.ts";
import { PLEDGE_TOOLS } from "./brain/pledge-tools.ts";
import { TOPIC_TOOLS } from "./brain/topic-tools.ts";
import { MEMORY_BRIDGE_TOOLS } from "./brain/memory-bridge-tools.ts";
import { LIFECYCLE_TOOLS } from "./brain/lifecycle-tools.ts";
import { LIFECYCLE_FILE_TOOLS } from "./brain/lifecycle-file-tools.ts";
import { DECISIONS_TOOLS } from "./brain/decisions-tools.ts";
import { TENSION_TOOLS } from "./brain/tension-tools.ts";
import { STORAGE_TOOLS } from "./brain/storage-tools.ts";
import { RECEIPT_TOOLS } from "./brain/receipt-tools.ts";
import { CHANGES_TOOLS } from "./brain/changes-tools.ts";
import { SETTINGS_TOOLS } from "./brain/settings-tools.ts";
import type { ToolDefinition } from "./tool-contract.ts";
export { vaultRelativeSafe } from "./brain/shared.ts";
export const BRAIN_TOOLS: ReadonlyArray<ToolDefinition> = Object.freeze([
...FEEDBACK_TOOLS,
...REVIEW_TOOLS,
...CONTEXT_TOOLS,
...PACK_TOOLS,
...QUERY_TOOLS,
...ENTITY_TOOLS,
...HEALTH_TOOLS,
...ATTEST_TOOLS,
...BRIEF_TOOLS,
...ANALYTICS_TOOLS,
...KNOWLEDGE_TOOLS,
...ADMIN_TOOLS,
...RECALL_TOOLS,
...WORKSPACE_TOOLS,
...PROCEDURE_TOOLS,
...LANDSCAPE_TOOLS,
...HYGIENE_TOOLS,
...NER_TOOLS,
...INGEST_TOOLS,
...DISTILL_TOOLS,
...EXTRACT_TOOLS,
...DESIGN_NOTE_TOOLS,
...RESEARCH_TOOLS,
...DERIVE_TOOLS,
...NOTES_TOOLS,
...WRITE_BATCH_TOOLS,
...SYNTHESIS_TOOLS,
...GENERATION_TOOLS,
...CALENDAR_TOOLS,
// One-off pledge CRUD, then the agent-executed pledge extraction intake.
...PLEDGE_TOOLS,
...MEMORY_BRIDGE_TOOLS,
...LIFECYCLE_TOOLS,
...LIFECYCLE_FILE_TOOLS,
...DECISIONS_TOOLS,
...TENSION_TOOLS,
// Storage lifecycle: the measured-or-refused storage report, then the
// receipt-compaction scan / compact surface over the continuity and
// metrics receipt ledgers.
...STORAGE_TOOLS,
...RECEIPT_TOOLS,
// Brain store change probe (design D5): new record ids since a watermark.
...CHANGES_TOOLS,
// Topics (design D8, D9): read and change topics by recording topic events.
...TOPIC_TOOLS,
// Shared brain settings (design D4, D14 item 3): get, list, set, unset.
...SETTINGS_TOOLS,
]);