hn.today

Mentat: One memory for all my AI tools

blog.benjamin.ie3 points0 comments
Screenshot of Mentat: One memory for all my AI tools

MENTAT is a personal memory system designed to stop AI chats from repeatedly asking for the same background. It stores concise, linked Markdown notes in a private Git repository, organized around personal context, life areas, projects, people, and dated monthly logs. The owner edits the notes directly in Obsidian or another editor; wiki links provide structure, while automated builds create an index and graph. A Cloudflare Worker exposes the notes to Claude and OpenCode through MCP tools for reading, searching, filtering, following links, and retrieving recent log entries. Every push to the main branch rebuilds and deploys the Worker, avoiding a separate database and keeping changes synchronized across devices.

The system prioritizes privacy and controlled updates because AI-written notes could mislead future chats if untrusted content were recorded as fact. Access requires GitHub OAuth tied to the owner’s immutable numeric user ID; the Worker runs on a private subdomain, and the repository is checked for secrets. AI write requests create pull requests rather than editing trusted notes directly. The Worker restricts paths and content, log-entry requests can auto-merge after 72 quiet hours, and other note changes require approval. A graph page visualizes note connections behind the same sign-in. The author also describes practical implementation failures, including brittle date-based tests, OAuth callback confusion, and an auto-merge rule that failed on real changes. A public, fictional demo and reusable template show how others can start with a short profile note and a few project notes.

Read on blog.benjamin.ie0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

Now Anthropic is blocking Russian users

Now Anthropic is blocking Russian users

Anthropic is accused of charging Russian Claude users before identity checks, then cutting off access after verification and retaining biometric data. Critics say account bans can affect linked GitHub projects and Russian citizens living abroad, and accuse the company of failing to answer public questions. (twitter.com)

The End of AI Frontiers

The End of AI Frontiers

Microsoft Research’s AI Frontiers group brought together about 50 researchers to develop agent systems and foundational AI advances. After the team joined Microsoft AI in September, its research-first approach clashed with leadership’s emphasis on scaling. (hunch.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.