AI Overview

approvedunreviewed

by Deepal Jayasekara

Answer a prompt in an [!ai] callout with the Codex, Claude Code, or opencode CLI, writing the summary into the note as a nested callout.

★ 1 stars↓ 155 downloadsUpdated 25d agoMIT

AI Overview for Obsidian

Write a prompt inside a note and embed the result alongside it. AI Overview uses a locally installed Codex CLI, Claude Code, opencode, or Pi to carry out your request and save the generated content as a Markdown callout.

Generate overviews in your notes

AI Overview generating an answer inside an Obsidian note

Use it to embed any Markdown content the agent can produce: summaries, action items, comparisons across notes, drafts, tables, and more. The agent can draw on other notes in your vault, internet sources, and any other resources it can access. Vault notes do not need to be linked; internet access depends on the agent's available tools and permissions. Results are saved in the note itself, so they can sync to other devices and remain readable with the plugin disabled.

AI Overview is free. It uses agents you install and configure separately. Any provider account, subscription, or usage charges belong to your chosen agent setup; the plugin does not collect payments or require a paid plan.

Work with agents in comments

AI Overview brings your configured Codex, Claude Code, opencode, or Pi agent into Inline Review Comments and Discussions when either or both plugins are installed and enabled in the same vault. Mention the agent in a comment to ask a question or request work, and its reply appears in the same thread. You can review the result and send another mention to continue the conversation without switching to a terminal.

Set up agent mentions

  1. Install and enable AI Overview and either or both comment plugins in the same desktop vault. Use compatible, up-to-date versions of all participating plugins.
  2. Configure your Agent CLI, then set Settings → AI Overview → Agent name tag to a name such as Byte, without the @.
  3. Submit a new comment or reply containing @Byte followed by your request. Use the send button or Cmd+Enter / Ctrl+Enter to submit it.

Inline Review Comments

Inline Review Comments places review cards in the margin beside the passage you're working on. With AI Overview, you can ask your agent to explain that passage, check a claim, or revise the text, then read its response in the same card.

AI Overview responding to an agent mention in an Inline Review Comments margin card

These examples assume Settings → AI Overview → Agent name tag is set to Byte. Replace Byte with your configured agent's name tag. Select a paragraph, insert a review comment, and submit one of these requests:

  • @Byte Explain this paragraph in simpler terms.
  • @Byte Check this claim and add a source to the note.
  • @Byte Rewrite this paragraph for readers who are new to the topic.

Discussions

Discussions adds threaded discussion panels inside your notes. With AI Overview, you can ask the agent to compare ideas, turn an agreed plan into action items, or update the note, keeping requests, replies, and follow-up decisions together in the discussion.

AI Overview responding to an agent mention in a Discussions thread

Assuming your agent's name tag is configured as Byte, start a discussion or reply to an existing thread with one of these requests:

  • @Byte Compare the approaches discussed here and explain the trade-offs.
  • @Byte Update this note with the agreed action items.

Progress and follow-up

While the agent works, the thread shows a three-dot typing animation and its latest streamed activity. The agent receives the request, thread context, any quoted passage, and the current note's path. It performs requested work directly using the CLI's configured permissions, tools, and integrations, then reports the outcome in a reply. Note changes require the agent to have write access; AI Overview does not grant additional permissions.

Comments typed directly into Markdown start only after you leave the completed comment. Existing mentions stay dormant when a note opens or the integration is enabled. Editing an answered comment does not rerun it; send a new mention reply. Failed requests offer Retry. Stop cancels active execution; previous file changes and external effects remain. Execution retries can repeat actions, so the agent receives the previous failure and must inspect current state. Publication retries only post the saved reply. Interrupted requests require an explicit retry.

These integrations are optional. Leave Agent name tag blank to disable agent mentions. Both comment plugins work independently of AI Overview and remain usable on mobile; agent execution requires desktop. You can use either plugin or both, and each can be installed and updated independently. Replies stay in the note's Markdown after AI Overview is disabled.

See agent mention behavior and compatibility for the CLI permissions, compatibility and recovery details.

Agent activity in Files

An AI badge appears beside notes with queued or active work from AI callouts, Discussions, or Inline Review Comments. Its three dots animate while the agent runs or its result is being saved; queued work has static dots. Hover over the badge for queued, running, and publishing request counts.

