{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TodoList",
  "description": "Example schema for `octomind run --schema todos.schema.json`. Constrains the model's reply to a structured TODO list. Requires a structured-output-capable model (e.g. an OpenAI-family model); Anthropic models are rejected up front. Strict-mode friendly: every property is `required` and `additionalProperties` is false, with optional fields expressed as a `null` union. Pair with `--format jsonl`: echo \"List TODO items in the auth module\" | octomind run developer:general --format jsonl --schema todos.schema.json",
  "type": "object",
  "additionalProperties": false,
  "required": ["todos"],
  "properties": {
    "todos": {
      "type": "array",
      "description": "The extracted TODO items, most important first.",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["title", "priority", "file"],
        "properties": {
          "title": {
            "type": "string",
            "description": "Short imperative description of the task."
          },
          "priority": {
            "type": "string",
            "enum": ["high", "medium", "low"],
            "description": "Relative urgency of the task."
          },
          "file": {
            "type": ["string", "null"],
            "description": "Path the task relates to, or null if not file-specific."
          }
        }
      }
    }
  }
}
