No description
Find a file
2026-05-01 01:45:47 +08:00
src fix: pass Obsidian sentence case lint 2026-05-01 01:45:47 +08:00
.gitignore feat: AI Autocomplete - inline ghost text completion for Obsidian 2026-02-12 18:07:29 +08:00
esbuild.config.mjs feat: AI Autocomplete - inline ghost text completion for Obsidian 2026-02-12 18:07:29 +08:00
LICENSE feat: AI Autocomplete - inline ghost text completion for Obsidian 2026-02-12 18:07:29 +08:00
manifest.json fix: pass Obsidian sentence case lint 2026-05-01 01:45:47 +08:00
package-lock.json fix: pass Obsidian sentence case lint 2026-05-01 01:45:47 +08:00
package.json fix: pass Obsidian sentence case lint 2026-05-01 01:45:47 +08:00
README.md feat: add heuristic prompt controls 2026-04-30 20:18:37 +08:00
styles.css feat: AI Autocomplete - inline ghost text completion for Obsidian 2026-02-12 18:07:29 +08:00
tsconfig.json feat: AI Autocomplete - inline ghost text completion for Obsidian 2026-02-12 18:07:29 +08:00
versions.json fix: pass Obsidian sentence case lint 2026-05-01 01:45:47 +08:00

AI Autocomplete

AI inline writing completion for Obsidian, powered by OpenAI-compatible APIs. The default setup routes through OpenRouter to the Groq provider for fast inference.

Type naturally and get ghost text suggestions that appear inline. Press Tab to accept, Esc to dismiss.

Features

  • Ghost text completion — transparent suggestions appear at your cursor, like GitHub Copilot
  • Context-aware — reads text before and after cursor for coherent continuations
  • Insight-oriented — can surface sharper questions, hidden assumptions, analogies, and reframes for personal knowledge notes
  • Fast — defaults to OpenRouter's Groq provider with throughput-prioritized routing
  • Bilingual — automatically detects and continues in Chinese or English
  • Lightweight — 6KB plugin, no dependencies

Usage

  1. Install the plugin
  2. Go to Settings → AI Autocomplete → enter your OpenRouter API key
  3. Start writing — suggestions appear after a brief pause
Key Action
Tab Accept suggestion
Esc Dismiss suggestion
Keep typing Suggestion auto-dismisses

Settings

Setting Default Description
API base URL https://openrouter.ai/api/v1/chat/completions Any OpenAI-compatible chat completions endpoint
Model openai/gpt-oss-120b:nitro Smart default via OpenRouter's Groq provider
System prompt Built-in heuristic prompt Editable prompt that controls ghost text style and insight behavior
Reasoning effort minimal Keeps reasoning models fast enough for inline autocomplete
Hide reasoning On Excludes reasoning tokens from suggestion text
Provider groq Forces OpenRouter's Groq provider
Provider sort throughput Prioritizes high token throughput
Allow fallbacks Off Keeps requests on the selected provider
Trigger delay 800ms How long to wait after typing before fetching a suggestion
Enabled On Toggle via settings or command palette

How it works

The plugin uses CodeMirror 6 extensions to render transparent "ghost text" at the cursor position. When you pause typing, it sends the surrounding context (up to 2000 chars before + 500 chars after cursor) to the configured API and displays the completion as inline ghost text.

License

MIT