Activity inside collapsed folders appears on the nearest visible collapsed folder. AI 2, for example, means two notes have pending work, regardless of how many requests each note has. Expanding the folder moves the badges to the visible notes or deeper collapsed folders.

Badges use a separate space after the filename, preserving file icons and normal navigation. They respect reduced-motion preferences and disappear when work finishes, fails, or is cancelled. Disable Settings → AI Overview → Show agent activity in Files to hide them without stopping work. Activity is local to the running vault instance and is never written into note properties.

Requirements

  • Obsidian desktop. The manifest declares Obsidian 1.13.0 or later. Generation is unavailable on mobile because the plugin starts a local CLI process.
  • One supported CLI, installed and authenticated. Set it up using the linked CLI documentation above and confirm it works in a terminal before using the plugin. The plugin does not install a CLI or sign you in.
  • Agent access to your Obsidian vault. For the plugin to work, the agent must be able to read your notes through either an enabled Obsidian CLI that it is permitted to use, or direct file access with knowledge of the vault directory. The plugin automatically supplies the vault directory and the current note's absolute path for direct file access; the agent still needs permission to read those files.
  • Access to a model through your chosen CLI. Network access and any account, subscription, or API charges depend on your CLI and model provider.

If your agent setup uses the Obsidian CLI, enable Settings → General → Command line interface and follow the registration instructions. Your agent's tools and permissions must allow it to invoke the CLI. See the Obsidian CLI setup guide for supported versions and setup details. Direct file access works without enabling the Obsidian CLI.

Running the CLI locally does not mean the model runs locally: a hosted model may receive your prompt, note content, and any other files the agent reads. See Privacy and file access.

Installation

Manual installation

  1. Download main.js, manifest.json, and styles.css from a release on the Releases page. If release files are not available yet, build from source.
  2. Create an ai-overview folder inside your vault's plugin directory. With the default Obsidian configuration folder, this is <vault>/.obsidian/plugins/ai-overview/.
  3. Copy all three files into that folder, then restart Obsidian.
  4. In Settings → Community plugins, turn on community plugins if needed and enable AI Overview.

Once the plugin is available in the community directory, you can install it through Settings → Community plugins → Browse by searching for AI Overview. See Obsidian's installation guide.

Your first overview

  1. Open Settings → AI Overview and select your Agent CLI. Codex is the default. If Obsidian cannot find the executable, set its full path in the corresponding CLI path field.

  2. Leave Model and the effort setting at CLI default to use your CLI's configuration. Add any required API keys under Environment variables.

  3. Open a note with some content. In the command palette, run AI Overview: Insert AI callout, or paste this in Source mode:

    > [!ai]
    > What are the delivery risks described in this note?
    
  4. Move the cursor outside the callout and pause. The plugin generates an answer automatically. You can follow progress in the callout header and status bar.

  5. Read the answer in Reading view or Live Preview. Switch to Source mode to edit the prompt.

For example, the saved Markdown might look like this:

> [!ai] Delivery risks
> What are the delivery risks described in this note?
>
> > [!summary] <!-- ai codex/default 2026-10-05T10:00:00.000Z 14123b01 title -->
> > Pending budget sign-off could delay or block Friday's planned release.

The plugin hides the prompt in rendered callouts and displays the answer beneath the outer title. The nested summary's header and border are also hidden. The prompt and metadata remain in the Markdown; with the plugin disabled, Obsidian shows the ordinary nested callouts instead.

You can write a title yourself, such as > [!ai] Action items, and use a prompt across several quoted lines. Keep a > on every prompt line, including blank lines, and put an unquoted blank line between separate callouts.

Example prompts

Reference specific notes, ask the agent to find relevant material in the vault, or combine your notes with internet sources:

> [!ai] Project comparison
> Compare this note with [[Project plan]] and [[Meeting notes]]. Highlight disagreements and unresolved decisions.

> [!ai] Related research
> Find other notes in this vault about this topic and synthesise their main findings. Link to the notes you use.

> [!ai] Research update
> Use this note and recent internet sources to write an update on this topic. Include links to the sources you use.

