Get your command
- Open Cleft > Settings > Agent Access.
- Turn on Let AI tools read your notes and choose a source.
- Select Use it from the command line.
- Select Copy command.
--help. Run it in Terminal once to see what the helper can do. The
helper lists notes list, notes search, notes show, notes export, and
tags list.
The line looks like this, with your own folder and helper filled in:
--help with a command from that list to read your notes. For
example, notes search "budget" finds every note that mentions the budget.
The copied line contains paths from your Mac. Use the instructions file in your
home folder if others can see or commit the project file.
What the command line can read
The command line only reads. It cannot create, edit, delete, archive, or share a note. It reads the source you chose in Agent Access: your Local Export folder on this Mac, or your Cleft account library with Plus. It sees your own notes and tag names and skips Cleft’s system notes. Your account key never appears in the command. Cleft keeps it in your Mac’s Keychain.Claude Code
Add one line toCLAUDE.md in the folder you work in: “To read my Cleft
notes, run” followed by the command you copied. Claude Code reads that file at
the start of every session. Put the line in ~/.claude/CLAUDE.md instead to
make it apply to every folder. If your project already uses AGENTS.md, you
can put the line there instead. By default, Claude Code reads it only when no CLAUDE.md
or CLAUDE.local.md applies to your folder. If either Claude file applies, put
the line in that file.
Codex
Add the same line toAGENTS.md in the folder you work in. Codex reads it
before every task. Put the line in ~/.codex/AGENTS.md to make it apply to
every folder.
Gemini CLI
Add the same line toGEMINI.md in the folder you work in. Gemini CLI sends
that file with every prompt. Put the line in ~/.gemini/GEMINI.md to make it
apply to every folder.
OpenCode
Add the same line toAGENTS.md in the folder you work in. OpenCode uses the
first file it finds. Put the line in ~/.config/opencode/AGENTS.md to make it
apply to every folder.
Another agent with a shell tool
Give the copied line to your agent and ask it to run the line ending in--help first. Then ask it to replace --help with a note command, such as
notes search "budget".
If your agent has an instructions file, use its own guide to find that file.
Put the line there if you want the agent to remember it. Otherwise, give it
the line when you need it.
A shell script
Paste the command into your script and replace--help with the command you
want. Add --json to get output your script can parse.
