Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
Update JSON schemas with descriptions and draft-07
Dane Schneider263765f658ed
diff --git a/app/cli/schema/json-schemas/model-config.schema.json b/app/cli/schema/json-schemas/model-config.schema.jsonindex ed8cd41a..e4347132 100644--- a/app/cli/schema/json-schemas/model-config.schema.json+++ b/app/cli/schema/json-schemas/model-config.schema.json@@ -1,61 +1,77 @@{- "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$schema": "http://json-schema.org/draft-07/schema#","$id": "https://plandex.ai/schemas/model-config.schema.json","title": "Model Config","description": "Config for a model","type": "object","properties": {"modelId": {- "type": "string"+ "type": "string",+ "description": "Unique identifier for the model on the Plandex side.\n\nIt's distinct from the 'modelName', which is associated with a specific provider. Different modelIds can be used when the same model is called with different settings. Examples: 'openai/o3-high', 'openai/o3-low', 'anthropic/claude-sonnet-4'."},"publisher": {- "type": "string"+ "type": "string",+ "description": "The publisher of the model, e.g. 'OpenAI', 'Anthropic', 'Google', 'DeepSeek', etc.\n\nNot necessarily the same as the provider—for example, the 'google-vertex' provider serves models published by Google, but also models published by Anthropic and others."},"description": {- "type": "string"+ "type": "string",+ "description": "A human-readable description of the model, e.g. 'OpenAI o3'."},"defaultMaxConvoTokens": {- "type": "number"+ "type": "number",+ "description": "The default maximum number of conversation tokens that are allowed before Plandex starts using gradual summarization to shorten the conversation."},"maxTokens": {- "type": "number"+ "type": "number",+ "description": "The maximum number of input tokens the model can be called with."},"maxOutputTokens": {- "type": "number"+ "type": "number",+ "description": "The maximum number of output tokens the model can produce."},"reservedOutputTokens": {- "type": "number"+ "type": "number",+ "description": "How many tokens are set aside in context for the model to use in its output.\n\nIt's more of a realistic output limit than 'maxOutputTokens', since for some models, the hard maximum 'MaxTokens' is actually equal to the input limit, which would leave no room for input. The effective input limit is 'MaxTokens' - 'ReservedOutputTokens'.\n\nFor example, OpenAI o3 models have a MaxTokens of 200k and a MaxOutputTokens of 100k. But in practice, we are very unlikely to use all the output tokens, and we want to leave more space for input. So we set ReservedOutputTokens to 40k, allowing ~25k for reasoning tokens, as well as ~15k for real output tokens, which is enough for most use cases. The new effective input limit is therefore 200k - 40k = 160k.\n\nNote that these are not passed through as hard limits. So if we have a smaller amount of input (under 100k) the model could still use up to the full 100k output tokens if necessary."},"preferredOutputFormat": {"type": "string",+ "description": "The preferred output format for the model—currently either 'xml' or 'tool-call-json'.\n\nOpenAI models like JSON (and benefit from strict JSON schemas), while most other providers are unreliable for JSON generation and do better with XML, even when they claim to support JSON.","enum": ["xml","tool-call-json"]},"systemPromptDisabled": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the model's system prompt is disabled. This is used to disable the system prompt for the model. Some OpenAI models, for example, don't allow system prompts."},"roleParamsDisabled": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the model's role-based parameters (mainly temperature and topP) are disabled. Some OpenAI models, for example, don't allow changes to these parameters."},"stopDisabled": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the model's 'stop token' parameter is disabled. Some OpenAI models, for example, don't allow the 'stop token' parameter. When this is true, Plandex uses its own stop token implementation."},"predictedOutputEnabled": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the model's 'predicted output' parameter is enabled. This is used to enable predicted output for the model (currently only supported by OpenAI's gpt-4o). Not currently used by Plandex, but could be in the future."},"includeReasoning": {- "type": "boolean"+ "type": "boolean",+ "description": "For reasoning models, whether the reasoning should be included in the output. If set to false, the reasoning will be hidden from the user."},"reasoningBudget": {- "type": "number"+ "type": "number",+ "description": "For reasoning models, the maximum number of tokens that can be used for reasoning. This is used to limit the reasoning budget for the model.\n\nSome reasoning models use 'reasoningBudget' to control reasoning output (e.g. Anthropic Claude Sonnet 4, Google Gemini 2.5 Pro), while others use 'reasoningEffort' (e.g. OpenAI o3)."},"hasImageSupport": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the model is multi-modal and supports images in context."},"reasoningEffortEnabled": {- "type": "boolean"+ "type": "boolean",+ "description": "For reasoning models, whether the 'reasoningEffort' parameter is enabled. This is used in conjunction with 'reasoningEffort' to control the reasoning budget for the model.\n\nSome reasoning models use 'reasoningEffort' to control reasoning output (e.g. OpenAI o3), while others use 'reasoningBudget' (e.g. Anthropic Claude Sonnet 4, Google Gemini 2.5 Pro)."},"reasoningEffort": {"type": "string",@@ -63,16 +79,20 @@"low","medium","high"- ]+ ],+ "description": "For reasoning models that use 'reasoningEffort' to control reasoning output (e.g. OpenAI o3), this is the reasoning effort to use."},"supportsCacheControl": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the model supports cache control breakpoints for caching (e.g. Anthropic models). Models with implicit caching (e.g. OpenAI models) do not support this."},"singleMessageNoSystemPrompt": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the model rejects a single message that is a system prompt (e.g. Anthropic models)."},"tokenEstimatePaddingPct": {- "type": "number"+ "type": "number",+ "description": "The percentage of tokens to add to the token estimate, which uses the OpenAI tokenizer. This helps to account for other provider's tokenizers, which may be slightly different."},"providers": {"type": "array",@@ -80,13 +100,16 @@"type": "object","properties": {"provider": {+ "description": "The model provider. Use 'custom' for a provider that is not built-in.","$ref": "./definitions/model-providers.schema.json"},"customProvider": {- "type": "string"+ "type": "string",+ "description": "If the provider is 'custom', this is the name of the custom provider."},"modelName": {- "type": "string"+ "type": "string",+ "description": "The name of the model on the provider's side. It must exactly match the model name as it appears on the provider's website or documentation."}},"required": [diff --git a/app/cli/schema/json-schemas/model-pack-base-config.schema.json b/app/cli/schema/json-schemas/model-pack-base-config.schema.jsonnew file mode 100644index 00000000..05e723bf--- /dev/null+++ b/app/cli/schema/json-schemas/model-pack-base-config.schema.json@@ -0,0 +1,29 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "$id": "https://plandex.ai/schemas/model-pack-base-config.schema.json",+ "title": "Base Model Pack Config",+ "description": "Base config for a model pack",+ "type": "object",+ "allOf": [+ {+ "$ref": "./model-pack-roles.schema.json"+ }+ ],+ "properties": {+ "$schema": {+ "type": "string"+ },+ "name": {+ "type": "string",+ "description": "The name of the model pack"+ },+ "description": {+ "type": "string",+ "description": "The human-friendly description of the model pack"+ }+ },+ "required": [+ "name",+ "description"+ ]+}\ No newline at end of filediff --git a/app/cli/schema/json-schemas/model-pack-config.schema.json b/app/cli/schema/json-schemas/model-pack-config.schema.jsonindex b9425f5f..2e180d20 100644--- a/app/cli/schema/json-schemas/model-pack-config.schema.json+++ b/app/cli/schema/json-schemas/model-pack-config.schema.json@@ -1,32 +1,26 @@{- "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$schema": "http://json-schema.org/draft-07/schema#","$id": "https://plandex.ai/schemas/model-pack-config.schema.json","title": "Model Pack Config",- "description": "Config for a model pack",- "type": "object","allOf": [{- "$ref": "./model-pack-roles.schema.json"- },- {- "properties": {- "$schema": {- "type": "string"- },- "name": {- "type": "string",- "description": "The name of the model pack"- },- "description": {- "type": "string",- "description": "The description of the model pack"- }- },- "required": [- "name",- "description"- ],- "unevaluatedProperties": false+ "$ref": "./model-pack-base-config.schema.json"}- ]+ ],+ "properties": {+ "$schema": true,+ "name": true,+ "description": true,+ "localProvider": true,+ "planner": true,+ "coder": true,+ "architect": true,+ "summarizer": true,+ "builder": true,+ "wholeFileBuilder": true,+ "names": true,+ "commitMessages": true,+ "autoContinue": true+ },+ "additionalProperties": false}\ No newline at end of filediff --git a/app/cli/schema/json-schemas/model-pack-inline.schema.json b/app/cli/schema/json-schemas/model-pack-inline.schema.jsonindex 22b57702..53ed666a 100644--- a/app/cli/schema/json-schemas/model-pack-inline.schema.json+++ b/app/cli/schema/json-schemas/model-pack-inline.schema.json@@ -1,11 +1,27 @@{- "$schema": "https://json-schema.org/draft/2020-12/schema",- "$id": "https://plandex.ai/schemas/model-pack-roles.strict.schema.json",+ "$schema": "http://json-schema.org/draft-07/schema#",+ "$id": "https://plandex.ai/schemas/model-pack-inline.schema.json","title": "Inline Model Pack Config",+ "description": "Inline model pack config for plan model settings or default model settings","allOf": [{"$ref": "./model-pack-roles.schema.json"}],- "unevaluatedProperties": false+ "properties": {+ "$schema": true,+ "name": true,+ "description": true,+ "localProvider": true,+ "planner": true,+ "coder": true,+ "architect": true,+ "summarizer": true,+ "builder": true,+ "wholeFileBuilder": true,+ "names": true,+ "commitMessages": true,+ "autoContinue": true+ },+ "additionalProperties": false}\ No newline at end of filediff --git a/app/cli/schema/json-schemas/model-pack-roles.schema.json b/app/cli/schema/json-schemas/model-pack-roles.schema.jsonindex 5d38a880..6aa43529 100644--- a/app/cli/schema/json-schemas/model-pack-roles.schema.json+++ b/app/cli/schema/json-schemas/model-pack-roles.schema.json@@ -1,11 +1,12 @@{- "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$schema": "http://json-schema.org/draft-07/schema#","$id": "https://plandex.ai/schemas/model-pack-roles.schema.json","title": "Model Pack Roles","type": "object","description": "Config for a model pack's roles",- "$defs": {+ "definitions": {"roleRef": {+ "description": "Can be a string like 'openai/o3-high' or an object with model config if you want to defined role properties like temperature/topP, or fallbacks like 'largeContextFallback', 'largeOutputFallback', 'errorFallback', 'strongModel'","oneOf": [{"type": "string",@@ -26,40 +27,40 @@"$ref": "./definitions/local-providers.schema.json"},"planner": {- "description": "The planner model config",- "$ref": "#/$defs/roleRef"+ "description": "This is the 'main' role that replies to prompts and makes plans.",+ "$ref": "#/definitions/roleRef"},"coder": {- "description": "The coder model config",- "$ref": "#/$defs/roleRef"+ "description": "This role writes code to implement each step of the plan made by the 'planner' role during the planning stage.\n\nInstruction-following is important for this role as it needs to follow specific formatting rules.",+ "$ref": "#/definitions/roleRef"},"architect": {- "description": "The architect model config",- "$ref": "#/$defs/roleRef"+ "description": "When auto-context is enabled, this role makes a high-level plan using the project map, then determines what context to provide for the 'planner' role.",+ "$ref": "#/definitions/roleRef"},"summarizer": {- "description": "The plan summary model config",- "$ref": "#/$defs/roleRef"+ "description": "Summarizes conversations to stay under the limit set in the model's 'defaultMaxConvoTokens'.",+ "$ref": "#/definitions/roleRef"},"builder": {- "description": "The builder model config",- "$ref": "#/$defs/roleRef"+ "description": "Builds the proposed changes described by the `planner` role into pending file updates.",+ "$ref": "#/definitions/roleRef"},"wholeFileBuilder": {- "description": "The whole file builder model config",- "$ref": "#/$defs/roleRef"+ "description": "Builds the proposed changes described by the `planner` role into pending file updates by writing the entire file. Used as a fallback if more targeted edits fail.\n\nThis role is optional. It falls back to the `builder` role if not set.",+ "$ref": "#/definitions/roleRef"},"names": {- "description": "The namer model config",- "$ref": "#/$defs/roleRef"+ "description": "Gives automatically-generated names to plans and context.",+ "$ref": "#/definitions/roleRef"},"commitMessages": {- "description": "The commit message model config",- "$ref": "#/$defs/roleRef"+ "description": "Automatically generates commit messages for a set of pending updates.",+ "$ref": "#/definitions/roleRef"},"autoContinue": {- "description": "The execution status model config",- "$ref": "#/$defs/roleRef"+ "description": "Determines whether a plan is finished or should automatically continue based on the previous response.",+ "$ref": "#/definitions/roleRef"}},"required": [diff --git a/app/cli/schema/json-schemas/model-provider-config.schema.json b/app/cli/schema/json-schemas/model-provider-config.schema.jsonindex 9128086c..1e7be08e 100644--- a/app/cli/schema/json-schemas/model-provider-config.schema.json+++ b/app/cli/schema/json-schemas/model-provider-config.schema.json@@ -1,33 +1,44 @@{- "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$schema": "http://json-schema.org/draft-07/schema#","$id": "https://plandex.ai/schemas/model-provider-config.schema.json","title": "Model Provider Config",- "description": "Config for a model provider",+ "description": "Config for a custom model provider","type": "object","properties": {+ "name": {+ "type": "string",+ "description": "The name of the model provider. This is used to reference the model provider in a model's 'providers' array."+ },"baseUrl": {- "type": "string"+ "type": "string",+ "description": "The base URL for the model provider. This is used to construct the full URL for the model. For example, 'https://api.openai.com/v1' for OpenAI."},"skipAuth": {"type": "boolean",- "default": false+ "default": false,+ "description": "Whether to skip authentication for the model provider. If set to true, the model provider will not require an API key or other authentication. Mainly used for local models (ollama, etc.)."},"apiKeyEnvVar": {- "type": "string"+ "type": "string",+ "description": "The environment variable that contains the API key for the model provider. This is used to authenticate the model provider. For example, 'OPENAI_API_KEY' for OpenAI."},"extraAuthVars": {"type": "array",+ "description": "Extra authentication variables for the model provider. In some cases these are used for authentication in place of an API key (e.g. AWS Bedrock). In other cases, they provide additional data on top of the API key (AZURE_API_VERSION, OPENAI_ORG_ID, etc.).","items": {"type": "object","properties": {"var": {- "type": "string"+ "type": "string",+ "description": "The name of the environment variable that contains the authentication variable. For example, 'OPENAI_ORG_ID' for OpenAI."},"maybeJSONFilePath": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the variable can be a JSON file path. If set to true, the value can be read from a JSON file path *OR* an environment variable. For example, 'true' for Google Vertex's GOOGLE_APPLICATION_CREDENTIALS."},"required": {- "type": "boolean"+ "type": "boolean",+ "description": "Whether the variable is required. If set to true, the authentication variable is required. For example, 'true' for OpenAI."},"default": {"type": "string"diff --git a/app/cli/schema/json-schemas/model-role-config.schema.json b/app/cli/schema/json-schemas/model-role-config.schema.jsonindex e5924d5c..b23bbc98 100644--- a/app/cli/schema/json-schemas/model-role-config.schema.json+++ b/app/cli/schema/json-schemas/model-role-config.schema.json@@ -1,18 +1,34 @@{- "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$schema": "http://json-schema.org/draft-07/schema#","$id": "https://plandex.ai/schemas/model-role-config.schema.json","title": "Model Role Config","description": "Config for a defined model role within a model pack","type": "object",+ "definitions": {+ "roleRef": {+ "oneOf": [+ {+ "type": "string",+ "minLength": 1+ },+ {+ "$ref": "#"+ }+ ]+ }+ },"properties": {"modelId": {- "type": "string"+ "type": "string",+ "description": "The 'modelId' of the built-in or custom model to use for this role."},"temperature": {- "type": "number"+ "type": "number",+ "description": "The temperature to use for the model. This is used to control the randomness of the model's output. A sensible default is used by Plandex depending on the role, but you can override it here."},"topP": {- "type": "number"+ "type": "number",+ "description": "The topP to use for the model. This is used to control the randomness of the model's output. A sensible default is used by Plandex depending on the role, but you can override it here."},"reservedOutputTokens": {"type": "number"@@ -21,16 +37,16 @@"type": "number"},"largeContextFallback": {- "$ref": "./model-role-config.schema.json"+ "$ref": "#/definitions/roleRef"},"largeOutputFallback": {- "$ref": "./model-role-config.schema.json"+ "$ref": "#/definitions/roleRef"},"errorFallback": {- "$ref": "./model-role-config.schema.json"+ "$ref": "#/definitions/roleRef"},"strongModel": {- "$ref": "./model-role-config.schema.json"+ "$ref": "#/definitions/roleRef"}},"required": [diff --git a/app/cli/schema/json-schemas/models-input.schema.json b/app/cli/schema/json-schemas/models-input.schema.jsonindex b41f15cd..82155fde 100644--- a/app/cli/schema/json-schemas/models-input.schema.json+++ b/app/cli/schema/json-schemas/models-input.schema.json@@ -1,5 +1,5 @@{- "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$schema": "http://json-schema.org/draft-07/schema#","$id": "https://plandex.ai/schemas/models-input.schema.json","title": "Models Input","description": "Input schema for custom models, providers, and model packs",@@ -10,18 +10,21 @@},"models": {"type": "array",+ "description": "Custom models to import into Plandex. They can be referenced by 'modelId' in model packs.","items": {"$ref": "./model-config.schema.json"}},"providers": {"type": "array",+ "description": "Custom model providers to import into Plandex. They can be referenced in a custom model's 'providers' array.","items": {"$ref": "./model-provider-config.schema.json"}},"modelPacks": {"type": "array",+ "description": "Model packs to import into Plandex. These define which models to use for each of Plandex's roles.","items": {"$ref": "./model-pack-config.schema.json"}diff --git a/app/cli/schema/json-schemas/plan-config.schema.json b/app/cli/schema/json-schemas/plan-config.schema.jsonindex 8968cb6a..b31a8bcc 100644--- a/app/cli/schema/json-schemas/plan-config.schema.json+++ b/app/cli/schema/json-schemas/plan-config.schema.json@@ -1,5 +1,5 @@{- "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$schema": "http://json-schema.org/draft-07/schema#","$id": "https://plandex.ai/schemas/plan-config.schema.json","title": "Plan Config","description": "Config for a plan",