Metadata-Version: 2.5
Name: paracord
Version: 0.0.45
Summary: A modern CLI tool for Paracord projects - wraps copier, uv, and rav into a unified developer experience
Project-URL: Homepage, https://github.com/getparacord/paracord
Project-URL: Repository, https://github.com/getparacord/paracord
Project-URL: Issues, https://github.com/getparacord/paracord/issues
Author-email: Justin Mitchel <getparacord@gmail.com>
Maintainer-email: jmitchel3 <getparacord@gmail.com>
License-Expression: MIT
Keywords: cli,copier,paracord,project-template,rav,uv
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3.12
Requires-Dist: copier>=9.0.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: keyring>=24.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0.0
Requires-Dist: tomli-w>=1.0.0
Requires-Dist: typer>=0.9.0
Provides-Extra: console
Requires-Dist: fastapi>=0.104.0; extra == 'console'
Requires-Dist: jinja2>=3.1.0; extra == 'console'
Requires-Dist: uvicorn>=0.24.0; extra == 'console'
Description-Content-Type: text/markdown

# Paracord CLI

A modern, fast CLI tool that wraps copier, uv, and rav into a unified developer experience for Paracord projects.

## Installation

```bash
uv tool install paracord
```

Or run directly without installing:

```bash
uvx paracord init my-project
```

## Usage

### Create a new project

```bash
paracord init my-project
# or
paracord init my-project
```

### Run tasks

Inside a Paracord project:

```bash
# List available tasks
paracord run

# Run a specific task
paracord run dev
```

### Update from template

```bash
paracord update
```

### Check for updates

```bash
paracord check
```

### Log in and set up a folder

```bash
paracord login                 # first login is global
paracord login                 # again: scope it to this folder, or overwrite the global one
paracord login --scope .       # scope to this folder without asking
paracord login --all           # global login to every organization you belong to
paracord setup                 # pick a Dash project for this folder
paracord setup acme/website    # or name it
paracord setup --write         # pre-tick write access on the approval page
```

Like Doppler, a login can be global (`/`) or scoped to a folder and everything
under it; a scoped login can use a different Dash host and organization from the
global one. After a scoped login, `paracord login` offers to run `paracord setup`.

`paracord logout` logs out the login the folder uses. Inside a scoped folder (or
any folder under it) it removes only that folder's login and the global login
stays; `--scope DIR` names the folder. Logging out the global login removes
every login and project key on the machine, so it asks first; `--all` skips the
question.