When answers update

  • Automatic generation: enabling the plugin, opening a note, or modifying a Markdown note triggers a check. A non-empty [!ai] prompt generates an answer if its summary is missing or its prompt has changed. Checks after edits wait about 2.5 seconds.
  • Existing answers are reused: changing other content in the note, a linked note, the CLI, model, or effort setting does not make an answer stale. Use a regenerate command when you want it to reflect those changes.
  • Cursor protection: automatic generation is deferred while the cursor is inside a callout in the active editor. The whole-note regeneration command skips that callout, so move the cursor outside it before running the command. The explicit regenerate-at-cursor command runs immediately.
  • Titles: an untitled callout receives a generated title. A title you supply before generation is preserved. Titles previously generated by the plugin can be replaced on later runs, even if you have since edited them.
  • Failed runs: the same failed prompt is not retried automatically during the current plugin session. After fixing the cause, use a regenerate command.

Generation writes to the note file and may replace an earlier generated answer. These changes appear in sync traffic and version-control diffs. Editing an answer does not pin it while its metadata comment remains.

Keep an answer unchanged

In Source mode, remove the <!-- ai … --> comment from the nested [!summary] header. The plugin treats a summary without that comment as hand-written and leaves it alone, including when you use a regenerate command.

To allow generation again, delete the nested summary callout, keeping the outer [!ai] callout and its prompt.

Commands

Search for AI Overview in Obsidian's command palette. You can assign hotkeys under Settings → Hotkeys.

CommandWhat it does
Insert AI calloutInserts an empty callout and places the cursor on the prompt line.
Regenerate at cursorGenerates a fresh answer for the callout containing the cursor.
Regenerate every overview in this noteRegenerates callouts with non-empty prompts, preserving summaries without metadata. Skips the callout containing the active cursor; move outside it before running this command.
Show status for this noteShows detected callouts, generation state, and recorded errors.

Settings

SettingPurpose
Agent CLICodex CLI (default), Claude Code CLI, opencode CLI, or Pi CLI.
CLI pathExecutable name or absolute path. For a bare name, the plugin searches the inherited PATH plus common macOS/Linux install directories.
ModelA dropdown for Codex, opencode, and Pi, or a text field for Claude Code. CLI default or an empty field leaves the choice to the CLI.
Reasoning effort / Effort level / Model variant / Thinking levelAvailable thinking levels reported by the selected CLI. CLI default leaves the choice to the CLI.
Agent name tagOptional mention name such as Byte, without @. Blank disables comment agents. Mentions request direct work using the CLI's configured permissions; retries can repeat actions.
Extra argumentsAdditional arguments passed to the selected CLI's generation command. Quoted values are kept together.
Environment variablesOne KEY=VALUE per line, added to the CLI's inherited environment. Shared across CLIs.
TimeoutMaximum generation time in seconds. Default: 300 (five minutes).

Path, model, effort, and extra arguments are saved separately for each CLI. Changing the model can reset an incompatible effort selection to CLI default.

Obsidian may not inherit environment variables exported in your terminal. Set required variables here if the CLI cannot authenticate from Obsidian. These values are stored in plain text in the plugin's data.json, normally at <vault>/.obsidian/plugins/ai-overview/data.json.

For opencode's Google provider, the plugin also accepts GEMINI_API_KEY as an alias when GOOGLE_GENERATIVE_AI_API_KEY is not already set.

Model and effort discovery

The plugin asks the installed CLI for its available options rather than shipping a fixed model list:

CLIModel discoveryEffort discovery
Codexcodex debug models; hidden entries are omittedEach model's supported_reasoning_levels
Claude CodeManual entryChoices parsed from claude --help
opencodeopencode models --verboseEach model's variants
Pipi --offline --list-models, including configured local modelsLevels from pi --help for models that report thinking support; Pi clamps the level to the model's capabilities

Results are cached for the plugin session. For Codex, opencode, and Pi, use the refresh button beside Model to ask again. Reloading the plugin also clears the cache. Discovery depends on your CLI version supporting these commands and output formats. If it fails, CLI default remains available.

Pi setup and compatibility

Pi 1.4.0 is the tested baseline. Install and authenticate Pi separately, then choose Pi CLI under Agent CLI. Model identifiers include the Pi provider, for example openai-codex/gpt-6.1-sol or ollama/qwen/qwen3.8-27b. Leaving model and thinking level empty uses Pi's own configuration. Existing settings for other CLIs are retained when switching.

For NVM or other version-managed installations, Obsidian may not inherit the terminal's executable search path. Run command -v pi in your terminal and paste the resulting absolute path into Pi CLI path if the bare pi command cannot be found from Obsidian.

