KosshiKosshi
AutomationBeta
Contents

This feature is in beta, and command names or results may change. Send feedback via Contact or the Forum.

Automation

On macOS, Kosshi can be controlled from outside the app with AppleScript and the bundled CLI (kosshi). Automation works even when Kosshi's windows are closed, with the same local saves and iCloud sync as editing on screen.

For example, you can:

  • Trigger daily notes or copy open tasks in one step from Spotlight, Shortcuts, Alfred, or Raycast
  • Archive completed tasks or save full backups (including images and attachments) on a schedule
  • Append work notes, pipe command output, or export Markdown files from the terminal and shell scripts
  • Read, write, and organize your outline from AI agents

See AppleScript use cases and CLI use cases for ready-to-run examples.

AppleScript and CLI

Both interfaces talk to the same underlying API.

  • AppleScript: Full API access, including row operations, windows, attachments, full backups, and integration with other Mac apps.
  • CLI (kosshi): One-line terminal commands for common row operations, returning JSON and standard exit codes for shell scripts and AI agents.

If this is your first script, read Core concepts for row IDs and text rules.

In-app JavaScript extensions are also under consideration, though they are not supported yet.