Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

AI Cloze Reading

liufreeliufree18 downloads

AI-powered cloze reading view: open any note to generate a cloze reading view, adjust cloze density, remember the last AI cloze result (unless you regenerate), and spaced-repetition review mode (integrated with the Obsidian API). Supports custom AI providers and models.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

AI-powered cloze reading view + spaced-repetition review mode. Stack: Obsidian Plugin API + React 18 + Ant Design 5 + esbuild + TypeScript.

中文

Features

  1. Custom markdown reading view: The "Open AI cloze reading view for current note" command renders the current note in a separate tab, where the AI automatically identifies key knowledge points and blanks them out. Click a blank to reveal/hide the answer in place (only a CSS class toggle — no full-page rebuild, no flicker). Tables, dataview, math formulas, code, mermaid, and other elements are all preserved intact.
  2. Configurable provider & model: The settings panel supports OpenAI-compatible / Anthropic / Ollama (local), with Base URL, API Key, model, temperature, and max tokens; a "Test AI connection" button fires a minimal request to verify connectivity in one click.
  3. Adjustable cloze density: A 0–100% slider adjusts the blank ratio in real time (top-N% ranked by AI importance).
  4. Memory & auto-cloze switches: Each open reads the per-note cache (data.json) directly for the last result; the AI is only re-invoked when you click "Re-cloze with AI"; a yellow hint appears when "original note modified". Enable "auto cloze" in settings to invoke the AI automatically when opening an uncached note (long notes consume a lot of tokens; a hint is shown when this triggers).
  5. Review memory mode: Flip through cards term by term, click "reveal answer", and rate Again / Hard / Good / Easy (SM-2-style spaced repetition; ease/interval/lapses/reps/due stored in data.json). On completion, Good/Easy terms can be written back to the note as under a "🎴 cloze flashcards" section (#flashcards review/flashcard, compatible with the Spaced Repetition plugin).
  6. Bidirectional document navigation: When any markdown note is open, an "AI cloze" button in the view header opens its cloze reading view in one click; the "Back to note" button in the cloze view toolbar jumps back to the original note (activates the existing tab if already open).

Demo

A demo note is included at demo/demo-note.md. Open it in Obsidian and run "Open AI cloze reading view for current note" to try AI cloze generation, density adjustment, review cards, and flashcard export.

Development

npm install
npm run dev        # watch build
npm run build      # typecheck + production build + deploy to .obsidian/plugins/ai-cloze
npm run smoke      # pure logic + jsdom DOM + React component smoke tests

Build output auto-deploys to .obsidian/plugins/ai-cloze/; restart Obsidian or reload the plugin in settings to take effect.

Files

File Description
src/main.tsx Plugin entry: registers view, commands, settings tab
src/view.tsx Custom ItemView (React mount)
src/components/App.tsx Main UI: toolbar + reading/review switch + cache & generation logic
src/components/ReadingMode.tsx Reading cloze rendering
src/components/ReviewMode.tsx Review mode
src/ai.ts AI provider client (OpenAI-compatible / Anthropic / Ollama)
src/cloze.ts AI prompt, JSON parsing, density selection
src/dom.ts Markdown DOM cloze wrapping
src/srs.ts SM-2 spaced repetition
src/settings.ts Settings tab

License

MIT

HealthExcellent
ReviewPassed
About
Open an AI-powered cloze reading view that blanks key knowledge points in the current note while preserving tables, code, math, mermaid and other elements. Reveal answers inline without reload, adjust cloze density in real time, and use per-note caching with optional auto-cloze. Study cards in a spaced-repetition review mode with SM-2 ratings and write learned clozes back into the note under a flashcards section.
AIFlashcardsReview
Details
Current version
1.0.2
Last updated
2 weeks ago
Created
2 weeks ago
Updates
3 releases
Downloads
18
Compatible with
Obsidian 1.13.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
liufreeliufree
github.com/liufree
GitHubliufree
  1. Community
  2. Plugins
  3. AI
  4. AI Cloze Reading

Related plugins

LearnKit

A native study system for your Obsidian vault. LearnKit turns notes into durable knowledge with flashcards, spaced repetition, tests, and more.

Copilot

Run AI agents such as Claude Code, Codex, and OpenCode inside your vault. Turn your second brain into a smart assistant that gets knowledge work done.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Karpathy LLM Wiki

Karpathy's LLM Wiki implementation plugin for Obsidian - turns notes and PDFs into a linked, LLM-powered knowledge base with entity pages, concept pages, graph-powered Q&A, and local-first privacy.

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.

Flashcards

Anki integration.