Keep phone notes as plain text in your own GitHub, and let your own Claude Code search them
Short answer
- Make a private GitHub repository for your notes and keep them as plain text files, such as
notes.md. - On your phone, open the file in a browser editor that works with your GitHub repository. Each save becomes a Git commit, so the history stays on GitHub.
- Keep one long file if you like. An editor that draws only the lines on the screen stays quick to type in as the file grows.
- On your PC, clone the repository and start Claude Code in that folder. Ask it to find things in your notes. It reads the files and needs no extra setup.
The problem
This is how one person put it:
“I jot down ideas on my phone, and my notes keep getting longer. I wanted plain text in my own GitHub that stays fast at any length, opens on any device, and lets my own Claude Code search it for me.”
Plain text in your own repository means the notes are yours. Any text editor can open them, Git keeps every version you save, and tools on your PC can read them.
Set up the notes repository
- On github.com, create a new repository. Choose Private so only you can read it.
- Check Add a README file so the repository is not empty.
- Add a file for your notes, for example
notes.md. One file is fine. Add more files or folders later if you want them.
Write from your phone
- Open the notes file in a browser editor on your phone. Write a few lines at the top or bottom, then save.
- Each save is a commit in your repository. You can see every change, and when it was made, in the commit history on GitHub.
- The same file opens on your PC and your tablet. There is nothing to sync by hand.
Keep one long file
A notes file that you add to every day gets long. You can keep it as one file. An editor that draws only the lines on the screen stays quick to scroll and type in as the file grows.
Let your own Claude Code search your notes
On your PC, get a copy of the repository once, then start Claude Code in that folder. Replace YOUR_NAME/notes with your own repository (the Code button on GitHub shows the URL):
git clone https://github.com/YOUR_NAME/notes.git
cd notes
claude
Then ask in plain words, for example:
Find my notes about the trip in March and list the open to-dos.
Claude Code reads the files in the folder, so you don't need a search index or an API key. Before you ask, run git pull so the copy on your PC has what you wrote on your phone.
Doing this with PlainHub
PlainHub is a browser editor for files in your own GitHub repositories, and it works on phone browsers:
- Open app.plainhub.dev on your phone, tap Sign in, and approve it on GitHub's page. Choose your notes repository and open
notes.md. If the repository is not in the list, choose + Add / Remove Repositories and add it on GitHub. - When you stop typing for a moment, it saves on its own. The status at the top changes to Saved to GitHub ✓, and each save is a commit. Tap Save to send it right away.
- The editor is built on CodeMirror and stays smooth in files with tens of thousands of lines.
You can also ask the Claude Code on your PC from your phone. It uses your Claude subscription, so no API key is needed. Your phone can't reach your PC directly, so the two pass questions and answers through a second private repository (the mailbox). These are the main steps. The Your agent guide has all of them, with the safety notes:
- On GitHub, make a new private repository just for this, such as
YOUR_NAME/notes-mailbox, with a README in it. Don't use your notes repository. - On your PC, run
npm i -g plainhubonce, thenplainhub authto give the agent a GitHub token for the mailbox repository. - In your notes folder, run
plainhub agent --mailbox YOUR_NAME/notes-mailboxand leave the terminal open. - On your phone, open Settings → AI → Connect your own agent → From your phone, enter
YOUR_NAME/notes-mailbox, and tap Connect. - Claude Code reads the folder on your PC, so run
git pullthere first to include what you just wrote on your phone.
FAQ
Do my notes have to be Markdown?
No. Any text file works. Markdown (.md) is a good choice because GitHub shows it formatted.
Can other people see my notes?
Not if the repository is private. Only you, people you add as collaborators, and apps you allow on GitHub (such as PlainHub) can read it. When Claude Code answers, the parts of your notes that it reads are sent to Anthropic.
Does Claude Code see edits I just made on my phone?
Only after you run git pull on your PC. Claude Code reads the files in the folder on your PC.
Sources
- https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository
- https://code.claude.com/docs/en/overview
- https://codemirror.net/docs/guide/
Checked: 2026-10-30