[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ARA5CS5GZBBF7H7PVKEZKW":3,"skill-same:01M7ARA5CS5GZBBF7H7PVKEZKW":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7ARA5CS5GZBBF7H7PVKEZKW","vspi-self",null,"Inspect, configure, or debug VSPi itself. Use whenever the user asks about its model, effort or vision capabilities, provider login, configuration, subagent setup, IPC disconnections, runtime paths, or current session history, even without explicitly asking for a skill.","HypoxanthineOvO\u002FVSPi","HypoxanthineOvO","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F95569749?v=4","01M7AR7HCHB63727Q4DSQBSJVD","Yunxiang He","01M7AR7HD8267Q4WKQJ4QZG1XW",6,"MIT","https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi\u002Fblob\u002Fmain\u002Fapps\u002Fvspi\u002Fskills\u002Fvspi-self\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vspi-self\ndescription: Inspect, configure, or debug VSPi itself. Use whenever the user asks about its model, effort or vision capabilities, provider login, configuration, subagent setup, IPC disconnections, runtime paths, or current session history, even without explicitly asking for a skill.\n---\n\n# Manage VSPi itself\n\nThis Skill covers VSPi's own configuration and runtime state. Kimi Code paths, commands and config files do not apply. Neither do `.pi\u002Fagent`, `PI_CODING_AGENT_DIR` or the old `.config\u002Fvspi\u002Fruntime-defaults.json`.\n\nGround rules for the whole Skill:\n\n- Read the current value first, change it with the CLI, then read it back. Report what actually became effective.\n- Credentials never pass through you. Do not put API keys, OAuth tokens or auth headers in command arguments, logs or replies. Do not read token stores, `auth.json` files or environment dumps. CLI output already redacts secrets, so do not work around that by dumping the raw config.\n- Interactive commands need a human terminal: `vspi login`, `vspi logout`, `vspi config` without arguments, `vspi init` and `vspi proxy`. Ask the user to run them. Everything else in this Skill is non-interactive and safe for you to run.\n\n## Paths\n\nThe current session:\n\n- ID: `${KIMI_SESSION_ID}`\n- Directory: `${KIMI_SESSION_DIR}`\n\nThe session directory has the form `\u003CVSPi home>\u002Fsessions\u002F\u003Cworkspace id>\u002F\u003Csession id>`. Derive VSPi home from it rather than guessing:\n\n```bash\nsession_dir='${KIMI_SESSION_DIR}'\nvspi_home=\"$(cd \"$session_dir\u002F..\u002F..\u002F..\" && pwd -P)\"\nVSPI_HOME=\"$vspi_home\" vspi inspect paths\nVSPI_HOME=\"$vspi_home\" vspi inspect session '${KIMI_SESSION_ID}'\n```\n\nPrefix every `vspi` call with `VSPI_HOME=\"$vspi_home\"`. Otherwise a session running under a custom home connects to the default daemon. `inspect paths` reports the daemon's actual `homeDir`, `configPath`, `sessionsDir`, `logsDir` and `runtimeLogPath`, and those values are authoritative. If the session placeholders above are empty, ask which runtime the user means. Do not pick the newest session.\n\nInside a session directory:\n\n- `agents\u002Fmain\u002Fwire.jsonl` is the main transcript.\n- `agents\u002F\u003Cagent-id>\u002Fwire.jsonl` is each subagent's transcript.\n- `state.json` is durable state.\n\nTreat all of these as read-only. Repairing a session needs explicit user authorization and an inactive session.\n\n## Read and change configuration\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi config get \u003Csection>        # effective value\nVSPI_HOME=\"$vspi_home\" vspi config inspect \u003Csection>    # default \u002F user \u002F memory layers\nVSPI_HOME=\"$vspi_home\" vspi config patch \u003Csection> '\u003Cjson>'\nVSPI_HOME=\"$vspi_home\" vspi config set \u003Csection> '\u003Cjson>'\nVSPI_HOME=\"$vspi_home\" vspi config diagnostics\n```\n\nSection names are camelCase in the CLI and snake_case in `config.toml`:\n\n| CLI section | TOML | Purpose |\n| --- | --- | --- |\n| `defaultModel` | `default_model` | main model alias |\n| `secondaryModel` | `[secondary_model]` | subagent model pool |\n| `subagent` | `[subagent]` | only `timeout_ms` |\n| `providers` | `[providers.\u003Cid>]` | endpoints and credential references |\n| `models` | `[models.\"provider\u002Fmodel\"]` | model declarations and overrides |\n| `thinking` | `[thinking]` | effort defaults, `model_efforts` per alias |\n| `proxy` | `[proxy]` | proxy for official vendor endpoints |\n| `loopControl` | `[loop_control]` | model retry budget |\n\n`patch` and `set` behave differently:\n\n- `patch` deep-merges the JSON into the section. Nested tables merge too, so `patch` can add or update keys but can never remove one. Arrays are replaced, not appended.\n- `set` replaces the whole section. Use it to remove entries or rewrite a map: read the section, edit the complete value, then write it back.\n\nBoth commands validate against the Core schema and write atomically. CLI JSON uses camelCase field names such as `defaultModel` and `timeoutMs`. Writing back a `[REDACTED]` value is rejected, so `set` cannot destroy hidden credentials.\n\nThe CLI changes apply to the running daemon immediately. Use `config reload` only after someone edits `config.toml` by hand. If a hand edit is really needed:\n\n1. Back up the file with a timestamp.\n2. Edit the copy.\n3. Replace the file and run `vspi config reload`.\n4. Restore the backup if reload fails.\n\nNever rewrite invalid TOML from scratch.\n\nPersisted defaults do not change an agent that is already running. The user switches the live model and effort with `\u002Fmodel` and `\u002Feffort`.\n\n## Providers, login and proxy\n\n### Declare a provider\n\nBuiltin provider types such as `openai-codex`, `anthropic`, `google` and `xai` come from the bundled catalog. You can declare one without credentials:\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi config patch providers '{\"openai-codex\":{\"type\":\"openai-codex\"}}'\nVSPI_HOME=\"$vspi_home\" vspi inspect models | grep '\"openai-codex\u002F'\n```\n\nThe provider's models then resolve in the catalog straight away. You can set up `defaultModel` or a subagent pool before login; requests fail until credentials exist.\n\n### Log in\n\nThe user runs `vspi login \u003Cprovider>` in their own terminal. After that, `config get providers` shows an `oauth` reference or a redacted `apiKey` on the entry.\n\n`vspi login openai-codex` reuses the backend machine's Codex ChatGPT login when it is valid. It reads `$CODEX_HOME\u002Fauth.json`, or `~\u002F.codex\u002Fauth.json` when `CODEX_HOME` is unset, and re-reads it on each request. VSPi does not copy the refresh token. If that file has no valid login, the command offers browser or device-code sign-in.\n\n### Proxy\n\n`[proxy].url` applies only to HTTPS requests to supported official vendor hosts: `api.openai.com`, `chatgpt.com`, `api.anthropic.com`, `generativelanguage.googleapis.com`, `aiplatform.googleapis.com`, regional `*-aiplatform.googleapis.com`, `api.x.ai`, `api.devin.ai`, `app.devin.ai` and `server.codeium.com`. Relays and custom base URLs ignore it.\n\nAn empty string disables this explicit account proxy; the backend's environment network settings may still apply. It does not guarantee direct access when the shell exports `HTTPS_PROXY`.\n\nThe usual symptom of a missing proxy is a request that fails after about 30 seconds with `UND_ERR_CONNECT_TIMEOUT`, while relay models keep working. Fix it with the user's actual proxy, which you can take from the shell's `HTTPS_PROXY` or ask for:\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi config set proxy '{\"url\":\"http:\u002F\u002F127.0.0.1:7890\"}'\n```\n\n### Add Gemini or any other new provider\n\n1. Choose a route:\n   - Official Gemini: the builtin `google` provider with an API key (it has no OAuth).\n   - A relay: a custom provider created by the user with `vspi config`. It uses the `google-genai`, `openai`, `openai_responses` or `anthropic` protocol, and its models are discovered remotely. `vspi config refresh \u003Cprovider>` re-reads that list.\n2. Declare the provider, and have the user log in or enter the key.\n3. Read the real model aliases from `vspi inspect models`. Never derive IDs from display names.\n4. For official Google hosts, check the proxy (see above).\n5. Make one real request (see \"Verify\" under Subagent models) before calling it done.\n\nThe Google native path does not yet have the byte-level idle watchdog that the Chat, Responses and Anthropic paths have.\n\n## Models and capabilities\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi inspect models          # resolved catalog VSPi actually uses\nVSPI_HOME=\"$vspi_home\" vspi config inspect models   # user-layer declarations\n```\n\n**Where the catalog comes from.** Builtin catalogs ship with VSPi, and VSPLab uses the bundled product catalog. Remote metadata does not overwrite those builtin names or capabilities. Devin additionally reads the signed-in account's dynamic catalog, with SWE 1.6 and SWE 1.6 Fast as fallbacks; thinking\u002Fcontext variants are grouped and Fusion\u002Frouter entries are hidden. `config refresh` updates discoverable custom providers, not the bundled defaults. Being listed in the catalog does not prove the account can use a model.\n\n**Overriding a builtin model.** Patch only the fields you need directly under the alias, for example `display_name` or `capabilities`. Removing a field restores the builtin value.\n\n- A legacy `overrides` block still wins over these fields. Inspect it first and update or remove anything that conflicts.\n- Custom providers with remote discovery keep using `overrides`.\n- Use canonical `thinking.efforts` and `thinking.defaultEffort`.\n- `capabilities` is an array and gets replaced, so include the existing entries.\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi config patch models '{\"provider\u002Fmodel\":{\"capabilities\":[\"image_in\",\"thinking\",\"tool_use\"]}}'\n```\n\n**Missing `tool_use`.** `tool_use` missing from a catalog entry only disables dynamically loaded tools. Normal tool calls still work.\n\n**Effort levels** differ per model. The baseline lives in core `effortProfiles.ts`:\n\n- Kimi K3 and GLM 5.3: low\u002Fhigh\u002Fmax, default max.\n- DeepSeek V4: low\u002Fhigh\u002Fmax, default high.\n- Qwen 3.8: low\u002Fmedium\u002Fxhigh.\n- GPT-6 family: low through max, default medium.\n- MiMo V2.5 and MiniMax M3: a single fixed thinking-on mode.\n\nThe `\u002Fmodel` picker saves the chosen effort per alias in `[thinking.model_efforts]`. Patch that map; do not overwrite the whole `thinking` section.\n\n**Stars and VSPLab defaults.**\n\n- `\u002Fmodel` groups entries by company, canonical model and provider source. Enter stages the default source; Right\u002FTab expands sources, and Effort confirmation applies the binding. Ctrl+P pins a model or source; Ctrl+O switches between common and all models. Search accepts `@provider`. The chosen source is remembered per canonical model; recent failures affect default selection, but failed requests never switch sources automatically. Common-model picks are unrelated to subagent membership and do not grant API access.\n- VSPLab sends GPT through Responses, Claude through Anthropic, and Kimi, GLM and DeepSeek through Chat Completions. An explicit model `protocol` overrides that.\n- `vsplab\u002Fdeepseek-flash` is DeepSeek V4.1 Flash. `deepseek-v4-flash` is a different entry.\n\n## Subagent models\n\n### How a spawn picks its model\n\nThe logic lives in `resolveSubagentBinding` (`packages\u002Fagent-core-v2\u002Fsrc\u002Fsession\u002Fsubagent\u002FconfigSection.ts`):\n\n- **Pool configured** (`[secondary_model.models]`): the caller passes `model` set to a pool alias or `primary`. Without it, the subagent uses `default_model`.\n- **No pool:** subagents inherit the caller's model, and `model` only accepts `primary`.\n- **`force = true`:** every subagent uses `default_model`, and the `model` parameter is removed. This mode cannot be combined with a `models` table.\n- **`fork`:** always inherits the caller's model and effort.\n\n`primary` is reserved and means the caller's own model and effort.\n\n### Effort\n\nPool models do not inherit the caller's effort. They use `[secondary_model].default_effort` when it is set; that value must be valid for every pool model. Otherwise each model uses its declared default. `[thinking.model_efforts]` does not apply to subagents.\n\n### Priority\n\nThere is no priority, weight or routing field. The calling model sees the pool in the `Agent` and `AgentSwarm` tool descriptions, one line per model in the form `- alias [default]: description`. The default comes first, then table order. Priority is therefore expressed through two things:\n\n- Which model is `default_model`. This is what runs when the caller does not choose.\n- The description, which is read by the calling model. Say what the model is for, when to prefer it over the others, and how to handle its weaknesses. Keep it to one or two sentences. Example:\n\n```json\n{\n  \"defaultModel\": \"openai-codex\u002Fgpt-6.1-sol\",\n  \"force\": false,\n  \"models\": {\n    \"openai-codex\u002Fgpt-6.1-sol\": \"Main implementer, same tier as Flash. Careful, has vision; use when reliability matters.\",\n    \"vsplab\u002Fdeepseek-flash\": \"Main implementer, same tier as Sol. Fast and cheap, more varied ideas; no vision.\",\n    \"openai-codex\u002Fgpt-6-astra\": \"Hard analysis, design and code review, difficult features. Tends to over-defend: give a clear scope and stop condition, then weigh its findings by real risk.\"\n  }\n}\n```\n\n### Edit the pool\n\nThe user can use `\u002Fsubagent-model` in the TUI:\n\n- Enter adds or removes a candidate.\n- Ctrl+D sets the default.\n- Ctrl+P edits the description.\n\nA forced configuration is read-only there.\n\nFrom the shell, run `config get secondaryModel`, build the complete new value, then `config set secondaryModel '\u003Cjson>'`. Use `set`, not `patch`, whenever entries are removed. Every alias must already resolve in the catalog when you write, so declare the provider first. Add only the models the user asked for; do not seed the pool from the starred models or a whole provider catalog. An empty pool means subagents inherit the main model.\n\nChanges apply to the next spawn, including in sessions that are already running. Subagents that are already running keep their model.\n\n### Verify\n\nA catalog entry does not prove that credentials or the network work. Spawn one small read-only subagent per pool model, pass `model`, and require a tool call (for example: read one file and return its first heading). Then interpret the result:\n\n- `provider.api_error` with 503 on one model, while another model on the same provider works: investigate model-specific upstream availability and routing; this alone does not rule out configuration errors.\n- `UND_ERR_CONNECT_TIMEOUT` on official hosts: check backend network reachability and the account proxy (see above).\n- Auth errors: check the selected provider and credential reference before asking the user to log in again.\n\n### Profiles\n\nSubagent profiles are Markdown files with YAML frontmatter. They live in three places:\n\n- `\u003CVSPi home>\u002Fagents\u002F`: user-wide.\n- `~\u002F.agents\u002Fagents\u002F`: portable across clients.\n- `\u003Cproject>\u002F.agents\u002Fagents\u002F`: per project.\n\nSupported frontmatter fields are `name` (kebab-case), `description` (required), `whenToUse`, `tools`, `disallowedTools`, `subagents` (restricts which profiles this one may spawn) and `override`. There is no `model` field: the model is chosen per spawn, so put model guidance in the pool descriptions. Start a new session if a new profile does not appear.\n\n```markdown\n---\nname: code-reviewer\ndescription: Review focused code changes and report concrete defects.\ntools: Read, Grep, Glob\n---\n\nReview the requested change. Lead with actionable findings and cite exact files and lines.\n```\n\n### Timeout\n\nThe subagent task timeout is `[subagent].timeout_ms` or `KIMI_SUBAGENT_TIMEOUT_MS`. The default is 2 hours, and `0` disables the task deadline. It is separate from the model retry budget. `\u002Fagents` shows the actual error and deadline; read them before you blame a timeout.\n\n## Diagnose VSPi\n\n```bash\nvspi --version\nVSPI_HOME=\"$vspi_home\" vspi daemon status\nVSPI_HOME=\"$vspi_home\" vspi inspect paths\nVSPI_HOME=\"$vspi_home\" vspi config diagnostics\nVSPI_HOME=\"$vspi_home\" vspi inspect session '${KIMI_SESSION_ID}'\n```\n\n`inspect` and config reads connect only to an existing daemon. They never start, restart or reload anything. If IPC is unreachable, report that first.\n\nFor session history:\n\n- Read a bounded tail of the exact transcript, around 100 lines, and parse each JSONL line separately. A live writer may leave an incomplete last line.\n- Widen the range only if the event you need is missing.\n- Only look at subagents of this session that are relevant to the problem.\n- Do not search other sessions or workspaces unless the user names the exact session.\n\nRead only the relevant time range of `runtimeLogPath`. Logs and transcripts can contain secrets and private prompts, so quote only what matters and redact credentials. Keep the observed facts separate from the repair you propose.\n\n## Runtime behavior worth knowing\n\n**Model retries** (`[loop_control]`):\n\n- `maxAttemptsPerStep = 3`, counting the first request.\n- `retryBudgetMs = 120000` after the first transient failure.\n- `requestIdleTimeoutMs = 300000` covers missing protocol progress. Thinking, tool and heartbeat bytes count as progress.\n- A healthy stream is not cut at two minutes. An over-budget `Retry-After` stops recovery.\n- Partial text from a failed attempt is discarded, and tools that already ran are not replayed.\n- Do not raise limits as a blind fix.\n\n**Stream errors:**\n\n- `provider.stream_parse_error`: a complete SSE event contained invalid JSON. Recovery is bounded, and events over 4 MiB are not retried.\n- `provider.protocol_error`: the response does not match the requested protocol. Check the protocol and endpoint instead of retrying.\n- `provider.incomplete_stream`: still eligible for bounded recovery.\n\n**Permissions:** `exec` defaults to Auto, which applies explicit deny rules and is not a sandbox. `--permission auto|manual|yolo|inherit` selects the mode, and a resume uses `inherit` by default. An override on resume affects only that turn. A rejected approval stops the turn. An HTTP bridge that only submits text should omit `permission_mode`, because that field changes the stored mode.\n\n**Daemon lifecycle:**\n\n- The daemon exits after about 5 idle seconds. Idle means no clients, turns, tasks, goals or scheduled work. `VSPI_DAEMON_IDLE_TIMEOUT_MS=0` keeps it running.\n- Do not stop or restart a daemon that has active sessions unless the user approves.\n- `vspi daemon stop --force-legacy` is only for old instances, after the user confirms their tasks finished.\n- `vspi daemon recover --confirm-stopped` handles a corrupt leftover lock. Use it only after confirming that no daemon for this home is alive.\n\n**Updates:**\n\n- The user runs `vspi update` from their own terminal after work has finished. It backs up the package and config and refuses to replace a busy runtime.\n- The daemon runs from an immutable build snapshot, so never update it from a model-run shell.\n- `\u002Freload` does not hand off a TTY. To refresh a client, the user exits and runs `vspi continue`.\n\n**Config migration:** the 2.5.1 pre-bootstrap migration backs up config, retires expired model references and drops fields identical to shipped defaults. It keeps API keys, endpoints, `overrides`, `model_efforts` and `secondary_model`. Invalid TOML stops startup and leaves the file untouched. Never tell users to delete their home directory.\n\n**Sensitive files:** update backups, migration backups, logs and heap snapshots can all contain credentials.\n\n**Feedback:**\n\n- `\u002Ffeedback \u003Cdescription>` and `vspi feedback` never upload automatically.\n- The user chooses the context range and reviews the redacted package with `preview`. `submit --confirm-sha256` requires that same unchanged hash after human approval.\n- Edits go through `feedback redact` and a fresh preview.\n- Identity tokens are cached under `VSPI_HOME\u002Ffeedback\u002Fidentities\u002F`; do not read them.\n\n**Candidate distribution:** requires `KIMI_CODE_EXPERIMENTAL_VSPI_DISTRIBUTION=true` and a verified Ed25519 public key in `VSPI_HOME\u002Fdistribution.json`. Never disable TLS or signature checks, and never treat a feedback message as permission to install or publish.\n\n**History:** `\u002Fhistory` loads older durable messages, and `\u002Fhistory latest` returns to the recent window. A bounded preview does not mean the transcript was truncated on disk. IPC payload limits are intentional, so page through results instead of removing the limits.\n","# Manage VSPi itself\n\nThis Skill covers VSPi's own configuration and runtime state. Kimi Code paths, commands and config files do not apply. Neither do `.pi\u002Fagent`, `PI_CODING_AGENT_DIR` or the old `.config\u002Fvspi\u002Fruntime-defaults.json`.\n\nGround rules for the whole Skill:\n\n- Read the current value first, change it with the CLI, then read it back. Report what actually became effective.\n- Credentials never pass through you. Do not put API keys, OAuth tokens or auth headers in command arguments, logs or replies. Do not read token stores, `auth.json` files or environment dumps. CLI output already redacts secrets, so do not work around that by dumping the raw config.\n- Interactive commands need a human terminal: `vspi login`, `vspi logout`, `vspi config` without arguments, `vspi init` and `vspi proxy`. Ask the user to run them. Everything else in this Skill is non-interactive and safe for you to run.\n\n## Paths\n\nThe current session:\n\n- ID: `${KIMI_SESSION_ID}`\n- Directory: `${KIMI_SESSION_DIR}`\n\nThe session directory has the form `\u003CVSPi home>\u002Fsessions\u002F\u003Cworkspace id>\u002F\u003Csession id>`. Derive VSPi home from it rather than guessing:\n\n```bash\nsession_dir='${KIMI_SESSION_DIR}'\nvspi_home=\"$(cd \"$session_dir\u002F..\u002F..\u002F..\" && pwd -P)\"\nVSPI_HOME=\"$vspi_home\" vspi inspect paths\nVSPI_HOME=\"$vspi_home\" vspi inspect session '${KIMI_SESSION_ID}'\n```\n\nPrefix every `vspi` call with `VSPI_HOME=\"$vspi_home\"`. Otherwise a session running under a custom home connects to the default daemon. `inspect paths` reports the daemon's actual `homeDir`, `configPath`, `sessionsDir`, `logsDir` and `runtimeLogPath`, and those values are authoritative. If the session placeholders above are empty, ask which runtime the user means. Do not pick the newest session.\n\nInside a session directory:\n\n- `agents\u002Fmain\u002Fwire.jsonl` is the main transcript.\n- `agents\u002F\u003Cagent-id>\u002Fwire.jsonl` is each subagent's transcript.\n- `state.json` is durable state.\n\nTreat all of these as read-only. Repairing a session needs explicit user authorization and an inactive session.\n\n## Read and change configuration\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi config get \u003Csection>        # effective value\nVSPI_HOME=\"$vspi_home\" vspi config inspect \u003Csection>    # default \u002F user \u002F memory layers\nVSPI_HOME=\"$vspi_home\" vspi config patch \u003Csection> '\u003Cjson>'\nVSPI_HOME=\"$vspi_home\" vspi config set \u003Csection> '\u003Cjson>'\nVSPI_HOME=\"$vspi_home\" vspi config diagnostics\n```\n\nSection names are camelCase in the CLI and snake_case in `config.toml`:\n\n| CLI section | TOML | Purpose |\n| --- | --- | --- |\n| `defaultModel` | `default_model` | main model alias |\n| `secondaryModel` | `[secondary_model]` | subagent model pool |\n| `subagent` | `[subagent]` | only `timeout_ms` |\n| `providers` | `[providers.\u003Cid>]` | endpoints and credential references |\n| `models` | `[models.\"provider\u002Fmodel\"]` | model declarations and overrides |\n| `thinking` | `[thinking]` | effort defaults, `model_efforts` per alias |\n| `proxy` | `[proxy]` | proxy for official vendor endpoints |\n| `loopControl` | `[loop_control]` | model retry budget |\n\n`patch` and `set` behave differently:\n\n- `patch` deep-merges the JSON into the section. Nested tables merge too, so `patch` can add or update keys but can never remove one. Arrays are replaced, not appended.\n- `set` replaces the whole section. Use it to remove entries or rewrite a map: read the section, edit the complete value, then write it back.\n\nBoth commands validate against the Core schema and write atomically. CLI JSON uses camelCase field names such as `defaultModel` and `timeoutMs`. Writing back a `[REDACTED]` value is rejected, so `set` cannot destroy hidden credentials.\n\nThe CLI changes apply to the running daemon immediately. Use `config reload` only after someone edits `config.toml` by hand. If a hand edit is really needed:\n\n1. Back up the file with a timestamp.\n2. Edit the copy.\n3. Replace the file and run `vspi config reload`.\n4. Restore the backup if reload fails.\n\nNever rewrite invalid TOML from scratch.\n\nPersisted defaults do not change an agent that is already running. The user switches the live model and effort with `\u002Fmodel` and `\u002Feffort`.\n\n## Providers, login and proxy\n\n### Declare a provider\n\nBuiltin provider types such as `openai-codex`, `anthropic`, `google` and `xai` come from the bundled catalog. You can declare one without credentials:\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi config patch providers '{\"openai-codex\":{\"type\":\"openai-codex\"}}'\nVSPI_HOME=\"$vspi_home\" vspi inspect models | grep '\"openai-codex\u002F'\n```\n\nThe provider's models then resolve in the catalog straight away. You can set up `defaultModel` or a subagent pool before login; requests fail until credentials exist.\n\n### Log in\n\nThe user runs `vspi login \u003Cprovider>` in their own terminal. After that, `config get providers` shows an `oauth` reference or a redacted `apiKey` on the entry.\n\n`vspi login openai-codex` reuses the backend machine's Codex ChatGPT login when it is valid. It reads `$CODEX_HOME\u002Fauth.json`, or `~\u002F.codex\u002Fauth.json` when `CODEX_HOME` is unset, and re-reads it on each request. VSPi does not copy the refresh token. If that file has no valid login, the command offers browser or device-code sign-in.\n\n### Proxy\n\n`[proxy].url` applies only to HTTPS requests to supported official vendor hosts: `api.openai.com`, `chatgpt.com`, `api.anthropic.com`, `generativelanguage.googleapis.com`, `aiplatform.googleapis.com`, regional `*-aiplatform.googleapis.com`, `api.x.ai`, `api.devin.ai`, `app.devin.ai` and `server.codeium.com`. Relays and custom base URLs ignore it.\n\nAn empty string disables this explicit account proxy; the backend's environment network settings may still apply. It does not guarantee direct access when the shell exports `HTTPS_PROXY`.\n\nThe usual symptom of a missing proxy is a request that fails after about 30 seconds with `UND_ERR_CONNECT_TIMEOUT`, while relay models keep working. Fix it with the user's actual proxy, which you can take from the shell's `HTTPS_PROXY` or ask for:\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi config set proxy '{\"url\":\"http:\u002F\u002F127.0.0.1:7890\"}'\n```\n\n### Add Gemini or any other new provider\n\n1. Choose a route:\n   - Official Gemini: the builtin `google` provider with an API key (it has no OAuth).\n   - A relay: a custom provider created by the user with `vspi config`. It uses the `google-genai`, `openai`, `openai_responses` or `anthropic` protocol, and its models are discovered remotely. `vspi config refresh \u003Cprovider>` re-reads that list.\n2. Declare the provider, and have the user log in or enter the key.\n3. Read the real model aliases from `vspi inspect models`. Never derive IDs from display names.\n4. For official Google hosts, check the proxy (see above).\n5. Make one real request (see \"Verify\" under Subagent models) before calling it done.\n\nThe Google native path does not yet have the byte-level idle watchdog that the Chat, Responses and Anthropic paths have.\n\n## Models and capabilities\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi inspect models          # resolved catalog VSPi actually uses\nVSPI_HOME=\"$vspi_home\" vspi config inspect models   # user-layer declarations\n```\n\n**Where the catalog comes from.** Builtin catalogs ship with VSPi, and VSPLab uses the bundled product catalog. Remote metadata does not overwrite those builtin names or capabilities. Devin additionally reads the signed-in account's dynamic catalog, with SWE 1.6 and SWE 1.6 Fast as fallbacks; thinking\u002Fcontext variants are grouped and Fusion\u002Frouter entries are hidden. `config refresh` updates discoverable custom providers, not the bundled defaults. Being listed in the catalog does not prove the account can use a model.\n\n**Overriding a builtin model.** Patch only the fields you need directly under the alias, for example `display_name` or `capabilities`. Removing a field restores the builtin value.\n\n- A legacy `overrides` block still wins over these fields. Inspect it first and update or remove anything that conflicts.\n- Custom providers with remote discovery keep using `overrides`.\n- Use canonical `thinking.efforts` and `thinking.defaultEffort`.\n- `capabilities` is an array and gets replaced, so include the existing entries.\n\n```bash\nVSPI_HOME=\"$vspi_home\" vspi config patch models '{\"provider\u002Fmodel\":{\"capabilities\":[\"image_in\",\"thinking\",\"tool_use\"]}}'\n```\n\n**Missing `tool_use`.** `tool_use` missing from a catalog entry only disables dynamically loaded tools. Normal tool calls still work.\n\n**Effort levels** differ per model. The baseline lives in core `effortProfiles.ts`:\n\n- Kimi K3 and GLM 5.3: low\u002Fhigh\u002Fmax, default max.\n- DeepSeek V4: low\u002Fhigh\u002Fmax, default high.\n- Qwen 3.8: low\u002Fmedium\u002Fxhigh.\n- GPT-6 family: low through max, default medium.\n- MiMo V2.5 and MiniMax M3: a single fixed thinking-on mode.\n\nThe `\u002Fmodel` picker saves the chosen effort per alias in `[thinking.model_efforts]`. Patch that map; do not overwrite the whole `thinking` section.\n\n**Stars and VSPLab defaults.**\n\n- `\u002Fmodel` groups entries by company, canonical model and provider source. Enter stages the default source; Right\u002FTab expands sources, and Effort confirmation applies the binding. Ctrl+P pins a model or source; Ctrl+O switches between common and all models. Search accepts `@provider`. The chosen source is remembered per canonical model; recent failures affect default selection, but failed requests never switch sources automatically. Common-model picks are unrelated to subagent membership and do not grant API access.\n- VSPLab sends GPT through Responses, Claude through Anthropic, and Kimi, GLM and DeepSeek through Chat Completions. An explicit model `protocol` overrides that.\n- `vsplab\u002Fdeepseek-flash` is DeepSeek V4.1 Flash. `deepseek-v4-flash` is a different entry.\n\n## Subagent models\n\n### How a spawn picks its model\n\nThe logic lives in `resolveSubagentBinding` (`packages\u002Fagent-core-v2\u002Fsrc\u002Fsession\u002Fsubagent\u002FconfigSection.ts`):\n\n- **Pool configured** (`[secondary_model.models]`): the caller passes `model` set to a pool alias or `primary`. Without it, the subagent uses `default_model`.\n- **No pool:** subagents inherit the caller's model, and `model` only accepts `primary`.\n- **`force = true`:** every subagent uses `default_model`, and the `model` parameter is removed. This mode cannot be combined with a `models` table.\n- **`fork`:** always inherits the caller's model and effort.\n\n`primary` is reserved and means the caller's own model and effort.\n\n### Effort\n\nPool models do not inherit the caller's effort. They use `[secondary_model].default_effort` when it is set; that value must be valid for every pool model. Otherwise each model uses its declared default. `[thinking.model_efforts]` does not apply to subagents.\n\n### Priority\n\nThere is no priority, weight or routing field. The calling model sees the pool in the `Agent` and `AgentSwarm` tool descriptions, one line per model in the form `- alias [default]: description`. The default comes first, then table order. Priority is therefore expressed through two things:\n\n- Which model is `default_model`. This is what runs when the caller does not choose.\n- The description, which is read by the calling model. Say what the model is for, when to prefer it over the others, and how to handle its weaknesses. Keep it to one or two sentences. Example:\n\n```json\n{\n  \"defaultModel\": \"openai-codex\u002Fgpt-6.1-sol\",\n  \"force\": false,\n  \"models\": {\n    \"openai-codex\u002Fgpt-6.1-sol\": \"Main implementer, same tier as Flash. Careful, has vision; use when reliability matters.\",\n    \"vsplab\u002Fdeepseek-flash\": \"Main implementer, same tier as Sol. Fast and cheap, more varied ideas; no vision.\",\n    \"openai-codex\u002Fgpt-6-astra\": \"Hard analysis, design and code review, difficult features. Tends to over-defend: give a clear scope and stop condition, then weigh its findings by real risk.\"\n  }\n}\n```\n\n### Edit the pool\n\nThe user can use `\u002Fsubagent-model` in the TUI:\n\n- Enter adds or removes a candidate.\n- Ctrl+D sets the default.\n- Ctrl+P edits the description.\n\nA forced configuration is read-only there.\n\nFrom the shell, run `config get secondaryModel`, build the complete new value, then `config set secondaryModel '\u003Cjson>'`. Use `set`, not `patch`, whenever entries are removed. Every alias must already resolve in the catalog when you write, so declare the provider first. Add only the models the user asked for; do not seed the pool from the starred models or a whole provider catalog. An empty pool means subagents inherit the main model.\n\nChanges apply to the next spawn, including in sessions that are already running. Subagents that are already running keep their model.\n\n### Verify\n\nA catalog entry does not prove that credentials or the network work. Spawn one small read-only subagent per pool model, pass `model`, and require a tool call (for example: read one file and return its first heading). Then interpret the result:\n\n- `provider.api_error` with 503 on one model, while another model on the same provider works: investigate model-specific upstream availability and routing; this alone does not rule out configuration errors.\n- `UND_ERR_CONNECT_TIMEOUT` on official hosts: check backend network reachability and the account proxy (see above).\n- Auth errors: check the selected provider and credential reference before asking the user to log in again.\n\n### Profiles\n\nSubagent profiles are Markdown files with YAML frontmatter. They live in three places:\n\n- `\u003CVSPi home>\u002Fagents\u002F`: user-wide.\n- `~\u002F.agents\u002Fagents\u002F`: portable across clients.\n- `\u003Cproject>\u002F.agents\u002Fagents\u002F`: per project.\n\nSupported frontmatter fields are `name` (kebab-case), `description` (required), `whenToUse`, `tools`, `disallowedTools`, `subagents` (restricts which profiles this one may spawn) and `override`. There is no `model` field: the model is chosen per spawn, so put model guidance in the pool descriptions. Start a new session if a new profile does not appear.\n\n```markdown\n---\nname: code-reviewer\ndescription: Review focused code changes and report concrete defects.\ntools: Read, Grep, Glob\n---\n\nReview the requested change. Lead with actionable findings and cite exact files and lines.\n```\n\n### Timeout\n\nThe subagent task timeout is `[subagent].timeout_ms` or `KIMI_SUBAGENT_TIMEOUT_MS`. The default is 2 hours, and `0` disables the task deadline. It is separate from the model retry budget. `\u002Fagents` shows the actual error and deadline; read them before you blame a timeout.\n\n## Diagnose VSPi\n\n```bash\nvspi --version\nVSPI_HOME=\"$vspi_home\" vspi daemon status\nVSPI_HOME=\"$vspi_home\" vspi inspect paths\nVSPI_HOME=\"$vspi_home\" vspi config diagnostics\nVSPI_HOME=\"$vspi_home\" vspi inspect session '${KIMI_SESSION_ID}'\n```\n\n`inspect` and config reads connect only to an existing daemon. They never start, restart or reload anything. If IPC is unreachable, report that first.\n\nFor session history:\n\n- Read a bounded tail of the exact transcript, around 100 lines, and parse each JSONL line separately. A live writer may leave an incomplete last line.\n- Widen the range only if the event you need is missing.\n- Only look at subagents of this session that are relevant to the problem.\n- Do not search other sessions or workspaces unless the user names the exact session.\n\nRead only the relevant time range of `runtimeLogPath`. Logs and transcripts can contain secrets and private prompts, so quote only what matters and redact credentials. Keep the observed facts separate from the repair you propose.\n\n## Runtime behavior worth knowing\n\n**Model retries** (`[loop_control]`):\n\n- `maxAttemptsPerStep = 3`, counting the first request.\n- `retryBudgetMs = 120000` after the first transient failure.\n- `requestIdleTimeoutMs = 300000` covers missing protocol progress. Thinking, tool and heartbeat bytes count as progress.\n- A healthy stream is not cut at two minutes. An over-budget `Retry-After` stops recovery.\n- Partial text from a failed attempt is discarded, and tools that already ran are not replayed.\n- Do not raise limits as a blind fix.\n\n**Stream errors:**\n\n- `provider.stream_parse_error`: a complete SSE event contained invalid JSON. Recovery is bounded, and events over 4 MiB are not retried.\n- `provider.protocol_error`: the response does not match the requested protocol. Check the protocol and endpoint instead of retrying.\n- `provider.incomplete_stream`: still eligible for bounded recovery.\n\n**Permissions:** `exec` defaults to Auto, which applies explicit deny rules and is not a sandbox. `--permission auto|manual|yolo|inherit` selects the mode, and a resume uses `inherit` by default. An override on resume affects only that turn. A rejected approval stops the turn. An HTTP bridge that only submits text should omit `permission_mode`, because that field changes the stored mode.\n\n**Daemon lifecycle:**\n\n- The daemon exits after about 5 idle seconds. Idle means no clients, turns, tasks, goals or scheduled work. `VSPI_DAEMON_IDLE_TIMEOUT_MS=0` keeps it running.\n- Do not stop or restart a daemon that has active sessions unless the user approves.\n- `vspi daemon stop --force-legacy` is only for old instances, after the user confirms their tasks finished.\n- `vspi daemon recover --confirm-stopped` handles a corrupt leftover lock. Use it only after confirming that no daemon for this home is alive.\n\n**Updates:**\n\n- The user runs `vspi update` from their own terminal after work has finished. It backs up the package and config and refuses to replace a busy runtime.\n- The daemon runs from an immutable build snapshot, so never update it from a model-run shell.\n- `\u002Freload` does not hand off a TTY. To refresh a client, the user exits and runs `vspi continue`.\n\n**Config migration:** the 2.5.1 pre-bootstrap migration backs up config, retires expired model references and drops fields identical to shipped defaults. It keeps API keys, endpoints, `overrides`, `model_efforts` and `secondary_model`. Invalid TOML stops startup and leaves the file untouched. Never tell users to delete their home directory.\n\n**Sensitive files:** update backups, migration backups, logs and heap snapshots can all contain credentials.\n\n**Feedback:**\n\n- `\u002Ffeedback \u003Cdescription>` and `vspi feedback` never upload automatically.\n- The user chooses the context range and reviews the redacted package with `preview`. `submit --confirm-sha256` requires that same unchanged hash after human approval.\n- Edits go through `feedback redact` and a fresh preview.\n- Identity tokens are cached under `VSPI_HOME\u002Ffeedback\u002Fidentities\u002F`; do not read them.\n\n**Candidate distribution:** requires `KIMI_CODE_EXPERIMENTAL_VSPI_DISTRIBUTION=true` and a verified Ed25519 public key in `VSPI_HOME\u002Fdistribution.json`. Never disable TLS or signature checks, and never treat a feedback message as permission to install or publish.\n\n**History:** `\u002Fhistory` loads older durable messages, and `\u002Fhistory latest` returns to the recent window. A bounded preview does not mean the transcript was truncated on disk. IPC payload limits are intentional, so page through results instead of removing the limits.\n",{"name":5,"description":7},"main","a6579b95265f20c06d3ff66c116f57b33749c044","apps\u002Fvspi\u002Fskills\u002Fvspi-self",0,"https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi","https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO","hypoxanthine.cn","An Undergraduate of Shanghaitech University, interedted in NeRF and related MicroArchitecture.","2026-10-27 12:12:49",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add HypoxanthineOvO\u002FVSPi --skill vspi-self",{"tool":39,"command":40},"bunx","bunx skills add HypoxanthineOvO\u002FVSPi --skill vspi-self",{"tool":42,"command":43},"pnpm","pnpm dlx skills add HypoxanthineOvO\u002FVSPi --skill vspi-self","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi\u002Fblob\u002Fmain\u002Fapps\u002Fvspi\u002Fskills\u002Fvspi-self\u002FSKILL.md",true,[],[48,55,62,69,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7ARAVE49M92BFQ1W9EYX9M9","kimi-webbridge","Kimi Browser Extension（Kimi 浏览器扩展，原 Kimi WebBridge）lets AI control the user's real browser — navigate, click, type, read, screenshot, and interact with any website using the user's actual login sessions. Use this skill whenever the user wants to interact with websites, automate browser tasks, scrape web content, or perform any action requiring a real browser. Also use when the user mentions \"browser\", \"webpage\", \"open URL\", \"screenshot\", or asks to read\u002Finteract with any website. Use even for simple-sounding browser requests — the daemon handles all complexity.","https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fkimi-webbridge\u002Fskills\u002Fkimi-webbridge\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7ARAMV3ZJXR9H31TPTFEH48","kimi-datasource","Universal data-source assistant for stocks (Wind, S&P, SEC EDGAR), macro (World Bank, IMF, FRED, NBS), Chinese government data and standards (GB\u002FHB\u002FDB\u002FTT), corporate, academic, legal, WHO\u002FFAO\u002FOECD and other IGO data, financial news (Xinhua, Caixin).\nThis plugin exposes tools via MCP server `plugin-kimi-datasource_data`; call them in the flow `mcp__plugin-kimi-datasource_data__get_data_source_desc` → `mcp__plugin-kimi-datasource_data__call_data_source_tool`.","https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fkimi-datasource\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7ARAKQ8P8CKK746J5HJ9495","golden-skill","Golden fixture skill","https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi\u002Fblob\u002Fmain\u002Fpackages\u002Fmigration-legacy\u002Ftest\u002Ffixtures\u002Fgolden\u002F.kimi\u002Fskills\u002Fgolden-skill\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7ARAJTGVPB8C952VSW8XGS3","tools","https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi\u002Fblob\u002Fmain\u002Fpackages\u002Fagent-core-v2\u002Fsrc\u002Ffeatures\u002Fskill\u002Ftools\u002Fskill.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7ARAGJQ99R06PFPPFBC4D0J","review","Analyze the available skill set and recommend candidate groups that could be consolidated into sub-skill bundles. Read-only — proposes a plan, does not move files.","https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi\u002Fblob\u002Fmain\u002Fpackages\u002Fagent-core-v2\u002Fsrc\u002Ffeatures\u002Fskill\u002Fcatalog\u002Fbuiltin\u002Fsub-skill\u002Freview\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7ARADHK3K6D34SX07A36XVZ","consolidate","Apply an approved sub-skill grouping by moving user-specified skills into a parent bundle, with timestamped backups of every modified directory.","https:\u002F\u002Fgithub.com\u002FHypoxanthineOvO\u002FVSPi\u002Fblob\u002Fmain\u002Fpackages\u002Fagent-core-v2\u002Fsrc\u002Ffeatures\u002Fskill\u002Fcatalog\u002Fbuiltin\u002Fsub-skill\u002Fconsolidate\u002FSKILL.md",[],[]]