Mentat
approvedby Mentat Team
Your local agentic cognitive partner for Obsidian, managing structured knowledge, local command operations, and deep mathematical reasoning. - This plugin has not been manually reviewed by Obsidian staff.
โ 115 downloadsUpdated 29d agoMIT
Mentat - Obsidian Plugin
Your local agentic cognitive partner for Obsidian. Mentat is an AI agent that lives in your vault โ it reads, writes, searches, researches, and summarizes your notes through conversation.
What you can do with it
- ๐ฌ Chat with your vault: "Find my notes about RAG from last week and summarize them"
- ๐ Deep research: Create structured research plans, search the web, fetch pages, and save findings
- โ๏ธ Write and edit notes: "Write a technical summary of this paper to Research/"
- ๐ ๏ธ Automate tasks: Bulk operations, frontmatter updates, file moves with link fixing
- ๐จ Two UI themes: Classic bubble chat or terminal-style timeline โ switch anytime
- ๐งฉ Extensible: Extension system, skill framework, MCP support
AI Providers
| Provider | Chat + Tools | Embedding | Local |
|---|---|---|---|
| OpenAI (and compatible) | โ | โ | โ |
| Anthropic Claude | โ | โ | โ |
| Ollama | โ (no tool support) | โ | โ |
Set up in Settings โ Mentat โ Add AI Provider.
Quick start
# Install
cd /path/to/vault/.obsidian/plugins
git clone https://github.com/Secbone/obsidian-mentat mentat
cd mentat && npm install && npm run build
# Enable in Obsidian: Settings โ Community plugins โ Mentat
# Configure: Settings โ Mentat โ Add AI Provider
# Open chat: Ctrl/Cmd+P โ "Open AI Chat"
Development
npm run build # Type check + bundle โ dist/
npm run deploy:dev # Copy to ~/Documents/obsidian/.obsidian/plugins/
npm run lint # ESLint
npm test # Vitest
Project structure
src/
โโโ agents/ # Agent runtime (BaseAgent, Compactor, events)
โโโ chat/ # Chat orchestration (session, query, subagents)
โโโ context/ # Message windowing, token estimation
โโโ extensions/ # Extension system (EventBus, ExtensionManager)
โโโ providers/ # AI providers (OpenAI, Anthropic, Ollama)
โโโ prompts/ # System prompts, skill prompts, vault context
โโโ settings/ # Plugin settings & settings UI
โโโ skills/ # Skill framework (registry, executor, MCP, strategies)
โโโ ui/ # Themed UI (ChatView, bubble theme, terminal theme)
โโโ types/ # Shared type definitions
In-depth docs
| Doc | What it covers |
|---|---|
src/ui/themes/README.md | Theme system architecture, creating new themes |
src/ui/README.md | UI system overview, CSS conventions, icon sizing |
src/agents/README.md | Agent system, events, streaming, tool execution |
src/skills/README.md | Skill framework internals, MCP integration, custom skills |
skills/README.md | Adding and documenting skills |
prompts/README.md | Prompt system, template variables |
docs/theme-system-refactor.md | Theme system refactoring history |
Roadmap
- Phase 1: Agent system โ conversation, tool calling, multi-turn reasoning
- Phase 2: Skill framework โ 12 built-in skills, progressive/native/auto modes, MCP
- Phase 3: Themed UI โ BubbleTheme, TerminalTheme, smart scroll, terminal presets
- Phase 4: Extension system v1 + automatic context compaction
- Phase 4.5: EventBus architecture (AsyncGenerator โ EventBus, AgentContext.confirmHandler removed)
- Custom skills: user-defined skills via .obsidian/plugins/mentat/skills/ with implementation.js
- Phase 5: Tree-structured sessions with branching and comparison
- Phase 6: Extension system v2 โ dynamic loading, permission sandbox
- Phase 7: i18n, plugin marketplace, community extension registry
Built with
- Obsidian plugin API
- Anthropic Claude ยท OpenAI ยท Ollama
- PI Agent design influence (minimal core, extensibility)
- OpenCode design influence (event-driven agent, permissions)
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.