5153- `prompts`: load only matching prompt templates; `[]` loads none.- `prompts`: load only matching prompt templates; `[]` loads none.
5254- `themes`: load only matching themes; `[]` loads none.- `themes`: load only matching themes; `[]` loads none.
5355- Omit a key to load all resources of that type exported by the package manifest.- Omit a key to load all resources of that type exported by the package manifest.
54-- Filters are package-root paths/patterns layered on top of the root manifest. They narrow. They do not resurrect junk outside the manifest.
56+- Values are package-root paths/globs. `!pattern` excludes; `+path` and `-path` force exact include/exclude.
57+- Filters narrow the root manifest. They do not resurrect junk outside it.
5-Angel runs only when the active executor model matches a configured executor/advisor pair and the advisor model resolves. It builds a context packet, asks the paired advisor model for JSON advice, can inject advice after tool errors, and can block dangerous shell commands once.
5+Angel is available only when the active executor model matches a configured executor/advisor pair and the advisor model is registered. It builds a context packet, asks the paired advisor model for JSON advice, injects advice after tool errors, and blocks selected dangerous shell commands once.
33-- `/angel <question>`: manual advisor consult. Requires UI. Opens full advice in editor.
33+- `/angel <question>`: manual advisor consult. Requires UI and a non-empty question. Opens full advice in editor.
3434- `/angel-policy`: show latest enforceable policy in editor, or print it without UI.- `/angel-policy`: show latest enforceable policy in editor, or print it without UI.
3939- `model_select`: syncs tool availability for the selected executor model.- `model_select`: syncs tool availability for the selected executor model.
40-- `tool_call`: blocks dangerous `bash` commands once when `policyGate` is `block`.
40+- `tool_call`: blocks selected dangerous `bash` commands once when `policyGate` is `block`.
4141- `tool_result`: auto-consults after every `autoOnErrors`-th failed non-`angel` tool result.- `tool_result`: auto-consults after every `autoOnErrors`-th failed non-`angel` tool result.
9292- Falls back to low-confidence advisory text when the advisor response is not valid JSON.- Falls back to low-confidence advisory text when the advisor response is not valid JSON.
9393- Persists advice as `angel-advice` entries with packet summary metadata.- Persists advice as `angel-advice` entries with packet summary metadata.
9494- Injects formatted advice into the agent loop after configured failed tool-result intervals.- Injects formatted advice into the agent loop after configured failed tool-result intervals.
95+- Stores the latest enforceable policy for `/angel-policy`.
9596- Keeps semantic guidance in `advisoryOnly`; only dangerous-command detection is mechanical.- Keeps semantic guidance in `advisoryOnly`; only dangerous-command detection is mechanical.
9697- Tool render marks low-confidence advice as `consider-devil`; formatted advice marks `Devil` as recommended when confidence is below 50%.- Tool render marks low-confidence advice as `consider-devil`; formatted advice marks `Devil` as recommended when confidence is below 50%.
1031042. Angel blocks that exact command once.2. Angel blocks that exact command once.
1041053. Angel consults the advisor and returns formatted advice in the block reason.3. Angel consults the advisor and returns formatted advice in the block reason.
1051064. Executor may retry the same command if still correct. Angel will not block that exact command again in the session.4. Executor may retry the same command if still correct. Angel will not block that exact command again in the session.
107-The gate is skipped when Angel is disabled, `policyGate` is `off`, no executor/advisor binding exists, advisor auth is missing, or the session call budget is exhausted.
108+The gate is skipped when Angel is disabled, `policyGate` is `off`, the command does not match the dangerous-command pattern, no executor/advisor binding exists, advisor auth is missing, or the session call budget is exhausted.
3131Shows current model id, last assistant-turn token usage, turn cost, session cost, and current-month cost.Shows current model id, last assistant-turn token usage, turn cost, session cost, and current-month cost.
33-Uses provider-reported `usage.cost.total` when present. If reported cost is zero, estimates cost only for built-in `zai` and `minimax` pricing rows. Unknown provider/model prices produce `$0` estimated cost.
33+Model label uses the last `/`-separated model id segment. Missing model becomes `no-model`.
35-Session cost is summed from assistant messages in the active branch. Monthly cost is summed from `.jsonl` session files whose names start with the current `YYYY-MM`, scanning the current session root and one directory level below it.
35+Token label uses input, output, and cache-read counts. Cache reads use `◐` and `` with cache percentage when mixed with uncached input. No token usage shows `↑0`.
37-Token label uses input/output counts and cache-read counts. Cost label is hidden when all costs are zero.
37+Uses provider-reported `usage.cost.total` when present and greater than zero. If reported cost is zero or missing, estimates cost only for built-in `zai` and `minimax` pricing rows. Unknown provider/model prices produce `$0` estimated cost.
41+Monthly cost is summed from `.jsonl` session files whose names start with the current `YYYY-MM`, scanning `dirname(getSessionDir())` and its direct child directories.
43+Cost label shows turn cost, `Σ` session cost, and `` monthly cost. Monthly cost is shown only when it is greater than session cost. Cost label is hidden when all costs are zero.
45+Telemetry publishes only when UI exists. Duplicate snapshots are skipped by signature. Read/parse/update errors are swallowed so the agent loop keeps running.
1717- `tool_result`: watches builtin `read` results and may replace large full-file reads with a bounded head/tail view.- `tool_result`: watches builtin `read` results and may replace large full-file reads with a bounded head/tail view.
7474| Sub-agents | Load normal Pi settings/resources/extensions unless `devil.extensionMode` is `off`. || Sub-agents | Load normal Pi settings/resources/extensions unless `devil.extensionMode` is `off`. |
7575| Sub-agent tools | All available tools except `write` and `edit`. || Sub-agent tools | All available tools except `write` and `edit`. |
77-| Stop: `consensus` | Stops after enough consecutive resolved Defense responses, using `concessionThreshold`, or after `maxRounds`. |
77+| Stop: `consensus` | Stops after 2 consecutive resolved Defense responses using `concessionThreshold`, or after `maxRounds`. |
7878| Stop: `blocking_found` | Stops when a Devil round raises zero blocking issues, or after `maxRounds`. || Stop: `blocking_found` | Stops when a Devil round raises zero blocking issues, or after `maxRounds`. |
7979| Stop: `max_rounds` | Runs until `maxRounds`. || Stop: `max_rounds` | Runs until `maxRounds`. |
80+| Live review keys | `↑↓/j/k` scroll, `PgUp/Ctrl+u` and `PgDown/Ctrl+d` page, `g/G` top/end. |
8081| Cancel | `q`, `Esc`, or `Ctrl+C` cancels the live review. || Cancel | `q`, `Esc`, or `Ctrl+C` cancels the live review. |
8182| Failure | Failed review stays open until closed. Timeout message suggests `/compact`, then retry. Closing a failed review restores `/devil <idea>` in the editor. || Failure | Failed review stays open until closed. Timeout message suggests `/compact`, then retry. Closing a failed review restores `/devil <idea>` in the editor. |
8283| Results | Edited verdict is appended as `devil-result`; main agent receives advisory handoff and must wait for the next user reply before execution. || Results | Edited verdict is appended as `devil-result`; main agent receives advisory handoff and must wait for the next user reply before execution. |
32-Segments sort by `order`; default is `50`. Render requests are coalesced. Status text is collapsed to one line. Footer lines are width-truncated with side padding.
32+Segments sort by `order`; default is `50`. Current session name is inserted in the `workspace` zone with order `0.5`.
1313- `/ghost` opens the ghost overlay. If it is already open, it focuses it.- `/ghost` opens the ghost overlay. If it is already open, it focuses it.
1414- `/ghost <prompt>` opens the overlay if needed and sends `<prompt>` to the ghost session. If the overlay is already open, it sends the prompt to the existing session.- `/ghost <prompt>` opens the overlay if needed and sends `<prompt>` to the ghost session. If the overlay is already open, it sends the prompt to the existing session.
36-Marks the active goal complete or blocked. Active only after at least one judge review. Disabled again when the goal is complete, blocked, paused, cleared, or resumed into a fresh 0-turn state. Errors when no active goal exists or when the goal belongs to another session.
37+Marks the active goal complete or blocked. Active only after at least one judge review. Hidden before review, and hidden again when the goal is complete, blocked, paused, cleared, or resumed into a fresh 0-turn state. Errors when no active goal exists, the goal has not been judged, or the goal belongs to another session.
66-- `/goal <objective>` creates an active goal with empty criteria, current session ownership, and the configured turn budget.
67+- `/goal` and `/goal status` print current goal status.
68+- `/goal <objective>` creates an active goal with empty criteria, current session ownership, and the configured turn budget. It sends a kickoff prompt immediately.
69+- New goals require an idle agent. Subcommands can run while the agent is busy.
6770- Goal state is stored as append-only custom `goal-state` entries. Replay scans backward; newest valid state or clear tombstone wins.- Goal state is stored as append-only custom `goal-state` entries. Replay scans backward; newest valid state or clear tombstone wins.
68-- `before_agent_start` injects the active goal and criteria into the system prompt.
69-- After each agent turn, the extension writes a `goal-judge` start entry, sets status to `goal judging N/M`, notifies `Goal judge running: turn N/M · <objective>`, then asks a judge model for strict JSON: done, blocked, reason.
71+- `before_agent_start` injects the active goal and criteria into the system prompt for the owning session.
72+- After each owned active goal turn, the extension writes a `goal-judge` start entry, sets status to `goal judging N/M`, notifies `Goal judge running: turn N/M · ...`, then asks a judge model for strict JSON: `done`, `blocked`, `reason`.
73+- The judge sees the objective, criteria, and tail of the latest assistant response.
7074- Judge completion writes a `goal-judge` verdict entry and notifies `Goal judge verdict: complete|blocked|continue · <reason>`.- Judge completion writes a `goal-judge` verdict entry and notifies `Goal judge verdict: complete|blocked|continue · <reason>`.
71-- Done verdict marks the goal complete. Blocked verdict marks it blocked.
75+- Done verdict marks the goal complete and clears persistent status. Blocked verdict marks it blocked and keeps `goal blocked` status.
7276- Incomplete verdict increments `turnsUsed`; exhausted budget pauses the goal.- Incomplete verdict increments `turnsUsed`; exhausted budget pauses the goal.
73-- `update_goal` is hidden until the first judge review, then hidden again for terminal or paused goals.
74-- If still active, continuation is sent when the session becomes idle.
75-- `/goal resume` rebinds a goal to the current session and resets `turnsUsed`.
77+- If still active, continuation is sent when the session becomes idle. Retry window: 20 attempts, 250 ms apart after the immediate attempt.
78+- `update_goal` is hidden until the first continue verdict increments `turnsUsed`, then hidden again for terminal or paused goals.
79+- `/goal pause` only pauses active owned goals.
80+- `/goal resume` rebinds a goal to the current session, sets it active, resets `turnsUsed`, and schedules continuation.
81+- `/goal complete [reason]` is a user override. Default reason: `marked complete by user`.
7682- `/goal clear` writes a clear tombstone and removes status.- `/goal clear` writes a clear tombstone and removes status.
83+- `/goal add`, `/goal remove`, and `/goal clear-criteria` edit criteria on the current owned goal.
7784- UI status key: `goal` for active, paused, and blocked goals. Complete/cleared goals clear status and notify instead.- UI status key: `goal` for active, paused, and blocked goals. Complete/cleared goals clear status and notify instead.
85+- Goals owned by another session show `owned by another session`; mutating commands require `/goal resume` first.
86+- `PI_GOAL_PROBE=1` adds `/goal-probe` and writes custom `goal-probe` entries for continuation scheduling checks.
140-Duplicate saves do not start duplicate queued/running jobs. Failed markers remain retryable on next save or scan. Queued/running markers from a previous Pi process are reset to failed on state load. A marker becomes `done` only after the worker finishes and the marker no longer exists.
140+Duplicate saves do not start duplicate queued/running jobs. Failed markers remain retryable on next save or scan. Queued/running markers from a previous Pi process are reset to failed on state load. A marker becomes `done` after the worker finishes and the original same-line/same-hash marker no longer exists.
231232Before a job starts, llmiterate rechecks that the marker still exists at the same line with the same prompt hash. If it changed, the job is failed as stale and skipped.Before a job starts, llmiterate rechecks that the marker still exists at the same line with the same prompt hash. If it changed, the job is failed as stale and skipped.
233-After the worker finishes, llmiterate scans again. If the marker is still present, the job is marked failed. If the marker is gone, the job is marked done.
234+After the worker finishes, llmiterate rechecks the file. If the same marker is still present at the same line with the same prompt hash, the job is marked failed. Otherwise that job is marked done.
2629- Completion temp files live in `pi-nu-bang-*` temp dirs and are removed after use.- Completion temp files live in `pi-nu-bang-*` temp dirs and are removed after use.
2730- Non-bang completion delegates to the existing provider.- Non-bang completion delegates to the existing provider.
2831- Bang completion failures fall back to the existing provider unless the request was aborted.- Bang completion failures fall back to the existing provider unless the request was aborted.
3033- Completion application replaces the current Nushell token and removes a stale closing quote when needed.- Completion application replaces the current Nushell token and removes a stale closing quote when needed.
34+- Bang input always allows file-completion triggering; non-bang input delegates that decision.
35+- Completion JSON accepts Nushell's normal output and salvages malformed quoted list items.
3136- `session_shutdown` removes temporary completion dirs still tracked by the extension.- `session_shutdown` removes temporary completion dirs still tracked by the extension.
2121`before_agent_start` captures Pi's `BuildSystemPromptOptions`. `agent_start` replaces the captured prompt with the final prompt after all `before_agent_start` edits.`before_agent_start` captures Pi's `BuildSystemPromptOptions`. `agent_start` replaces the captured prompt with the final prompt after all `before_agent_start` edits.
15-| `/prune` | Start Pi compaction. The `session_before_compact` hook writes the prune summary when enabled. |
16-| `/prune-recall <query> [all]` | Search session history. Default scope is current branch lineage. Use trailing `all` to search all entries. |
15+| `/prune` | Starts Pi compaction through `ctx.compact()`. With `prune.overrideDefault` enabled, `session_before_compact` supplies the prune summary. Command args are not read. |
16+| `/prune-recall <query> [all]` | Searches session history and shows formatted matches. Default scope is current branch lineage. A trailing `all` searches all entries. Command limit is `10`. |
2424`prune_recall` is registered at load time, but it is active for the agent only after a prune compaction exists in the current branch.`prune_recall` is registered at load time, but it is active for the agent only after a prune compaction exists in the current branch.
36-| `session_before_compact` | Replaces default compaction when `prune.overrideDefault` is true. |
36+| `session_before_compact` | Returns prune compaction when `prune.overrideDefault` is true. Includes `firstKeptEntryId`, `tokensBefore`, and details `{ kind: "prune", version: 1, sourceEntriesProcessed, tailKept }`. |
3737| `session_start` | Enables/disables `prune_recall` from current branch state. || `session_start` | Enables/disables `prune_recall` from current branch state. |
3838| `session_tree` | Enables/disables `prune_recall` from current branch state. || `session_tree` | Enables/disables `prune_recall` from current branch state. |
39-| `session_compact` | Enables `prune_recall` after a prune compaction and notifies UI when present. |
39+| `session_compact` | Enables `prune_recall` after a prune compaction, logs in debug mode, and notifies UI when present. |
46-| `prune.sectionLimit` | `8` | Max extracted lines per structured section. |
46+| `prune.sectionLimit` | `8` | Max lines per structured section in formatted output. |
4747| `prune.transcriptLimit` | `120` | Max transcript lines kept in summary tail. || `prune.transcriptLimit` | `120` | Max transcript lines kept in summary tail. |
4848| `prune.toolCapPerTurn` | `8` | Loaded setting; not currently applied by source. || `prune.toolCapPerTurn` | `8` | Loaded setting; not currently applied by source. |
53-- Compaction is local and deterministic. No LLM summary call is made by `prune`.
54-- Input messages are normalized from Pi roles: `user`, `assistant`, `tool`, `toolResult`, `bashExecution`, `branchSummary`, `compactionSummary`. `custom` is skipped.
53+- With `prune.overrideDefault` enabled, compaction is local and deterministic. The prune hook does not call an LLM.
54+- `/prune` starts normal Pi compaction; the hook replaces the default summary only when enabled.
55+- Settings are read once from `settingsManager.getSettings().prune` when the extension loads.
56+- Pi roles mapped for compaction: `user`, `assistant`, `tool`, `toolResult`, `bashExecution`, `branchSummary`, `compactionSummary`. `custom` is skipped.
57+- Assistant `thinking` and `image` parts are skipped during compaction. Assistant `toolCall` parts become transcript tool lines.
64+- Transcript entries keep stable `#N` source refs from the compaction input order.
65+- Tool calls render as `* tool "arg" (#N)` when a command/path is available, otherwise `* tool (#N)`.
66+- Bash tool commands are shortened: leading `cd ... &&` is removed, and a trailing simple pipe such as `tail`/`head` is removed.
6267- Tool errors render as `[tool_error] [ERROR] tool (#N)`.- Tool errors render as `[tool_error] [ERROR] tool (#N)`.
6368- Existing prune summaries are merged with fresh summaries. Goals/preferences/files are deduped, context is refreshed, transcript keeps previous entries before fresh entries.- Existing prune summaries are merged with fresh summaries. Goals/preferences/files are deduped, context is refreshed, transcript keeps previous entries before fresh entries.
69+- Prune compactions are detected by `details.kind === "prune"`; older hook summaries are also detected when they contain the prune recall note.
6470- Recall searches current branch lineage by default. `scope: "all"` searches all session entries.- Recall searches current branch lineage by default. `scope: "all"` searches all session entries.
6571- Recall includes message entries, compaction summaries, and `custom_message` content.- Recall includes message entries, compaction summaries, and `custom_message` content.
72+- Recall message text includes text parts, tool call names/args, and thinking parts. Images are ignored.
6673- Regex-looking query strings are tried as case-insensitive regex. Invalid regex falls back to term matching.- Regex-looking query strings are tried as case-insensitive regex. Invalid regex falls back to term matching.
74+- Regex matches score `10`; term matches score by matched-term count.
6775- `expand` returns exact `#N` entries even when the query does not match.- `expand` returns exact `#N` entries even when the query does not match.
6976- `/pulse init` creates `.pi/pulse.json`; it tracks root `README*` files and `AGENTS.md` when present.- `/pulse init` creates `.pi/pulse.json`; it tracks root `README*` files and `AGENTS.md` when present.
7077- `/pulse add` requires an existing file.- `/pulse add` requires an existing file.
71-- `/pulse add-dir` requires an existing directory and explicit bounded glob.
72-- `/pulse add-glob` stores a bounded glob pattern.
78+- `/pulse add-dir` requires an existing directory and explicit glob.
79+- `/pulse add-glob` stores an explicit glob pattern.
80+- `/pulse remove` accepts a tracked path or zero-based index.
81+- `/pulse force` runs a manual check unless paused.
83+- `/pulse config` opens `.pi/pulse.json` in an editor.
7384- Absolute paths and `..` path escapes are rejected. Existing symlinks resolving outside the workspace are rejected or skipped.- Absolute paths and `..` path escapes are rejected. Existing symlinks resolving outside the workspace are rejected or skipped.
74-- Invalid persisted document specs are dropped while loading config.
85+- Invalid config fields make the config unloadable. Invalid persisted document specs are dropped while loading config.
7586- Dir and glob specs expand to sorted files; duplicate paths are ignored.- Dir and glob specs expand to sorted files; duplicate paths are ignored.
76-- Automatic checks wait for a quiet window after mutations and a cooldown after the last update.
77-- The model receives tracked docs plus recent conversation messages. It gets no tools.
87+- Automatic checks wait for Pi idle, a quiet window after mutations, and a cooldown after the last update.
88+- Periodic checks use `interval`; dirty checks also run after workspace-changing tools settle.
89+- Bash output is not parsed. Bash only marks the workspace maybe dirty; Pulse compares `git status --porcelain=v1 -z --untracked-files=all` when available.
90+- The model receives tracked docs plus the last 50 conversation messages. It gets no tools.
7891- Model output must be JSON updates for allowed paths only. Unknown paths, duplicate paths, invalid JSON, and unchanged content are rejected or skipped.- Model output must be JSON updates for allowed paths only. Unknown paths, duplicate paths, invalid JSON, and unchanged content are rejected or skipped.
92+- Invalid JSON gets correction retries before the check fails.
7993- `auto` writes validated updates. `confirm` asks before writing. `review` opens each proposed file in an editor before writing.- `auto` writes validated updates. `confirm` asks before writing. `review` opens each proposed file in an editor before writing.
8094- Writes are refused if a tracked file changed between load and apply.- Writes are refused if a tracked file changed between load and apply.
8195- `.pi/pulse.json` is watched and reloaded after changes.- `.pi/pulse.json` is watched and reloaded after changes.
26-Provider auth is read through Pi model registry auth storage. Providers without configured auth are skipped. Failed provider fetches become empty rows and are not shown.
26+Only the active model provider is fetched. Provider auth is read through Pi model registry auth storage. Providers without configured auth are skipped.
28-Quota data is cached for 60s outside forced refreshes. The `/quota` widget refreshes every 5s while visible and writes to widget id `usage`.
28+Quota data is cached for 5 minutes outside forced refreshes. Fetch failures keep the last cached row for that provider when available; otherwise no row is shown.
30+The `/quota` command writes details to widget id `usage`. When visible, the widget updates after a forced refresh and on the 5-minute refresh timer.
3840OpenAI Codex needs both an auth token and an account id. The account id is read from Pi auth storage first, then `~/.codex/auth.json`.OpenAI Codex needs both an auth token and an account id. The account id is read from Pi auth storage first, then `~/.codex/auth.json`.
27+- Cooldown grows with user turns: 1 turn early, then 2, then 5.
2728- Records `session-rename` custom entries for auto-title revisions and user locks.- Records `session-rename` custom entries for auto-title revisions and user locks.
28-- Normalizes generated names: lowercase ASCII-ish words, no punctuation, max 3 words.
29-- Rejects generic one-word names and tiny edit-distance changes.
29+- Builds naming context from current name, initial user goals, recent summaries, recent messages, and tool calls.
30+- Normalizes generated names: lowercase words, no punctuation, max 3 words.
31+- Rejects generic one-word names, tiny edit-distance changes, and previous auto names.
32+- Shows temporary UI status while naming. Manual command generation notifies on rename.
1311- `/ssh` — pick a target from `~/.ssh/config`; includes `off` when SSH mode is active.- `/ssh` — pick a target from `~/.ssh/config`; includes `off` when SSH mode is active.
14-- `/ssh status` — show current target or `SSH off`.
12+- `/ssh status` — show current target, or `SSH off`.
1513- `/ssh off` — disable SSH mode and remove SSH tools from active tools.- `/ssh off` — disable SSH mode and remove SSH tools from active tools.
16-- `/ssh <host>[:/path]` — enable SSH mode for a host string. Profile names from `~/.ssh/config` win over `host:path` parsing.
14+- `/ssh <host>[:/path]` — enable SSH mode for a host string. Exact profile names from `~/.ssh/config` win over `host:path` parsing.
3634- Reads `~/.ssh/config` for non-wildcard `Host` aliases; uses them for completions and picker choices.- Reads `~/.ssh/config` for non-wildcard `Host` aliases; uses them for completions and picker choices.
35+- Caches parsed SSH config until file mtime changes.
3736- Uses local `ssh` executable for all remote operations.- Uses local `ssh` executable for all remote operations.
3837- Enabling SSH mode runs `pwd` on the remote and uses that output as cwd.- Enabling SSH mode runs `pwd` on the remote and uses that output as cwd.
3938- `host:path` is accepted, but activation still uses remote `pwd` as cwd.- `host:path` is accepted, but activation still uses remote `pwd` as cwd.
4039- SSH tools are registered at load, then added to active tools only while SSH mode is on.- SSH tools are registered at load, then added to active tools only while SSH mode is on.
40+- Direct remote-tool calls while SSH mode is off fail with `SSH mode off. Use /ssh <host> first.`
4141- Remote file tools use active cwd as tool root.- Remote file tools use active cwd as tool root.
4344- `ssh_edit` requires both remote read and write access.- `ssh_edit` requires both remote read and write access.
4445- `ssh_bash` runs scripts through remote bash with stdin prefixed by `cd <cwd>`.- `ssh_bash` runs scripts through remote bash with stdin prefixed by `cd <cwd>`.
18+ - `maxChars`: optional; default `100000`, min `100`, max `1000000`.
19+ - `timeout`: optional; declared by schema. Current `web_fetch` execution uses the Pi/tool abort signal and does not pass this value to `fetchUrlStream`.
2626 - `prompt`: image question or extraction request. - `prompt`: image question or extraction request.
2727 - `image_source`: HTTP/HTTPS URL, local path, `@`-prefixed local path, or data URL. - `image_source`: HTTP/HTTPS URL, local path, `@`-prefixed local path, or data URL.
6060 - Other binary: writes temp file and returns path plus content type. - Other binary: writes temp file and returns path plus content type.
61+- `web_fetch` `raw` format skips conversion, decodes the body as UTF-8, and truncates to `maxChars`.
6162- HTML cleanup removes comments, scripts, styles, iframes, objects, templates, noscript blocks, embeds, hidden inputs, long meta content, hidden/visually-hidden elements, and non-image `aria-label`/`alt`/`title` attrs.- HTML cleanup removes comments, scripts, styles, iframes, objects, templates, noscript blocks, embeds, hidden inputs, long meta content, hidden/visually-hidden elements, and non-image `aria-label`/`alt`/`title` attrs.
6263- Main-content extraction prefers `<article>`, `#mw-content-text`, `#docContent`, `#content`, `<main>`, then `role="main"`; fallback is full page.- Main-content extraction prefers `<article>`, `#mw-content-text`, `#docContent`, `#content`, `<main>`, then `role="main"`; fallback is full page.
63-- Fetched and searched text returned to the model is wrapped as untrusted external data.
64+- Converted fetch text, raw fetch text, and search output are wrapped as untrusted external data. Image, media, and binary early-return paths are not wrapped by the current implementation.
6465- `web_search` provider order: Z.AI Coding Plan MCP when configured, then MiniMax search when configured, then DuckDuckGo HTML.- `web_search` provider order: Z.AI Coding Plan MCP when configured, then MiniMax search when configured, then DuckDuckGo HTML.
6567- DuckDuckGo fallback throttles requests to at least 2 seconds apart and reports captcha/dedup diagnostics.- DuckDuckGo fallback throttles requests to at least 2 seconds apart and reports captcha/dedup diagnostics.
6668- `understand_image` sends the prompt and image data to MiniMax VLM. It accepts HTTP/HTTPS URLs, data URLs, and local files. Local file data is base64 encoded before the request.- `understand_image` sends the prompt and image data to MiniMax VLM. It accepts HTTP/HTTPS URLs, data URLs, and local files. Local file data is base64 encoded before the request.