Tuti APIAutopilot

Update Autopilot's tuning

Change Autopilot's Advanced tuning (owners only; where plans are sold, on a plan with Advanced tuning, 402 otherwise): any of its values. Values left out keep theirs

Needs a read + write key.

PATCH/code-changes-tuning

Authorization Bearer token

Body

application/json · object · required

  • propose.edit.maybenumber or string · nullable

    To fix an article: Lower: fewer articles left out of date, more fixes to dismiss. Higher: fewer to review, more missed. Inside the server's range (see codeChangesTuning.get), or null for the server's

    Show 2 options
    • Option 1number
    • Option 2string · at most 20 characters
  • propose.newArticle.maybenumber or string · nullable

    To write a new article: Lower: fewer missing articles, more duplicates. Higher: fewer duplicates, more gaps left. Inside the server's range (see codeChangesTuning.get), or null for the server's

    Show 2 options
    • Option 1number
    • Option 2string · at most 20 characters
  • redecide.whenNewArticlenumber or string · nullable

    To double-check a new article: Lower: more new articles double-checked, which costs more. Higher: cheaper, more duplicates get through. Inside the server's range (see codeChangesTuning.get), or null for the server's

    Show 2 options
    • Option 1number
    • Option 2string · at most 20 characters
  • decide.roundsnumber or string · nullable

    Lookups before deciding: More: fewer missed articles, costs more and takes longer. Fewer: cheaper, may miss articles. Inside the server's range (see codeChangesTuning.get), or null for the server's

    Show 2 options
    • Option 1number
    • Option 2string · at most 20 characters
  • write.roundsnumber or string · nullable

    Lookups before writing: More: text closer to what the product does, costs more. Fewer: cheaper, more to fix by hand. Inside the server's range (see codeChangesTuning.get), or null for the server's

    Show 2 options
    • Option 1number
    • Option 2string · at most 20 characters
  • decide.reasoningnumber or string · nullable

    Thinking: More: better decisions on hard changes, costs more and is slower. Off: cheapest and fastest. Inside the server's range (see codeChangesTuning.get), or null for the server's

    Show 2 options
    • Option 1number
    • Option 2string · at most 20 characters
  • context.diffCharsnumber or string · nullable

    Change shown up front: More: big changes understood at once, each request costs more. Less: cheaper; Autopilot looks up the rest for the docs, but what the changelog and posts hear about is decided from this much only (20,000 characters at most). Inside the server's range (see codeChangesTuning.get), or null for the server's

    Show 2 options
    • Option 1number
    • Option 2string · at most 20 characters

