agent-ops-patterns / gallery / goose map / how it decides

How goose decides

In an ordinary goose session, plain code runs a fixed list of steps around the AI model's calls, and a plain text reply with no tool request ends the turn when nothing else is set up. A goal (/goal or /grind), a recipe's checks or required output, or a plugin's stop hook can each cause more work before the turn ends.

From aaif-goose/goose at source version cfb67d72, mapped 2026-11-02. Each answer links the place in the code where that decision is made; the full map has the rest.

How it decides it is done

Limits and memory

Other judgments

Three problems in the code

  1. 1. The --max-tool-repetitions flag has no effect

    goose's help says this flag limits consecutive identical tool calls. At this commit it does not: the command line accepts the value but never passes it to the repetition check, and the agent's standard setup gives that check no limit, so it never refuses a repeated call. goose's tracker has an open issue about how this limit should work, where contributors discuss wiring it up or removing it.

    Already tracked upstream (#12150), checked 2026-11-15.

    Where: cli.rs:126-132, services.rs:572, tool_monitor.rs:59-63. How we checked: the code was re-read at the source version named above; the sentences were checked by an independent AI reviewer from another company (OpenAI Codex, read-only) on 2026-11-08, in four rounds; each sentence it questioned was narrowed, removed or kept with the reason recorded.

  2. 2. By default, a failed review check still exits successfully

    On goose review's default path, a check or per-file pass that fails, panics or returns output that cannot be parsed adds no findings and prints a warning on stderr. If the review otherwise completes it exits successfully, with nothing on stdout or in the exit status to mark the failed check.

    No tracker issue found, checked 2026-11-08.

    Where: orchestrator.rs:124-150, orchestrator.rs:353-389, handler.rs:246-272. How we checked: the code was re-read at the source version named above; the sentences were checked by an independent AI reviewer from another company (OpenAI Codex, read-only) on 2026-11-08, in four rounds; each sentence it questioned was narrowed, removed or kept with the reason recorded.

  3. 3. No code reads a verdict on a /goal

    After /goal, goose says the agent will verify the goal before finishing. That check is left to the model: when code later clears the goal, it reads no verdict from the reply.

    No tracker issue found, checked 2026-11-08.

    Where: ops_retry.rs:120-123, ops_retry.rs:183-201, ops_retry.rs:219-221. How we checked: the code was re-read at the source version named above; the sentences were checked by an independent AI reviewer from another company (OpenAI Codex, read-only) on 2026-11-08, in four rounds; each sentence it questioned was narrowed, removed or kept with the reason recorded.

See the full map →

This card was taken from the published map of goose at one commit and covers only decisions shown there; it did not look at code outside the map's scope (goose's core crates, command line, built-in extensions and desktop app) or at the 15 decisions left out of that edition, and no goose code was run to make it.

Map: edition with 15 of 104 cards left out (published 2026-11-03) · taken from the full map · card data: gallery/cards/goose.json. Found something wrong? Use the correction form.