`paracord setup` opens Dash to approve a project key (`pcp_`) for one project.
The key is stored in your OS keychain, never in `~/.paracord/config`, and the
folder is linked to the project's stable Dash ids. Project commands run in that
folder use the key automatically; `PARACORD_PROJECT_KEY` overrides it.
The key is read only unless you tick "Allow changes" on the approval page;
`--write` ticks it for you (you can still clear it, and a read-only project role
still gets a read-only key, which setup warns about).
`paracord project logout` deletes the local key (revoke it in Dash under the
project's Settings, CLI keys).

Non-interactive runs (an agent, CI, a pipe: stdin is not a terminal) give up on
a keychain read after 10 seconds with a clear error instead of hanging. On
macOS a read can block on an "allow access" prompt nobody sees, typically after
an upgrade or reinstall changes the Python behind `paracord`, or when the
keychain is locked. Run the same command once in a terminal and choose Always
Allow, or set `PARACORD_PROJECT_KEY` for unattended runs.
`PARACORD_KEYCHAIN_TIMEOUT=<seconds>` changes the wait (`0` waits forever).
`paracord auth status` shows which host is active and why.

### Create a project

```bash
paracord project create acme/website                       # create, then set up this folder
paracord project create acme/website --name "Website" --private -d "Marketing site"
paracord project create acme/website --no-link             # only create it
```

You need to be an admin of the account (your own, or an organization you
administer). Dash normalizes the slug (lowercase, hyphens). If the project
already exists, nothing is created and you are asked to set up the folder for it
instead (`--yes` skips the question). After creating, the folder is set up as
with `paracord setup` (`--write` pre-selects write access); without a terminal it
is linked without a key.

### Link a folder to a project

Dash addresses projects as `<account>/<project>`, where the account is a user or
organization handle. Link a folder (and everything under it) to one:

```bash
paracord project link acme/website            # current folder
paracord project link acme/website --path ~/code/website
paracord project show                         # nearest linked folder, like git
paracord project show --json
paracord repos                                # the project's repo key and GitHub repos
paracord repos connect                        # connect origin's GitHub repo to the project
paracord repos issues owner/name -l bug       # its GitHub issues labeled bug become tasks
paracord project unlink
```

A folder keeps one project of its own and can scope more from the same org. Each
goes under `[scopes.projects]` in `.paracord/context.toml`, and commands reach it
with `--project`:

```bash
paracord project add acme/kb                  # read scope; opens Dash to approve its key
paracord project add acme/api --write         # write scope
paracord --project acme/kb docs list          # act on a scoped project from here
paracord project remove acme/kb
```

The account handle and the project are checked on Dash when you are logged in
and Dash is reachable (`/cli/v1/projects/resolve/`, with `PARACORD_PROJECT_KEY`
first if set, then your org tokens). A verified link stores Dash's stable account
and project ids per environment under `project_identities` in the config, next to
the `path_projects` entry, and `paracord project show --json` reports them with
`"verified": true`. Project slugs are case-sensitive, as on Dash. A project Dash
says doesn't exist fails the link; without a usable token, offline (`--offline`)
or with `--no-verify`, the link is saved unverified. When the account is an organization, the folder's organization
mapping is set too (to an organization this machine is logged in to or has seen
in `paracord org list`), so `paracord org` and other readers keep working. Logging out clears
organization mappings but keeps project links; run `paracord project link` again after
logging back in to restore the organization.

Links live in two places. `paracord setup` and `paracord project link` write
both:

- `.paracord/context.toml` in the folder. Commit it: it holds no secrets, so a
  clone on another machine already knows its project.
- `~/.paracord/config` under `path_projects`, a map of absolute folder path to
  `<account>/<project>`. This machine's link overrides the file at the same
  folder, and it is the only option for a folder that isn't a repository.

`paracord org set` still works but is deprecated in favour of `paracord project link`.

#### The folder context file

```toml
# .paracord/context.toml
org = "acme"
project = "acme/site"     # omit for an org-level folder

[scopes]
org = "read"              # none | read | write
project = "write"

[scopes.projects]         # other projects this folder may use
"acme/org" = "read"
```

The nearest folder with a link wins, and a folder never inherits a parent's
scopes: a project folder inside an org folder lists what it needs itself. On a
new machine, clone the repo and run `paracord login`, then `paracord setup` in
the folder. Setup takes the project from the file and requests a key with the
file's `project` scope (`--write` is capped to read when the file says read),
then offers a key for each project under `[scopes.projects]`. A folder whose
project this machine already holds a key for (another clone) works with no
setup at all.

Use a listed project from the folder with `paracord --project acme/org <command>`
(or `PARACORD_PROJECT=acme/org`), for example
`paracord --project acme/org docs list`. A project the file doesn't list is
refused.

Scopes ask for access; they never grant it. A key gets at most your own role on
Dash, and the consent page still lets you untick or tick write, so setup warns
when a key can write but the file says read. `scopes.org` is recorded but not
enforced yet: org commands use your org login.

#### Org folders

Keep an org's projects side by side under one folder and make that folder the
org root: it links to `<account>/org`, the account's default project, and
each project folder inside keeps its own link. The org folder and a project
folder can also be the same folder; a folder linked to any project of the
account already counts as the root.

```bash
cd ~/Clients/acme
paracord org scope acme          # links this folder to acme/org
paracord org scope               # same, taking the account from a linked folder above
```

`paracord context` then ends with a local workspace section, read from this
machine's links only: the org root, every linked folder under it with its
project (and a `.paracord/docs` mirror where one exists), which one you are in,
and the child folders that are not linked and so fall under General.

#### Keep links in sync

```bash
paracord sync              # this folder, every linked folder under it, and the nearest one above
paracord sync --check      # change nothing; exit 1 when anything is out of sync
paracord sync --yes        # also apply fixes that change or remove a link
paracord sync --offline    # local links and context files only
paracord sync --json
```

Run it after a `git pull`, on a new machine, or when something changed on
Dash. Without asking, it writes a missing `.paracord/context.toml` for a link
this machine holds, follows a project Dash renamed or moved (folder link, key
and file), and stores Dash's ids for an unverified link. It asks before it uses
the committed file over a different link on this machine, or removes the link
of a folder that no longer exists. It asks before it opens the browser to
approve keys for projects under `[scopes.projects]`, and it never does that
without a terminal. It reports, with the command to run: keys Dash rejects or
that expire within 14 days, keys that can do more or less than the file's
scope, folders with no key (except `<account>/org` roots), invalid context
files, and projects or accounts Dash no longer shows you. When Dash can't be
reached, it skips those checks and says so.

The template sync that `paracord sync` used to run (`.env.paracord`, the project
registry, `uv sync`, `rav run sync`) is now `paracord sync template`.

### Project files

`paracord files` works on Dash project files the way `aws s3` works on a bucket.
Remote paths are `<project>/<folder>/.../<name>` in the folder's organization
(see `paracord org`). An argument is local when it starts with `.`, `/` or `~`, or
exists on disk; anything else is remote, and `paracord://` forces remote.

```bash
paracord files ls website                      # a folder; no argument lists the linked project
paracord files ls website/brand -r --json
paracord files cp ./logo.png website/brand/    # upload (missing folders are created)
paracord files cp website/brand/logo.png .     # download
paracord files cp -r website/brand ads/brand   # copy on Dash, across projects
paracord files mv website/old.png website/archive/new.png
paracord files rm -r website/drafts
paracord files sync ./site website/site --dry-run
paracord files sync website/site ./site --delete
```

`cp` replaces existing files. `mv` within one project is a move on Dash;
across projects or between local and remote it copies, then deletes the
source. `sync` is one way: it sends files that are new, a different size, or
newer than the target, and `--delete` removes target files the source lacks.
Downloads take the remote modified time so repeat syncs skip them. Empty files
cannot be uploaded (Dash needs at least one byte). CLI tokens work only on
the organization they were minted for, so personal accounts are not reachable
from the CLI yet.

### Brand

`paracord brand` reads and edits the brand Dash holds for the linked project,
or the org brand (General's) when the folder has no link. `--project <slug>`
targets another project and `--org` the org brand. A project inherits each
field from the org until it sets its own; `reset` drops the override again.

```bash
paracord brand show                           # every field, (inherited) and (inferred) marks, contrast checks
paracord brand context                        # compact Markdown brief for an agent prompt
paracord brand icon set ./mark.svg --org      # org icon: favicons, sidebar and the Clerk logo
paracord brand icon set --quick N --color '#0F3D3E' -p spring
paracord brand icon get --size all -o ./favicon
paracord brand icon clear -p spring           # back to the org icon
paracord brand logo set ./wordmark-dark.svg --variant dark   # light, dark, mono, horizontal, stacked
paracord brand logo clear --variant dark
paracord brand colors set primary=#0F3D3E accent=#F2A541
paracord brand colors set primary=#0F3D3E --status inferred --source https://example.com
paracord brand fonts search "serif display" --category Serif --limit 10
paracord brand fonts set heading="Fraunces:600,700" body="Inter:400,500"   # i for italic: 700i
paracord brand fonts upload ./BrandSans.woff2 --role body --license "Licensed, web use" --embeddable
paracord brand copy get boilerplate.short
paracord brand copy set tagline "Grow without a franchise."
paracord brand copy set value_props "Fast setup" "No contracts"           # or "Fast setup, No contracts"
paracord brand reset colors.accent            # inherit the org value again
paracord brand confirm tagline --source "client email, 2026-11-20"
paracord brand history --limit 20
paracord brand revert 42
paracord brand pull --out ./brand             # manifest, tokens, fonts, favicons, logos, social, copy
paracord brand push ./brand/brand.json --dry-run
paracord brand render og --title "Spring sale" -o og.png   # og, social-post, avatar, banner (PNG)
paracord brand render letterhead --body-file letter.md     # PDF
paracord brand render email-signature --name "Pat Doe" --job-title Owner -o -   # HTML to stdout
paracord brand guide -o guide.pdf             # brand guidelines PDF
paracord brand social set ./og.png --kind og  # og, avatar, banner; `social clear` goes back to generated
paracord brand assets ls --tag photo --approved
paracord brand assets add ./storefront.jpg --tag photo --approved
paracord brand assets set <id> --tag pattern --not-approved
paracord brand assets rm <id>
paracord brand extract https://example.com --org   # site name, tagline, contacts, colors, logo, fonts as inferred
paracord brand check                          # FAIL and warn lines; exits 1 on a failure
paracord brand check --strict                 # also exits 1 on warnings
```

`extract` saves everything it finds as `inferred` with the page URL as source,
and leaves fields that are already `confirmed` alone. `check` fails on a
missing icon, logo or primary color, a contrast pair under AA or a font with no
license note, and warns on gaps, unconfirmed values and KB docs that disagree
with the record. Run it before any public output.

During onboarding, `paracord onboarding answer <key> --brand key=value`
(repeatable) writes structured values into the record with the answer:
`inferred` for an inferred answer, `confirmed` for a client's. `paracord
onboarding confirm <key>` then confirms them. List keys split on `|`
(`--brand "value_props=Fast setup|No contracts"`) and `socials` takes
`network=url` pairs (`--brand "socials=linkedin=https://linkedin.com/company/example|x=https://x.com/example"`).

`render`, `guide` and the generated social images use confirmed values and
embeddable fonts only; inferred values never reach them. `render` writes
`./<template>.png|.pdf|.html` unless `-o` names a file or a folder.

`copy` keys are `display_name`, `legal_name`, `tagline`, `boilerplate.short`,
`boilerplate.long`, `value_props`, `words_prefer`, `words_avoid`,
`cta_defaults`, `website`, `email`, `phone` and `address`. The four list keys
(`value_props`, `words_prefer`, `words_avoid`, `cta_defaults`) take each item
as its own argument, or one comma separated string; either way the list is
replaced. Values set with `--status inferred` are research, not client facts:
never use them for public or paid output until `confirm`ed.

`pull` writes:

```
brand/
  brand.json          the manifest push reads
  tokens.css          :root colors, scales, fonts, type scale, dark mode
  tailwind.css        Tailwind 4 @theme block
  fonts/              embeddable font files and a fonts.css pointing at them
  favicon/            icon-32/180/192/512.png, favicon.ico, site.webmanifest
  logo/               <variant>.<ext> for every logo set
  social/             og.png, avatar.png, banner.png (uploaded, else generated)
  copy.json           tagline, boilerplate, value props, CTAs
```

`push` sends only the fields you changed in `brand.json`, keeping each one's
status, so pull then push with no edits sends nothing. It skips logos, fonts and
social images (use their commands) and fields marked `"inherited": true`.

Files the brand uses live under `brand/assets/` in the project's files and
cannot be moved, renamed or deleted with `paracord files`; replace them here.

### Requests, threads and comments

These read Dash with your `paracord login` (the folder's project key is refused
on these routes). All three only read; nothing is posted.

```bash
paracord requests list --status open           # the org's Requests (REQ-n), newest first, at most 100
paracord requests list --project paracord-dash # filed under that project or with a task in it
paracord requests show REQ-12                  # body, outcomes, tasks and the thread; 12 works too
paracord requests thread REQ-12 --limit 10     # just the thread messages, oldest first
paracord threads list                          # the linked project's message threads (Messages)
paracord threads list --archived --project paracord-co
paracord threads show 3f2a                     # an id or prefix; marks the thread read, as Dash does
paracord comments list -t task:PC-41           # comments on one target, oldest first, replies nested
paracord comments list -t doc:<uid> --unresolved
paracord comments show <comment-id> -t task:PC-41
```

Dash lists comments per target (`task`, `doc`, `doc_folder`, `file`, `folder`,
`conversation`, `event`), so `comments` needs `--target`. Every command takes
`--json`.

### Project docs

`paracord docs` reads and writes the linked project's Docs page (its knowledge
base) as Markdown, with the folder's project key from `paracord setup` (or
`PARACORD_PROJECT_KEY`). Docs are addressed by the path Dash lists, built from
folder names and the title; `.md` is optional and case is ignored.

```bash
paracord docs list                              # every doc you can read
paracord docs list Processes                   # docs and empty folders under Processes
paracord docs list Processes --json
paracord docs folders                           # every folder; edit or read
paracord docs mkdir Processes/Clients           # create a folder and its parents
paracord docs get Processes/Onboarding.md       # Markdown to stdout
paracord docs put Processes/Onboarding.md --file onboarding.md
cat notes.md | paracord docs put Notes --visibility project
paracord docs put Notes --base-version sha256:... < notes.md
paracord docs mv Processes/Onboarding.md Processes/Client-onboarding.md
paracord docs mv Processes/Client-onboarding.md Archive/   # move, keep the name
paracord docs rm Notes.md --yes
paracord docs ls Processes                     # `ls` = `list`, `cat` = `get`
paracord docs grep -i -n "refund" Processes    # search titles and bodies
```

Shell names work too: `ls` is `list` and `cat` is `get`, with the same
arguments and output. `grep <pattern> [folder]` searches doc titles and bodies
with a regular expression (`-i` ignores case, `-l` prints only paths, `-n`
adds line numbers) and exits 1 when nothing matches, 2 on a bad pattern. Dash
runs the search (`docs/search/`, Postgres regex matched line by line; `\b` is
sent as Postgres's `\y`) and returns at most 20 lines per doc, 500 in all and
200 docs, saying so on stderr when it cuts. On a Dash host without the search
route, or for a pattern Postgres rejects (such as `(?P<name>...)`), `grep`
downloads the bodies of up to 200 docs (the first by path; titles of all are
searched) and searches them locally. `mkdir <path>` creates a folder and any
missing parents, like `mkdir -p` (`--json` prints `{"created", "folder"}`), on
the same rules as below; `put` and `mv` also create folders as needed.

To edit docs with your own tools, pull them into a folder and push them back:

```bash
paracord docs pull                      # every doc into .paracord/docs/<path>
paracord docs pull Processes --dir kb   # one folder, somewhere else
$EDITOR .paracord/docs/Processes/Onboarding.md
paracord docs push --dry-run            # what would change
paracord docs push --visibility project # new files are visible to the project
paracord docs push --delete             # also delete docs whose file you removed
```

`pull` writes each doc to `<dir>/<path from list>` and records its id, version,
path and a content hash in `<dir>/.paracord-docs.json`. Pulling again updates
files you have not edited, follows renames and removes docs deleted on Dash; a
file you edited (or deleted) is kept and reported, and pull exits 1, unless
`--force`. `push` compares every `.md` file in the folder with the manifest:

- an edited file is updated with the version you pulled as `base_version`, so a
  doc changed on Dash since then is reported as a conflict and never
  overwritten (copy your edits aside, `pull --force`, re-apply, push);
- a new file is created, its folders created on Dash (`--visibility` as for
  `put`; private by default); a new file at the path of a Dash doc you have
  not pulled is refused;
- a deleted file is deleted on Dash only with `--delete`;
- a file moved or renamed without edits is moved on Dash when exactly one
  missing and one new file share its content. Anything else (moved and edited,
  or several identical files) is a delete plus a create.

The manifest is saved after every successful request. Every change prints a
row, `--json` prints them all, and push exits 1 on any conflict or error.

`put` creates the doc when the path is new (private to you unless
`--visibility project` or `paracord`) and replaces its Markdown otherwise. It
refuses an empty stdin. Pass `--base-version` with the `version` from
`get --json` so a change made on Dash since you read the doc is not
overwritten; Dash answers with a conflict instead. `put` to a new path and `mv`
create any missing folders on Dash's Docs page rules (a new top-level folder
needs a contributor role and no Team "Limited to" scope; a subfolder needs edit
access to its parent), as does `mkdir`.
`mv` renames, moves to another folder, or both; a target ending in `/` keeps the
doc's name, and a target without a folder moves it to the top level.
`folders` lists every folder you can see, marked `edit` where this key can add
docs. `rm` asks first unless `--yes`; only the doc's author or a project admin
can delete it. Writes need a key approved with write access.

### Project context

`paracord context` prints everything a local session, such as Claude Code,
needs to start work on the linked project: the project and your role in it,
its docs and the org's General docs, open tasks and the requests they belong
to, connectors, variable names (never values) and recent activity. It is read
only and uses the folder's project key from `paracord setup` (or
`PARACORD_PROJECT_KEY`).

```bash
paracord context                           # Markdown, ready to pipe into an LLM
paracord context --json                    # the same bundle as JSON
paracord context --bodies                  # include doc contents (Dash caps their size)
paracord context --activity 50             # recent events, 0 to 100 (default 20)
paracord context --out .paracord/context.md  # write to a file and print its path
paracord context --no-workspace            # leave out the local workspace section
```

The output ends with the local workspace (see [Org folders](#org-folders)); in
`--json` it is the `workspace` key, `null` when nothing above the folder is linked.

A `404` means the project is gone or you no longer have access; a `403` means
Dash refused the key for this project. Either way, `paracord setup` links the
folder again.

### Project stack

`paracord stack` lists where the linked project's infrastructure lives: apps,
workers, databases, buckets, DNS, auth and email services, each with its
provider, environment and console link. Org-level entries are the `org`
project's. It uses the folder's project key from `paracord setup` (or
`PARACORD_PROJECT_KEY`). Entries hold names and links only: never store tokens,
passwords or other secrets in them.

```bash
paracord stack                                  # the project's entries, by environment
paracord stack list --org-only                  # only the org-level entries
paracord stack list --all --json                # both, as Dash returns them
paracord stack add --name "Web app" --kind app --provider Fly.io --env production \
  --resource acme-web --console https://fly.io/apps/acme-web
paracord stack add --name DNS --kind dns --provider Cloudflare --org
paracord stack show "Web app"                   # an exact name (any case) or an id prefix
paracord stack edit "Web app" --region iad
paracord stack open "Web app"                   # opens its console URL
paracord stack share "Web app" --project        # everyone in the project can see it
paracord stack share "Web app" --admins         # back to project admins only
paracord stack share "Web app" --user pat@example.com
paracord stack unshare "Web app" --user pat@example.com
paracord stack rm "Web app" --yes
```

### Recipes (Paracord staff)

`paracord recipe` provisions the linked project's infrastructure from a named
recipe, in Paracord's provider accounts. Dash makes every provider call,
records each resource on the project's stack and writes credentials straight
into the project's Doppler config; nothing secret is printed. Applying again
fixes drift instead of creating duplicates. Plan and apply need a key with
write access (`paracord setup --write`).

```bash
paracord recipe list                           # recipes, their templates, what this project has
paracord recipe plan cloudflare-site           # create, adopt, exists, repair, recreate or blocked per step
paracord recipe apply cloudflare-site          # shows the plan, asks, then waits for the run
paracord recipe apply cloudflare-site --yes --no-wait
paracord recipe status cloudflare-site --live  # what exists now, plus a health probe
paracord recipe run <run-id>
paracord recipe apply cloudflare-app --hostname acme-demo.paracord.cloud  # Worker on a chosen name; remembered
```

`paracord domain` puts a client's own hostname on the project's recipe Worker
(Cloudflare for SaaS) and prints the DNS records the client adds. A root
domain needs a DNS provider with CNAME flattening or ALIAS records; otherwise
use `www` and redirect the root at the registrar.

```bash
paracord domain add www.acme.com      # CNAME and TXT records to hand the client
paracord domain status www.acme.com   # live status; omit the name to list them all
paracord domain remove www.acme.com   # asks first unless --yes
```

Project admins also see the project's linked repositories and domains under the
list. New entries are visible to admins only unless `--visible-to project`.
`rm` asks first unless `--yes`. Writes need a key approved with write access and
an admin role; `--org` needs admin in `org`.

### Project tasks (work queue)

`paracord tasks` lets a local session, such as Claude Code, use the linked
project's Dash tasks as its work queue, with the folder's project key from
`paracord setup` (or `PARACORD_PROJECT_KEY`). Tasks are addressed by reference
(`PC-41`, any case) or id. Claiming and finishing need a key approved with
write access, a contributor role and edit access to the task.

```bash
paracord tasks list                             # open tasks in queue order
paracord tasks list --status all --assignee me --claimed mine --limit 100
paracord tasks next                             # the next task to pick up (read only)
paracord tasks next --start                     # claim it (asks again if another session won)
paracord tasks show PC-41
paracord tasks edit PC-41 --priority p0 --reason "Standup escalation"   # p0..p3 or urgent/this_week/normal/low
paracord tasks edit PC-41 --title "New title" --body "Asking @Justin for input" --tag docs
paracord tasks start PC-41 --touchpoints "footer"   # claim a specific task
paracord tasks start "Add export audit log"     # create a task and claim it
paracord tasks done PC-41 --summary "The footer links work now."
paracord tasks done PC-41 --summary "..." --pr https://github.com/acme/site/pull/9   # link your PR
paracord tasks done PC-41 --summary-file note.md   # or pipe the summary on stdin
paracord tasks drop PC-41                       # give it back unfinished
paracord tasks drop PC-41 --force               # owner or admin: clear a stale claim
paracord tasks drop PC-41 --close --reason "Duplicate of PC-40"   # reason stored as a comment
paracord tasks status                           # read-only: counts, claims, blocked tasks
paracord tasks block PC-41 --by PC-40 --reason "Waiting on copy"
paracord tasks unblock PC-41
paracord tasks init                             # workflow block in the repo's CLAUDE.md
paracord tasks comment PC-41 --text "Header done, footer next."  # or --file, or stdin
paracord tasks comment PC-41 --text "Internal note" --visibility paracord   # Paracord staff only
paracord tasks comments PC-41                   # comments you can see, oldest first
paracord tasks heartbeat PC-41                  # renew this session's claim lease
paracord tasks edit PC-41 --max-claim-seconds 7200   # hard cap on one claim; none clears it
```

Every claim has a lease (two hours for a local session); `start` prints when it
expires. Comments, links and edits from the holding session renew it. After it
lapses, `heartbeat` or `done` says the claim expired: check the task, then
`start` it again. Three lapsed claims in a row block the task.

`comment` posts in your name and leaves the status and claim alone; the
client sees it unless `--visibility paracord`.

`done` posts the summary as a comment the client sees, clears the claim and
moves the task to review. Write it in plain language for the client. A `done`
retried after a lost response counts as success when the task is already in
review. All commands take `--json`.

A claim belongs to you, the key and a session label, so two sessions on one
key never hold the same task. The label is `--session`, else
`$PARACORD_SESSION`, else `claude-code:$CLAUDE_SESSION_ID`, else
`local:<hostname>:<hash of the folder>`. The last one is shared by every
terminal in a folder, so give parallel sessions there their own `--session` or
`PARACORD_SESSION`, and use the same label to start, finish and release a task.
The `paracord-work` skill describes the loop for Claude Code.

### Project goals

A goal (`G-3`) is one of the project's key outcomes, with a target: the
conditions that make it done, one per line. Tasks count toward it, and its
progress is the state of that work (pending, active, done).

```bash
paracord goals create "Launch the store" --target "- Checkout works
- 10 real orders" --date 2026-12-15 --priority p1
paracord goals list                    # in order, with progress
paracord goals show G-1                # target, progress, tasks, requests and priority history
paracord goals edit G-1 --priority p0 --reason "Launch pulled forward"   # p0..p3 or urgent/this_week/normal/low
paracord tasks create "Wire checkout" --goal G-1
paracord tasks start PC-12 --goal G-1  # attach while claiming
paracord tasks list --goal G-1         # or --goal none for loose tasks
paracord goals prompt G-1              # a /goal command for Claude Code
paracord goals prompt G-1 --agent codex --copy
paracord goals done G-1                # once the target holds
```

`prompt` prints a single-line `/goal` command: the target as the completion
condition, the open tasks in work order, and the `paracord tasks` workflow.
The agent stops when the target holds and reports against each condition; it
never marks the goal done itself.

### Asks (questions and reviews behind a link)

`paracord ask` gets answers, approvals and files from people who never log in
to Dash. Each recipient gets their own link on `share.paracord.co`; you send
the links yourself (Dash never emails anyone). It uses the folder's project
key; creating and changing Asks needs write access (`paracord setup --write`).

```bash
paracord ask create "Review the roster" \
  -c "Background shown at the top. Links are clickable." \
  -i "single: Which day works? | Monday | Tuesday" \
  -i "review: Does this CSV look right? | ./roster.csv" \
  -i "prototype: Try the sign-up flow | ./signup.html" \
  -i "provide: Upload the handouts | either" \
  -i "text?: Anything else?" \
  --to "Dana <dana@example.com>" --to Sam --shared --expires 7d --task PC-41
paracord ask list [--status open|partial|answered|closed]
paracord ask show ASK-3                 # answers so far and each person's link
paracord ask wait ASK-3 --timeout 30m   # block until new answers (exit 2 on timeout)
paracord ask wait ASK-3 --everyone      # until every person has sent
paracord ask inbox [--all]              # Asks with answers nobody has acked yet
paracord ask ack ASK-3                  # mark the current answers handled
paracord ask invite ASK-3 --to Lee      # add people, print their links
paracord ask revoke ASK-3 Lee           # kill one link
paracord ask close ASK-3 / reopen ASK-3
paracord ask live --spec ask.json       # answer it yourself; a local agent replies to comments
paracord ask live ASK-3 --agent codex   # same on an existing Ask, through your own link
```

Item kinds for `-i`: `single`, `multi` and `text` questions (choices after
the prompt, separated by `|`; choice questions also offer "Other"), `review`
(approve or request changes on a link, a local file, a `paracord://` path or a
file id), `prototype` (an HTML file rendered in a sandbox) and `provide` (an
upload, a link, or either). `text?:` makes an item optional. Local files are
uploaded to the project's `Asks/attachments/` folder first. `--voice` attaches
an audio note, which Dash transcribes. `--spec ask.json` (or `-` for stdin)
takes the API's create fields for anything the flags don't cover, such as
`help` text or `allow_other: false`.

Each Ask records where it came from (session label, repo, branch, folder), so
a later session can run `paracord ask inbox`, read the answers with `show`,
act on them, and `ack`. All commands take `--json`.

`paracord ask live` is for answering an Ask yourself with an agent beside you.
It serves your own link through a proxy on `http://127.0.0.1:<port>/` (a free
port unless `--port`), opens it in the browser, and sends each comment you post
to the local agent (`--agent claude|codex|grok|agy`, default `claude`), run
read-only from the folder the Ask was created in. The agent's reply shows under
the comment; when it is sure what you meant it also fills in the item's answer
(it never answers a `provide` item). With `--spec` the Ask is created for you
alone (label from `git config user.name`, your login's email); with a reference
it reuses your link on that Ask or adds one. It exits once you press Send and
prints the answers (`--json` adds `live_replies`). Ctrl-C stops it (exit 130);
answers saved so far stay. The proxy only answers requests for
`127.0.0.1:<port>`, forwards only your link's paths to the share host, and
passes recipient text to the agent as prompt text, never as a command. File
uploads go through it too: each presigned part URL stays in the proxy behind
an opaque `/_live/upload/<id>` path that expires with the plan or the session.

`start` prints the org's other active claims with their touchpoints and refuses
when this session already holds a different task. The CLI tracks the task only:
branches, worktrees and pull requests are up to the agent, and `done --pr <url>`
links the pull request on the task. Dash's GitHub webhook moves the task to done
when a pull request with `Task: <ref>` merges. `init` writes or refreshes a
`<!-- paracord-kanban:start -->` block (`--file AGENTS.md`, `--replace-kanbanlan`
to swap the kanbanlan block in place, `--dry-run`). `release` is the old name
for `drop`.

`paracord kanban` (hidden) is the older form of this workflow: its `start` also
creates a git worktree and its `done` pushes and opens the pull request. It
stays for instruction files that still name it; `paracord tasks init` rewrites
them.

### Client onboarding (Paracord staff)

`paracord onboarding` runs the adaptive onboarding loop on Dash: research
first, record inferred answers with citations, ask only the next few
questions, replan after every answer. Dash stores the state; the local
session does the thinking. It uses the folder's project key from
`paracord setup` (or `PARACORD_PROJECT_KEY`) and is for Paracord staff only:
a key minted by anyone else gets a `403` that says so. Writes need a key
approved with write access.

```bash
paracord onboarding start --mode full -t website -t data_automation   # reuses an existing one
paracord onboarding seed -t website -t data_automation:ads,finance    # seed banks from the skill
paracord onboarding seed --dry-run --json                             # what would be sent
paracord onboarding seed -t data_automation                           # general table + the client's connector-set sub-banks (else all)
paracord onboarding research                                          # a brief for the research session
paracord onboarding next --limit 5                                    # what to ask the client next
paracord onboarding questions --status inferred --section brand.voice
paracord onboarding show web-06
paracord onboarding answer web-06 --kind inferred --text "..." \
  --cite "https://example.com/services::We offer bookkeeping and payroll."
paracord onboarding answer web-01 --text "The owner signs off." --asked-via email
paracord onboarding confirm web-06                                    # or --correction "..."
paracord onboarding replan --note "Catering only" --moot web-17 --priority web-16=1
paracord onboarding replan --file plan.json                           # {"note", "add", "moot", "reprioritize"}
paracord onboarding upsert --file questions.json                      # at most 200, by key
paracord onboarding status                                            # coverage per kb_section
paracord onboarding events                                            # replan log
paracord onboarding update --status completed
```

`--kind` is `client` (default), `inferred` (needs at least one `--cite`) or
`rep_recap`. A citation is `URL::quote` or `doc path::quote`. `start` takes
`--scope org` (default, one per org) or `--scope project`; when a project
sees both, commands use the project one unless you pass `--onboarding <id>`.
`seed` defaults to the onboarding's templates (the fit bank in fit mode) and
never resets a question's status or priority. All commands take `--json`;
writes record `--author` (default: the session label, as for `paracord tasks`).
The `paracord-onboarding` skill describes the loop.

### Project events (Paracord staff)

`paracord events` manages the project event keys a sending system (a worker,
a CI job) uses to post events to Dash through events.paracord.co. Keys belong
to the project the folder is linked to, expire after a year, and a project
holds at most 20. It is for Paracord staff only; Dash refuses anyone else.

```bash
paracord events keys create billing-worker      # prints the pce_... key once
paracord events keys create billing-worker --token-only | gh secret set PARACORD_EVENTS_KEY
paracord events keys list
paracord events keys revoke <key id>            # asks first unless --yes
paracord events test --timeout 30               # probe via events.paracord.co and QStash back to Dash
```

The key is shown only at creation: store it in the sending system's secrets as
`PARACORD_EVENTS_KEY`. `test` reports whether the probe arrived. `create` and
`list` take `--json`.

### Report bugs and improvements to Paracord

`paracord bug` and `paracord improve` send a report to the Paracord team
through Dash with the folder's project key (read-only keys work). Each report
becomes a task in Paracord's own org; a close duplicate from another
organization becomes a +1 on the open one, and your org is credited when it
ships.

```bash
paracord bug "tasks next crashes on an empty queue" --why "The session stopped mid-queue for a client site update."
paracord improve "docs push should show a diff first" --why "Reviewing a client's brand doc edits took three extra round trips." --area cli
paracord bug "..." --why "..." --dry-run      # print the JSON that would be sent
paracord bug "..." --why "..." --no-context   # don't attach the last failing command
```

`--why` is prompted for on a TTY and required otherwise. `--area` is `cli`,
`dash`, `relay`, `skills`, `onboarding` or `docs`. Both send the CLI version.
When a `paracord` command exits non-zero, the CLI records its command path and
option names (never values or arguments), exit code, error message and the
failing Dash route and status in `~/.paracord/last-failure.json`; `bug`
attaches a record from the past day, guesses `--area` from it when omitted
(a Dash 5xx is `dash`, `paracord docs`, `onboarding` and `skills` are their
own areas, everything else `cli`) and clears it once filed. Keys, file
contents and doc bodies are never recorded, and Dash redacts secrets and email
addresses in what it stores. Both take `--json`.

### Agent skills

The CLI ships skills for Claude Code, Codex and Grok, so every session working
on a Paracord client follows the same playbooks:

- `paracord-brand-kb`: the knowledge-base layout every client org keeps in its
  General project (brand voice, visuals, logos, audience; business offerings,
  pricing, people, tools, processes), claim statuses, citation format, and how
  to update docs with `paracord docs`.
- `paracord-onboarding`: the research-first adaptive interview (ask only the
  next 3 to 5 most unblocking questions, replan after every answer, done when KB
  coverage is confirmed), a fit mode for prospects, and seed question banks per
  template.
- `paracord-kanban`: one Dash task per session for code changes, from
  `paracord tasks start` to `done --pr` (review) or `drop`.
- `paracord-work`: working the project's Dash tasks as a queue, starting
  from `paracord context`, with `paracord tasks next --start`, `done --summary` written for the client, and
  `drop` when abandoning.

```bash
paracord skills list                      # packaged skills and where they are installed
paracord skills install                   # globally, for every agent found
paracord skills install --agent codex     # only these agents (claude, codex, grok)
paracord skills install --dir .           # into ./.claude/skills/ instead
paracord skills install paracord-brand-kb # just one
paracord skills update                    # refresh installed skills now
```

Skills install globally by default: one copy in `~/.claude/skills/`, plus
`~/.codex/skills/` and `~/.grok/skills/` when `~/.codex` or `~/.grok` exists.
Every skill reads the current project at run time, so a global copy works in
every folder. The first command a new CLI version runs refreshes the global
copies it wrote, and removes the ones the package no longer ships.

`--dir DIR` installs into `DIR/.claude/skills/` instead, for a project that
keeps its own copies (committed to the repo, say); `update` and `list` take it
too. Each installed skill keeps
a `.paracord-skill.json` with the hashes of the files as written. A skill you
edited is never replaced silently: install and update keep it, print the diff
the update would apply, and exit 1; rerun with `--force` to replace it. Files
you add to a skill folder are left alone. `paracord setup` offers the global
install when an agent is missing the skills, unless the folder keeps its own
project copies.

## Commands

| Command | Description |
|---------|-------------|
| `paracord init [project-name]` | Create a new Paracord project |
| `paracord run [task]` | Run a rav task (or list tasks if none specified) |
| `paracord update` | Update project from upstream template |
| `paracord check` | Check for template updates |
| `paracord project link <account>/<project>` | Link a folder to a Dash project |
| `paracord project show [--json]` | Show the project linked to this folder |
| `paracord project unlink` | Remove the nearest project link |
| `paracord sync [--check] [--yes] [--offline] [--json]` | Reconcile folder links, context files and keys with Dash |
| `paracord files ls\|cp\|mv\|rm\|sync` | Project files on Dash by `<project>/<path>` |
| `paracord context [--json] [--bodies] [--activity N] [--out FILE] [--no-workspace]` | Everything a local session needs to start on the linked project, plus the local org workspace |
| `paracord org create NAME [--use] [--json]` | Create an organization (you as admin) and log in to it; needs an account allowed to create organizations |
| `paracord org scope [ACCOUNT] [--path DIR]` | Make a folder an org root by linking it to `<account>/org` |
| `paracord docs list\|ls\|folders\|mkdir\|get\|cat\|put\|mv\|rm\|grep\|pull\|push` | The linked project's Dash docs as Markdown |
| `paracord tasks list\|next\|show\|start\|done\|release\|comment\|comments` | The linked project's Dash tasks as a work queue |
| `paracord goals list\|show\|create\|edit\|start\|done\|drop\|prompt` | The linked project's goals: outcomes with a target that tasks count toward; `prompt` prints a `/goal` command |
| `paracord ask create\|list\|show\|wait\|inbox\|ack\|invite\|revoke\|close\|reopen` | Questions, approvals and file requests behind a link (Dash Asks) |
| `paracord stack list\|add\|show\|edit\|rm\|open\|share\|unshare` | Where the linked project's infrastructure lives (names and links, no secrets) |
| `paracord events keys create\|list\|revoke`, `paracord events test` | Project event keys (`pce_`) and an end-to-end delivery probe (Paracord staff) |
| `paracord setup [<account>/<project>]` | Set up this folder for a Dash project (project key in the keychain) |
| `paracord project list [--json]` | List the Dash projects you can reach on the active host |
| `paracord project logout` | Delete this folder's local project key |
| `paracord skills list\|install\|update` | Install the agent skills shipped with the CLI, globally for Claude Code, Codex and Grok |
| `paracord bug "<title>" --why TEXT` | Report a Paracord bug to the Paracord team |
| `paracord improve "<title>" --why TEXT` | Suggest a Paracord improvement |
| `paracord alias init [name]` | Add a shell shortcut for paracord (recommended: `p`) |

## License

MIT
