Skip to content

af explore

Explore alternative solutions to a question

An exploration poses a question and collects alternatives. Each alternative is an open change that never lands, and may change any file its author can read. The forge measures each alternative by running main’s .forge/evidence on its runners; you then promote one alternative or drop them all.

Usage

af explore [OPTIONS] <COMMAND>

Commands

Command What it does
new Start an exploration of a question and print its ID
add Add one of your open changes to an exploration as an alternative
measure Measure each of an exploration’s alternatives
show Show an exploration and compare its alternatives
promote Promote one alternative of an exploration
drop Drop all of an exploration’s alternatives
adopt Adopt a handoff from a promoted exploration

Global options

Every af command also takes the global options.

Examples

af explore new "Which parser is faster?"
af explore add 7 kxqpzvom
af explore measure 7
af explore show 7
af explore promote 7 kxqpzvom --reason "the faster parser"

af explore new

Start an exploration of a question and print its ID

Usage

af explore new [OPTIONS] <QUESTION>

Arguments

  • <QUESTION>

    Question the exploration answers

Global options

Every af command also takes the global options.

af explore add

Add one of your open changes to an exploration as an alternative

Usage

af explore add [OPTIONS] <ID> <CHANGE>

Arguments

  • <ID>

    Exploration ID

  • <CHANGE>

    Open change to add, by change ID or its start, or @ for the workspace’s change

Global options

Every af command also takes the global options.

af explore measure

Measure each of an exploration’s alternatives

Requests new evidence for every alternative: the forge runs main’s .forge/evidence on its runners.

Usage

af explore measure [OPTIONS] <ID>

Arguments

  • <ID>

    Exploration ID

Global options

Every af command also takes the global options.

af explore show

Show an exploration and compare its alternatives

Shows the question and state, and each alternative you can see, with the metrics from its latest evidence. Alternatives and evidence that involve paths you can’t read are counted but not shown.

Usage

af explore show [OPTIONS] <ID>

Arguments

  • <ID>

    Exploration ID

Global options

Every af command also takes the global options.

af explore promote

Promote one alternative of an exploration

The parts of the alternative that you may write become a change of your own. Any other parts become a handoff, which someone who may write them can adopt with af explore adopt.

Usage

af explore promote [OPTIONS] --reason <REASON> <ID> <CHANGE>

Arguments

  • <ID>

    Exploration ID

  • <CHANGE>

    Alternative to promote, by change ID or its start, or @ for the workspace’s change

Options

  • --reason <REASON>

    Why this alternative was chosen

Global options

Every af command also takes the global options.

af explore drop

Drop all of an exploration’s alternatives

Usage

af explore drop [OPTIONS] --reason <REASON> <ID>

Arguments

  • <ID>

    Exploration ID

Options

  • --reason <REASON>

    Why the alternatives were dropped

Global options

Every af command also takes the global options.

af explore adopt

Adopt a handoff from a promoted exploration

You must be able to write every path the handoff changes.

Usage

af explore adopt [OPTIONS] <CHANGE>

Arguments

  • <CHANGE>

    Handoff, by change ID or its start, or @ for the workspace’s change

Global options

Every af command also takes the global options.

Type to search…

↑↓ navigate↵ selectEsc close