Aider · JSON Structure

Aider Cli Edit Request Structure

EditRequest schema from Aider CLI

Type: object Properties: 3 Required: 1
AIAI Pair ProgrammingDeveloper ToolsCLICommand LineCoding AssistantCode GenerationOpen SourcePythonApache 2.0LLMGitBYO LLMTerminalPolyglotTree SitterRepository MapPair Programming

EditRequest is a JSON Structure definition published by Aider, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

prompt edit_format auto_commit

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aider/refs/heads/main/json-structure/aider-cli-edit-request-structure.json",
  "name": "EditRequest",
  "description": "EditRequest schema from Aider CLI",
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "description": "Natural-language instruction to apply to the in-chat files.",
      "example": "Refactor the cache layer to use an LRU eviction policy and add unit tests."
    },
    "edit_format": {
      "type": "string",
      "description": "Edit format the LLM should produce.",
      "enum": [
        "diff",
        "whole",
        "udiff",
        "editor-diff"
      ],
      "example": "diff"
    },
    "auto_commit": {
      "type": "boolean",
      "description": "Whether to auto-commit edits via Git. Defaults to the launch-time setting.",
      "default": true,
      "example": true
    }
  },
  "required": [
    "prompt"
  ]
}