Responses

  • 200Autopilot's Advanced tuning

    application/json · object

    Autopilot's Advanced tuning

    • availablebooleanrequired

      Whether the project's plan includes Advanced tuning (always without plans): off it, its values are kept, not used

    • updatedBystring · nullablerequired

      Who changed the values last (their name; null once they're gone, or before anyone did)

    • updatedAtstring · nullablerequired

      When; null before anyone did

    • valuesobjectrequired

      Each value, by its path

      Show 7 properties
      • propose.edit.maybeobjectrequired

        To fix an article

        Show 5 properties
        • valuenumber or stringrequired

          What analyses use now: the project's value where its plan has tuning, else the server's

        • defaultnumber or stringrequired

          The server's default: its config file's autopilot section, else the one in code

        • savednumber or string · nullablerequired

          The project's own value, inside the server's range now; null for none

        • clampedbooleanrequired

          The project's value was outside the server's range, so it's used (and shown) at its end

        • rangeobjectrequired

          What it may be: a probability or a whole number from min to max, or one of options

          Show 2 options
          • Option 1object
            Show 3 properties
            • kindstringrequired

              One of"probability""integer"

            • minnumberrequired
            • maxnumberrequired
          • Option 2object
            Show 2 properties
            • kindstringrequired

              One of"options"

            • optionsarray of stringrequired
      • propose.newArticle.maybeobjectrequired

        To write a new article

        Show 5 properties
        • valuenumber or stringrequired

          What analyses use now: the project's value where its plan has tuning, else the server's

        • defaultnumber or stringrequired

          The server's default: its config file's autopilot section, else the one in code

        • savednumber or string · nullablerequired

          The project's own value, inside the server's range now; null for none

        • clampedbooleanrequired

          The project's value was outside the server's range, so it's used (and shown) at its end

        • rangeobjectrequired

          What it may be: a probability or a whole number from min to max, or one of options

          Show 2 options
          • Option 1object
            Show 3 properties
            • kindstringrequired

              One of"probability""integer"

            • minnumberrequired
            • maxnumberrequired
          • Option 2object
            Show 2 properties
            • kindstringrequired

              One of"options"

            • optionsarray of stringrequired
      • redecide.whenNewArticleobjectrequired

        To double-check a new article

        Show 5 properties
        • valuenumber or stringrequired

          What analyses use now: the project's value where its plan has tuning, else the server's

        • defaultnumber or stringrequired

          The server's default: its config file's autopilot section, else the one in code

        • savednumber or string · nullablerequired

          The project's own value, inside the server's range now; null for none

        • clampedbooleanrequired

          The project's value was outside the server's range, so it's used (and shown) at its end

        • rangeobjectrequired

          What it may be: a probability or a whole number from min to max, or one of options

          Show 2 options
          • Option 1object
            Show 3 properties
            • kindstringrequired

              One of"probability""integer"

            • minnumberrequired
            • maxnumberrequired
          • Option 2object
            Show 2 properties
            • kindstringrequired

              One of"options"

            • optionsarray of stringrequired
      • decide.roundsobjectrequired

        Lookups before deciding

        Show 5 properties
        • valuenumber or stringrequired

          What analyses use now: the project's value where its plan has tuning, else the server's

        • defaultnumber or stringrequired

          The server's default: its config file's autopilot section, else the one in code

        • savednumber or string · nullablerequired

          The project's own value, inside the server's range now; null for none

        • clampedbooleanrequired

          The project's value was outside the server's range, so it's used (and shown) at its end

        • rangeobjectrequired

          What it may be: a probability or a whole number from min to max, or one of options

          Show 2 options
          • Option 1object
            Show 3 properties
            • kindstringrequired

              One of"probability""integer"

            • minnumberrequired
            • maxnumberrequired
          • Option 2object
            Show 2 properties
            • kindstringrequired

              One of"options"

            • optionsarray of stringrequired
      • write.roundsobjectrequired

        Lookups before writing

        Show 5 properties
        • valuenumber or stringrequired

          What analyses use now: the project's value where its plan has tuning, else the server's

        • defaultnumber or stringrequired

          The server's default: its config file's autopilot section, else the one in code

        • savednumber or string · nullablerequired

          The project's own value, inside the server's range now; null for none

        • clampedbooleanrequired

          The project's value was outside the server's range, so it's used (and shown) at its end

        • rangeobjectrequired

          What it may be: a probability or a whole number from min to max, or one of options

          Show 2 options
          • Option 1object
            Show 3 properties
            • kindstringrequired

              One of"probability""integer"

            • minnumberrequired
            • maxnumberrequired
          • Option 2object
            Show 2 properties
            • kindstringrequired

              One of"options"

            • optionsarray of stringrequired
      • decide.reasoningobjectrequired

        Thinking

        Show 5 properties
        • valuenumber or stringrequired

          What analyses use now: the project's value where its plan has tuning, else the server's

        • defaultnumber or stringrequired

          The server's default: its config file's autopilot section, else the one in code

        • savednumber or string · nullablerequired

          The project's own value, inside the server's range now; null for none

        • clampedbooleanrequired

          The project's value was outside the server's range, so it's used (and shown) at its end

        • rangeobjectrequired

          What it may be: a probability or a whole number from min to max, or one of options

          Show 2 options
          • Option 1object
            Show 3 properties
            • kindstringrequired

              One of"probability""integer"

            • minnumberrequired
            • maxnumberrequired
          • Option 2object
            Show 2 properties
            • kindstringrequired

              One of"options"

            • optionsarray of stringrequired
      • context.diffCharsobjectrequired

        Change shown up front

        Show 5 properties
        • valuenumber or stringrequired

          What analyses use now: the project's value where its plan has tuning, else the server's

        • defaultnumber or stringrequired

          The server's default: its config file's autopilot section, else the one in code

        • savednumber or string · nullablerequired

          The project's own value, inside the server's range now; null for none

        • clampedbooleanrequired

          The project's value was outside the server's range, so it's used (and shown) at its end

        • rangeobjectrequired

          What it may be: a probability or a whole number from min to max, or one of options

          Show 2 options
          • Option 1object
            Show 3 properties
            • kindstringrequired

              One of"probability""integer"

            • minnumberrequired
            • maxnumberrequired
          • Option 2object
            Show 2 properties
            • kindstringrequired

              One of"options"

            • optionsarray of stringrequired
  • 400The request isn't valid: a field is missing, has the wrong type or is out of range, or the body isn't a JSON object. The message names the field.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 401No API key was sent, or it isn't valid: it was revoked, or whoever created it left the team.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 402The project's plan doesn't include this or is at its limit, it's out of AI credits, or a payment didn't go through. The message says what's needed.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 403It isn't allowed: the key is read-only, its creator isn't a project owner or admin where only they may, only a person can do it in the app, a setting is off, or someone's address isn't confirmed. The code says which.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 429Too many requests: past 600 a minute per key, try again after the seconds in the Retry-After header. Some operations have limits of their own (their description gives them), whose 429 has no Retry-After.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 500Something went wrong on Tuti's side. Try again in a moment.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

curl 'https://tuti.so/api/v1/code-changes-tuning' \
  --request PATCH \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "propose.edit.maybe": 0.4,
  "decide.rounds": 8,
  "decide.reasoning": null
}'
const response = await fetch("https://tuti.so/api/v1/code-changes-tuning", {
  method: "PATCH",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "propose.edit.maybe": 0.4,
    "decide.rounds": 8,
    "decide.reasoning": null
  }),
});
const text = await response.text();
import requests

