This feature is in beta, and command names or results may change. Send feedback via Contact or the Forum.
Core concepts
Keep these four basics in mind before writing scripts or CLI commands for Kosshi.
1. Row IDs
Every row in Kosshi has a unique row ID (UUID). It stays the same when you edit text or notes, move the row, or restore it from Recently Deleted.
- Copying a row link gives
kosshi://row/E1AA181E-...; the part after/row/is the row ID. - Moving, duplicating, or deleting a row moves, duplicates, or deletes its descendants along with it.

- Prepare for a trip
- Book a hotel
- Check what to pack
- Prepare for a trip
- Row ID: C6E7C4B7-5E40-496A-BF0A-422F565CBE99
- Book a hotel
- Row ID: E1AA181E-5EE8-4364-B95E-9FA0F0B4AE98
- Check what to pack
- Row ID: 94776918-06BF-438B-82B9-6A70FADA88E7
2. Targeting rows
| Method | Example | When to use |
|---|---|---|
| Row ID | row id "E1AA181E-..." | Always targeting the same row (such as a project parent), even if renamed or moved |
| Hierarchy path | ensure path {"Daily", "2026-11-25"} | Navigating predictable paths such as daily notes or Inbox by name |
| Search query | find rows query "is:todo" | Finding matching rows such as open tasks or #tag items |
Avoid index references like row 1 because reordering shifts positions; keep a variable or row ID instead.
3. Row text properties
Row text can be read in three forms (example: **Trip planning** {{children.count}} with 3 children):
| Property | Example value | When to use |
|---|---|---|
content | **Trip planning** {{children.count}} | Editing and writing back (preserves syntax) |
plain text | Trip planning {{children.count}} | Reading text without formatting or link markup |
computed text | Trip planning 3 | Reading text with formulas evaluated |
- Writing
plain textback drops bold, links, formulas, and[[attachment:ID]]tokens, so always editcontent. - A leading
[ ]/[x]stays synced automatically with thecompletedproperty.
4. Mirror rows
A mirror row displays another row in place. Editing a mirror row's text, note, completion, or bookmark directly fails with an error, so resolve source row first and edit the original row instead:
tell application "Kosshi"
if is mirror of targetRow then
set targetRow to source row of targetRow
end if
set completed of targetRow to true
end tell
Next, try creating and editing a row in the AppleScript quick start.