Repository navigation
docs: add an animated demo to the README - #184
Merged
Merged
Conversation
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
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.  ## 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #50.
A ~30s GIF under the README lede (and on the site index) showing the everyday flow:
things,add,edit,show,complete,search, anddeadlines -j | jq.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:///...andosascript.scripts/demo/binputs shims under those two names ahead of the real ones onPATH; they parse the URL / AppleScript and apply it to the demo database. That meansadd,editandcompleteare the real code paths (including the auth-token check oneditand the read-back that confirmscompletelanded), not hand-written SQL faking the effect.Answers to the open questions in #50
<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.make demo(needsvhs,jq,python3).scripts/demo/README.mdcovers the moving parts. The tape is a template because--deadlinewants a literalYYYY-MM-DD;record.shfills in a date a few days out.Files
scripts/demo/thingsdemo.py: seed + theopen/osascripthandlersscripts/demo/env.sh: throwawayHOME, config pointingdbat the demo DB, shims onPATHscripts/demo/demo.tape.in,scripts/demo/record.sh,Makefiledemotargetdocs/assets/img/demo.gif, README +docs/index.mdembedsThe old
docs/demo-readmebranch/worktree from the first attempt is left alone; it can be deleted once this lands.