# Claude Code in your Obsidian vault

[Obsidian](https://obsidian.md) is a free notes app that keeps your notes as plain files in a folder
on your computer, which it calls a vault. If you like to write there: Claude Code works on your
courses in a vault, knowing what your learners struggled with, and every change comes back to
Chalkenso as a draft you review. It runs on your own Claude plan, on every Chalkenso plan.

## How it works

1. **Pull.** Claude brings a course into your vault: one note per lesson, and next to each lesson a
   note on what learners struggled with (sections they stopped at, wrong check answers, open
   feedback, the improvements waiting).
2. **Work.** Plan and edit with Claude in Obsidian, with your own concept notes, prerequisites and
   canvases, and the course checks (`curriculum-check`, `curriculum-audit`).
3. **Send.** When Claude finishes a lesson, it sends it to Chalkenso as a revision. If Claude is about
   to stop with finished lessons not sent, the kit reminds it first.
4. **Review.** The draft waits in the lesson's Improve mode in Chalkenso: tick the changes to keep,
   save, publish. Nothing reaches learners before that.

## Set it up once

1. **An Obsidian vault.** Any vault; open it in Obsidian once.
2. **Connect Claude Code to Chalkenso:**

   ```
   claude mcp add --transport http chalkenso https://chalkenso.com/mcp
   ```

   then run `/mcp` in Claude Code and sign in (see [Use Chalkenso with Claude](/docs/claude)).
3. **Install the kit.** Download [the Obsidian kit](https://github.com/bostjan-cigan/chalkenso-obsidian/releases/latest/download/chalkenso-obsidian-kit.zip), unzip it, and run:

   ```
   python3 chalkenso-obsidian-kit/claude-connector/install.py "<path to your vault>"
   ```

   It adds Claude Code skills, scripts and settings to the vault (`.claude/`), an `AGENTS.md` that
   tells Claude how the vault works, and `Curriculum Knowledge/` for concepts and canvases. It doesn't
   touch your notes.
4. **Open Claude Code in the vault** and trust the folder when it asks. That turns on the kit's
   reminder: when Claude stops, it runs `.claude/scripts/lessons.py stop`, which only checks which
   lessons changed and weren't sent.

## Working with it

Ask in your own words:

- "Pull Web Development II." (`pull-course`)
- "Plan the open feedback on lesson 3." (`plan-feedback`: the plan goes to the improvement's plan box)
- "Apply the plan for lesson 3." (`apply-plan`: edits the lesson, then sends it)
- "Send my changes." (`send-revisions`)
- "Check the course for gaps." (`curriculum-check`)

Claude ends with a review link for each draft. A page you have open in Chalkenso shows Claude at work
and the draft arriving.

## What goes through, and what doesn't

| | |
|---|---|
| Lesson text | Pulled into the vault; sent back as a revision to review |
| Lesson properties (objectives, concepts, prerequisites, duration) | Stay in the vault, never sent |
| What learners struggled with | Pulled with the course, as notes next to the lessons |
| Plans | Sent to the improvement's plan box, to review |
| Finishing an improvement | In Chalkenso, when you save its reviewed revision |
| New lessons, renaming, reordering, images | In Chalkenso (a diagram can go with a revision) |

**Edited in Chalkenso after you pulled?** Send anyway: Claude sends the text it started from too, so
the review puts its changes on top of the newer text and marks anything that clashes. Pull again for
the next round.

## Rather sync files straight in?

[The Chalkenso plugin for Obsidian](/docs/obsidian-plugin) syncs lessons both ways with a sync token
(Settings → Tokens): changes go in as you upload them, without a review. It suits fixing your own
lessons locally. Use one or the other in a vault, not both.
