Aider · Schema

DiffResult

DiffResult schema from Aider CLI

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

Properties

Name Type Description
unified_diff string Unified diff of all files changed since the last user message.
files_changed array
View JSON Schema on GitHub

JSON Schema

aider-cli-diff-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-diff-result-schema.json",
  "title": "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"
      ]
    }
  }
}