Pi runs with --print --mode json and one fresh prompt. Its event stream reports tool activity, and the plugin waits for a completed agent_settled event and a successful final assistant response. Errors, aborts and output-limit truncation are rejected even when Pi exits with code zero; automatic retries may recover before the final outcome. See Pi CLI integration.

The JSON event stream does not enforce the model's reply format. Pi is prompted for { "title": "…", "body": "…" } for overviews and returns Markdown directly for comments. The plugin requires a nonempty completed final response and creates the saved reply object itself. Inspect completed work before explicitly retrying any failed execution. Session persistence follows Pi's normal configuration. Add --no-session to Pi's extra arguments to disable it. Output-mode, prompt and session-resumption overrides are rejected in both overview and comment runs.

Privacy and file access

Remote services

The plugin starts a local CLI rather than sending requests to a model API itself. The CLI's configuration determines which services are contacted. Codex commonly uses OpenAI, Claude Code commonly uses Anthropic, and opencode and Pi can use configured providers such as OpenAI, Anthropic, Google, or a local model. Alternative endpoints and CLI tools may contact other services, including websites requested by a prompt. Remote model services are used to generate the answer; the CLI may also contact services during authentication or model discovery.

A remote provider can receive the prompt, note contents, absolute file paths, and content from other files or tools the agent uses. Local execution alone does not keep this information on the device. Check your CLI's configuration and provider's privacy terms before generating answers. The plugin includes no analytics or telemetry service; the CLI and model provider have their own data-handling policies.

Files outside the vault

The plugin runs an executable installed outside the vault. That CLI may read its own configuration and authentication files in your home directory, which it needs to select models and authenticate. It may read other accessible files according to its permissions and your prompt; setting its working directory to the vault does not restrict file access to the vault.

For Codex, the plugin writes a response-schema file to the operating system's temporary directory and reads the final response from a temporary output file. These files let the CLI produce and return a structured answer. The schema contains no note text; the output can contain generated content derived from your notes. The plugin attempts to remove both files when a run finishes or fails. Files may remain after an app or system crash and can be removed from the temporary directory.

Agent permissions

Each agent runs non-interactively with the vault root as its working directory. The plugin supplies the note's absolute path and asks the agent to read it first, following wikilinks or relative links only when the request needs them. The agent can also find and read other accessible content in the vault without a link from the current note. File discovery and link resolution depend on the agent. The working directory is not itself a boundary on what files the CLI can read.

For overview callouts, the plugin asks every agent not to modify files. Its default invocation also:

  • runs Codex with --sandbox read-only and --ephemeral;
  • gives Claude Code --allowed-tools Read,Grep,Glob and --disallowed-tools Edit,Write,NotebookEdit,Bash;
  • gives opencode no enforced read-only flag, so it relies on the prompt and your opencode permissions;
  • gives Pi --tools read,grep,find,ls --no-mcp, applied after extra arguments. Pi extensions still run with the permissions of the Pi process; this is not a filesystem sandbox.

These are the plugin's default restrictions, not a universal guarantee about every CLI configuration or tool. Extra arguments and CLI configuration can change the agent's behavior and permissions. The plugin itself writes the final answer into your note.

Comment mentions use a separate launch mode. They load the CLI's normal configuration, tools and integrations and inherit its permissions. The plugin adds no full-access or auto-approval flags. A CLI configured read-only remains read-only. Temporary grants in another CLI session do not transfer to this new process. Unresolved approval requests fail with an actionable error; configure access outside Obsidian before retrying. Claude Code requires a version supporting --permission-prompts none (2.1.259 or newer).

The agent performs requested actions directly, including actions available beyond the vault. Codex and Claude Code use a schema enforcing { "reply": "Markdown response" }; OpenCode and Pi return Markdown directly. The plugin normalizes both into the same saved reply and posts it into the current thread. Claude requires structured_output from --json-schema, with no prose fallback. OpenCode requires completed text from the latest assistant message and a terminal step_finish reason of stop. Empty or incomplete responses fail. Direct effects are not rolled back by Stop, timeouts or failures, and execution retries cannot guarantee exactly-once effects. Saved legacy jobs retain their recorded plugin-applied edit recovery.

Overview response format and metadata

