Skip to content
dan-hartPublic

About

a feature-rich cli for Things 3 on macOS

Topics

Resources

Contributing

Security policy

Stars

29 stars

Watchers

2 watching

Forks

Repository files navigation

⚡ clings

Your Things 3 workflow. Your terminal.

Capture in natural language · Query your tasks · Build repeatable workflows

CI Release Swift macOS License

Get started · Command reference · Workflow cookbook · Scripting guide

“clings” rhymes with “things.”

clings brings Things 3 to the command line. Read your lists from the local SQLite database, capture tasks with natural language, and write through Things’ automation APIs. Compose the output with your own shell tools.

# Capture an idea before it disappears
clings add "Draft release notes tomorrow #docs // include migration steps"

# Build a working queue
clings focus --limit 5

# Find open work with a deadline
clings filter "tags CONTAINS 'docs' AND due IS NOT NULL" --json \
  | jq -r '.data.items[] | [.name, (.dueDate // "—")] | @tsv'

# Preview a batch before changing anything
clings bulk move --list inbox --where "tags CONTAINS 'docs'" \
  --to "Documentation" --dry-run

Why clings?

Capability What you can do
📝 Natural-language capture Parse dates, tags, project names, notes, and checklists; preview before creating
🔎 Structured queries Combine AND, OR, NOT, date comparisons, tag matches, and wildcards
🧩 Reusable workflows Save named filter views and task templates with relative date defaults
⚙️ Shell composition Use JSON and custom todo-line templates with jq, scripts, and reports
🎯 Focus and review Rank open work, audit projects, and generate weekly review reports
📦 Resumable batches Save exact-ID plans, confirm once, and retry unfinished items without repeating successes
↩️ Retryable undo Reverse supported single-todo and grouped status/tag changes; retain failed reversals

Get started

You need macOS 14 or later and Things 3 for Mac. Building from source requires a Swift 6 toolchain. Writes may require macOS Automation permission for the terminal you use.

Install with Homebrew

brew install dan-hart/tap/clings
clings --version
clings --help

Upgrade with brew update && brew upgrade clings. Homebrew installs the published release; examples on main describe the current source and may include changes awaiting release.

Build current source

git clone https://github.com/dan-hart/clings.git
cd clings
swift build -c release
.build/release/clings --help

# Optional: install somewhere on your PATH
mkdir -p "$HOME/.local/bin"
install .build/release/clings "$HOME/.local/bin/clings"

Your first five commands

clings                         # Today is the default
clings inbox                   # See captured tasks
clings add "Draft outline tomorrow #writing" --parse-only
clings search "outline"        # Find existing tasks
clings doctor --verbose        # Inspect local setup

Remove --parse-only when the parsed result looks right. For installation, permissions, and shell completion setup, see Getting started.

Powerful workflows

Capture with a start date and a deadline

clings add "Publish documentation" \
  --when tomorrow \
  --deadline friday \
  --project "Documentation" \
  --tags docs release \
  --notes "Include examples and migration notes" \
  --parse-only --json

The start date is when you plan to work; the deadline is when it is due. Explicit options override parsed values; tags are combined. Invalid or impossible dates are rejected before a write. Preview unfamiliar expressions with --parse-only; update supports this preview too.

Turn a query into a named view

clings views save docs-due "tags CONTAINS 'docs' AND due <= today" \
  --note "Documentation due by today"
clings views run docs-due
clings views run docs-due --format "{id} {name} [{project}] {due}"

Views evaluate relative dates when run and live in local clings configuration. Their default scope is open lists; use --list to narrow it or --include-logbook to include history. Search, filter, and view execution support stable --sort and positive --limit controls.

Reuse a checklist without freezing its dates

clings template save release-prep "Prepare release" \
  --when tomorrow --tags release docs \
  --checklist "Run tests" "Review changelog" "Verify installation"

clings add "Prepare next release" --template release-prep --parse-only --json
clings template run release-prep

Templates retain relative dates from both embedded phrases and --when/--deadline options. Explicit options win; expressions resolve when the template runs.

Export a report you can use elsewhere

