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
Language-agnostic fact extraction - implementation plan
Tasks
Task 1: Structural-only fact-extract.ts
- Files:
src/core/brain/fact-extract.ts,tests/core/brain/fact-extract.test.ts(and any other test asserting removed families). - Changes:
- Narrow
FactFamilyto"url" | "email" | "quantity". - Replace
FAMILY_PATTERNSwith three structural patterns: bare URL, bare e-mail, and a currency/percent-bound quantity. - Delete
QUANTITY_UNIT_STOPWORDS,POSSESSION_KEY_BLOCKLIST, English action verbs. parseQuantityFact: detect a number bound to a currency symbol, an ISO-4217-style 3-letter code, or%; drop theactionfield fromParsedQuantityFact(no language-neutral source).
- Narrow
- Acceptance (tests, written first, must fail before the change):
- "my name is Bob" / "I prefer X" / "yes, the price is 5" extract NOTHING.
- A URL, an e-mail, and a
$1,200/50%/3.5 USDamount extract in any language context (assert with a non-Latin sentence wrapping them). parseQuantityFact("$42")->{value: 42, unit: "usd"}; bare "42" without a symbol ->null.
Task 2: De-couple truth/ingest.ts
- Files:
src/core/brain/truth/ingest.ts,tests/core/brain/truth/ingest.test.ts. - Depends on: Task 1.
- Changes:
- Delete
POSSESSION_REand the EnglishSTRUCTURERS(name/called/based-in). - Keep the structural e-mail and website structurers.
- Remove the
possessionbranch inclaimsFromAssertion. - Quantity branch: pass
action: null(field stays nullable in the ledger).
- Delete
- Acceptance:
- An assertion "my name is Bob" yields NO claim.
- An assertion with an e-mail / URL / currency amount yields the corresponding structural claim.
truth/aggregate.ts+truth/store.tsstill pass withaction: null.
Task 3: Suite sweep
- Files: any remaining test under
tests/**referencing removed families, English fixtures, orquantity.action. - Acceptance: full
bun test,bun run typecheck,bun run lintgreen.