Turn a note into a Claude Code session. Write instructions in the note and get the answers, tool approvals, and results back in it.
Turn an Obsidian note into a Claude Code session. You write an instruction in the note, press a key, and Claude Code's answer, its tool approvals and the files it touched come back into the same note. The note keeps the whole conversation, so you can read it later, link to it, and pick the session up again.
Status: development version (0.5.x), available in the Community plugins directory. It has been tested on macOS. Windows is not yet tested.
Not affiliated with Anthropic. This is an independent plugin. "Claude" and "Claude Code" are trademarks of Anthropic. The plugin starts the Claude Code program that you install yourself; it does not include or redistribute any Anthropic software.
A session note holds a sequence of input blocks and output blocks:
```ncli
List every prime between 1 and 100.
[[Notes on primes]]
```
> [!ncli-out] Turn 1 · 2026-11-28 12:00
> 2, 3, 5, 7, 11, …
ncli code block and press Cmd+Enter (macOS) or Ctrl+Enter (Windows and Linux).ncli-out callout, and a new empty input block is added for the next instruction. The next turn continues the same Claude Code conversation.[[Note]] tells Claude Code where the note is and lets it read that one file during the run. ![[Note]] puts the note's text directly into the prompt; ![[Note#Heading]] and ![[Note#^block]] send just that part. Links in the input block can be clicked, previewed and completed like normal links.! runs a shell command in the working folder. Its output is sent with the instruction, or kept for the next instruction if the block has only ! lines./ is sent to Claude Code as a command, with completion for built-in and custom commands.:cwd path changes the working folder, :fork [turn] branches the session into a new note, :undo reverts the file changes of the previous turn, :summary writes a summary into the note's properties, and :full [[Session note]] embeds another session in full./cc at the start of a line in any note, opens a prompt bar. From a normal note it starts a new session note that links back to it (and includes the selection, if any).claude through your login shell's PATH, or you can set its path in the settings). Version 2.1.282 or later.You can also select Add to Obsidian on the plugin's Community page.
main.js, manifest.json and styles.css from the latest release on this repository's Releases page.<your vault>/.obsidian/plugins/note-cli/./cc at the start of a line in any note.| Command | What it does |
|---|---|
| New session note | Creates a session note with an empty input block |
| Ask Claude | Opens the prompt bar |
| Go to the input block | Moves the cursor to the session note's input block |
| Run the current input block | Same as Cmd/Ctrl+Enter |
| Stop the run | Stops the running turn |
| Save output block as a new note | Copies an answer into its own note |
No default hotkeys are assigned.
Claude Code's path and model, the line-start trigger, the folder for new session notes, the default working folder, thinking effort, a spending limit per run, an approval timeout, an optional API key from Obsidian's secret storage, whether to load your Claude Code settings and MCP servers, automatic summaries, blocked folders, tags and patterns, shell options, cost display, and the lists of remembered "always allow" rules and trusted working folders.
The plugin itself makes no network requests and has no telemetry. It starts the Claude Code program, which sends your instructions, the notes and command output you include, and the files Claude Code reads with its tools to Anthropic (or to the provider you configured in Claude Code), and which may use the internet through its own tools such as web search and web fetch. See Anthropic's terms and privacy policy for how that data is handled.
:cwd or the default-working-folder setting it can be any folder you choose, and Claude Code can read and, with your approval, change files there. The first time you use a folder, the plugin asks you to confirm that you trust it, because Claude Code will apply that folder's own settings, hooks and MCP servers.claude, runs your login shell once to read your PATH, and runs the shell commands you write on ! lines.~/.claude/projects/, or CLAUDE_CONFIG_DIR). It never reads Claude Code's credential files and blocks Claude Code's tools from reading them.Settings are saved in the plugin's data.json. Trusted folders, "always allow" rules, the list of available commands and per-session cost totals are saved in this device's local storage and are not synced.
Bug reports and suggestions are welcome. See CONTRIBUTING.md.
MIT © 2026 Matthew. main.js contains only this project's own code and bundles no third-party library; see NOTICE.