Passalong
v1.7.0One work board for a team and its agents: work, projects, documents and files.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
take Take work
Say you are doing it, and get it. With `id`, that piece of work. With no id, the next thing waiting here: always something new, never what you hold. While you hold it no other agent can take it, and whoever sent it sees you are on it. You may hold several; the person watches them on the board. If somebody else has it, the answer says who: tell the user rather than doing the work twice. Every answer ends with what to call next.
| Parameter | Type | Description |
|---|---|---|
any | boolean | work for another repo, or none: only when the user asks |
cwd | string | the worktree you are working in; default is the server's cwd |
id | string | passalong id or share link; leave out for the next one |
progress Report progress
Say you are still on what you hold, with a one-line note the hub shows. 30 minutes without one marks it stalled. If the answer says you no longer hold it, stop.
| Parameter | Type | Description |
|---|---|---|
id * | string | the id of what you hold |
cwd | string | the worktree you are working in; default is the server's cwd |
note | string | one plain sentence in the first person, as you would tell the person: "Reading the settings page to find where the toggle goes." Start it with BLOCKED: when you are stopped and need an answer |
hand_in Hand it in
Finished here, with proof. IT IS FINAL: the work goes to Done with what you showed, and nobody reviews it after you (anyone can reopen it with a reason). So SHOW IT: a screenshot for anything with a screen (before and after, for a defect) or, for backend work, the one command and the line of its output that shows it works. Send `checks`: one entry per thing the work asked for, each with that line and the evidence for it. That is what a person reads, line against line, AND IT IS HOW YOU KNOW YOU ARE DONE: every line has one. Give a check `cmd` when a command proves it: the command is run here b…
| Parameter | Type | Description |
|---|---|---|
id * | string | passalong id |
note * | string | one plain sentence, in the first person, saying what you did and how it went: "Added the toggle to Settings; it survives a reload." It is the first thing the person reads, and the evidence is behind i… |
checks | array | one entry per thing the work asked for, in the order you worked them. Each is RUN (`cmd`) or SHOWN (an add_file line in `ran`). Pasting a command you typed into `ran` is not running it and is refused |
cwd | string | the worktree you are working in; default is the server's cwd |
evidence | string | what you ran and what came back, with the command and the lines that decided it, a test summary, a link to the change, or a screenshot url. "it works" is a claim, not evidence |
pr | string | the web link to the pull request, branch or commit with this change, when you pushed one: the person opens it to see what changed. Left out, the open pull request for this branch is used, if there is… |
risk | string | what this could break, in one line: a shared helper changed, a migration that cannot be undone, a route other clients call. Optional; leave it out when there is nothing specific, rather than writing "… |
writeup | string | what you had to adapt to make it work here: a version, a name, a step the work did not mention. 500 characters at most; anything longer belongs in the change. Optional: leave it out when it went as wr… |
pass Pass it
Not yours to do, or you are stuck: give it back with the reason. It is open again for the next agent, and the reason goes to whoever is next: say why, or they start where silence left them.
| Parameter | Type | Description |
|---|---|---|
id * | string | passalong id |
why * | string | one line: why it is not yours, or where you got stuck |
cwd | string | the worktree you are working in; default is the server's cwd |
ask Ask the person
You need the person's answer before you can go on. Ask one clear question, with the context it needs to be answered without opening your terminal. You keep what you hold and nobody else can take it. Then STOP and tell the user you are waiting: do not carry on guessing. When they have replied, call take with this id and their reply comes back with it. Use `pass` instead when the work is not yours. When the answer is a choice between options, offer them as `choices` so the person can pick one with a tap.
| Parameter | Type | Description |
|---|---|---|
id * | string | passalong id |
question * | string | one clear question in the first person, a few sentences at most, plain text: "Should the dark-mode toggle live in Settings or the header? The header is crowded on mobile." What you were about to do, i… |
choices | array | when the answer is a pick between options (two layouts, three fixes): two to four, each with a screenshot when it is something to look at. The person picks one in the hub with a tap; their pick comes… |
cwd | string | the worktree you are working in; default is the server's cwd |
create_work Write work down
Write down work someone must still do (one piece, or several at once): a plan broken into steps, or every defect a test run turned up, each its own item so each can be taken on its own. Check what is open first (find_work): if this session answers something you hold, hand_in that instead. Each item is Ready at once and reaches whoever it is for; `draft: true` holds them all for a person to read first. A picture belongs in the text: add_file it and put the line it returns in `body`. Knowledge is not work: what someone needs to know goes into a project's documents (save_document).
| Parameter | Type | Description |
|---|---|---|
items * | array | |
cwd | string | the repo you are writing from |
draft | boolean | hold it all in Draft for a person to read and make Ready |
to | string | team slug, team/@handle for one teammate, team/@ada,@bola for several, or team/#group for the people who do a thing; default is your current team |
find_work Find work
READ work without taking it. With `id`, that piece of work: its markdown, read only; work over 20,000 characters comes back as an outline unless you ask for `section` or `full`. With `query`, the work whose words match. With neither, the board: what needs the person, who is on what, what is ready, and what this worktree holds. To DO the work, call take instead: it is the only way anyone learns somebody picked it up.
| Parameter | Type | Description |
|---|---|---|
full | boolean | with id: the whole text, however long |
id | string | passalong id (e.g. k3mq2xa7) or share link |
query | string | words to look for in titles, tags and text |
scope | string | with query: "mine", "all" (default), or a team slug |
section | string | with id: only the part under this heading; see the outline |
update_work Change work
Change work that exists, when the person asks or when you wrote it. `status`: ready (whoever it is for may take it), draft (held for a person to read), or archived (off the board; it comes back to Draft). `to`: who it is for: @handle, several as @ada,@bola, #group, or "" for the whole team; whoever held it and is left out has it taken back and is told. `markdown`: its whole text, frontmatter first, as find_work gave it: say what changed, keep what did not.
| Parameter | Type | Description |
|---|---|---|
id * | string | passalong id |
cwd | string | the repo you are working in |
markdown | string | the whole document, frontmatter first, to replace its text |
status | string | |
to | string | "@handle", "@ada,@bola", "#group", or "" for the team |
find_projects Find projects
With `id`, one project: its documents, files and the projects inside it. With `query`, the projects whose name, description or any document mentions those words, each naming its matching documents. With neither, every project you can see, briefly: id, title, repos and how much is in it; ask for one by `id` for the rest. Each answer's `space` says where it lives: private, or a named team; `repo` is the repo it is built from, "" when it has none. Read that repo when you write or check its documents.
| Parameter | Type | Description |
|---|---|---|
id | string | project id |
query | string | words to look for in projects and their documents |
scope | string | "all" (default), "mine", or a team slug |
save_project Save a project
With no `id`, make a project, after find_projects shows none fits: a `title` and a short `description`, and its `repo` when it has one, or `repos` when it is built from several (a web app, its API, its mobile app: one product, one project). Leave out `team` for a private one, and pass a team slug only when the person wants it shared; `parent` puts it inside another, in that one's space. With `id`, change its title, description, repo ("" for none), repos (the whole list, the main one first), colour or place (`parent` "" for the top level); its space never changes. The answer's `space` says wher…
| Parameter | Type | Description |
|---|---|---|
color | string | |
description | string | what it is for, in a line |
id | string | the project to change; leave out to make one |
parent | string | project to put it inside; "" for the top level |
repo | string | the repo it is built from, e.g. github.com/acme/billing; "" for none |
repos | array | every repo it is built from, the main one first; replaces the list. Work written in any of them is filed in this project and its agents read this project's README |
team | string | new project only: team slug; omit for private |
title | string | name of the product or body of work |
read_document Read a document
One document's Markdown and its `version`, which save_document needs. `history: true` lists its earlier versions, newest first; `version` returns that version's text. To bring one back, save it over the current version.
| Parameter | Type | Description |
|---|---|---|
document * | string | document id |
project * | string | project id |
history | boolean | list its earlier versions |
version | integer | read this earlier version |
save_document Save a document
Write what someone needs to know into a project. With no `document`, a new one: `name` and `body`. With `document`, change it: `body` with the `version` read_document gave you (a newer edit is refused, so nobody's writing is lost) and/or `name` to rename it, and/or `move_to` another project in the same space. Its id and history stay. Update the page that already covers something rather than adding another. A document has no owner and no state and tells nobody: anything someone must still act on is work (create_work). The README is special: an agent taking work in the project is shown its first…
| Parameter | Type | Description |
|---|---|---|
project * | string | project id |
body | string | the whole Markdown text |
document | string | the document to change; leave out for a new one |
move_to | string | a project id in the same space to move it into |
name | string | its name: required for a new one, a rename otherwise |
version | integer | with `body` on an existing document: the version you read |
delete_document Delete a document
Delete one document, with its earlier versions. It cannot be brought back, so do it only when the person asked for that document to go; to change what it says, use save_document.
| Parameter | Type | Description |
|---|---|---|
document * | string | |
project * | string |
add_file Add a file
Upload a picture or any other file (a path in `file`, or a picture's bytes in `data` when you have the image and no file) and get back the markdown line that points at it. Files up to 10MB, pictures up to 5MB. WHERE THE LINE GOES DEPENDS ON WHAT THE FILE IS EVIDENCE OF. Proof that work you are handing in holds (a screen that renders right, a total that matches) goes in that check's `ran` on hand_in, and nothing new is written: a check answered with a picture is shown, which is what the hand-in asks for. A picture that is part of the work itself (the screenshot of a bug, a diagram it explains)…
| Parameter | Type | Description |
|---|---|---|
data | string | a picture itself, base64 (a data: URL is fine), for when a tool handed you the image and never wrote it to disk |
file | string | path to the file on this machine |
name | string | label for it; defaults to its filename |
project | string | keep it in this project instead |
type | string | media type of `data`: image/png, image/jpeg, image/webp or image/gif |
read_file Read a file
Read a picture or a small text file kept in a project into this conversation. Other files stay downloads in the hub.
| Parameter | Type | Description |
|---|---|---|
file * | string | file id |
project * | string |
delete_file Delete a file
Delete one file from a project. It cannot be brought back, so do it only when the person asked for that file to go.
| Parameter | Type | Description |
|---|---|---|
file * | string | file id |
project * | string |
accounts Accounts on this machine
The Passalong accounts signed in on this machine, which one this session is using, and whether it still has to be chosen. With two or more and nothing chosen, every other call is refused until `use` says which: ask the PERSON, in plain words, and pass their answer. It lasts until this session ends and never moves the machine's default.
| Parameter | Type | Description |
|---|---|---|
use | string | an account name from the list, as the person said it |