zennotes-cli

zennotes-cli is a skill for Claude Code from ZenNotes/zennotes. It costs 107 tokens per session (1,644 once invoked), scanned A, original, MIT.

A command-line tool for ZenNotes, letting you work with a local folder or a self-hosted ZenNotes server from a terminal. It can search, read, create, edit, move, and organise notes and related records.

In plain words
What is it for?
Use it to inspect a vault, find and edit notes, manage tasks, tags, comments, and databases, and return results as JSON.
Why use it?
It avoids manual file editing for structural changes and can preserve links and stable record identifiers when notes are renamed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the zennotes plugin — 6 skills shipped together

Good fit Use it to inspect a vault, find and edit notes, manage tasks, tags, comments, and databases, and return results as JSON.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zennotes/zennotes/zennotes-cli
About the project

ZenNotes is a keyboard-first notes application that edits ordinary Markdown files stored on the user's computer, with desktop and self-hosted web versions. It is for people who want Vim-style editing along with notes, diagrams, tasks, search, and other workflows while keeping ownership of their files.

ZenNotes/zennotes · 2,615 stars · on GitHub · zennotes.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ZenNotes/zennotes --skill zennotes-cli
Clone the repo
git clone --depth 1 https://github.com/ZenNotes/zennotes

Made for: Claude Code.

Or install zennotes, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for zennotes-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/zennotes/zennotes/zennotes-cli/github.svg)](https://agentmods.dev/skills/zennotes/zennotes/zennotes-cli)
Your own site
<a href="https://agentmods.dev/skills/zennotes/zennotes/zennotes-cli"><img src="https://agentmods.dev/badge/skills/zennotes/zennotes/zennotes-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for zennotes-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/zennotes/zennotes/zennotes-cli"><img src="https://agentmods.dev/badge/skills/zennotes/zennotes/zennotes-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,644 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.01644
Opus 5.5 $0.00043 $0.00658
Sonnet 5.5 $0.00021 $0.00329
Haiku 4.5 $0.00011 $0.00164

Measured 3d ago against content hash 8ce6f760394b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

zennotes-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packaging/agent-skills/repo/plugins/zennotes/skills/zennotes-cli/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The zn command line

zn is ZenNotes in a terminal. It works on a plain folder and on a self-hosted ZenNotes server, and it does not need the desktop app to be running or even installed. Prefer it to editing files by hand for anything structural: it resolves the vault's folders, rewrites links on a rename, keeps ids stable and returns JSON.

If your session has the ZenNotes MCP tools (vault_info, read_note, list_tasks and the rest), use those instead of zn for the same job. They do the same things, and edits made through them can be reviewed by the user in the app.

Before the first command

zn --version          # is it installed?
zn status --json      # which vault is selected, and why
zn doctor --json      # configuration, access and server connectivity

When zn is missing, say so and offer to install it. Do not install without a yes.

  • macOS and Linux with Homebrew: brew install zennotes/tap/zn
  • Anywhere: the archive for the platform from https://github.com/ZenNotes/tui/releases/latest, checked against its checksums.txt
  • The ZenNotes desktop app installs it from Settings, CLI

When no vault is selected, ask the user which folder or server to use. zn setup is an interactive wizard: ask the user to run it themselves, since it cannot run unattended.

Choosing the vault

Be explicit, so a command never lands in the wrong vault:

Target Write
A folder zn --vault ~/Notes <command> or ZENNOTES_VAULT=~/Notes
A server zn --server https://notes.example.com <command>, with the token in ZENNOTES_REMOTE_TOKEN
The saved default Nothing. zn status says what it is
  • Never put a server token on the command line or in a file you write. Read it from the environment. To save a server for later, ask the user to run zn connect <url>, which asks for the token without showing it.
  • zn use, zn init, zn connect and zn vault add change the user's saved default. Do not run them unless the user asked to change it.
  • zn vault mode root or zn vault mode inbox moves every note to the other layout. Never pass an argument to it unless the user asked for exactly that.

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 135 lines · 107 tokens per session scan A 8ce6f760394b

Subscribe to this mod's changes

zennotes-cli is a skill published in the GitHub repository ZenNotes/zennotes (2,615 stars, last pushed today), licensed MIT. It adds 107 tokens to every session and 1,644 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

zennotes-cli compared with skills from other repositories

zennotes-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zennotes-cliZenNotes/zennotesSkill2.6ktodayMITA107Claude Code
自动化建议Changan-Su/ForsionSkill228todayApache-2.0A169Claude Code, Codex
markdown-documentsagent0ai/agent-zeroSkill20ktodaynoneA22Claude Code
kimun-clinico2sh/kimunSkill69todayMITA42Claude Code, Codex
mnemosyne-reviewMnemosyne-OS/Mnemosyne-Neural-OSSkill28yesterdayMITA120Claude Code, Codex
yaps-dictationrichawo/yaps-codex-pluginSkill223d agoMITA103Claude Code, Codex
weeklyjzhao234/big-brainSkill1todayMITA73Claude Code, Codex