Aider · JSON Structure

Aider Cli Diff Result Structure

DiffResult schema from Aider CLI

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

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

Properties

unified_diff files_changed

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-diff-result-structure.json",
  "name": "DiffResult",
  "description": "DiffResult schema from Aider CLI",
  "type": "object",
  "properties": {
    "unified_diff": {
      "type": "string",
      "description": "Unified diff of all files changed since the last user message.",
      "example": "--- a/src/main.py\n+++ b/src/main.py\n@@ -1,3 +1,3 @@\n-print('hi')\n+print('hello')\n"
    },
    "files_changed": {
      "type": "array",
      "items": {
        "type": "string",
        "example": "src/main.py"
      },
      "example": [
        "src/main.py"
      ]
    }
  }
}