one-code-extension 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -5
- package/agents/general-purpose.md +2 -2
- package/docs/guide/README.md +2 -1
- package/docs/guide/bring-your-claude-code-setup.md +60 -9
- package/docs/guide/configuration.md +48 -14
- package/docs/guide/differences-from-claude-code.md +32 -23
- package/docs/guide/doctor.md +20 -13
- package/docs/guide/hooks.md +18 -3
- package/docs/guide/installation.md +27 -4
- package/docs/guide/permissions-modes-and-auto-mode.md +225 -49
- package/docs/guide/providers-and-models.md +137 -54
- package/docs/guide/reference.md +27 -15
- package/docs/guide/sessions-and-context.md +69 -16
- package/docs/guide/skills-plugins-and-mcp.md +57 -20
- package/docs/guide/subagents-and-workflows.md +95 -29
- package/docs/guide/tasks-and-background-work.md +101 -26
- package/docs/guide/terminal-interface.md +24 -12
- package/docs/guide/tools.md +46 -5
- package/docs/guide/troubleshooting.md +13 -9
- package/docs/guide/windows.md +58 -31
- package/extensions/artifacts/gallery.ts +227 -0
- package/extensions/artifacts/index.ts +288 -0
- package/extensions/artifacts/store.ts +570 -0
- package/extensions/artifacts/viewer.ts +199 -0
- package/extensions/ask-user/description.ts +67 -0
- package/extensions/ask-user/dialogs.ts +80 -0
- package/extensions/ask-user/index.ts +37 -33
- package/extensions/ask-user/questions.ts +32 -7
- package/extensions/ask-user/widget.ts +45 -25
- package/extensions/auto-mode/actions.ts +6 -0
- package/extensions/auto-mode/cache.ts +88 -0
- package/extensions/auto-mode/classifier-prompt.ts +5 -4
- package/extensions/auto-mode/classifier.ts +290 -65
- package/extensions/auto-mode/config.ts +72 -20
- package/extensions/auto-mode/decision-log.ts +2 -0
- package/extensions/auto-mode/defaults.ts +1 -1
- package/extensions/auto-mode/denials.ts +123 -0
- package/extensions/auto-mode/git-checkout-programs.ts +187 -0
- package/extensions/auto-mode/git-status-meta.ts +159 -0
- package/extensions/auto-mode/history.ts +189 -0
- package/extensions/auto-mode/instructions.ts +58 -52
- package/extensions/auto-mode/model-select.ts +159 -134
- package/extensions/auto-mode/paths.ts +57 -5
- package/extensions/auto-mode/pause.ts +57 -2
- package/extensions/auto-mode/prompt.ts +37 -21
- package/extensions/auto-mode/read-only-options.ts +724 -0
- package/extensions/auto-mode/resolved-paths-meta.ts +133 -0
- package/extensions/auto-mode/rules.ts +18 -1
- package/extensions/auto-mode/safety-floor.ts +361 -18
- package/extensions/auto-mode/setup-run.ts +20 -14
- package/extensions/auto-mode/shell-analysis.ts +764 -490
- package/extensions/auto-mode/shell-parse.ts +885 -0
- package/extensions/auto-mode/system-note.ts +33 -0
- package/extensions/auto-mode/transcript.ts +80 -51
- package/extensions/background/cron.ts +515 -0
- package/extensions/background/index.ts +514 -236
- package/extensions/background/loop-fire.ts +136 -0
- package/extensions/background/loop-preamble.ts +59 -0
- package/extensions/background/loop-skill.ts +163 -0
- package/extensions/background/monitor-batch.ts +53 -0
- package/extensions/background/noop-fold.ts +128 -0
- package/extensions/background/switch-guard.ts +52 -0
- package/extensions/background/wakeup.ts +159 -55
- package/extensions/bash/background.ts +53 -17
- package/extensions/bash/child.ts +7 -0
- package/extensions/bash/description.ts +188 -0
- package/extensions/bash/guards.ts +15 -67
- package/extensions/bash/index.ts +88 -35
- package/extensions/branding/compaction-keep.ts +63 -0
- package/extensions/branding/declined.ts +22 -0
- package/extensions/branding/index.ts +133 -9
- package/extensions/branding/prompt-editor.ts +53 -6
- package/extensions/branding/queued-edit.ts +31 -0
- package/extensions/branding/replaced-builtins.ts +68 -0
- package/extensions/branding/startup.ts +33 -71
- package/extensions/btw/index.ts +229 -71
- package/extensions/btw/panel.ts +228 -100
- package/extensions/btw/prompt.ts +41 -4
- package/extensions/claude-compat/index.ts +7 -11
- package/extensions/claude-context/index.ts +446 -58
- package/extensions/compaction/cut.ts +157 -0
- package/extensions/compaction/index.ts +216 -75
- package/extensions/compaction/kept-thinking.ts +62 -0
- package/extensions/compaction/prompt.ts +15 -12
- package/extensions/context-budget/index.ts +24 -5
- package/extensions/context-management/index.ts +25 -0
- package/extensions/doctor/build.ts +59 -8
- package/extensions/doctor/builtins.ts +84 -0
- package/extensions/doctor/cli.ts +7 -1
- package/extensions/doctor/compat.ts +88 -23
- package/extensions/doctor/dependencies.ts +41 -5
- package/extensions/doctor/fix-prompt.ts +9 -2
- package/extensions/doctor/index.ts +102 -58
- package/extensions/doctor/models.ts +102 -63
- package/extensions/doctor/presets.ts +42 -27
- package/extensions/doctor/report.ts +19 -2
- package/extensions/doctor/viewer.ts +49 -27
- package/extensions/effort/index.ts +72 -19
- package/extensions/effort/settings.ts +21 -0
- package/extensions/effort/slider.ts +24 -20
- package/extensions/exit/index.ts +32 -1
- package/extensions/file-tracker/index.ts +337 -26
- package/extensions/file-tracker/replay.ts +96 -10
- package/extensions/file-tracker/restore.ts +63 -0
- package/extensions/file-tracker/results.ts +66 -0
- package/extensions/file-tracker/shell-reads.ts +211 -0
- package/extensions/file-tracker/tracker.ts +32 -15
- package/extensions/footer/footer-line.ts +45 -24
- package/extensions/footer/index.ts +47 -2
- package/extensions/footer/pr.ts +34 -5
- package/extensions/hooks/compaction.ts +7 -0
- package/extensions/hooks/executor.ts +32 -30
- package/extensions/hooks/index.ts +198 -31
- package/extensions/hooks/matcher.ts +3 -0
- package/extensions/hooks/protocol.ts +41 -3
- package/extensions/hooks/settings.ts +50 -19
- package/extensions/hooks/subagent-bridge.ts +2 -0
- package/extensions/hooks/trust.ts +13 -5
- package/extensions/idle-compact/index.ts +119 -0
- package/extensions/idle-compact/policy.ts +143 -0
- package/extensions/init/index.ts +11 -10
- package/extensions/init/prompt.ts +25 -32
- package/extensions/interrupted/index.ts +13 -1
- package/extensions/kept-thinking/index.ts +27 -0
- package/extensions/lib/agent-cron.ts +130 -0
- package/extensions/lib/agent-loader.ts +15 -1
- package/extensions/lib/agent-view.ts +85 -0
- package/extensions/lib/anthropic-payload.ts +82 -1
- package/extensions/lib/anthropic-server-call.ts +230 -0
- package/extensions/lib/anthropic-server-tools.ts +485 -0
- package/extensions/lib/app-launch.mjs +94 -0
- package/extensions/lib/argument-hints.ts +190 -0
- package/extensions/lib/atomic-write.ts +6 -2
- package/extensions/lib/auto-memory.ts +75 -0
- package/extensions/lib/bash-parser.ts +84 -0
- package/extensions/lib/btw-fork.ts +93 -0
- package/extensions/lib/child-extensions.ts +42 -0
- package/extensions/lib/child-writes.ts +45 -0
- package/extensions/lib/claude-context.ts +515 -100
- package/extensions/lib/claude-external-includes.ts +68 -0
- package/extensions/lib/claude-id.ts +22 -0
- package/extensions/lib/claude-rules.ts +323 -0
- package/extensions/lib/claude-settings.ts +76 -4
- package/extensions/lib/compaction-boundary.ts +36 -0
- package/extensions/lib/compaction-keep.mjs +83 -0
- package/extensions/lib/config-mode.ts +112 -0
- package/extensions/lib/consent-dialogs.ts +63 -0
- package/extensions/lib/consent-preview.ts +5 -1
- package/extensions/lib/consent-stores.ts +48 -0
- package/extensions/lib/context-facts.ts +78 -0
- package/extensions/lib/context-stack.ts +81 -0
- package/extensions/lib/deferred.ts +219 -25
- package/extensions/lib/dock-rows.ts +60 -0
- package/extensions/lib/empty-tool-result.ts +27 -0
- package/extensions/lib/environment-block.ts +76 -0
- package/extensions/lib/fetch-timeout.ts +24 -6
- package/extensions/{system-prompt → lib}/git-status.ts +51 -13
- package/extensions/lib/git.ts +75 -13
- package/extensions/lib/grammars/LICENSE-tree-sitter-bash +21 -0
- package/extensions/lib/grammars/README.md +2 -0
- package/extensions/lib/grammars/tree-sitter-bash.wasm +0 -0
- package/extensions/lib/guide-docs.ts +45 -0
- package/extensions/lib/headless-output.ts +46 -0
- package/extensions/lib/hook-gate.ts +7 -7
- package/extensions/lib/interrupt.ts +20 -4
- package/extensions/lib/key-input.ts +455 -0
- package/extensions/lib/keys.ts +14 -1
- package/extensions/lib/local-command.ts +47 -13
- package/extensions/lib/mcp-overrides.ts +1 -1
- package/extensions/lib/mcp-share.ts +46 -0
- package/extensions/lib/memory-content.ts +146 -0
- package/extensions/lib/memory-index.ts +18 -0
- package/extensions/lib/memory.ts +134 -123
- package/extensions/lib/model-catalog/huggingface.json +174 -0
- package/extensions/lib/model-catalog/models-dev.json +18297 -0
- package/extensions/lib/model-catalog/openrouter.json +5252 -0
- package/extensions/lib/model-catalog-data.ts +513 -0
- package/extensions/lib/model-catalog.ts +462 -0
- package/extensions/lib/model-choice-warnings.ts +137 -0
- package/extensions/lib/model-pairings.ts +152 -0
- package/extensions/{auto-mode → lib}/model-picker.ts +26 -43
- package/extensions/lib/model-policy.ts +112 -15
- package/extensions/lib/model-tier.ts +283 -355
- package/extensions/lib/model-unusable.ts +1 -1
- package/extensions/lib/newer-model.ts +100 -0
- package/extensions/lib/notices.ts +87 -0
- package/extensions/lib/notifications.ts +308 -64
- package/extensions/lib/one-code-settings.ts +74 -8
- package/extensions/lib/open-browser.ts +63 -0
- package/extensions/lib/openrouter-generation.ts +94 -0
- package/extensions/lib/operation-deadline.ts +30 -0
- package/extensions/lib/original-command.ts +4 -4
- package/extensions/lib/package-version.ts +1 -1
- package/extensions/lib/panel-focus.ts +134 -0
- package/extensions/lib/paths.ts +17 -2
- package/extensions/lib/permission-gate.ts +72 -6
- package/extensions/lib/persisted-output.ts +60 -8
- package/extensions/lib/pi-ai-estimate.ts +19 -3
- package/extensions/lib/pi-version.ts +21 -2
- package/extensions/lib/plan-mode-channels.ts +20 -5
- package/extensions/lib/plugins.ts +26 -17
- package/extensions/lib/powershell-parse-script.ts +208 -0
- package/extensions/lib/powershell-parser.ts +344 -0
- package/extensions/lib/process-tree.ts +131 -8
- package/extensions/lib/prompt-options.ts +82 -0
- package/extensions/lib/queued-delivery.ts +44 -0
- package/extensions/lib/reminders.ts +364 -58
- package/extensions/lib/replaced-builtins.mjs +199 -0
- package/extensions/lib/replay-call.ts +70 -0
- package/extensions/lib/request-replay.ts +439 -0
- package/extensions/lib/scratchpad.ts +81 -14
- package/extensions/lib/send-now-channel.ts +7 -0
- package/extensions/lib/session-model-tier.ts +51 -0
- package/extensions/lib/session-work.ts +64 -0
- package/extensions/lib/settings-channels.ts +4 -4
- package/extensions/lib/shell-exit-semantics.ts +170 -0
- package/extensions/lib/shell-quote.ts +11 -0
- package/extensions/lib/shell-result.ts +70 -0
- package/extensions/lib/shell-spawn.ts +70 -6
- package/extensions/lib/shell-tool.ts +75 -25
- package/extensions/lib/side-call-cache.ts +124 -0
- package/extensions/lib/side-call-run.ts +96 -0
- package/extensions/lib/side-call-usage.ts +38 -0
- package/extensions/lib/side-call.ts +13 -1
- package/extensions/lib/single-flight.ts +18 -0
- package/extensions/lib/skill-body.ts +42 -0
- package/extensions/lib/skill-scan.ts +63 -24
- package/extensions/lib/spill-file.ts +140 -0
- package/extensions/lib/subagent-handback.ts +113 -0
- package/extensions/lib/system-role.ts +156 -0
- package/extensions/lib/terminal-text.ts +114 -0
- package/extensions/lib/text-width.ts +47 -16
- package/extensions/lib/timer-ops.ts +20 -0
- package/extensions/lib/tool-additions.ts +149 -0
- package/extensions/lib/tool-call-corruption.ts +134 -0
- package/extensions/lib/tool-path.ts +66 -0
- package/extensions/lib/tool-variants.ts +69 -0
- package/extensions/lib/tui-render.ts +255 -27
- package/extensions/lib/turn-budget-layout.ts +143 -0
- package/extensions/lib/update-check.mjs +15 -2
- package/extensions/lib/usage-bus.ts +1 -1
- package/extensions/lib/user-denial.ts +38 -0
- package/extensions/lib/workspace-channel.ts +16 -0
- package/extensions/lib/worktree-channel.ts +31 -3
- package/extensions/lib/worktree-isolation.ts +40 -10
- package/extensions/lsp/client.ts +8 -9
- package/extensions/lsp/index.ts +70 -4
- package/extensions/lsp/keep-alive.ts +1 -1
- package/extensions/lsp/trust.ts +119 -0
- package/extensions/lsp/watcher.ts +1 -1
- package/extensions/mcp/announce.ts +87 -5
- package/extensions/mcp/client.ts +161 -48
- package/extensions/mcp/config.ts +132 -8
- package/extensions/mcp/discovery.ts +19 -0
- package/extensions/mcp/index.ts +209 -71
- package/extensions/mcp/oauth/browser.ts +38 -17
- package/extensions/mcp/oauth/flow.ts +25 -17
- package/extensions/mcp/oauth/provider.ts +14 -8
- package/extensions/mcp/oauth/store.ts +34 -16
- package/extensions/mcp/panel/keys.ts +12 -11
- package/extensions/mcp/panel/render.ts +9 -6
- package/extensions/mcp/schema.ts +104 -5
- package/extensions/mcp/trust.ts +151 -67
- package/extensions/memory/entries.ts +23 -14
- package/extensions/memory/index.ts +134 -28
- package/extensions/memory/open-external.ts +33 -18
- package/extensions/memory/panel.ts +135 -26
- package/extensions/newer-model/index.ts +31 -0
- package/extensions/notebook/description.ts +18 -0
- package/extensions/notebook/index.ts +6 -5
- package/extensions/notebook/notebook.ts +1 -1
- package/extensions/permissions/index.ts +1300 -381
- package/extensions/permissions/matcher.ts +425 -74
- package/extensions/permissions/modes.ts +6 -4
- package/extensions/permissions/panel/host.ts +130 -0
- package/extensions/permissions/panel/keys.ts +48 -0
- package/extensions/permissions/panel/render.ts +450 -0
- package/extensions/permissions/panel/state.ts +550 -0
- package/extensions/permissions/powershell-cmdlets.ts +198 -0
- package/extensions/permissions/powershell-paths.ts +197 -0
- package/extensions/permissions/powershell-rules.ts +207 -280
- package/extensions/permissions/powershell-tree.ts +557 -0
- package/extensions/permissions/project-trust.ts +27 -11
- package/extensions/permissions/protected-paths.ts +14 -2
- package/extensions/permissions/session-grant.ts +6 -0
- package/extensions/permissions/settings.ts +166 -31
- package/extensions/permissions/subagent-gate.ts +25 -0
- package/extensions/permissions/workspace.ts +78 -0
- package/extensions/plan-mode/index.ts +156 -69
- package/extensions/plan-mode/reminder.ts +89 -21
- package/extensions/plan-mode/texts.ts +177 -0
- package/extensions/plan-mode/viewer.ts +92 -27
- package/extensions/plugins/counts.ts +3 -3
- package/extensions/plugins/index.ts +61 -46
- package/extensions/plugins/install/install.ts +16 -0
- package/extensions/plugins/marketplace/sync.ts +9 -3
- package/extensions/plugins/marketplace/types.ts +3 -1
- package/extensions/plugins/panel/keys.ts +21 -24
- package/extensions/plugins/panel/render.ts +12 -6
- package/extensions/plugins/shell-expand.ts +107 -0
- package/extensions/plugins/template.ts +32 -15
- package/extensions/powershell/child.ts +7 -0
- package/extensions/powershell/description.ts +38 -6
- package/extensions/powershell/guards.ts +1 -1
- package/extensions/powershell/index.ts +12 -7
- package/extensions/recap/index.ts +65 -60
- package/extensions/recap/prompt.ts +2 -2
- package/extensions/recap/scheduler.ts +3 -5
- package/extensions/search-tools/grep-merge.ts +39 -0
- package/extensions/search-tools/index.ts +0 -0
- package/extensions/send-now/chord.ts +62 -0
- package/extensions/send-now/index.ts +133 -0
- package/extensions/session-title/index.ts +3 -0
- package/extensions/session-title/title.ts +4 -1
- package/extensions/skill/code-review.ts +97 -0
- package/extensions/skill/index.ts +421 -101
- package/extensions/skill/invoke.ts +128 -18
- package/extensions/skill/listing.ts +133 -9
- package/extensions/skill/panel/keys.ts +15 -16
- package/extensions/skill/panel/render.ts +5 -2
- package/extensions/skill/panel/state.ts +12 -1
- package/extensions/subagents/agent-args.ts +39 -0
- package/extensions/subagents/agent-description.ts +132 -0
- package/extensions/subagents/agents.ts +116 -23
- package/extensions/subagents/announce.ts +69 -0
- package/extensions/subagents/default-model.ts +2 -3
- package/extensions/subagents/delegation-steer.ts +4 -4
- package/extensions/subagents/fork-cache.ts +76 -0
- package/extensions/subagents/guide-agent.ts +189 -0
- package/extensions/subagents/hand-back-review.ts +3 -0
- package/extensions/subagents/index.ts +1493 -824
- package/extensions/subagents/live-runs.ts +26 -6
- package/extensions/subagents/model-select.ts +38 -25
- package/extensions/subagents/outcome.ts +2 -2
- package/extensions/subagents/panel-keys.ts +73 -31
- package/extensions/subagents/panel-render.ts +120 -96
- package/extensions/subagents/panel-widget.ts +60 -89
- package/extensions/subagents/runner.ts +108 -80
- package/extensions/subagents/runs.ts +39 -5
- package/extensions/subagents/send-to-main-tool.ts +1 -1
- package/extensions/subagents/session-turns.ts +32 -8
- package/extensions/subagents/shell-panel.ts +36 -178
- package/extensions/subagents/tasks-dialog.ts +170 -0
- package/extensions/subagents/viewport-mirror.ts +95 -0
- package/extensions/subagents/worktree.ts +57 -13
- package/extensions/system-prompt/environment.ts +19 -19
- package/extensions/system-prompt/idle-turn.ts +65 -0
- package/extensions/system-prompt/index.ts +131 -47
- package/extensions/system-prompt/template.ts +24 -50
- package/extensions/system-prompt/tiers/common.ts +23 -64
- package/extensions/system-prompt/tiers/frontier.ts +32 -11
- package/extensions/system-prompt/tiers/low.ts +67 -45
- package/extensions/system-prompt/tiers/mid.ts +96 -38
- package/extensions/system-reminder/index.ts +175 -13
- package/extensions/tasks/descriptions.ts +190 -0
- package/extensions/tasks/index.ts +120 -41
- package/extensions/tasks/store.ts +83 -16
- package/extensions/tool-call-corruption/child.ts +7 -0
- package/extensions/tool-call-corruption/index.ts +237 -0
- package/extensions/tool-search/announce.ts +16 -0
- package/extensions/tool-search/index.ts +189 -41
- package/extensions/tool-style/index.ts +68 -10
- package/extensions/tool-style/write-description.ts +40 -0
- package/extensions/tool-style/write-render.ts +237 -0
- package/extensions/turn-duration/index.ts +7 -3
- package/extensions/turn-duration/line.ts +47 -4
- package/extensions/web/backends.ts +6 -9
- package/extensions/web/description.ts +50 -0
- package/extensions/web/index.ts +118 -53
- package/extensions/web/native-call.ts +15 -0
- package/extensions/web/native-results.ts +41 -0
- package/extensions/web-fetch/description.ts +42 -0
- package/extensions/web-fetch/extract.ts +53 -6
- package/extensions/web-fetch/index.ts +125 -76
- package/extensions/web-fetch/page-content.ts +19 -0
- package/extensions/web-fetch/response.ts +49 -0
- package/extensions/web-fetch/summarize.ts +9 -10
- package/extensions/workflow/agent-session.ts +105 -18
- package/extensions/workflow/args.ts +24 -0
- package/extensions/workflow/description.ts +67 -0
- package/extensions/workflow/globals.ts +17 -3
- package/extensions/workflow/index.ts +145 -162
- package/extensions/workflow/records.ts +1 -0
- package/extensions/workflow/run-manager.ts +29 -6
- package/extensions/workflow/saved-workflows.ts +3 -2
- package/extensions/workflow/types.ts +22 -1
- package/extensions/workflow/viewer.ts +54 -24
- package/extensions/workflow/widget.ts +20 -0
- package/extensions/worktree/descriptions.ts +91 -0
- package/extensions/worktree/guards.ts +316 -54
- package/extensions/worktree/index.ts +121 -39
- package/extensions/worktree/powershell-guards.ts +167 -0
- package/extensions/worktree/rewrite.ts +14 -16
- package/package.json +18 -7
- package/skills/artifact-design/SKILL.md +85 -0
- package/skills/code-review/SKILL.md +20 -20
- package/skills/code-review/cells/arguments-and-flags.md +19 -0
- package/skills/code-review/cells/high-3x5-recall-verify.md +137 -0
- package/skills/code-review/cells/high-8-inline.md +122 -0
- package/skills/code-review/cells/low-1-pass-max4.md +27 -0
- package/skills/code-review/cells/low-1-pass-min-files-4.md +28 -0
- package/skills/code-review/cells/max-5x5-verify-sweep.md +162 -0
- package/skills/code-review/cells/medium-3x5-verify.md +132 -0
- package/skills/code-review/cells/minimal-prompt.md +32 -0
- package/skills/code-review/cells/xhigh-10-inline-sweep.md +149 -0
- package/skills/code-review/cells/xhigh-5x5-verify-sweep.md +162 -0
- package/skills/fewer-permission-prompts/SKILL.md +1 -1
- package/skills/loop/SKILL.md +11 -0
- package/skills/security-review/SKILL.md +2 -5
- package/skills/simplify/SKILL.md +7 -5
- package/skills/workflow-authoring/SKILL.md +143 -0
- package/themes/onecode-light.json +1 -1
- package/themes/onecode.json +1 -1
- package/types/app.d.ts +58 -0
- package/types/community-packages.d.ts +26 -1
- package/extensions/auto-mode/recoverability.ts +0 -229
- package/extensions/lib/capability-index.ts +0 -466
- package/extensions/lib/model-facts.generated.json +0 -2675
- package/extensions/lib/model-facts.ts +0 -162
|
@@ -9,28 +9,39 @@ wake-ups, and how the results of background work reach the model.
|
|
|
9
9
|
## The task list
|
|
10
10
|
|
|
11
11
|
For multi-step work the model keeps a structured task list, using the
|
|
12
|
-
`task_create`, `task_get`, `task_list`, and `task_update` tools.
|
|
12
|
+
`task_create`, `task_get`, `task_list`, and `task_update` tools. Frontier
|
|
13
|
+
models and Sonnet 5 or later run without them, as in Claude Code, unless you
|
|
14
|
+
set `CLAUDE_CODE_ENABLE_TODO_TOOLS=1` ([Providers and
|
|
15
|
+
models](providers-and-models.md#prompting-adapts-to-the-model)). Each task
|
|
13
16
|
has a subject, a description, a status (pending, in progress, or
|
|
14
17
|
completed), an optional owner, and dependencies on other tasks.
|
|
15
18
|
|
|
16
19
|
While the list has entries, a pinned widget below the transcript shows a
|
|
17
20
|
summary line and up to 12 tasks: `✔` for completed, `◼` for in progress,
|
|
18
|
-
`◻` for pending.
|
|
21
|
+
`◻` for pending. Once every task is completed, the list clears itself about
|
|
22
|
+
five seconds later and the widget goes away. A new task starts a fresh list,
|
|
23
|
+
and its numbering carries on from the old one.
|
|
19
24
|
|
|
20
|
-
|
|
|
25
|
+
| Key | What it does |
|
|
21
26
|
|---|---|
|
|
22
|
-
|
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
| **alt+t** (**ctrl+\\** on macOS) | Hides the widget down to one line, or shows it again. |
|
|
28
|
+
|
|
29
|
+
`/tasks` isn't about this list. As in Claude Code, it opens the background
|
|
30
|
+
tasks: see [Talk to an agent](subagents-and-workflows.md#talk-to-an-agent).
|
|
25
31
|
|
|
26
32
|
The list is stored inside the session, so it survives a resume and follows
|
|
27
|
-
the branch you're on in `/tree`.
|
|
33
|
+
the branch you're on in `/tree`. A list that was already finished comes back
|
|
34
|
+
empty. If the model hasn't touched the list for
|
|
28
35
|
a while during a long task, it's reminded that the list exists.
|
|
29
36
|
|
|
30
37
|
## Background shells
|
|
31
38
|
|
|
32
39
|
When the model runs a command with `run_in_background`, the command starts
|
|
33
|
-
detached and the model gets a task id at once.
|
|
40
|
+
detached and the model gets a task id at once. A background command has no
|
|
41
|
+
time limit: it runs until it exits or is stopped, even if the model passed a
|
|
42
|
+
`timeout`, so a dev server started this way keeps running. (In a `-p` or
|
|
43
|
+
`--mode json` run, the command runs in the foreground instead and stops at
|
|
44
|
+
its timeout; see [Non-interactive runs](#non-interactive-runs).) Output spools to a log file
|
|
34
45
|
under the session directory. When the command finishes, the model is
|
|
35
46
|
notified with the result, and it can read the output at any time with
|
|
36
47
|
`task_output` or stop the command with `task_stop`.
|
|
@@ -52,6 +63,16 @@ The turn-duration line reports how many shells are still running when a
|
|
|
52
63
|
turn ends. When a session ends, running shells are stopped and the next
|
|
53
64
|
session is told which ones.
|
|
54
65
|
|
|
66
|
+
Background work belongs to the session. While a shell, monitor, background
|
|
67
|
+
agent, or scheduled job is active, a line under the prompt counts them and
|
|
68
|
+
reminds you that `/clear` or quitting stops them. Before `/clear`, `/new`,
|
|
69
|
+
`/resume`, or a fork stops anything, One Code lists what's running and asks
|
|
70
|
+
first. **Cancel** is the default (Esc does the same), so you can let the work
|
|
71
|
+
finish or stop it from `/tasks` before switching. Quitting can't be paused,
|
|
72
|
+
so the line under the prompt is the only warning you get there. A process
|
|
73
|
+
that a finished shell left behind, such as a dev server started with `&`,
|
|
74
|
+
keeps running until you quit.
|
|
75
|
+
|
|
55
76
|
## Monitors
|
|
56
77
|
|
|
57
78
|
The `monitor` tool watches a long-running command, or a WebSocket URL, and
|
|
@@ -62,28 +83,75 @@ noisy process doesn't flood the conversation.
|
|
|
62
83
|
|
|
63
84
|
A monitor runs until its command exits or its timeout passes (five minutes
|
|
64
85
|
by default, one hour at most), or for the whole session when started as
|
|
65
|
-
persistent. The model can stop it with `task_stop`.
|
|
86
|
+
persistent. The model can stop it with `task_stop`. The whole stream is
|
|
87
|
+
also written to a log file under the session directory, like a background
|
|
88
|
+
shell's. When `task_output` has more than it can show, it returns the most
|
|
89
|
+
recent part and names that file.
|
|
66
90
|
|
|
67
91
|
A monitor isn't auto-approved, because it runs a shell command; the
|
|
68
92
|
permission gate treats it like `bash`.
|
|
69
93
|
|
|
70
94
|
## Scheduled wake-ups and loops
|
|
71
95
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
96
|
+
The model can schedule prompts for itself within a session. Ask it to
|
|
97
|
+
"check CI every 10 minutes" or "remind me at 2:30pm to look at the deploy",
|
|
98
|
+
and it calls `cron_create` with a five-field cron expression in your local
|
|
99
|
+
time. A recurring job fires on every match. A one-shot job fires once and
|
|
100
|
+
deletes itself. `cron_list` shows the session's jobs, and `cron_delete`
|
|
101
|
+
cancels one. A session holds up to 50 jobs.
|
|
102
|
+
|
|
103
|
+
A scheduled prompt fires only while the model is idle. A job that comes due
|
|
104
|
+
during a turn waits for the turn to end, then fires once, however many
|
|
105
|
+
times it matched in the meantime. Like Claude Code, the scheduler spreads
|
|
106
|
+
jobs out with a fixed per-job delay: a recurring job fires up to half its
|
|
107
|
+
period late (at most 30 minutes), and a one-shot set for :00 or :30 fires
|
|
108
|
+
up to 90 seconds early. A prompt that's a slash command, such as
|
|
109
|
+
`/babysit-prs`, runs that skill when it fires. When it fires, the transcript shows a dim
|
|
110
|
+
`Running scheduled task` line and the model gets the prompt as its next
|
|
111
|
+
input. Recurring jobs expire after seven days: they fire one last time and
|
|
112
|
+
are deleted. Nothing is written to disk, so jobs end with the session;
|
|
113
|
+
`/clear` asks before cancelling them, then tells you which ones it cancelled.
|
|
114
|
+
|
|
115
|
+
`/loop` runs a task repeatedly. It's Claude Code's `/loop` skill: One Code
|
|
116
|
+
hands your input to the model, and the model sets up the loop itself.
|
|
117
|
+
|
|
118
|
+
- **Fixed interval.** `/loop 5m check whether the deploy finished`, or
|
|
119
|
+
`/loop check the deploy every 20m`, makes the model convert the interval
|
|
120
|
+
to a cron expression, create a recurring job with `cron_create`, confirm
|
|
121
|
+
it with the job id, and run the task right away. An interval that
|
|
122
|
+
doesn't divide its unit evenly is rounded, and the model says what it
|
|
123
|
+
rounded to.
|
|
79
124
|
- **Self-paced.** `/loop watch the CI run` with no interval lets the model
|
|
80
|
-
choose when to check next. It
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
125
|
+
choose when to check next. It runs the task, then calls
|
|
126
|
+
`schedule_wakeup` with a delay between one minute and one hour. When
|
|
127
|
+
the wake-up fires, the same `/loop` input runs again. If the model ends a
|
|
128
|
+
turn without scheduling the next one, One Code schedules a 20-minute
|
|
129
|
+
fallback once; if that turn also schedules nothing, the loop ends. A
|
|
130
|
+
self-paced loop also ends after seven days.
|
|
131
|
+
- **No prompt.** A bare `/loop` runs an autonomous check that keeps your
|
|
132
|
+
current work moving (CI, review threads, unfinished steps), self-paced.
|
|
133
|
+
`/loop 30m` runs the same check on a cron. If `.claude/loop.md` exists in
|
|
134
|
+
the project (or `~/.claude/loop.md`), its tasks replace the autonomous
|
|
135
|
+
check, and the model sees the file again whenever you edit it.
|
|
136
|
+
|
|
137
|
+
When a self-paced tick finds nothing to do (the model reports `noop: true`),
|
|
138
|
+
the next wake-up line counts the streak, for example `Resuming /loop wakeup
|
|
139
|
+
(2:04pm) · 2 no-op ticks since 2:02pm`, and those quiet ticks leave the
|
|
140
|
+
model's context, replaced by one line saying the loop is healthy. The ticks
|
|
141
|
+
stay visible above in the terminal.
|
|
142
|
+
|
|
143
|
+
A background subagent can schedule its own jobs with the same tools. It sees
|
|
144
|
+
and cancels only its own, a job it made fires into that agent while it is
|
|
145
|
+
still running, and the job is dropped once the agent has ended. The main
|
|
146
|
+
session's `cron_list` shows every job. A subagent that runs until its task is
|
|
147
|
+
done, such as one another subagent starts or any subagent in a `-p` run, can't
|
|
148
|
+
schedule a job: nothing would be left to receive it, so its `cron_create`
|
|
149
|
+
returns an error.
|
|
150
|
+
|
|
151
|
+
To stop a loop, ask the model to stop it, as in Claude Code. It cancels the
|
|
152
|
+
job with `cron_delete`, or ends a self-paced loop with `schedule_wakeup`.
|
|
153
|
+
Several loops can run at once. Set `CLAUDE_CODE_LOOP_KEEPALIVE=0` to turn
|
|
154
|
+
off the fallback wake-up.
|
|
87
155
|
|
|
88
156
|
## The background list
|
|
89
157
|
|
|
@@ -100,8 +168,12 @@ Background work reports back through notifications:
|
|
|
100
168
|
batch of tool calls, or starts a new turn if the model is idle.
|
|
101
169
|
- Notifications that arrive within a quarter of a second of each other are
|
|
102
170
|
merged into one message.
|
|
103
|
-
- After you interrupt a turn,
|
|
104
|
-
|
|
171
|
+
- After you interrupt a turn, or a turn ends on a provider error,
|
|
172
|
+
notifications are held instead of starting a turn on their own. The held
|
|
173
|
+
notifications ride your next prompt as one message, or go to the next turn
|
|
174
|
+
that starts some other way, such as a skill you type. A monitor keeps a
|
|
175
|
+
single batch while it waits. Scheduled prompts from `/loop` and
|
|
176
|
+
`cron_create` are not held: they keep firing on schedule.
|
|
105
177
|
- Each notification is framed as an automated event, so the model doesn't
|
|
106
178
|
mistake it for something you said or approved.
|
|
107
179
|
|
|
@@ -110,4 +182,7 @@ Background work reports back through notifications:
|
|
|
110
182
|
In `-p` and `--mode json` runs nothing can run in the background, because
|
|
111
183
|
the process exits when the turn settles. Background shells, monitors,
|
|
112
184
|
subagents, and workflows run to completion and return their output
|
|
113
|
-
directly.
|
|
185
|
+
directly. A shell command run this way stops at its `timeout`, or after two
|
|
186
|
+
minutes when the model gives none, and its result says why it stopped. `/loop`, `schedule_wakeup`, and scheduled prompts don't fire;
|
|
187
|
+
`cron_create` still creates the job, and its result says the job can never
|
|
188
|
+
fire.
|
|
@@ -42,13 +42,22 @@ the result on an indented `⎿` line. Thinking is collapsed behind
|
|
|
42
42
|
Set `CC_NO_INPUT_MARKER=1` or `CC_NO_ASSISTANT_MARKER=1` to remove either
|
|
43
43
|
marker.
|
|
44
44
|
|
|
45
|
+
When you type a slash command that takes an argument followed by a space, a
|
|
46
|
+
dim placeholder after the cursor shows what goes there, as in Claude Code:
|
|
47
|
+
`/loop ` shows `[interval] [prompt]`, and `/add-dir ` shows `<path>`. It
|
|
48
|
+
disappears once you start typing the argument. Skills and custom commands
|
|
49
|
+
get theirs from an `argument-hint` line in their frontmatter. A custom
|
|
50
|
+
command that lists `arguments` instead shows the names you haven't typed
|
|
51
|
+
yet, one space at a time.
|
|
52
|
+
|
|
45
53
|
## The working indicator
|
|
46
54
|
|
|
47
55
|
While the model works, a spinner shows a random verb, the elapsed time, and
|
|
48
56
|
the tokens streamed so far, for example `✳ Cogitating… (12s · ↓ 843 tokens)`.
|
|
49
57
|
The clock runs from the start of the turn until it settles, through retries.
|
|
50
58
|
|
|
51
|
-
After the turn, a dim `✻ Cooked for 5m 12s` line reports the
|
|
59
|
+
After the turn, a dim `✻ Cooked for 5m 12s · done 2:33 PM` line reports the
|
|
60
|
+
total time and when the turn finished.
|
|
52
61
|
Set `CC_TURN_DURATION=0` to turn it off.
|
|
53
62
|
|
|
54
63
|
## The status line
|
|
@@ -56,7 +65,9 @@ Set `CC_TURN_DURATION=0` to turn it off.
|
|
|
56
65
|
The footer replaces pi's status line with One Code's own:
|
|
57
66
|
|
|
58
67
|
- **Left:** the working directory, the git branch, and the open pull
|
|
59
|
-
request number for that branch when the GitHub CLI is installed.
|
|
68
|
+
request number for that branch when the GitHub CLI is installed. The pull
|
|
69
|
+
request is checked again every minute while you're using the session, so
|
|
70
|
+
one merged or closed mid-session drops off, and a new one appears.
|
|
60
71
|
- **Right:** context usage as `used/window (percent)`, the session cost,
|
|
61
72
|
the cache-hit rate of the latest turn, the model, and the reasoning
|
|
62
73
|
effort. When ultracode is armed, the effort reads `✦ ultracode`.
|
|
@@ -78,13 +89,14 @@ when there isn't.
|
|
|
78
89
|
- Press **↓** from an empty editor to focus it. If background shells exist,
|
|
79
90
|
the first **↓** lands on the shells chip; a second **↓** moves to the
|
|
80
91
|
subagent rows. Otherwise the first **↓** lands on the first subagent.
|
|
81
|
-
- In the subagent rows, **↑** and **↓** select, **Enter**
|
|
82
|
-
selected agent
|
|
83
|
-
|
|
84
|
-
other key
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
**
|
|
92
|
+
- In the subagent rows, **↑** and **↓** select, **Enter** views the
|
|
93
|
+
selected agent (or `main`), **x** stops it, **ctrl+x** then **ctrl+k**
|
|
94
|
+
stops every agent, and **Esc** hands focus back to the editor. Typing
|
|
95
|
+
any other key does the same, with the key included.
|
|
96
|
+
- While you view an agent, the editor talks to it: the border shows which
|
|
97
|
+
agent, and what you send goes to that agent instead of the main
|
|
98
|
+
conversation. **PgUp** and **PgDn** scroll its transcript, and **Esc** in
|
|
99
|
+
an empty editor takes you back to `main`.
|
|
88
100
|
|
|
89
101
|
The panel's own footer names the keys that apply at each stage. Mouse-wheel
|
|
90
102
|
scrolling deliberately isn't enabled in the transcript view, because
|
|
@@ -130,7 +142,7 @@ and [Plan mode](permissions-modes-and-auto-mode.md#plan-mode).
|
|
|
130
142
|
| `/mcp` | The MCP server manager. | **↑↓** navigate, **Enter** open a server or run an action, a digit picks a numbered action, **Esc** back or close. |
|
|
131
143
|
| `/doctor report` | The setup report. | **↑↓** or **j**/**k** scroll, **Space**/**b** page, **g**/**G** top and end, **f** run the checkup, **Esc** or **q** close. |
|
|
132
144
|
| `/memory` | The instruction and memory file picker. | **↑↓** move, **Enter** open, **Esc** close. |
|
|
133
|
-
| `/effort` | The reasoning-effort slider. | **←→** or **h**/**l** adjust, **Enter** confirm, **Esc** cancel. |
|
|
145
|
+
| `/effort` | The reasoning-effort slider. | **←→** or **h**/**l** adjust, **Enter** confirm, **s** this session only, **Esc** cancel. |
|
|
134
146
|
|
|
135
147
|
**ctrl+c** closes any panel.
|
|
136
148
|
|
|
@@ -140,8 +152,8 @@ them for its own scrollback; use the keys the panel's footer names.
|
|
|
140
152
|
## Full-screen mode
|
|
141
153
|
|
|
142
154
|
The bundled app runs in pi's full-screen mode, on the terminal's alternate
|
|
143
|
-
screen, and restores your terminal when you exit.
|
|
144
|
-
|
|
155
|
+
screen, and restores your terminal when you exit. pi 1.0 and later start
|
|
156
|
+
in full-screen mode too; on an older pi it's opt-in. See
|
|
145
157
|
[Full-screen mode and themes](configuration.md#full-screen-mode-and-themes).
|
|
146
158
|
|
|
147
159
|
## Themes
|
package/docs/guide/tools.md
CHANGED
|
@@ -46,7 +46,9 @@ reported as deleted or moved.
|
|
|
46
46
|
|
|
47
47
|
## Shell
|
|
48
48
|
|
|
49
|
-
`bash` runs a shell command.
|
|
49
|
+
`bash` runs a shell command. A command in the foreground stops after its
|
|
50
|
+
`timeout` (in milliseconds, at most 600000), or after two minutes when the
|
|
51
|
+
model gives none, as in Claude Code. Its `run_in_background` option starts the
|
|
50
52
|
command detached and returns a task id; output spools to a log file under
|
|
51
53
|
the session directory, and completion is reported to the model as a
|
|
52
54
|
notification. A background shell shows up in the shells section of the
|
|
@@ -88,7 +90,7 @@ the model to a better route:
|
|
|
88
90
|
|---|---|
|
|
89
91
|
| `Agent` | Starts a subagent with its own context window. Runs in the background and returns a task id; the result arrives as a notification. Supports forking the current conversation and isolating the agent in a git worktree. |
|
|
90
92
|
| `SendMessage` | Sends a message to an agent that was started earlier: a running one receives it live, a finished one is resumed from its saved session. Deferred. |
|
|
91
|
-
| `list_agents` | Lists the agents started in this session and their status.
|
|
93
|
+
| `list_agents` | Lists the agents started in this session and their status. |
|
|
92
94
|
| `workflow` | Runs a JavaScript script that coordinates many agents. This is the `ultracode` mechanism. |
|
|
93
95
|
|
|
94
96
|
See [Subagents and workflows](subagents-and-workflows.md).
|
|
@@ -101,6 +103,39 @@ See [Subagents and workflows](subagents-and-workflows.md).
|
|
|
101
103
|
| `ask_user_question` | Asks you up to four structured questions in a tabbed dialog. See [The terminal interface](terminal-interface.md#the-question-dialog). |
|
|
102
104
|
| `skill` | Runs a skill by name. See [Skills](skills-plugins-and-mcp.md#skills). |
|
|
103
105
|
|
|
106
|
+
## Artifacts
|
|
107
|
+
|
|
108
|
+
`artifact` saves a self-contained HTML page the model wrote (a report, a
|
|
109
|
+
dashboard, a visual explainer, a small tool) and opens it in your default
|
|
110
|
+
browser. Claude Code publishes these pages to claude.ai; One Code keeps them
|
|
111
|
+
on your machine under `~/.onecode/artifacts/`, so nothing is uploaded.
|
|
112
|
+
Before writing a page, the model loads the bundled `artifact-design` skill,
|
|
113
|
+
which holds the page rules: a real title, light and dark themes, and a
|
|
114
|
+
layout that works at phone width.
|
|
115
|
+
|
|
116
|
+
The page opens under a slim bar. The home icon goes to the gallery, and
|
|
117
|
+
**Download** saves the page as an HTML file. The title opens a menu with the
|
|
118
|
+
version and update time, Download HTML, Copy file path, Reload, the page
|
|
119
|
+
without the bar, the list of versions, and All artifacts. Claude Code's
|
|
120
|
+
Share and Chat buttons are left out, since there is no server behind a local
|
|
121
|
+
artifact.
|
|
122
|
+
|
|
123
|
+
When the model publishes the same file again with changed contents, the
|
|
124
|
+
artifact is updated in place as a new version, and every earlier version is
|
|
125
|
+
kept. Publishing unchanged contents keeps the current version. Pick an earlier
|
|
126
|
+
version from the title menu to view or download it. The browser tab does not
|
|
127
|
+
reload by itself, so refresh it to see the update.
|
|
128
|
+
|
|
129
|
+
`~/.onecode/artifacts/index.html` is a gallery of every artifact, newest
|
|
130
|
+
first, with links to each earlier version and a Download button. Run `/artifacts` to pick one and open it, save a copy to
|
|
131
|
+
`~/Downloads`, show its path, or delete it. To stop the browser opening on
|
|
132
|
+
each new artifact, set `artifacts.autoOpen` to `false` (see
|
|
133
|
+
[Settings reference](configuration.md#settings-reference)). Over SSH, or on
|
|
134
|
+
a machine with no display, the model gives you the file path instead.
|
|
135
|
+
|
|
136
|
+
Publishing passes through the permission gate like any other tool, and in
|
|
137
|
+
plan mode it is refused. Deleting always asks you first. Deferred.
|
|
138
|
+
|
|
104
139
|
## Tasks and background work
|
|
105
140
|
|
|
106
141
|
| Tool | What it does |
|
|
@@ -108,7 +143,8 @@ See [Subagents and workflows](subagents-and-workflows.md).
|
|
|
108
143
|
| `task_create`, `task_get`, `task_list`, `task_update` | Maintain the structured task list shown in the pinned widget. Deferred. |
|
|
109
144
|
| `monitor` | Watches a long-running command or a WebSocket and reports each output line as an event. Deferred. |
|
|
110
145
|
| `task_output`, `task_stop` | Read the output of a background task or stop it. Deferred. |
|
|
111
|
-
| `schedule_wakeup` | Schedules
|
|
146
|
+
| `schedule_wakeup` | Schedules the next iteration of a self-paced `/loop`. The pending wake-up shows in `cron_list`. |
|
|
147
|
+
| `cron_create`, `cron_list`, `cron_delete` | Schedule a prompt on a cron expression within the session, list the jobs, or cancel one. A fixed-interval `/loop` uses them. Deferred. |
|
|
112
148
|
|
|
113
149
|
See [Tasks and background work](tasks-and-background-work.md).
|
|
114
150
|
|
|
@@ -150,8 +186,11 @@ and the model is steered to `tool_search`.
|
|
|
150
186
|
In `-p` and `--mode json` runs the process exits when the turn settles, so
|
|
151
187
|
nothing can run in the background. Tools that would detach work run to
|
|
152
188
|
completion instead and return the output in their result: `bash` and
|
|
153
|
-
`powershell` with `run_in_background`, `Agent`, `monitor`, and `workflow`.
|
|
154
|
-
|
|
189
|
+
`powershell` with `run_in_background`, `Agent`, `monitor`, and `workflow`.
|
|
190
|
+
A shell command run this way holds the run like a foreground command, so it
|
|
191
|
+
stops at the same timeout, two minutes unless the model gives another, and
|
|
192
|
+
the result says so. Timers such as
|
|
193
|
+
`schedule_wakeup`, `cron_create`, and `/loop` never fire in these modes.
|
|
155
194
|
|
|
156
195
|
Give a scripted run its own deadline. One Code has no idle timeout on a
|
|
157
196
|
provider response, so a stream that stalls mid-reply keeps the process
|
|
@@ -177,6 +216,7 @@ matchers, and mapped to One Code's names. Case is ignored.
|
|
|
177
216
|
| `Read`, `Write`, `Edit` | `read`, `write`, `edit` |
|
|
178
217
|
| `Grep`, `Glob`, `LS` | `grep`, `find`, `ls` |
|
|
179
218
|
| `NotebookEdit` | `notebook_edit` |
|
|
219
|
+
| `Artifact` | `artifact` |
|
|
180
220
|
| `WebFetch`, `WebSearch` | `web_fetch`, `web_search` |
|
|
181
221
|
| `Task`, `Agent` | `Agent` |
|
|
182
222
|
| `SendMessage` | `SendMessage` |
|
|
@@ -190,6 +230,7 @@ matchers, and mapped to One Code's names. Case is ignored.
|
|
|
190
230
|
| `TaskOutput`, `TaskStop` | `task_output`, `task_stop` |
|
|
191
231
|
| `Monitor` | `monitor` |
|
|
192
232
|
| `ScheduleWakeup` | `schedule_wakeup` |
|
|
233
|
+
| `CronCreate`, `CronList`, `CronDelete` | `cron_create`, `cron_list`, `cron_delete` |
|
|
193
234
|
| `EnterWorktree`, `ExitWorktree` | `enter_worktree`, `exit_worktree` |
|
|
194
235
|
| `LSP` | `lsp_diagnostics` |
|
|
195
236
|
| `ListMcpResourcesTool`, `ReadMcpResourceTool`, `ReadMcpResourceDirTool` | `list_mcp_resources`, `read_mcp_resource`, `read_mcp_resource_dir` |
|
|
@@ -38,7 +38,8 @@ pins pi itself.
|
|
|
38
38
|
|
|
39
39
|
**`Failed to load extension` on startup.** The extension package and the
|
|
40
40
|
pi it runs on are out of step. On the bundled app, reinstall it. On your own
|
|
41
|
-
pi, run `pi update
|
|
41
|
+
pi, run `pi update npm:one-code-extension`, and update pi itself with
|
|
42
|
+
`pi update` if it's older than 0.84.3.
|
|
42
43
|
|
|
43
44
|
**The stock pi first-run wizard didn't appear.** The bundled app seeds
|
|
44
45
|
pi's settings with the One Code theme, quiet startup, and full-screen mode
|
|
@@ -87,10 +88,10 @@ nothing usable; the gate fails closed. Check `/auto-mode config` for the
|
|
|
87
88
|
model in use, and `/doctor report` for provider credentials. Set
|
|
88
89
|
`CC_AUTO_MODE_DEBUG=1` to see each verdict on stderr.
|
|
89
90
|
|
|
90
|
-
**The classifier approves or blocks something it shouldn't.**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
**The classifier approves or blocks something it shouldn't.** A cheap-tier
|
|
92
|
+
classifier is a measurably weaker boundary than a workhorse- or
|
|
93
|
+
frontier-tier one. Choose a stronger classifier with `/auto-mode model`, or
|
|
94
|
+
a stronger main model.
|
|
94
95
|
|
|
95
96
|
## Models and providers
|
|
96
97
|
|
|
@@ -107,7 +108,8 @@ session is worth reporting.
|
|
|
107
108
|
**A side call failed on a Gemini or OpenAI model with a message about
|
|
108
109
|
reasoning or temperature.** Some models reject an option others accept.
|
|
109
110
|
One Code avoids these options in its side calls; if you still see this,
|
|
110
|
-
|
|
111
|
+
report the model and error. The reader model is selected automatically;
|
|
112
|
+
`/auto-mode model` chooses the classifier.
|
|
111
113
|
|
|
112
114
|
## Web search
|
|
113
115
|
|
|
@@ -157,9 +159,11 @@ with the session. The new session lists what was stopped.
|
|
|
157
159
|
**A resumed session is in a different permission mode.** Modes aren't
|
|
158
160
|
saved with the session. Pass `--permission-mode` or set a default.
|
|
159
161
|
|
|
160
|
-
**The `/effort` level reset after a restart.** `/effort`
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
**The `/effort` level reset after a restart.** `/effort` saves `low`,
|
|
163
|
+
`medium`, `high` and `xhigh` for the model you're on, so a level set on a
|
|
164
|
+
different model, a `max` or `ultracode` level, or one picked with **s**
|
|
165
|
+
(this session only) doesn't come back. Set it again on this model, or pass
|
|
166
|
+
`--thinking <level>` at launch.
|
|
163
167
|
|
|
164
168
|
## Interface
|
|
165
169
|
|
package/docs/guide/windows.md
CHANGED
|
@@ -59,7 +59,13 @@ and interactive git are refused because the shell has no console to prompt
|
|
|
59
59
|
on.
|
|
60
60
|
|
|
61
61
|
Inside a worktree session, every PowerShell command is prefixed with a
|
|
62
|
-
`Set-Location` into the worktree, the way bash commands get a `cd`.
|
|
62
|
+
`Set-Location` into the worktree, the way bash commands get a `cd`. The
|
|
63
|
+
same git guard applies too: git that would reach your main checkout or
|
|
64
|
+
another worktree (through `Set-Location`, `git -C`, `--git-dir`, or a
|
|
65
|
+
`GIT_DIR` variable) is refused, and so is git inside a script block, a
|
|
66
|
+
call operator or a nested shell, where the guard can't tell which
|
|
67
|
+
repository it would touch. Plain `git` statements in the worktree run as
|
|
68
|
+
usual.
|
|
63
69
|
|
|
64
70
|
## Permission rules
|
|
65
71
|
|
|
@@ -88,35 +94,52 @@ counterparts. Hook matchers accept `PowerShell`, `Bash|PowerShell`, and
|
|
|
88
94
|
|
|
89
95
|
## Auto mode and plan mode
|
|
90
96
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
97
|
+
One Code judges a PowerShell command the way PowerShell itself reads it. It
|
|
98
|
+
keeps one PowerShell process running in the background and asks PowerShell's
|
|
99
|
+
own parser what the command does: which commands it runs, how each argument
|
|
100
|
+
binds to a parameter, and what every alias really points to on your machine.
|
|
101
|
+
That process is the same PowerShell the tool runs, so the check and the
|
|
102
|
+
command can't disagree about quotes, backticks, or a stray `–` dash. If the
|
|
103
|
+
parser can't answer (it's still starting, it crashed, or your machine runs
|
|
104
|
+
PowerShell in Constrained Language Mode), nothing gets a shortcut and the
|
|
105
|
+
command takes the ordinary route.
|
|
106
|
+
|
|
107
|
+
Read-only commands run without a prompt or a classifier call. These are
|
|
108
|
+
Claude Code's read-only cmdlets, `Get-ChildItem`, `Get-Content`, `Get-Item`,
|
|
109
|
+
`Test-Path`, `Resolve-Path`, `Select-String`, `Get-Location`, `Get-Process`,
|
|
110
|
+
`Get-Service`, `Get-FileHash`, `Get-Acl`, `Format-Hex`, `findstr`,
|
|
111
|
+
`where.exe`, `Write-Output` and `Write-Host`, plus the pipeline cmdlets
|
|
112
|
+
they're usually piped through: `Select-Object`, `Sort-Object`,
|
|
113
|
+
`Measure-Object`, `Group-Object`, `ConvertFrom-Json`, `Out-String`,
|
|
114
|
+
`Out-Null` and the `Format-*` family. `Where-Object` and `ForEach-Object`
|
|
115
|
+
count too when their script block only reads `$_` and compares, like
|
|
116
|
+
`Where-Object { $_.Length -gt 1kb }`. Each cmdlet is checked parameter by
|
|
117
|
+
parameter, so `Get-Content -Wait` or `Get-ChildItem -FollowSymlink` doesn't
|
|
118
|
+
qualify. Every path has to land inside the project or one of the harness's
|
|
119
|
+
own session directories (auto-memory, the scratchpad, persisted tool output,
|
|
120
|
+
this project's transcripts), judged where it resolves, so a symlink out of
|
|
121
|
+
the project counts as outside. A UNC path, `~`, a registry or environment
|
|
122
|
+
drive, a provider path, or `..` always takes the ordinary route. So does a
|
|
123
|
+
cmdlet that takes paths from the pipeline, like `Get-Content list.txt |
|
|
124
|
+
Get-Item`, because it reads whatever the list names.
|
|
125
|
+
|
|
126
|
+
On a frontier or workhorse model in auto or acceptEdits mode, Claude Code's
|
|
127
|
+
acceptEdits cmdlets skip the classifier too: `Set-Content`, `Add-Content`,
|
|
128
|
+
`Remove-Item` and `Clear-Content` on paths inside the working directories.
|
|
129
|
+
The same limits as the bash file commands apply. A wildcard target, a path
|
|
130
|
+
outside, a credential or protected file, or removing the project root or a
|
|
131
|
+
`.git` goes to the classifier. So does a recursive `Remove-Item` over a
|
|
132
|
+
folder with a link inside, because Windows PowerShell 5.1 follows it.
|
|
133
|
+
`New-Item`, `Copy-Item` and `Move-Item` are always classified, as Claude Code
|
|
134
|
+
always asks about them. On cheaper models every write is classified.
|
|
135
|
+
|
|
136
|
+
Everything else goes to the auto-mode classifier. The safety floor still
|
|
137
|
+
applies. Any PowerShell line that names a permission settings file
|
|
138
|
+
(`.claude/settings.json`, `~/.onecode/settings.json`, `.claude.json`,
|
|
139
|
+
managed settings) stops for you, whether it reads or writes.
|
|
140
|
+
|
|
141
|
+
Plan mode allows the read-only commands and refuses the rest, as it does for
|
|
142
|
+
bash.
|
|
120
143
|
|
|
121
144
|
## Hooks
|
|
122
145
|
|
|
@@ -183,7 +206,11 @@ is the same.
|
|
|
183
206
|
|
|
184
207
|
## Not provided
|
|
185
208
|
|
|
186
|
-
- No
|
|
209
|
+
- No shortcut for most of PowerShell's native commands (`git`, `npm`, `rg`):
|
|
210
|
+
they always go to the classifier in auto mode, where the bash tool
|
|
211
|
+
fast-paths the read-only ones. Windows' own `findstr` and `where.exe` are
|
|
212
|
+
the exceptions: a read-only use inside the project runs without the
|
|
213
|
+
classifier, and plan mode allows it.
|
|
187
214
|
- No sandbox on Windows. Claude Code has none there either.
|
|
188
215
|
- `defaultShell` for the user's own `!` prefix is pi's to handle; One Code
|
|
189
216
|
does not read it.
|