Aider · Schema

EditResult

EditResult schema from Aider CLI

AIAI Pair ProgrammingDeveloper ToolsCLICommand LineCoding AssistantCode GenerationOpen SourcePythonApache 2.0LLMGitBYO LLMTerminalPolyglotTree SitterRepository MapPair Programming

Properties

Name Type Description
files_changed array File paths modified by this edit.
commit_sha string Git commit SHA produced by auto-commit.
commit_message string Auto-generated conventional commit message.
tokens_in integer Prompt tokens sent to the LLM.
tokens_out integer Completion tokens received from the LLM.
View JSON Schema on GitHub

JSON Schema

aider-cli-edit-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aider/refs/heads/main/json-schema/aider-cli-edit-result-schema.json",
  "title": "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": "integer",
      "description": "Prompt tokens sent to the LLM.",
      "example": 4231
    },
    "tokens_out": {
      "type": "integer",
      "description": "Completion tokens received from the LLM.",
      "example": 1284
    }
  }
}