Skip to content
FeaturesPricingBlogDownload

← All posts

How to use a notes folder with Claude Code

To use Claude Code with notes, start it in your notes folder, add a short CLAUDE.md with your conventions, keep Git underneath and limit what it can touch.

Diagram card on a light background showing Claude Code started in a notes folder, reading one note and writing a summary

Claude Code works on any folder, not only on code, so a folder of Markdown notes is a good fit: start claude in the notes folder and it can search, read and summarize your notes, and, when you approve, edit them. Claude Code notes work comes down to four things: a short CLAUDE.md that explains how the folder is organized, Git underneath so every change can be reviewed and undone, deny rules for anything private, and small, specific requests.

Below are the setup steps, the permission settings that matter for notes, tasks that work well, and the limits.

What do you need to use Claude Code with notes?

Three things: Claude Code itself, an account that includes it, and a folder of plain-text notes.

  • Install. Claude Code's setup page (checked November 2026) gives a one-line installer, curl -fsSL https://claude.ai/install.sh | bash on macOS, Linux and WSL, and irm https://claude.ai/install.ps1 | iex in Windows PowerShell. Homebrew and WinGet packages exist too, and there is a desktop app if you prefer not to use a terminal.
  • Account. It "requires a Pro, Max, Ultra, Team, Enterprise, or Console account"; the free claude.ai plan does not include it. It also needs an internet connection, because the model runs in the cloud, not on your computer.
  • Notes as files. Markdown or text files in an ordinary folder. An Obsidian vault works as it is. Notes locked inside an app's database do not, until you export them.

Then open a terminal in the folder and start a session:

cd ~/Notes
claude

How does Claude Code find things in your notes?

It searches the folder directly, the way you would from a terminal. Anthropic's write-up on how Claude Code works in large codebases (May 2026) says it "traverses the file system, reads files, uses grep to find exactly what it needs", and that there is "no embedding pipeline or centralized index to maintain."

For notes that has two consequences. Nothing has to be imported or indexed first, and an edit you made a minute ago is already visible. But search is by words and file names, so clear titles, consistent terms and descriptive file names make a real difference. A note called untitled-3.md that says "the thing we discussed" is hard for anyone to find, including an agent.

What should a CLAUDE.md for a notes folder say?

How the folder is organized and how you want notes written. Claude Code reads a CLAUDE.md in the folder at the start of every session, so this is where conventions go once instead of being repeated in each request.

# Notes folder

Personal and work notes in Markdown. Folders:
- `daily/` one file per day, named YYYY-MM-DD.md
- `projects/<name>/` notes for one project, with an index.md
- `reference/` settled facts and how-tos
- `archive/` finished projects; read, but do not edit

## Writing rules
- Dates as YYYY-MM-DD. No relative dates.
- Keep my wording. Fix typos only when asked.
- New notes get front matter: title, created, tags.
- Link with relative Markdown links, e.g. [Plan](../projects/launch/plan.md).

## Before editing
- Say which files you will change and wait for a yes.
- Never delete a note. Move it to `archive/` instead.

Keep it short. The documentation recommends under 200 lines per file and concrete rules that can be checked. CLAUDE.md explained covers loading order, imports and what belongs elsewhere.

How do you control what Claude Code can read and change?

Three settings do most of the work. Claude Code's permissions documentation describes them.

Need How What happens
Let it read the folder Start claude in the folder Reads and searches inside the working directory need no approval
Approve every edit The default permission mode (labeled Manual) Claude asks before it edits or writes a file
Look only, change nothing Plan mode Claude reads and explores but does not edit files
Keep a folder private A Read deny rule in .claude/settings.json Claude's file tools refuse those paths
Add another folder /add-dir <path> in a session, or --add-dir at launch That folder becomes readable too

A deny rule for a private folder and for anything that looks like a secret:

{
  "permissions": {
    "deny": [
      "Read(./private/**)",
      "Read(./.env)"
    ]
  }
}

The documentation describes these rules as covering Claude's file tools, and says Claude only attempts, without a guarantee, to apply them to search tools such as Grep and Glob. For notes you would not want sent to a model at all, the safer boundary is a folder outside the one you start Claude Code in.

Why should the notes folder be in Git first?

Because an edit by an agent is still an edit to your only copy. With Git, every change is a diff you can read before keeping it, and a bad one is a single command to undo.

cd ~/Notes
git init
git add -A
git commit -m "Before Claude Code"

After a session, git diff shows exactly which lines changed, and git restore . throws away every change to a file that was in the last commit (new files the agent created stay until you delete them). Git for notes has the commands for history, word-level diffs and restoring deleted notes.

Which notes tasks work well?

Tasks with a clear scope and a result you can check. A few that suit a notes folder:

  • Find and summarize. "Which notes mention the Lisbon office? List the files and one line from each."
  • Weekly review. "Read daily/2026-11-17.md to daily/2026-11-23.md and draft a summary in reviews/2026-W47.md."
  • Fix links after a rename. "I renamed ideas.md to product-ideas.md. Update every link to it."
  • Add missing front matter. "Add title and created front matter to notes in projects/launch/ that have none. Take created from the date in the file name."
  • Find duplicates. "List notes in reference/ that cover the same topic. Do not merge them; just list pairs."

"Clean up my notes" is not on the list. A broad request produces a broad diff, and a broad diff is one you will not read.

What are the limits?

  • Your notes are sent to the model. Everything Claude Code reads becomes part of a request to Anthropic. Keep sensitive material out of reach, not just out of the conversation.
  • Sync folders and agents can collide. If the folder is also synced by iCloud Drive, Dropbox or OneDrive, a sync and an agent writing at the same moment can leave conflicted copies. AI agents that read and write your files covers that and other review habits.
  • It needs a connection. There is no offline mode.
  • Writing voice drifts. An agent can rewrite a note into something correct that no longer sounds like you. "Keep my wording" in CLAUDE.md helps; reading the diff helps more.

Using a Claude Code notes folder in Noteline

Noteline, which we make, opens the same folder (File > Open Folder…, Cmd+O on a Mac, Ctrl+O on Windows and Linux) so you can read and edit the notes while Claude Code works on them. The desktop app watches the folder: new and changed files appear in the sidebar, and if a note you have open was changed on disk, a bar offers Use disk version or Keep my version, so your next save does not overwrite what the agent wrote. Hidden folders such as .git and .claude are skipped in the sidebar. Noteline has no AI features and does not run Claude Code; it edits the files both of you share.

Start with one note. Keep the file.

Open a folder and write. Every note is a plain .md file, with no account to create.

Try desktop free for 14 days ↓Free on iPhone, iPad and Android →

Desktop: 14-day trial, then $9.99 once. Mobile apps: free. No account.

Keep reading

  • Local Markdown files
  • How to keep AI meeting notes as Markdown files you own
  • AI memory files: what your assistant should remember, kept in Markdown
  • An AI research workflow in Markdown: sources, summaries and claims

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io