Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

1.5 KB
Raw Blame
{
  "$id": "hiroute://contracts/cli/worker-dependencies-select-request.v1.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "else": {
    "else": {
      "required": [
        "adapter_path"
      ]
    },
    "if": {
      "properties": {
        "harness": {
          "const": "pi"
        }
      }
    },
    "then": {
      "properties": {
        "adapter_path": false
      },
      "required": [
        "node_path"
      ]
    }
  },
  "if": {
    "properties": {
      "harness": {
        "enum": [
          "qoder_cli",
          "deepseek_harness",
          "opencode"
        ]
      }
    }
  },
  "properties": {
    "adapter_path": {
      "maxLength": 4096,
      "minLength": 1,
      "type": "string"
    },
    "cli_path": {
      "maxLength": 4096,
      "minLength": 1,
      "type": "string"
    },
    "expected_selection_revision": {
      "maximum": 18446744073709551615,
      "minimum": 0,
      "type": "integer"
    },
    "harness": {
      "enum": [
        "codex_cli",
        "claude_code",
        "qoder_cli",
        "pi",
        "deepseek_harness",
        "opencode"
      ]
    },
    "node_path": {
      "maxLength": 4096,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "harness",
    "cli_path",
    "expected_selection_revision"
  ],
  "then": {
    "properties": {
      "adapter_path": false,
      "node_path": false
    }
  },
  "type": "object"
}