Source-grounded research notebooks for Hermes. SourceBook stores every notebook locally in SQLite WAL with hybrid semantic vector + FTS5 BM25 retrieval. Every answer cites exact source passages with numbered marginalia pills, verifies factual claims and cross-source contradictions in a live Claim Ledger, tracks corpus coverage, works with any model provider configured in Hermes, and turns active sources into eight interactive Studio formats.

All screenshots show SourceBook running inside Hermes Desktop. SourceBook adopts your active Hermes theme automatically across both dark and light modes.

What you get
- Works with any Hermes model. Opens Hermes Desktop's native
ModelCatalogMenudirectly in the topbar so you can pick from every authenticated provider and model in your Hermes agent (OpenRouter, Anthropic, OpenAI/Codex, Claude Subscription, xAI, Qwen, Gemini, MiniMax, Ollama, LM Studio, custom endpoints) or stay onAuto (Active Hermes). A 3-tier JSON compatibility ladder (json_schema,json_mode, and plain text JSON extraction) keeps structured Studio generation reliable across every provider. - Hybrid, Exact, Regex, and Exhaustive Multi-Pass Retrieval. Combines SQLite FTS5 BM25 keyword ranking, literal phrase/title boosting, and local semantic vectors via Reciprocal Rank Fusion (RRF), plus Deep Find multi-pass scanning across 40–200+ document notebooks, Exact / Regex passage lookup with zero random fallbacks, per-query Source Scoping, and instant source sidebar filtering.
- Multi-format ingestion, YouTube, local folders (up to 200 files per sync), and Deep Research Auto-Ingest. Drag and drop PDF (with PyMuPDF/pdfplumber/pypdf, automatic vision OCR on scanned pages, and visual PDF page previews with cited-sentence highlight boxes inside the Passage Inspector), DOCX (stdlib XML fallback included), Markdown, code, CSV/TSV, JSON, HTML, audio/video, images, or web and YouTube URLs (timestamped transcripts with video jump links). Sync local folders, Obsidian vaults, or Git repos directly from disk, refresh linked files or URLs in place, or open Discover → Deep Research to expand a topic into complementary web queries, deduplicate and auto-ingest 5–15 primary sources, and synthesize a cited Deep Research Briefing automatically.
- Grounded chat, Exact/Regex Passage Search, and Hermes Memory bridge. Renders fenced code blocks with copy buttons, GFM tables, blockquotes, ordered lists, and numbered
[1][2]citation pills with per-reply retrieval coverage (matched/scanned docs · chunks). PressCtrl+K(or click Find) to search across All Notebooks or the current notebook inHybrid,Exact, orRegexmode and launch scoped chat directly from matches, or click Memory on any cited answer, verified claim, note, or passage excerpt to save verified findings through Hermes's nativememorytool. - Claim Ledger & Cross-Source Contradictions. Audits every assistant sentence with stemmed semantic + numeric alignment (explicitly flagging number mismatches) and scans active sources automatically to surface cross-source numeric and polarity contradictions side by side.
- Passage Inspector with Visual PDF Page Previews & Tabular Data Analyzer. Click any citation pill to inspect highlighted evidence in context — including rendered PDF pages with cited text highlighted directly on the page and click-to-zoom lightbox — jump straight to YouTube timestamps, or click Analyze data on CSV/JSON sources to compute exact column statistics (
min,max,mean,median,p95,sum) and inline bar charts. - Coverage Map & Living Notes. Tracks chunk hits across chat and Studio runs to highlight unread blind spots. Refreshing a linked file or URL automatically marks affected Living Notes and Studio Artifacts as
Stalewith one-click refresh. - Eight customizable, iteratively refinable Studio formats with ordered Bayer dither craft. Customize depth, counts (up to 40–50 items), source subsets, and steering prompts before generating—or iterate on any artifact afterward with the universal Refine with Hermes bar. Includes Study Guides (9 templates including
Deep Dossier,Literature Review, andTechnical Audit), Adjustable-Duration 2-Host Audio Overviews (2to30minutes with chapter jumps, unclipped 3-tier TTS, dithered audio waveform, and Spoken "Join the Podcast" Interruption), Interactive Pan/Zoom Mind Maps (15%–400%wheel-to-cursor zoom, wrapped multi-line nodes, cross-branch relationship links, node search, full-canvas mode, and AI Expand Branch drill-downs), tactile SM-2 Flashcards, Focus-mode Mastery Quizzes, 5-layout Bento Infographics with radial gauges & metric charts, multi-view Data Tables (Table | Cards | Chartup to 36 cross-source rows), and a full Slide Deck Studio (Detailed DeckvsPresenter Slides, source selector, custom style/audience prompting, interactive outline editor, inline single-slide editor & per-slide Regenerate Visual, one-click Revise, Hermes ImageGen in Full-Slide Art or Hybrid mode using whatever provider is configured in Hermes includingopenai-codex/ ChatGPT OAuth,openai,fal, orkrea, bundledskills/slide-deck-craft/SKILL.md, 10 layouts across 4 themes, Presenter Mode, and native.pptxPowerPoint +.pdfdownloads). Subtle 4x4 Bayer ordered-dither textures run through Hermes's budgeted rAF loop (zero idle CPU, respects reduced motion). - Adaptive multi-size & split-screen desktop workspace. Uses container-aware responsive breakpoints so SourceBook scales cleanly from narrow split panes (
320px+) and short horizontal splits to ultrawide 4K monitors (2200px+). Narrow panes switch into a single-focusSources | Workspace | Studioview with a full-width Passage Inspector; half-screen splits tuck Sources into an on-demand slide-over drawer with a live count badge; desktop and ultrawide windows offer fluid collapsible left/right rails and a centered920pxreading column. - Works in chat everywhere. Bind any Hermes session with
/sourcebook use <nb_id>across Desktop, CLI, Telegram, Discord, or Slack, pin models with/sourcebook model, sync folders with/sourcebook sync, or launch automated web synthesis with/sourcebook research <nb_id> <topic>. - Local extractive fallback. When no external model provider is configured, SourceBook still answers questions and generates all eight Studio formats locally from your indexed chunks, labeled clearly as
Local extractive.
Inside SourceBook
Click any screenshot to inspect it at full size.
Studio formats
| Format | Interactive viewer | Offline exports |
|---|---|---|
| Study Guide | Rich Markdown view (code blocks, tables, blockquotes, [n] pills) across 9 templates, configurable depth, and universal Refine | Markdown (.md) |
| Audio Overview | Adjustable 2–30 min 2-host podcast player (0.75x-2x) with chapters, dithered waveform, unclipped 3-tier TTS, cited transcript, and Spoken "Join the Podcast" Interruption | MP3 audio (.mp3), Script (.md) |
| Mind Map | True 15%–400% pan/zoom canvas with wrapped nodes, cross-branch relationship links, node search, full-canvas mode, AI Expand Branch drill-down, Ask Chat, and citations | Standalone SVG (.svg), 2x PNG (.png), OPML (.opml), Markdown |
| Flashcards | Layered card stack (up to 40 cards, difficulty levels) with 3-segment mastery bar, Study Deck / Browse All toggle, live SM-2 interval previews, hints, shuffle, and keyboard shortcuts | CSV (.csv), Anki TSV (.tsv), Markdown |
| Quiz | Focus stage & All-Questions review (up to 40 questions, difficulty levels), live SVG score ring, interactive stepper pills, keyboard shortcuts (A-D), cited explanations, and Missed-only retry | Answer Key (.md), JSON |
| Infographic | Live 5-layout switcher (Bento, Timeline, Compare, Hub, Pyramid), radial ring gauge, horizontal metric comparison bars, 4 palettes, clickable citations | Standalone SVG (.svg), 2x PNG (.png), JSON |
| Data Table | Exhaustive cross-source comparison (up to 36 rows), 4-KPI summary strip, Table / Cards / Chart views, faceted source filters, inline metric bars, expandable detail rows | CSV (.csv), JSON (.json), Markdown table |
| Slide Deck | Customize modal (Detailed Deck / Presenter Slides, source picker, custom prompt, Outline Editor, Inline Slide Editor & Per-Slide Regenerate Visual, Revise, Hermes ImageGen Full-Slide Art or Hybrid visual craft via skills/slide-deck-craft/SKILL.md), 10 layouts across 4 themes (Editorial, Keynote, Midnight, Paper), ⋯ Action Menu, Overview Grid, speaker notes, and Presenter Mode with Up Next | PowerPoint (.pptx with speaker notes), PDF Document (.pdf), Marp Markdown (.marp.md), Offline HTML Deck (.deck.html) |
Both Mind Map and Infographic resolve CSS theme variables (including color-mix()) to concrete sRGB colors before copying SVG or rendering 2x PNG exports, so exported visuals render identically outside Hermes Desktop.
Install
Requires Hermes Agent and Hermes Desktop 0.22.6 or newer.
hermes plugins install abundantbeing/sourcebook --enable
Optional extras for PDFs, scanned-PDF OCR, YouTube transcripts, and 2-host neural podcast audio:
uv pip install pymupdf youtube-transcript-api edge-tts
Use any Hermes model per notebook
SourceBook runs automatically on your active Hermes model or your configured Hermes auxiliary task slots (sourcebook_chat, sourcebook_studio, sourcebook_audio, sourcebook_ingest). To enable per-notebook provider and model overrides directly from SourceBook's topbar picker, allow overrides in your Hermes config:
hermes config set plugins.entries.sourcebook.llm.allow_model_override true
hermes config set plugins.entries.sourcebook.llm.allow_provider_override true
Slash commands & agent tools
Use SourceBook inside any Hermes chat (Desktop, CLI, Telegram, Discord, or Slack):
/sourcebook list
/sourcebook use <nb_id>
/sourcebook model <nb_id> <provider/model|auto>
/sourcebook sync <nb_id> <local_path>
/sourcebook add <nb_id> <url or text>
/sourcebook ask <nb_id> <question>
/sourcebook make <nb_id> <kind> [focus]
/sourcebook research <nb_id> <topic>
/sourcebook unuse
Registered Hermes agent tools:
sourcebook_list_notebooks: list notebooks, active models, and source countssourcebook_search: hybrid, exact, regex, or exhaustive multi-source search across a notebook (ornotebook: "all"for cross-notebook search) returning ranked chunks and citation IDssourcebook_save_note: save a cited Markdown note into a notebooksourcebook_studio: generate any of the eight Studio formats (report,audio,mindmap,flashcards,quiz,table,infographic,slides) with configurableduration,target_minutes,depth,difficulty, andcountsourcebook_analyze_data: compute exact column profiles and chart series for CSV, TSV, JSON, or Markdown tablessourcebook_deep_research: run multi-query web discovery, deduplicated auto-ingestion, and cited Deep Research Briefing synthesis
How it works
flowchart LR
U[Sources: PDF / DOCX / MD / CSV / YouTube / Folders / Web] --> I[core/ingest.py]
I --> S[(SQLite WAL + FTS5 + Hybrid Vectors + Claims)]
S --> Q[Grounded Chat + Contradictions + Claim Ledger]
S --> ST[8-Format Studio + Audio Overview + Analytics]
M[Any Hermes Model / Auxiliary Task Slot] --> Q
M --> ST
Q --> API[dashboard/plugin_api.py]
ST --> API
API --> UI[desktop/plugin.js via Hermes Plugin SDK]
S --> HOOK[pre_llm_call + /sourcebook + 6 Agent Tools]
- Local storage: Every notebook lives inside
<HERMES_HOME>/plugin-data/sourcebook/notebooks/<nb_id>/using SQLite WAL mode with FTS5 full-text search, local semantic vectors, and structured claim indexing, resolved dynamically so multi-profile gateways stay isolated. - Safe outbound handling: Every passage passed to a model runs through
agent.redact, URL ingestion validates addresses againsttools.url_safety, and local path syncing checksagent.file_safety. - SDK boundary: The Desktop bundle imports strictly
@hermes/plugin-sdk,react, andreact/jsx-runtime, using native Hermes theme variables (--ui-bg-chrome,--ui-bg-sidebar,--ui-bg-elevated,--ui-accent).
Privacy & disclosure
- Network: No telemetry, analytics, or background polling to external hosts. Outbound HTTP requests happen only on explicit user action: ingesting a web or YouTube URL (
youtube.comoEmbed /youtube-transcript-api), running Discover / Deep Research (html.duckduckgo.comanden.wikipedia.orgfallback search when Hermesweb_searchis unavailable), synthesizing Audio Overviews with optionaledge-ttsneural voices, or first-time local audio/video transcription via optionalfaster-whisper(which downloads and caches thesmallWhisper model from Hugging Face Hubhuggingface.coon first transcription if not already cached). Every URL and redirect hop is checked againsttools.url_safety(create_ssrf_safe_client+ per-hopis_safe_url), outbound passages pass throughagent.redact, and model/image calls route through your configured Hermes providers. - Files & reads outside plugin data: Writes notebook databases and generated media only under
<HERMES_HOME>/plugin-data/sourcebook/. Reads files outside that folder only when you explicitly upload a file or choose a local folder via Folder //sourcebook sync(validated withagent.file_safety). Clicking Memory routes strictly through Hermes's nativememorytool (returningHermes memory is disabledif disabled—never bypassing approval gates or writingMEMORY.mddirectly). - None of these: Credentials or API key file reads, environment variable scraping, shell command execution, self-updating code, core Hermes monkey-patching, or required third-party Python dependencies (
python_dependencies: [];desktop/plugin.jsships prebuilt). - Platform notes: Runtime-tested in Hermes Desktop on Windows 11. The Desktop bundle uses only the cross-platform Hermes Plugin SDK; macOS and Linux have not been runtime-verified yet.
Development
npm install
npm run check
pytest tests/test_sourcebook.py -v
License
MIT. See LICENSE.
README from the reviewed commit c5f8b5b; it updates when the author re-pins.

abundantbeing