Codex receives a JSON schema through --output-schema; Claude Code and opencode are asked for a JSON object containing title and body. If the final response does not match that shape, the plugin saves it as the body without a generated title.

The <!-- ai … --> comment records the CLI, the configured model override (or default when the CLI chooses), generation time, and a hash of the prompt. It does not record the resolved default model or the contents of the note. The optional title flag marks the outer title as generated and replaceable.

Troubleshooting

  • Nothing happens: check that the prompt is non-empty and move the cursor outside the callout. Run Show status for this note to check whether it needs generation or has a recorded error.
  • CLI not found: confirm it works in your terminal, then set an absolute executable path in the plugin settings.
  • Authentication fails: complete the CLI's own login or add its required environment variables in the plugin settings, then regenerate.
  • Answer is out of date: regenerate after changing the note or linked notes. Only prompt changes trigger an automatic refresh of an existing answer.
  • Regeneration leaves a summary alone: a summary without an <!-- ai … --> comment is protected. Delete that nested summary to allow generation again.
  • Run times out: increase Timeout, or simplify the prompt, then regenerate.

Errors also appear in Obsidian's developer console with an [ai-overview] prefix. Report reproducible problems on the issue tracker, including your Obsidian version, CLI name/version, and the error. Remove API keys and private note content from reports.

Development

Building from source requires Node.js 24.10 or later and npm. The GitHub Actions workflow uses Node.js 24; run nvm use to select it locally if you use nvm.

From a local checkout of this repository:

npm ci
npm run lint
npm run build
npm test

npm run build type-checks and bundles the plugin into main.js. Copy it, manifest.json, and styles.css into your vault as described in Installation.

For automatic deployment to a test vault with the default .obsidian configuration folder, set OBSIDIAN_VAULT_DIR to the vault root:

export OBSIDIAN_VAULT_DIR="/path/to/test-vault"
npm run dev

The watcher rebuilds JavaScript and copies the three plugin files into <vault>/.obsidian/plugins/ai-overview/. It also watches manifest.json and styles.css for copying. Reload the plugin in Obsidian to load JavaScript changes. The production build also deploys when that variable is set; without it, builds skip deployment.

Tests cover callout parsing, Markdown write-back, response parsing, provider arguments/events, and model/effort discovery parsing. They do not run real agents or verify the interface inside Obsidian.

Releases and commit messages

semantic-release runs in GitHub Actions after tests and the production build pass on main. Pull requests run the same checks without publishing. Use Conventional Commits for commit messages (and squash-merge titles):

CommitRelease
fix: correct callout parsingPatch, such as 1.0.0 → 1.0.1
feat: add a new providerMinor, such as 1.0.0 → 1.1.0
feat!: change the callout format or a BREAKING CHANGE: footerMajor, such as 1.0.0 → 2.0.0
docs:, chore:, ci:, test:, or refactor: without breaking changesNo release

The largest applicable bump wins when several commits land together. With no existing release tags, the first automated release is 1.0.0. Subsequent releases are calculated from commits since the last release tag; do not bump versions or create release tags manually.

For each release, the workflow:

  1. Updates package.json, package-lock.json, and manifest.json to the same version and records its minimum Obsidian version in versions.json.
  2. Rebuilds the plugin and generates CHANGELOG.md and GitHub release notes from the commits.
  3. Commits the changelog and version files with chore(release): … [skip ci].
  4. Creates a tag in x.y.z format and publishes a GitHub release with main.js, manifest.json, and styles.css as individual downloadable assets.

The release job uses GitHub's built-in GITHUB_TOKEN with contents: write; no extra secret or npm publishing token is required. If main is protected by branch rules, those rules must allow the release bot to push the generated version/changelog commit. The workflow can also be run from the Actions tab on main; it uses the same commit analysis to decide whether a release is needed.

To preview release analysis locally, provide a GitHub token with repository access through GITHUB_TOKEN and run npm run release:dry-run on main. Dry runs do not update version files, build release assets, commit, tag, or publish.

See Obsidian's publishing guide for the community-directory submission process and release asset requirements.

Searchable settings and linting

Settings are searchable from Obsidian's global settings search. Development uses the official Obsidian lint rules; the lint package's Obsidian dependency is overridden to match the API version used by this plugin.

License

MIT, copyright 2026 Deepal Jayasekara.

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.