response = requests.patch(
    "https://tuti.so/api/v1/code-changes-tuning",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"propose.edit.maybe\": 0.4,\n  \"decide.rounds\": 8,\n  \"decide.reasoning\": null\n}",
)
print(response.text)
{
  "available": true,
  "updatedBy": "Olive Owner",
  "updatedAt": "2026-11-18T09:30:00.000Z",
  "values": {
    "propose.edit.maybe": {
      "value": 0.5,
      "default": 0.5,
      "saved": null,
      "clamped": false,
      "range": {
        "kind": "probability",
        "min": 0,
        "max": 0.8
      }
    },
    "propose.newArticle.maybe": {
      "value": 0.5,
      "default": 0.5,
      "saved": null,
      "clamped": false,
      "range": {
        "kind": "probability",
        "min": 0,
        "max": 0.8
      }
    },
    "redecide.whenNewArticle": {
      "value": 0.2,
      "default": 0.2,
      "saved": null,
      "clamped": false,
      "range": {
        "kind": "probability",
        "min": 0,
        "max": 1
      }
    },
    "decide.rounds": {
      "value": 12,
      "default": 12,
      "saved": null,
      "clamped": false,
      "range": {
        "kind": "integer",
        "min": 1,
        "max": 50
      }
    },
    "write.rounds": {
      "value": 10,
      "default": 10,
      "saved": null,
      "clamped": false,
      "range": {
        "kind": "integer",
        "min": 1,
        "max": 50
      }
    },
    "decide.reasoning": {
      "value": "off",
      "default": "off",
      "saved": null,
      "clamped": false,
      "range": {
        "kind": "options",
        "options": [
          "off",
          "low",
          "medium",
          "high"
        ]
      }
    },
    "context.diffChars": {
      "value": 60000,
      "default": 60000,
      "saved": null,
      "clamped": false,
      "range": {
        "kind": "integer",
        "min": 1000,
        "max": 500000
      }
    }
  }
}
{
  "error": {
    "code": "invalid_input",
    "message": "title: Title is too short"
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "This API key isn't valid or was revoked"
  }
}
{
  "error": {
    "code": "plan_required",
    "message": "A custom domain needs the Pro plan. See Settings → Billing."
  }
}
{
  "error": {
    "code": "forbidden",
    "message": "This key can only read. Create a read + write key to change things."
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}