Aider · JSON Structure

Aider Cli Edit Result Structure

EditResult schema from Aider CLI

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

EditResult is a JSON Structure definition published by Aider, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

files_changed commit_sha commit_message tokens_in tokens_out

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-result-structure.json",
  "name": "EditResult",
  "description": "EditResult schema from Aider CLI",
  "type": "object",
  "properties": {
    "files_changed": {
      "type": "array",
      "description": "File paths modified by this edit.",
      "items": {
        "type": "string",
        "example": "src/main.py"
      },
      "example": [
        "src/main.py"
      ]
    },
    "commit_sha": {
      "type": "string",
      "description": "Git commit SHA produced by auto-commit.",
      "example": "a1b2c3d4e5f6"
    },
    "commit_message": {
      "type": "string",
      "description": "Auto-generated conventional commit message.",
      "example": "feat(cache): switch to LRU eviction policy"
    },
    "tokens_in": {
      "type": "int32",
      "description": "Prompt tokens sent to the LLM.",
      "example": 4231
    },
    "tokens_out": {
      "type": "int32",
      "description": "Completion tokens received from the LLM.",
      "example": 1284
    }
  }
}