# TSV for a spreadsheet or terminal report (requires jq)
clings today --json | jq -r '
  ["ID", "Task", "Project", "Deadline"],
  (.data.items[] | [.id, .name, (.project // ""), (.dueDate // "")]) | @tsv'

# Completed work only, excluding canceled Logbook entries
clings logbook --json \
  | jq -r '.data.items[] | select(.status == "completed") | .name'

# A compact text queue
clings focus --limit 5 --format "{name} [{project}] {tags}"

Save and execute an exact-ID batch

umask 077
clings bulk complete --list inbox --where "tags CONTAINS 'done'" \
  --dry-run --json > completion-plan.json

# Review the plan before explicitly authorizing its exact IDs
clings bulk complete --execute-plan completion-plan.json --yes --json

Bulk filters apply only to the selected list (default: Today). Without a filter, the entire list is selected. Every nonempty write prompts unless --yes is supplied. Plans reject stale snapshots and retain per-item results; retrying skips successes. Execution updates the plan file in place: never redirect stdout onto that same file. Status/tag batches support grouped undo; project moves do not.

Find the right command

Command Purpose
today Today's working list; alias t; default command
inbox Captured tasks; alias i
upcoming Future scheduled work; alias u
anytime Available unscheduled work
someday Someday/maybe tasks; alias s
logbook Completed history; alias l; query history scopes also include canceled tasks
search Title/notes search; aliases find, f
filter Structured queries over open lists
show Inspect one exact todo ID
add Natural-language capture, templates, parsing preview
update Edit title, notes, deadline, schedule, heading, tags
complete Complete by ID or unambiguous text; alias done
cancel Mark a todo canceled
delete Cancel via automation, not Trash movement; alias rm
views Local saved queries: list, save, run, delete
template Task blueprints: list, save, run, delete
projects List visible projects
project list, add, audit
areas List areas of responsibility
tags list, add, delete, rename
bulk Preview/execute complete, cancel, tag, move
focus Ranked working queue
pick Interactive show, complete, cancel, delete
undo Inspect/reverse supported recent mutations and groups
doctor Read-only capability checks and redacted support bundles
stats Dashboard, trends, heatmap
review Weekly report: start, status, clear
config set-auth-token for schedule/heading updates
completions Generate bash/zsh/fish completion scripts
open Currently disabled; returns an error
clings --help
clings add --help
clings bulk move --help
clings template save --help

Most output commands accept --json and --no-color. Todo renderers also accept --format with {id}, {name}, {status}, {due}, {project}, {area}, and {tags}. JSON takes precedence over custom formatting. Put options after the command.

Know the boundaries

  • Reads: SQLite access is read-only. clings does not write directly to the Things database.
  • Writes: Things’ AppleScript/JXA automation APIs perform writes. update --when and update --heading additionally use Things URLs and need an auth token; add --when does not.
  • Delete: Cancels a todo; it does not move it to Trash. Confirmation is required unless --force is supplied. Noninteractive deletion without explicit authorization fails. Use Things itself for permanent deletion.
  • Undo: Covers creation, status, name, notes, deadline, tags, and supported grouped status/tag changes. Failed reversals remain retryable. Schedule, heading, project moves, and project/tag management are not fully reversible; inspect clings undo --show first.
  • JSON: Schema 1 responses wrap payloads in .data, including previews and review reports. Failures include .error and preserve partial results. Exit 1 means invalid/refused input; exit 2 means runtime or partial failure. pick --json is rejected without writes. Help, version, and completion scripts remain text.
  • Priority: Natural-language priority markers are parsed, but are not applied as a native Things priority. Use tags such as urgent with focus.

Keep independent backups; synchronization is not a substitute for recoverable backups. Details are in the command reference and troubleshooting guide.

Documentation

Development and contributions

swift build
swift test
swift build -c release
bash scripts/release-docs-check.sh
bash scripts/asp-preflight.sh --staged --strict

See CONTRIBUTING.md, AGENTS.md, testing and coverage, and the release documentation checklist. Contributions that preserve Things terminology, scriptability, and safe automation are welcome.

License and support

GNU General Public License v3.0 — see LICENSE.

Buy Me a Coffee

clings is an independent open-source project, not affiliated with or endorsed by Cultured Code. Things 3 is a registered trademark of Cultured Code GmbH & Co. KG.

About

a feature-rich cli for Things 3 on macOS

Topics

Resources

Contributing

Security policy

Stars

29 stars

Watchers

2 watching

Forks

Releases

Contributors

Languages