Skip to content

4.11.0

Latest

Choose a tag to compare

@alagrede alagrede released this 29 Nov 11:43

Znote 4.11.0 — Deep integration for AI agents

Znote now works with your AI agents, not just next to them. Connect your tools in a few clicks, use them while talking to a note, and turn what an agent figured out into a parameterized note you can replay at any time, without AI. Secrets and approvals run through all of it, so agents can work on your notes without ever seeing a password.


🤖 AI agents, in and with Znote

Connect tools in a few clicks

  • MCP recipes (Settings › MCP): search the catalog, see the exact command, fill in only the values it needs. Znote checks prerequisites (npx, uvx, docker) and tests the server right away. Tokens are encrypted, never written in clear.
  • Import from Claude Code: reuse the MCP servers already declared in ~/.claude.json, your vault's .mcp.json or your Claude Code plugins. Their tokens move to encrypted storage.
  • + mcp.json on an MCP code block adds the server to the vault, its secrets included, through the same encrypted path.

Your existing scripts become tools

  • Settings › Scripts: register your CLIs and scripts (or the ones shipped by your Claude skills), test them, approve them.
  • Command auto-discovery: Znote proposes one tool per subcommand from the script's usage header, without ever running it. You can also let the AI draft the entries from the source. It only does so after a local check that no line looks like a credential, and the result is validated before anything is declared.

Tools in your conversations with a note

  • Ask AI can now call tools: MCP servers, scripts and apps, from the new Tools menu. Turn each server on or off; the choice is saved per vault. A tools: list in a note's frontmatter takes precedence.
  • Any tool call that writes asks for your confirmation first.
  • Response length now defaults to Auto: no limit is sent, and a reply cut off by the provider is continued automatically.

App notes: freeze a workflow, replay it without AI

  • An app note is a markdown note with parameters, presets and executable blocks: sql, mcp, http, script, js, bash. Blocks can feed each other and loop over results.
  • App panel: fill in the parameters, pick a preset, run or stop the app, all from the top of the note. Each block also gets its own ▶ (or Cmd/Ctrl+Enter). A new Apps view searches every app in the vault.
  • /app in Ask AI (or Save as app) turns the session's successful tool calls into a validated app note, with a short readable name. On an app note, /app edits it instead, and the Ask AI field opens on /app there.
  • CI for app notes: add a ci: section (schedule, preset, assertions) and run znote-cli ci. You get JUnit reports, a GitHub step summary, and a generated GitHub Actions workflow.

znote-runtime: a CLI, an MCP server and a Claude Code plugin

  • znote-cli (npx -y znote-runtime) runs app notes from a terminal, without Znote: validate, describe, search, run, trust, ci.
  • znote-cli mcp gives agents an MCP server. They can find and run existing apps, call approved scripts, and turn what they just explored into a draft app note. Agents create executable notes; humans approve them.
  • A Claude Code plugin ships with a znote-apps skill: search for an existing app → reuse it → otherwise explore, then save it as an app.
  • Pure Node, no Electron required. The format is documented in FORMAT.md.

🔐 Security by design

Every part of this release was designed so that agents can work on your notes without ever leaking a password or sensitive data.

  • Secrets everywhere: MCP configs reference ${secret:…} / ${local:…} values, stored encrypted with sops (shared with the team, or local to your machine). Recipes, imports and code blocks never write a token in clear.
  • Masked output: secret values are masked in tool results and errors. Servers started with a secret stop when you lock the vault. Secret values are passed to sops through stdin, never visible in the process list.
  • Human approval for anything that runs: blocks, MCP servers and scripts must be approved by a person before they run. An approval is tied to a fingerprint of the exact content, stored outside the vault, and expires as soon as that content changes. A new review dialog shows exactly what you approve, including which secrets are set or missing.
  • Agents can propose, never approve: an agent can declare a script, but approval only happens in Znote or in an interactive terminal (znote-cli trust).

✨ UX

New: standalone mode

Open a .md file from Finder / Explorer and it opens in its own window, without opening or linking a workspace. No .znote/ folder is created next to the file, and nothing is added to your vault list.

  • Just the editor and Ask AI. The note opens in read mode; switch to editing with Cmd/Ctrl+E.
  • An outline beside the editor; toggles for running code and read/write; a menu for lock, secrets, share, full width and source mode.
  • Open a workspace or the settings from the bottom-left corner at any time.

New: open Znote from the terminal

  • Settings › General › Shell command installs a znote command in your PATH, on macOS, Windows and Linux:
    znote notes.md   # standalone window
    znote ~/vault    # open the folder as a workspace
    znote .          # the current folder

Improvements

  • /edit without a selection rewrites the whole note. The frontmatter is left untouched, and a single undo reverts it.
  • Cmd/Ctrl+E toggles read / write mode everywhere.

Fixes

  • The outline now fills the side panel after switching from the note list.
  • Clicking into the editor no longer flashes the raw frontmatter.
  • The app panel follows the note when you switch notes.
  • The organization sign-in is now fully in English.

⚠️ Changes to know

  • Emoji picker: moved from Cmd/Ctrl+E to Cmd/Ctrl+Shift+E. Cmd/Ctrl+E is now the read / write toggle.
  • Runtime CLI renamed: the command is now znote-cli. znote alone launches the Znote app.