MCPcopy Index your code
hub / github.com/Pierrad/obsidian-github-copilot

github.com/Pierrad/obsidian-github-copilot @1.2.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.4 ↗ · + Follow
307 symbols 728 edges 56 files 1 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Obsidian GitHub Copilot Plugin

Obsidian plugin GitHub release (latest by date including pre-releases)

Use GitHub Copilot in the Obsidian editor. This plugin is a bridge between the Obsidian editor and the GitHub Copilot service.

  • 🤖 Get inline suggestion as you type using GitHub Copilot service
  • 💬 Use the GitHub Copilot Chat service to ask questions about your notes

🗒️ Requirements

  • A GitHub Copilot subscription (https://copilot.github.com/)
  • Network connection to send and receive data from the GitHub Copilot service

⚙️ Installation

  1. Install the plugin via the Obsidian community plugins browser.
  2. Activate the plugin in the settings. Make sure to configure any necessary options.

🤖 GitHub Copilot Inline

https://github.com/Pierrad/obsidian-github-copilot/tree/master/.github/assets/example.gif

Requirements

  • Node.js 22 or later

Installation

  1. Once installed, go to the plugin settings and enter the path to the Node +22 binary. You can find it by running which node in your terminal.
  2. Either
  3. A modal will appear asking you to sign in to Copilot. Follow the instructions to sign in.
  4. Or, you will receive a notice saying that Copilot is ready to use. (This will happen if you have already signed in to Copilot in the past in IDEs)

[!NOTE]
If you install the plugin by cloning it or downloading the release files from GitHub, you will need to name the plugin folder github-copilot for the plugin to work.

Usage

  1. Open a note in Obsidian.
  2. Write something in the editor.
  3. After a small pause, Copilot will suggest completions for your text.
  4. Press Tab to accept a suggestion or Esc to dismiss it.

Features

  • [x] Use GitHub Copilot in the Obsidian editor
  • [x] Configure the suggestion generation delay
  • [x] Configure your bindings to accept, dismiss, trigger or partially accept suggestions
  • [x] Configure if you want to see automatic suggestions or only trigger them manually
  • [x] Configure if you want to see suggestion only in code blocks or in the whole note
  • [x] Exclude folders and files from the suggestion generation

Known issues

  • If you installed Obsidian with Flatpak, you might need to use NVM to handle Node.js versions as the default binary path is not accessible in the Flatpak sandbox. See this issue for more information.
  • "Tab" completion can be buggy in some cases (e.g. in bullet points in LateX Math mode for example). It depends on plugin priority over the keybindings. See this issue for more information.

💬 GitHub Copilot Chat

https://github.com/user-attachments/assets/89089920-45de-47c3-80b1-f2d58d1ba55e

Installation

  • Once installed, you can find the GitHub Copilot Chat in the right sidebar of Obsidian.
  • It should ask you to sign in to GitHub Copilot. Follow the instructions to sign in.

Usage

  • Open the GitHub Copilot Chat in the right sidebar.
  • Choose a model to use (e.g. gpt-4 or claude 3.7).
  • Ask a question and like a note like you would do in the obsidian editor (e.g. Can you summarize this note [[my note]]?).

Features

  • [x] Use GitHub Copilot Chat in the Obsidian editor
  • [x] Choose the model to use between all models available in the GitHub Copilot Chat service
  • [x] Implement a chat history
  • [x] Link notes with [[double bracket syntax]] in the chat
  • [x] Configure a custom prompt as a system message in the settings
  • [x] Let the user choose the default behavior of the enter key (send message or add a new line)
  • [x] Mermaid diagram support - Render Mermaid diagrams in chat responses
  • [ ] Stream the response from the API
  • Waiting for requestUrl to implement Streaming : https://forum.obsidian.md/t/support-streaming-the-request-and-requesturl-response-body/87381

Mermaid Diagrams

The chat supports rendering Mermaid diagrams when GitHub Copilot responds with Mermaid code blocks. Simply ask Copilot to create a diagram and it will render visually in the chat.

Example usage:

You: Can you create a flowchart showing the software development lifecycle?

Copilot: Here's a flowchart of the software development lifecycle:

```mermaid
flowchart TD
    A[Requirements Analysis] --> B[Design]
    B --> C[Implementation]
    C --> D[Testing]
    D --> E[Deployment]
    E --> F[Maintenance]
    F --> A

Supported diagram types: - Flowcharts - Sequence diagrams - Class diagrams - State diagrams - Gantt charts - Pie charts - And more...

The diagrams automatically adapt to your Obsidian theme (light/dark mode) and are fully integrated into the chat interface.

Extension points exported contracts — how you extend this code

SettingsObserver (Interface)
(no doc) [8 implementers]
src/settings/CopilotPluginSettingTab.tsx
KeybindingInputProps (Interface)
(no doc)
src/components/KeybindingInput.tsx
SecureCredentials (Interface)
(no doc)
src/helpers/SecureCredentialManager.ts
Range (Interface)
(no doc)
src/extensions/InlineSuggestionState.ts
ModelOption (Interface)
(no doc)
src/copilot-chat/models.ts
CopilotPluginSettings (Interface)
(no doc)
src/settings/CopilotPluginSettingTab.tsx
AutocompleteInputProps (Interface)
(no doc)
src/components/AutocompleteInput.tsx
Position (Interface)
(no doc)
src/extensions/InlineSuggestionState.ts

Core symbols most depended-on inside this repo

concat
called by 86
src/utils/style.ts
log
called by 50
src/helpers/Logger.ts
error
called by 44
src/helpers/Logger.ts
getInstance
called by 38
src/copilot/Cacher.ts
getInstance
called by 24
src/helpers/Logger.ts
saveSettings
called by 22
src/settings/CopilotPluginSettingTab.tsx
cx
called by 21
src/utils/style.ts
canonicalizeModelValue
called by 10
src/copilot-chat/models.ts

Shape

Method 135
Function 99
Class 42
Interface 31

Languages

TypeScript100%

Modules by API surface

src/helpers/SecureCredentialManager.ts19 symbols
src/settings/CopilotPluginSettingTab.tsx17 symbols
src/copilot/Client.ts17 symbols
src/copilot-chat/models.ts16 symbols
src/extensions/InlineSuggestionState.ts15 symbols
src/copilot/CopilotAgent.ts13 symbols
src/helpers/File.ts12 symbols
src/extensions/InlineSuggestionPlugin.ts11 symbols
src/copilot-chat/views/ChatView.tsx10 symbols
src/copilot-chat/components/sections/Input.tsx10 symbols
src/helpers/Vault.ts9 symbols
src/copilot/Cacher.ts9 symbols

For agents

$ claude mcp add obsidian-github-copilot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact