Files
PaperClipAI/doc
Dotta f0ee1b40f0 docs(headless): make tutorials copy-pasteable and add workflow commands (#23433)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work.
> - Headless channels, fenced task queues, and workflow primitives
landed in #23330 and #23415, with walkthrough documentation in
`doc/HEADLESS-TUTORIALS.md`.
> - The previous `doc/HEADLESS-TUTORIALS.md` used invented issue IDs
(`PAP-14`, `PAP-50`, `PAP-88`), missing local files (`plan.json`,
`./finding.schema.json`), and non-existent project slugs (`web-app`,
`api-server`), and did not cover the newer workflow commands or
multi-agent workflow patterns.
> - Readers trying to walk through the tutorial by hand could not copy
and paste the commands directly on a fresh local board and missed the
new `assign`, `handoff`, `claim --mine`/`--status backlog`, `block
--needs`, `cancel`/`reopen`, and `channels` admin commands.
> - This pull request rewrites `doc/HEADLESS-TUTORIALS.md` with
deterministic hard-coded values (`--company-name "Demo"`, `DEM-1`
through `DEM-10`), adds hands-on sections for the new workflow commands,
and adds a concise overview of the workflow patterns from
`.agents/skills/channels-queues-and-workflows/SKILL.md`.
> - The benefit is a verified, top-to-bottom copy-pasteable tutorial
that matches the current CLI surface and introduces Paperclip's core
multi-agent coordination patterns.

## Linked Issues or Issue Description

Refs #23330
Refs #23415

**Issue type**
Outdated (no longer matches behavior)

**Where is the issue?**
`doc/HEADLESS-TUTORIALS.md`

**What's wrong?**
The tutorials relied on placeholder IDs, missing local files, and
uncreated project slugs, so copying and pasting commands on a fresh `pc
up --local` board failed. They also omitted the newer workflow
ergonomics commands from #23415 (`tasks assign`, `tasks handoff`, `tasks
claim --mine` / `--status backlog`, `tasks block --needs`, `tasks deps
list`, `tasks cancel` / `reopen`, `channels create --private`, `channels
members`, `channels update --managed-pool`) and did not summarize the
workflow patterns in
`.agents/skills/channels-queues-and-workflows/SKILL.md`.

**Suggested fix**
Update `doc/HEADLESS-TUTORIALS.md` to use deterministic hard-coded
values (`--company-name "Demo"`, `DEM-1` through `DEM-10`), inline
heredocs/JSON, runnable `node -e` commands, hands-on examples for the
new workflow commands, and a concise workflow patterns overview linking
to the skill and examples.

## What Changed

- Updated `doc/HEADLESS-TUTORIALS.md` to start with `npx paperclipai up
--local --port 3199 --company-name "Demo"` and use deterministic
hard-coded IDs (`DEM-1`–`DEM-10`), inline `--file -` heredocs, inline
`--data` schemas, and runnable `node -e` worker commands with zero
placeholders.
- Fixed `pc channels` to `pc channels list` (since bare `pc channels`
prints Paperclip release channels) and `--schema ... --data '{...}'`
flag syntax using the built-in `finding@1` schema.
- Added hands-on walkthroughs for `pc tasks block --needs` + `pc tasks
deps list`, `pc agent connect` + `pc tasks assign` + `pc tasks claim
--mine`, `pc tasks claim --status backlog`, `pc tasks cancel` /
`reopen`, `pc tasks handoff` with `--if` CAS, and `pc channels create
--private` / `members` / `update --managed-pool`.
- Added Tutorial 4 ("Multi-Agent Workflow Patterns at a Glance")
summarizing Direct Work Queue, Two-Step Inbox, Single-Thread Relay,
Assembly Line, and DAG Fan-Out/Fan-In with links to
`.agents/skills/channels-queues-and-workflows/SKILL.md` and
`examples.md`.
- Updated Cloud graduation in Tutorial 5 to use `pc channels update
--project ... --managed-pool ...` instead of raw API calls.

## Verification

- Ran every command in Tutorials 1–3 verbatim in an isolated temporary
`PAPERCLIP_HOME` against a fresh `pc up --local --port 3297
--company-name "Demo"` server (`DEM-1` through `DEM-10` plus expected
`409 label_conflict` on competing CAS label update): all commands
succeeded with exit code 0.
- Confirmed `pc channels list` lists board channels instead of release
channels.

## Risks

- Low risk. Documentation-only change (`doc/HEADLESS-TUTORIALS.md`); no
runtime, schema, or API behavior changes.

## Model Used

- Google Gemini (Antigravity agentic runtime, Gemini 4 Neon Medium,
extended thinking with tool use and code execution)

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge
2026-12-02 00:56:34 +00:00
..
…
…
…