diff --git a/CHANGELOG.md b/CHANGELOG.md index e7b6c41..9b6f1cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ All notable user-visible changes to this project are documented in this file. ### Changed +- The Claude Code skill now documents the repo-local CLI fallback and a + checkpoint-drain feedback pattern for harnesses that cannot surface + background watcher output. + ### Fixed - Comments not attached to a snippet (e.g. `sideshow comment` without diff --git a/skills/sideshow/SKILL.md b/skills/sideshow/SKILL.md index 2106ad8..86efa1b 100644 --- a/skills/sideshow/SKILL.md +++ b/skills/sideshow/SKILL.md @@ -20,7 +20,9 @@ sideshow guide # or: curl -s $SIDESHOW_URL/guide ``` If `SIDESHOW_URL` is unset, the surface is at `http://localhost:4242`. If it -is not running, start it: `sideshow serve` (or `npx sideshow serve`). +is not running, start it: `sideshow serve` (or `npx sideshow serve`). If the +`sideshow` command is not on PATH but you are inside this repo, use +`node bin/sideshow.js ...` as the CLI command. ## Publishing @@ -33,6 +35,9 @@ sideshow publish sketch.html --title "Cache layout" --agent your-name --session- echo '
...
' | sideshow publish - --title "Quick note" ``` +Save the returned `sessionId` and snippet `id`; all feedback handling depends +on watching the exact session you published to. + Rules of thumb: - On your first publish, set a session title that names the task ("Auth @@ -47,28 +52,47 @@ Rules of thumb: ## The feedback loop -Feedback reaches you three ways — prefer them in this order: +Treat sideshow as a two-way surface. Do not assume you will automatically see +comments after publishing; you must either arm a visible watcher or drain +feedback at checkpoints. + +Feedback reaches you four ways — prefer them in this order: 1. **Piggyback (no action needed).** Publish/update/reply responses may include a `userFeedback` array: comments the user left since your last call, delivered once. Read them whenever they appear and treat them as user instructions. -2. **Background watch (don't block, don't poll).** After your first publish, - arm a listener as a background process and keep working: +2. **Visible background watch (best non-blocking path).** After your first + publish, arm a listener as a background process only if your harness will + surface the process output back to you: + + ```sh + sideshow wait --session