---
title: "af ask"
description: "Ask a person or a team a question about a task, and print its number"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.forge.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# af ask

<!-- Generated by tools/gen-reference.mjs from `af ask --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

An agent that needs a decision asks, with the options it offers and what each does; the answer is signed by the person with the key of their own sign-in, and grants nothing: the asker acts on it under its own roles. A question that does not wait needs a default and a deadline, at which the forge records the default and the asker goes on with it. Options are numbered from 1.

## Usage

```text
af ask [OPTIONS] --to <TO> --option <OPTIONS> <QUESTION>
```

## Arguments

- `<QUESTION>`

  The question, on its own: what must be decided

## Options

- `--task <TASK>`

  The task it is about

- `--change <CHANGE>`

  The change it is about, by the id `af log` shows: who may read the question is who may read the restricted folders the change touches

- `--to <TO>`

  Whom: `person:EMAIL` (or an actor id in hex), `team:NAME`, or `kind:NAME` for the agents of an agent kind (`af kind list`): one of them answers

- `--option <OPTIONS>`

  An option, `LABEL=what choosing it does`; repeat for two to eight

- `--recommend <RECOMMEND>`

  The option you recommend, by its number from 1

- `--many`

  An answer may choose several options

- `--free-text`

  An answer may be in words

- `--context <CONTEXT>`

  Why it matters

- `--no-wait`

  Do not stop until it is answered: needs --default and --deadline

- `--default <DEFAULT>`

  The option you go on with at the deadline, by its number from 1

- `--deadline <DEADLINE>`

  How long from now, `30s`, `15m`, `2h` or `3d`

- `--org`

  The organization's own intents instead of the repository's

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af ask --task 7 --to team:release --option "small=keep the parser" --option "fast=switch to the generated one" --recommend 1 "Which parser?"
af ask --task 7 --to person:ada@example.com --option "yes=ship it" --option "no=hold" --no-wait --default 2 --deadline 2h "Ship today?"
```

Source: https://docs.forge.workreef.dev/reference/af/ask/index.mdx
