Skip to navigation

Print the improvement loop: the steps an AI assistant follows to improve your AI Agent. The loop lives in Ada. Ada renders it for the adacli release that you run and for the features of your Agent, so it shows only the steps that the Agent can run.

Commands

CommandWhat it does
loopPrints the loop, with every way to start it.
loop <method>Prints only one way to start the loop.

The methods are:

MethodStarts from
metricA custom metric.
descriptionA behavior that you describe.
conversationsConversations that you give.
signalUnresolved conversations, a low CSAT score, or a handoff reason.

Examples

Print the loop:

adacli acme loop

Print only the way that starts from a custom metric:

adacli acme loop metric

Get the loop as JSON, and check if adacli must be upgraded first:

adacli acme loop --json | jq '.upgrade_required'

Details

  • With --json, the command returns these fields:

    FieldDescription
    versionThe version of the loop.
    methodThe method you asked for, or null for every method.
    markdownThe loop, in Markdown.
    rendered_for_cliThe adacli version that Ada rendered the loop for.
    min_cli_versionThe oldest adacli version that can run the loop.
    upgrade_requiredtrue when your adacli is older than min_cli_version.
  • If your adacli is older than min_cli_version, markdown holds an upgrade notice in place of the loop. Run adacli upgrade, then run loop again.

  • An adacli release without the loop command exits with code 2. Upgrade adacli.

  • If you give an unknown method, the command fails, and the error lists the methods.

  • loop reads from your Agent, so it needs a login. If you are not logged in, it exits with code 3.

AI assistants run loop through the ada-optimize skill. The skill runs adacli <instance> loop --json and follows the markdown. To install the skill, see skills and AI assistants. The Ada MCP server serves the loop through its start_improvement_loop tool.

For every option, run adacli acme loop --help.

  • changesets: review, promote, or revert the change sets that the loop creates.
  • testing: manage the test cases that the loop runs.
  • skills: install the ada-optimize skill.