Things URL Scheme
Write to Things 3 through the things:/// URL scheme. A write is done when the script prints its confirmation or link, or, on a silent run, when a things:jxa query shows the change.
Arguments
$0 is the command (add, add-project, update, update-project, show, search, json). The rest are its key=value params. Pass both straight to url.ts. With no command, infer the operation from the request. capture routes to inbox.ts instead (see Inbox Capture).
Usage
!sh "${CLAUDE_PLUGIN_ROOT}/scripts/bin-path-check.sh" things-url things-inbox things-reorder
url.ts handles the auth token (1password.md) and URL encoding. Multiple id= params batch into one JSON command, which keeps 3+ items under the rate limit of 250 operations per 10 seconds.
things-url --link-base "${user_config.link_base}" <command> [key=value ...]
things-url --link-base "${user_config.link_base}" update id=X id=Y id=Z when=tomorrow
For raw access, open -g "things:///add?title=Buy%20milk&when=today". Use -g for data commands so Things stays in the background, and omit it for show/search.
Parameters, the JSON payload schema, built-in list IDs, and limits: url-scheme.md.
Tags
url.ts resolves tags and add-tags against the stored tags, case-insensitively, and fails naming any unknown tag, since Things silently drops tags it does not hold. Pass --create-tags to create the missing ones:
things-url --link-base "${user_config.link_base}" add title="Fix login" tags=bug --create-tags
An empty tags= clears a todo's tags. Tags inside a raw json data=... payload go through unchecked.
Reorder Items
things-reorder [--list today|anytime|someday] <id1> <id2> <id3> ...
Items land at the top of the list in the given order. --list defaults to today. Pass the list matching the items' current scheduling state.
reorder.ts reschedules each item out of the list and back, so an item with a specific date has that date replaced by the list. Order within a project is unaffected.
Inbox Capture
Use inbox.ts for quick captures and for delegating a task mid-session. It tags each todo Claude and appends session attribution.
things-inbox --link-base "${user_config.link_base}" --session-id ${CLAUDE_SESSION_ID} title="Buy milk"
title captures one todo, titles (newline-separated) several. Other params: --tag (repeatable), notes (max 10,000 chars), tags (comma-separated), checklist-items (newline-separated, max 100).
Output
With the x-callback-url plugin installed, the scripts read Things' response through xcall:
add,update, andinbox.ts: a link to the todo. Present it.json:x-things-ids=["id1","id2"]. Present a bulleted list of each todo's title linked as${user_config.link_base}<id>.
--callback=false switches url.ts to fire-and-forget open -g. Without xcall it falls back to that silently.
On the fallback path url.ts exits 0 with empty stdout after a successful write. Judge failure by a non-zero exit and stderr. Confirm a silent write with things:jxa before retrying, since a repeated add creates duplicates. inbox.ts (captured: <title>) and reorder.ts always print on success, so silence from them is a failure.
When stderr mentions procNotFound, -10810, or LSOpenURLsWithRole, the sandbox blocked the handoff to Things. things-url, things-inbox, and things-reorder escape it only through their sandbox.excludedCommands entries, so invoke them with nothing ahead of or chained after the command.
Things Behavior
listtakes project names only. File a todo under an area withlist-idand the area UUID (fromthings:jxa).when=anytimemoves a todo out of the inbox without assigning an area.whenanddeadlinecannot be updated on repeating todos.- Notes support Markdown plus
::highlight::.