Skip to content

docs: add an animated demo to the README - #184

Merged
ryanlewis merged 1 commit into
mainfrom
docs/demo-gif
Sep 5, 2026
Merged

ryanlewis merged 1 commit into
mainfrom
docs/demo-gif

Conversation

@ryanlewis

Copy link
Copy Markdown
Owner

Closes #50.

A ~30s GIF under the README lede (and on the site index) showing the everyday flow: things, add, edit, show, complete, search, and deadlines -j | jq.

demo

How it avoids my real todos

I gave up on the record-then-redact plan from the issue: lipgloss bakes column padding into the bytes, so swapping titles shifts every trailing column, and the today view would still be my real day. Instead the recording runs the real binary against a seeded throwaway SQLite database, so there is nothing to redact.

Writes are the one part that can't be pointed at a fake database: they go out through open things:///... and osascript. scripts/demo/bin puts shims under those two names ahead of the real ones on PATH; they parse the URL / AppleScript and apply it to the demo database. That means add, edit and complete are the real code paths (including the auth-token check on edit and the read-back that confirms complete landed), not hand-written SQL faking the effect.

Answers to the open questions in #50

  • GIF vs player vs SVG: GIF. GitHub markdown allows <img> but not <script>/<iframe>, so the asciinema player can't run inline. VHS gives window chrome, a theme and deterministic pacing; the result is 268 KB.
  • Re-recording: make demo (needs vhs, jq, python3). scripts/demo/README.md covers the moving parts. The tape is a template because --deadline wants a literal YYYY-MM-DD; record.sh fills in a date a few days out.
  • Scripted redaction: not needed, there is no personal data in the flow.

Files

  • scripts/demo/thingsdemo.py: seed + the open/osascript handlers
  • scripts/demo/env.sh: throwaway HOME, config pointing db at the demo DB, shims on PATH
  • scripts/demo/demo.tape.in, scripts/demo/record.sh, Makefile demo target
  • docs/assets/img/demo.gif, README + docs/index.md embeds

The old docs/demo-readme branch/worktree from the first attempt is left alone; it can be deleted once this lands.

Record a VHS demo of the everyday flow (today list, add, edit, show,
complete, search, JSON piped to jq) and embed it under the lede in the
README and on the site index.

The recording runs the real binary against a seeded throwaway SQLite
database, so no personal data is ever on screen and nothing needs
redacting afterwards. Writes are the one part that cannot be pointed at
a fake database: they go out through `open things:///...` and
`osascript`, so scripts/demo/bin puts shims under those names on PATH
that apply the URL or AppleScript to the demo database. The CLI's own
read-back verification then runs unchanged.

`make demo` re-records; scripts/demo/README.md explains the moving parts.

Closes #50
@ryanlewis
ryanlewis merged commit f0cc3bb into main Sep 5, 2026
7 checks passed
@ryanlewis
ryanlewis deleted the docs/demo-gif branch September 5, 2026 14:37
ryanlewis added a commit that referenced this pull request Sep 5, 2026
…185)

Follows #184. Adds the agents page we discussed and trims the README in
favour of the site.

## Site

New tab **Working with agents** at `/agents/` (Commands → Agents →
Configuration → About). It covers:

- the bundled skill: install for `claude` / `codex` / `pi`, `--path`,
`skill show` for other agents
- `things show <ref> --agent` briefs, with a real example and why each
part is shaped the way it is (UUIDs only, quarantined notes, project
briefs carry `--yes`, repeating items omit `complete`/`cancel`)
- a short Claude Code section: `claude -p ... --allowedTools
"Bash(things:*)"`
- the `--json` contract: never prompts, JSON failures with stable
tokens, status enum, a few jq recipes
- what can and cannot go wrong: read-only DB, read-back on status
changes, tags, repeating items, projects, and config-file defaults

The Commands tab's "Handing a to-do to an agent" and "Agent skill"
sections shrink to pointers. The index page links the new tab.

![agent
demo](https://raw.githubusercontent.com/ryanlewis/things-cli/docs/agents-page/docs/assets/img/demo-agent.gif)

## README

The two agent sections and the lede paragraph are replaced by a short
"Working with agents" blurb plus a line saying the full documentation
lives at things.rlew.io. Net 129 lines removed. This is the first step
towards the site being the reference; the rest of the README's long-form
command docs are still there and can move in a follow-up.

## The agent GIF

The Claude turn is real: `things show "release candidate" --agent |
claude -p "mark it done" --allowedTools "Bash(things:*)"`. It runs from
the demo sandbox directory with a project settings file denying
Edit/Write/Agent/web, keeps the real `HOME` so `claude` finds its login
(the demo config is wired through `XDG_CONFIG_HOME` instead), and its
`things complete` lands in the demo database through the shims. The wait
for the model was about 12s; `record.sh` now runs the GIF through ffmpeg
to drop identical frames and cap any pause at 3s, and holds the last
frame for 3s. Both GIFs go through the same step, so `make demo` still
produces both.

A first, wider-scoped trial took 171s and the nested Claude wandered
into the repo and edited the shim. It found two real bugs while it was
in there, which I kept after review: checklist items were ignored on
`update`, and the shim reseeded its UUID generator identically per
process so a second write could collide with the first.

## Also

- Removes a `__pycache__` file that slipped into #184 and adds it to
`.gitignore`; the shims now run `python3 -B`.
- Seed data gains notes and a checklist on one to-do so the brief has
something to show; `demo.gif` is re-recorded to match.

## Not verified

I could not build the Jekyll site locally (system Ruby is 2.6 and
compiling 3.3 via mise failed on libyaml), so the new tab has only been
checked as Markdown. The pages workflow builds on merge to main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add an animated demo to the README

1 participant