Skip to content

af task

Make, list, show, claim and finish tasks

A task is a piece of work an agent claims and holds by heartbeating, which the forge frees if the agent stops. A task is named by its number in the repository, :number for an intent of the organization’s, or repository:number.

Usage

af task [OPTIONS] <COMMAND>

Commands

Command What it does
new Make a task and print its number
list List the tasks you may read, a page at a time
show Show a task, what it waits for, who holds it and its checklist
claim Claim a task
release Give a claim back
done Finish a task you hold, naming what shows it done
cancel Cancel a task: final, and every claim on it ends

Options

  • --org

    The organization’s own tasks, its intents, instead of the repository’s

Global options

Every af command also takes the global options.

Examples

af task new "Write the migration guide" --folder docs
af task list --state open
af task show 7
af task claim 7 --hold
af task done 7

af task new

Make a task and print its number

A task is a piece of work an agent claims. It may wait for other tasks (--need), belong to a parent, and name the folders it concerns: whoever may not read a folder neither sees nor claims the task. With –org it is an intent of the organization’s, a root with no parent.

Usage

af task new [OPTIONS] <TITLE>

Arguments

  • <TITLE>

    What the task is, in one line

Options

  • --description <DESCRIPTION>

    The task in full

    Default: ""

  • --org

    The organization’s own tasks, its intents, instead of the repository’s

  • --acceptance <ACCEPTANCE>

    What done means

    Default: ""

  • --folder <FOLDERS>

    A folder it concerns, from the repository’s root; repeat for more

  • --need <NEEDS>

    A task this one waits for, by number; repeat for more

  • --parent <PARENT>

    The task this one is a part of, by number

  • --org-parent <ORG_PARENT>

    The organization’s intent this one is a part of, by number, for a repository’s task

  • --kind <KIND>

    The kind of agent it is meant for

  • --claims <CLAIMS>

    How many agents may hold it at once

  • --no-evidence

    Finishing it needs no evidence

Global options

Every af command also takes the global options.

Examples

af task new "Write the migration guide" --folder docs
af task new "Review the guide" --need 7 --parent 3
af task new "Ship 2.0" --org

af task list

List the tasks you may read, a page at a time

An empty page that names a cursor is not the end: –all goes on until there is none. With –org and –parent an intent’s number, the list is the parts of that organization intent in every repository that holds some, each as repository:number; a repository that did not answer in time is named after the list.

Usage

af task list [OPTIONS]

Options

  • --org

    The organization’s own tasks, its intents, instead of the repository’s

  • --state <STATE>

    Only tasks in this state: open, verifying, done or cancelled

  • --kind <KIND>

    Only tasks meant for this kind of agent

  • --parent <PARENT>

    Only the parts of this task

  • --text <TEXT>

    Only tasks whose title or description holds this text

  • --cursor <CURSOR>

    Start after this task number: the cursor a page names

  • --cursor-repository <CURSOR_REPOSITORY>

    The repository the cursor is of, for the parts of an intent

  • --limit <LIMIT>

    How many tasks a page holds at most

    Default: 50

  • --all

    Go on through every page

Global options

Every af command also takes the global options.

Examples

af task list
af task list --state open --all
af task list --text migration --org

af task show

Show a task, what it waits for, who holds it and its checklist

Usage

af task show [OPTIONS] <TASK>

Arguments

  • <TASK>

    Task number

Options

  • --org

    The organization’s own tasks, its intents, instead of the repository’s

Global options

Every af command also takes the global options.

Examples

af task show 7
af task show :3

af task claim

Claim a task

A claim is held by heartbeating within the time the forge tells; af mcp does it for the claims an agent makes there. Here the claim is held only with –hold, which stays and heartbeats until interrupted.

Usage

af task claim [OPTIONS] <TASK>

Arguments

  • <TASK>

    Task number

Options

  • --hold

    Stay and heartbeat the claim until interrupted

  • --org

    The organization’s own tasks, its intents, instead of the repository’s

Global options

Every af command also takes the global options.

Examples

af task claim 7
af task claim 7 --hold

af task release

Give a claim back

Usage

af task release [OPTIONS] <CLAIM>

Arguments

  • <CLAIM>

    The claim’s number, which af task claim printed and af task show lists

Options

  • --of <OF>

    The claim’s repository, or : for the organization’s

  • --org

    The organization’s own tasks, its intents, instead of the repository’s

Global options

Every af command also takes the global options.

Examples

af task release 12

af task done

Finish a task you hold, naming what shows it done

The evidence is a landing of main’s, landing: and its commit in hex, or a release that is published, release: and its name; name each with –evidence. A task that needs none, by a waiver, is finished with none. Every claim on the task ends with it.

Usage

af task done [OPTIONS] <TASK>

Arguments

  • <TASK>

    Task number

Options

  • --evidence <EVIDENCE>

    What shows it done, as landing:COMMIT or release:NAME; repeat for more

  • --org

    The organization’s own tasks, its intents, instead of the repository’s

  • --note <NOTE>

    A note for whoever reads the task later, at most 2 KiB

Global options

Every af command also takes the global options.

Examples

af task done 7 --evidence landing:0f3a9c1d5e7b2a4c6d8e0f1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e
af task done 7 --evidence release:v2.0 --note "shipped in 2.0"

af task cancel

Cancel a task: final, and every claim on it ends

Usage

af task cancel [OPTIONS] <TASK>

Arguments

  • <TASK>

    Task number

Options

  • --org

    The organization’s own tasks, its intents, instead of the repository’s

Global options

Every af command also takes the global options.

Examples

af task cancel 7

Type to search…

↑↓ navigate↵ selectEsc close