@bastani/atomic 0.9.20-alpha.5 → 0.9.20-alpha.7
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/CHANGELOG.md +73 -0
- package/README.md +37 -0
- package/dist/builtin/intercom/CHANGELOG.md +10 -0
- package/dist/builtin/intercom/broker/broker.ts +110 -39
- package/dist/builtin/intercom/broker/client.ts +8 -1
- package/dist/builtin/intercom/index.bundle.mjs +61 -2
- package/dist/builtin/intercom/live-route-refusal.ts +69 -0
- package/dist/builtin/intercom/package.json +2 -2
- package/dist/builtin/intercom/recoverable-disconnect.ts +16 -4
- package/dist/builtin/intercom/skills/intercom/SKILL.md +11 -11
- package/dist/builtin/intercom/types.ts +3 -1
- package/dist/builtin/mcp/package.json +2 -2
- package/dist/builtin/subagents/CHANGELOG.md +12 -0
- package/dist/builtin/subagents/package.json +3 -3
- package/dist/builtin/subagents/skills/cua-driver/BROWSER.md +494 -0
- package/dist/builtin/subagents/skills/cua-driver/EMBEDDING.md +578 -0
- package/dist/builtin/subagents/skills/cua-driver/LINUX.md +364 -0
- package/dist/builtin/subagents/skills/cua-driver/MACOS.md +509 -0
- package/dist/builtin/subagents/skills/cua-driver/README.md +113 -0
- package/dist/builtin/subagents/skills/cua-driver/RECORDING.md +162 -0
- package/dist/builtin/subagents/skills/cua-driver/SKILL.md +1105 -0
- package/dist/builtin/subagents/skills/cua-driver/WINDOWS.md +866 -0
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +18 -8
- package/dist/builtin/web-access/package.json +2 -2
- package/dist/builtin/workflows/CHANGELOG.md +34 -0
- package/dist/builtin/workflows/README.md +5 -19
- package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
- package/dist/builtin/workflows/builtin/{chunk-7f381xnq.js → chunk-2hzrv5y8.js} +140 -21
- package/dist/builtin/workflows/builtin/{chunk-e83tc6nr.js → chunk-3tx8ry44.js} +3 -2
- package/dist/builtin/workflows/builtin/{chunk-00ywx588.js → chunk-5724b0cf.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-zj5162bh.js → chunk-7bzcersz.js} +33 -22
- package/dist/builtin/workflows/builtin/{chunk-ne6vh5ct.js → chunk-7n51c5gh.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-x2nftpgj.js → chunk-9z3ztr2a.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-7h7s5xdj.js → chunk-dxjxtgmp.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-tvcydq13.js → chunk-ffdrv23t.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-pfm1kgqz.js → chunk-hmt5w62g.js} +12 -4
- package/dist/builtin/workflows/builtin/{chunk-tdqvdrg1.js → chunk-jngsbbpm.js} +3 -3
- package/dist/builtin/workflows/builtin/{chunk-55p5dxjk.js → chunk-njmf5ze7.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-evfb0312.js → chunk-vn0wb31x.js} +1 -1
- package/dist/builtin/workflows/builtin/classify-and-act.js +3 -3
- package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +3 -3
- package/dist/builtin/workflows/builtin/generate-and-filter.js +3 -3
- package/dist/builtin/workflows/builtin/goal.js +4 -4
- package/dist/builtin/workflows/builtin/index.js +12 -12
- package/dist/builtin/workflows/builtin/loop-until-done.js +3 -3
- package/dist/builtin/workflows/builtin/open-claude-design.js +3 -3
- package/dist/builtin/workflows/builtin/ralph.js +4 -4
- package/dist/builtin/workflows/builtin/steering-context.js +1 -1
- package/dist/builtin/workflows/builtin/tournament.js +3 -3
- package/dist/builtin/workflows/package.json +2 -2
- package/dist/builtin/workflows/skills/prompt-engineer/SKILL.md +10 -9
- package/dist/builtin/workflows/skills/prompt-engineer/references/advanced_patterns.md +4 -4
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5.md +96 -23
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5_1.md +75 -27
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_4_8.md +72 -26
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5.md +58 -22
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5_5.md +118 -0
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_sonnet_5.md +70 -29
- package/dist/builtin/workflows/skills/prompt-engineer/references/core_prompting.md +1 -1
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_5.md +95 -32
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_6.md +79 -30
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6.md +139 -0
- package/dist/builtin/workflows/skills/prompt-engineer/references/quality_improvement.md +4 -4
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +446 -639
- package/dist/builtin/workflows/src/index.js +1434 -1277
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +15 -4
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/file-processor.d.ts +1 -1
- package/dist/cli/file-processor.d.ts.map +1 -1
- package/dist/cli/file-processor.js.map +1 -1
- package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-auto-compaction.js +40 -12
- package/dist/core/agent-session-auto-compaction.js.map +1 -1
- package/dist/core/agent-session-bash.d.ts.map +1 -1
- package/dist/core/agent-session-bash.js +9 -8
- package/dist/core/agent-session-bash.js.map +1 -1
- package/dist/core/agent-session-boundaries.d.ts +68 -0
- package/dist/core/agent-session-boundaries.d.ts.map +1 -0
- package/dist/core/agent-session-boundaries.js +334 -0
- package/dist/core/agent-session-boundaries.js.map +1 -0
- package/dist/core/agent-session-compaction.js +1 -1
- package/dist/core/agent-session-compaction.js.map +1 -1
- package/dist/core/agent-session-events.d.ts.map +1 -1
- package/dist/core/agent-session-events.js +27 -13
- package/dist/core/agent-session-events.js.map +1 -1
- package/dist/core/agent-session-export.d.ts.map +1 -1
- package/dist/core/agent-session-export.js +16 -20
- package/dist/core/agent-session-export.js.map +1 -1
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +6 -3
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +33 -4
- package/dist/core/agent-session-methods.d.ts.map +1 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.js +2 -1
- package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +93 -25
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-retry.d.ts.map +1 -1
- package/dist/core/agent-session-retry.js +4 -9
- package/dist/core/agent-session-retry.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +4 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +7 -1
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-tasks.d.ts +9 -0
- package/dist/core/agent-session-tasks.d.ts.map +1 -1
- package/dist/core/agent-session-tasks.js +68 -16
- package/dist/core/agent-session-tasks.js.map +1 -1
- package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
- package/dist/core/agent-session-tool-hooks.js +15 -5
- package/dist/core/agent-session-tool-hooks.js.map +1 -1
- package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
- package/dist/core/agent-session-tool-registry.js +9 -21
- package/dist/core/agent-session-tool-registry.js.map +1 -1
- package/dist/core/agent-session-tree.d.ts.map +1 -1
- package/dist/core/agent-session-tree.js +2 -3
- package/dist/core/agent-session-tree.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +8 -0
- package/dist/core/agent-session-types.d.ts.map +1 -1
- package/dist/core/agent-session-types.js.map +1 -1
- package/dist/core/agent-session.d.ts +18 -2
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +22 -3
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +1 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction-boundary.d.ts.map +1 -1
- package/dist/core/compaction/compaction-boundary.js +11 -6
- package/dist/core/compaction/compaction-boundary.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +3 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +37 -0
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/crash-log.d.ts +6 -0
- package/dist/core/crash-log.d.ts.map +1 -0
- package/dist/core/crash-log.js +69 -0
- package/dist/core/crash-log.js.map +1 -0
- package/dist/core/execution-model-router.d.ts +15 -0
- package/dist/core/execution-model-router.d.ts.map +1 -1
- package/dist/core/execution-model-router.js +82 -33
- package/dist/core/execution-model-router.js.map +1 -1
- package/dist/core/export-html/template-js/tree-filter-render.js +6 -1
- package/dist/core/export-html/template.js +6 -1
- package/dist/core/extensions/agent-events.d.ts +69 -3
- package/dist/core/extensions/agent-events.d.ts.map +1 -1
- package/dist/core/extensions/agent-events.js.map +1 -1
- package/dist/core/extensions/api-types.d.ts +5 -3
- package/dist/core/extensions/api-types.d.ts.map +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/event-results.d.ts +3 -0
- package/dist/core/extensions/event-results.d.ts.map +1 -1
- package/dist/core/extensions/event-results.js.map +1 -1
- package/dist/core/extensions/event-types.d.ts +2 -2
- package/dist/core/extensions/event-types.d.ts.map +1 -1
- package/dist/core/extensions/event-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/provider-types.d.ts +2 -0
- package/dist/core/extensions/provider-types.d.ts.map +1 -1
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-events.d.ts +16 -2
- package/dist/core/extensions/runner-events.d.ts.map +1 -1
- package/dist/core/extensions/runner-events.js +98 -5
- package/dist/core/extensions/runner-events.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +3 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +4 -1
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/fast-model-variants.d.ts +16 -0
- package/dist/core/fast-model-variants.d.ts.map +1 -1
- package/dist/core/fast-model-variants.js +27 -0
- package/dist/core/fast-model-variants.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/messages.d.ts +10 -0
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +57 -0
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-config.d.ts +52 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +16 -0
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-resolver-defaults.d.ts.map +1 -1
- package/dist/core/model-resolver-defaults.js +2 -1
- package/dist/core/model-resolver-defaults.js.map +1 -1
- package/dist/core/model-runtime.d.ts +13 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +16 -1
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/prompt-templates-async.d.ts +2 -2
- package/dist/core/prompt-templates-async.d.ts.map +1 -1
- package/dist/core/prompt-templates-async.js +57 -29
- package/dist/core/prompt-templates-async.js.map +1 -1
- package/dist/core/prompt-templates.d.ts +6 -1
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js +61 -35
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/provider-composer-internal.d.ts +1 -0
- package/dist/core/provider-composer-internal.d.ts.map +1 -1
- package/dist/core/provider-composer-internal.js +19 -0
- package/dist/core/provider-composer-internal.js.map +1 -1
- package/dist/core/resource-loader-assets.d.ts.map +1 -1
- package/dist/core/resource-loader-assets.js +6 -6
- package/dist/core/resource-loader-assets.js.map +1 -1
- package/dist/core/sdk-types.d.ts +5 -0
- package/dist/core/sdk-types.d.ts.map +1 -1
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +7 -2
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager-core.d.ts +10 -3
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +65 -7
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-entries.d.ts +4 -1
- package/dist/core/session-manager-entries.d.ts.map +1 -1
- package/dist/core/session-manager-entries.js +8 -0
- package/dist/core/session-manager-entries.js.map +1 -1
- package/dist/core/session-manager-history.d.ts +16 -1
- package/dist/core/session-manager-history.d.ts.map +1 -1
- package/dist/core/session-manager-history.js +105 -42
- package/dist/core/session-manager-history.js.map +1 -1
- package/dist/core/session-manager-types.d.ts +30 -3
- package/dist/core/session-manager-types.d.ts.map +1 -1
- package/dist/core/session-manager-types.js.map +1 -1
- package/dist/core/session-manager.d.ts +2 -2
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +1 -1
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-types.js.map +1 -1
- package/dist/core/structured-output/index.d.ts +1 -1
- package/dist/core/structured-output/index.d.ts.map +1 -1
- package/dist/core/structured-output/index.js +37 -41
- package/dist/core/structured-output/index.js.map +1 -1
- package/dist/core/structured-output/jev-client.d.ts +13 -8
- package/dist/core/structured-output/jev-client.d.ts.map +1 -1
- package/dist/core/structured-output/jev-client.js +90 -32
- package/dist/core/structured-output/jev-client.js.map +1 -1
- package/dist/core/structured-output/jev.d.ts.map +1 -1
- package/dist/core/structured-output/jev.js +38 -64
- package/dist/core/structured-output/jev.js.map +1 -1
- package/dist/core/structured-output/resolver.d.ts +32 -24
- package/dist/core/structured-output/resolver.d.ts.map +1 -1
- package/dist/core/structured-output/resolver.js +57 -9
- package/dist/core/structured-output/resolver.js.map +1 -1
- package/dist/core/structured-output/types.d.ts +8 -6
- package/dist/core/structured-output/types.d.ts.map +1 -1
- package/dist/core/structured-output/types.js.map +1 -1
- package/dist/core/system-prompt.js +1 -1
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tasks/child-command-owner.d.ts +34 -0
- package/dist/core/tasks/child-command-owner.d.ts.map +1 -0
- package/dist/core/tasks/child-command-owner.js +70 -0
- package/dist/core/tasks/child-command-owner.js.map +1 -0
- package/dist/core/tools/bash-pty-native.d.ts +5 -1
- package/dist/core/tools/bash-pty-native.d.ts.map +1 -1
- package/dist/core/tools/bash-pty-native.js +15 -7
- package/dist/core/tools/bash-pty-native.js.map +1 -1
- package/dist/core/tools/kill.d.ts +2 -2
- package/dist/core/tools/kill.d.ts.map +1 -1
- package/dist/core/tools/kill.js +3 -4
- package/dist/core/tools/kill.js.map +1 -1
- package/dist/core/tools/read.d.ts +4 -0
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +5 -1
- package/dist/core/tools/read.js.map +1 -1
- package/dist/index-extensions.d.ts +1 -1
- package/dist/index-extensions.d.ts.map +1 -1
- package/dist/index-extensions.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/main-app-mode.d.ts +1 -1
- package/dist/main-app-mode.d.ts.map +1 -1
- package/dist/main-app-mode.js +3 -2
- package/dist/main-app-mode.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-content.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector-content.js +6 -0
- package/dist/modes/interactive/components/tree-selector-content.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-model.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector-model.js +1 -0
- package/dist/modes/interactive/components/tree-selector-model.js.map +1 -1
- package/dist/modes/interactive/interactive-agent-events.js +17 -1
- package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
- package/dist/modes/interactive/interactive-auth-login.js +2 -4
- package/dist/modes/interactive/interactive-auth-login.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.js +16 -0
- package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js +13 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
- package/dist/modes/interactive/interactive-session-runtime.js +5 -1
- package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-auth.d.ts +16 -0
- package/dist/modes/interactive-engine/isolated-auth.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-auth.js +27 -0
- package/dist/modes/interactive-engine/isolated-auth.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +4 -0
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +4 -1
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +2 -1
- package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-api.js +7 -2
- package/dist/modes/rpc/rpc-client-api.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +3 -1
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-provider-auth.d.ts +2 -1
- package/dist/modes/rpc/rpc-provider-auth.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-provider-auth.js +2 -2
- package/dist/modes/rpc/rpc-provider-auth.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +2 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/mime.js +1 -1
- package/dist/utils/mime.js.map +1 -1
- package/dist/utils/tool-result-images.d.ts +3 -1
- package/dist/utils/tool-result-images.d.ts.map +1 -1
- package/dist/utils/tool-result-images.js +4 -1
- package/dist/utils/tool-result-images.js.map +1 -1
- package/docs/background-tasks.md +11 -2
- package/docs/compaction.md +5 -1
- package/docs/computer-use.md +105 -56
- package/docs/environment-variables.md +1 -1
- package/docs/extensions/events.md +75 -7
- package/docs/extensions.md +6 -2
- package/docs/getting-started/first-session.md +3 -2
- package/docs/intercom/operations.md +13 -1
- package/docs/intercom.md +1 -1
- package/docs/llama-cpp.md +2 -2
- package/docs/models/evals.md +108 -118
- package/docs/models/reference.md +31 -3
- package/docs/packages.md +2 -0
- package/docs/prompt-templates.md +1 -0
- package/docs/providers.md +19 -6
- package/docs/reference/cli.md +2 -2
- package/docs/rpc/examples.md +2 -0
- package/docs/sdk/reference.md +2 -3
- package/docs/sdk/structured-decisions.md +25 -18
- package/docs/sdk.md +13 -2
- package/docs/session-format.md +17 -2
- package/docs/settings.md +8 -8
- package/docs/skills.md +8 -2
- package/docs/subagents/reference.md +4 -4
- package/docs/subagents.md +2 -2
- package/docs/workflows/api-reference.md +7 -34
- package/docs/workflows/authoring.md +191 -0
- package/docs/workflows/builtins.md +1 -1
- package/docs/workflows/operations.md +18 -78
- package/docs/workflows/reliable-design.md +14 -29
- package/docs/workflows/verification.md +21 -8
- package/docs/workflows.md +8 -7
- package/examples/rpc-client.ts +38 -0
- package/examples/rpc-extension-ui.ts +19 -5
- package/examples/sdk/README.md +1 -1
- package/npm-shrinkwrap.json +69 -69
- package/package.json +8 -8
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_astra.md +0 -58
|
@@ -1,57 +1,98 @@
|
|
|
1
1
|
# Claude Sonnet 5 prompting
|
|
2
2
|
|
|
3
|
-
Use this reference for Sonnet 5 effort
|
|
3
|
+
Use this reference for Sonnet 5 effort and thinking behavior, tool triggering, and migration from Sonnet 4.6. Distilled from [Anthropic's Sonnet 5 prompting guide](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-sonnet-5), checked September 22, 2026. Existing Sonnet 4.6 prompts are a starting point. The prompt snippets below are adaptations for reuse in your own prompts, not verbatim quotes from Anthropic's guide.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Response length follows perceived complexity
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
| --- | --- |
|
|
9
|
-
| Effort | Default `high`; use `xhigh` for the hardest coding and agentic tasks. Evaluate `medium` for cost-sensitive work and `low` for short, scoped, latency-sensitive tasks. `max` prioritizes capability with greater token spending. |
|
|
10
|
-
| Thinking default | Adaptive thinking is on when `thinking` is omitted. Sonnet 4.6 ran without thinking for that same request. Explicit `thinking: {type: "disabled"}` turns it off. |
|
|
11
|
-
| Manual budgets | `thinking: {type: "enabled", budget_tokens: N}` is unsupported and returns a 400. Use adaptive thinking with effort. |
|
|
12
|
-
| Output budget | `max_tokens` covers thinking plus the response. Revisit limits inherited from thinking-disabled Sonnet 4.6 workloads. |
|
|
13
|
-
| Sampling | Non-default `temperature`, `top_p`, or `top_k` returns a 400. Remove these parameters during migration and guide style in the prompt. |
|
|
7
|
+
Sonnet 5 sizes its answer to task complexity rather than a fixed verbosity: short for simple lookups, longer for open-ended analysis. Where a product needs a specific style regardless, give a positive example of the target concision rather than a list of prohibitions:
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
```text
|
|
10
|
+
Provide concise, focused responses. Skip non-essential context, and keep examples minimal.
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Adapt the wording to the specific over-elaboration you actually observe.
|
|
14
|
+
|
|
15
|
+
## Lower effort narrows investigation; thinking is on by default
|
|
16
|
+
|
|
17
|
+
At lower effort, the model scopes tightly to what was asked and can under-think moderately complex work. Raise effort before adding reasoning instructions; if effort must stay low for latency, add a targeted nudge:
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
This task involves multistep reasoning. Think carefully through the problem before responding.
|
|
21
|
+
```
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
Unlike Sonnet 4.6, Sonnet 5 thinks adaptively by default. If a workload that used to run without thinking now thinks more than you want, steer triggering directly and measure the effect:
|
|
18
24
|
|
|
19
|
-
|
|
25
|
+
```text
|
|
26
|
+
Thinking adds latency and should only be used when it will meaningfully improve answer quality, typically for problems that require multistep reasoning. When in doubt, respond directly.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Conversely, for hard workloads showing under-thinking, raise effort first; prompt for more thinking only if that is insufficient.
|
|
30
|
+
|
|
31
|
+
## Tool use is more readily triggered, except with thinking off
|
|
32
|
+
|
|
33
|
+
Sonnet 5 reaches for tools and self-verification more readily than 4.6 by default. With thinking disabled, it is less likely to reach for tools; add an explicit nudge in the system prompt if you rely on tool calls there. Higher effort also increases tool use in agentic search and coding. For an under-used specific tool, explain concretely when and why it applies instead of adding a blanket instruction.
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Use the available retrieval tool when the answer depends on current external facts, and the execution tool for requested checks rather than predicting their output. Do not call tools for facts already established by the supplied evidence. Report when a needed tool is unavailable.
|
|
37
|
+
```
|
|
20
38
|
|
|
21
|
-
|
|
39
|
+
## Progress updates are usually adequate without forcing
|
|
22
40
|
|
|
23
|
-
|
|
41
|
+
Sonnet 5 already gives regular, reasonably detailed updates during long agentic traces. Remove inherited scaffolding like "after every 3 tool calls, summarize progress." If updates are still miscalibrated for your use case, describe the desired content and cadence explicitly, with one example.
|
|
24
42
|
|
|
25
|
-
|
|
43
|
+
## Instructions are read literally, especially at low effort
|
|
26
44
|
|
|
27
|
-
|
|
45
|
+
The model does not silently generalize an instruction from one item to a set, and it does not infer requests you did not make. State the full intended scope:
|
|
28
46
|
|
|
29
47
|
```text
|
|
30
48
|
Update each affected section using the supplied specification. Retrieve current API documentation only where the specification leaves compatibility unresolved. Keep changes within this request, run the required checks, and report any blocking mismatch with evidence. Deployment is not authorized.
|
|
31
49
|
```
|
|
32
50
|
|
|
33
|
-
|
|
51
|
+
Front-load intent and constraints so routine work can proceed without avoidable confirmation turns, while preserving actual approval gates.
|
|
34
52
|
|
|
35
|
-
|
|
53
|
+
## Tone and output variety need direct prompting
|
|
36
54
|
|
|
37
|
-
|
|
55
|
+
Prose style may shift from a prior model's baseline; re-evaluate an inherited voice prompt against actual output.
|
|
38
56
|
|
|
39
|
-
|
|
57
|
+
```text
|
|
58
|
+
Use a warm, collaborative tone. Acknowledge the user's framing before answering.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Sampling settings no longer provide output variety on Sonnet 5, so drive tone and variety through the prompt.
|
|
62
|
+
|
|
63
|
+
## Design defaults toward one house style
|
|
64
|
+
|
|
65
|
+
Open-ended frontend and design briefs can settle into a single default style that reads fine for some products but wrong for dashboards, dev tools, fintech, healthcare, or enterprise apps. A generic ban ("don't use that color") tends to swap in another fixed default instead of real variety. Two approaches work more reliably:
|
|
66
|
+
|
|
67
|
+
**Give a concrete alternative spec:**
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
Use a cold monochrome atmosphere: pale silver-gray tones deepening into blue-gray and near-black. Sharp, controlled, restrained. A square angular sans-serif with wide letter-spacing in headings; short, sparse body copy. 4px corner radius across cards, buttons, inputs, and media frames. Generous margins. Palette limited to #E9ECEC, #C9D2D4, #8C9A9E, #44545B, #11171B.
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Ask for options before building**, when the user should choose, since sampling settings cannot supply run-to-run variety here:
|
|
40
74
|
|
|
41
|
-
|
|
75
|
+
```text
|
|
76
|
+
Before building, propose 4 distinct visual directions tailored to this brief (each as: background hex / accent hex / typeface, plus a one-line rationale). Wait for the user's selection before implementing.
|
|
77
|
+
```
|
|
78
|
+
Use this selection pause only when the user wants to choose. Otherwise follow the approved design direction without inventing another approval gate.
|
|
42
79
|
|
|
43
|
-
A short
|
|
80
|
+
A short generic-pattern guard can still help alongside a concrete spec:
|
|
44
81
|
|
|
45
|
-
|
|
82
|
+
```text
|
|
83
|
+
Choose typography, spacing, and components from the supplied design references rather than default decorative patterns. Avoid ornamental gradients and repetitive nested cards unless they serve this brief. Keep accessibility and existing design-system constraints.
|
|
84
|
+
```
|
|
46
85
|
|
|
47
|
-
|
|
86
|
+
## Review recall drops under vague severity filters
|
|
48
87
|
|
|
49
|
-
|
|
88
|
+
Phrasing such as "be conservative" or "don't nitpick" can make Sonnet 5 investigate just as thoroughly but withhold findings below that vague bar, lowering measured recall without a real capability loss. If a separate stage filters or ranks findings, tell the discovery stage its job is coverage:
|
|
50
89
|
|
|
51
|
-
|
|
90
|
+
```text
|
|
91
|
+
Report supported issues within scope with their trigger, evidence, location, and impact. Include lower-severity findings when the request allows them. Keep uncertain candidates separate from confirmed bugs so a downstream pass can verify and rank them.
|
|
92
|
+
```
|
|
52
93
|
|
|
53
|
-
|
|
94
|
+
For a single pass with no separate filter, define the bar concretely (incorrect behavior, failing test, misleading result) and exclude pure style or naming preferences. Preserve any severity limit the user explicitly requested; do not expand review scope beyond it in pursuit of recall.
|
|
54
95
|
|
|
55
|
-
|
|
96
|
+
## Validate the prompt change
|
|
56
97
|
|
|
57
|
-
|
|
98
|
+
Hidden thinking now uses part of the output allowance, so a long answer tuned for Sonnet 4.6 can be cut off mid-answer; ask for the deliverable first and keep instructions from inflating it. Test a required-retrieval task, a long answer, and a code-review case. Check truncation, actual tool calls, scope, and supported findings. Compare one prompt or effort change at a time.
|
|
@@ -38,7 +38,7 @@ For autonomous work, distinguish safe local actions from external, destructive,
|
|
|
38
38
|
|
|
39
39
|
## Roles and Message Placement
|
|
40
40
|
|
|
41
|
-
Use the
|
|
41
|
+
Use the system prompt for a stable role, behavior, and policy. Put request-specific inputs and instructions in the `user` turn. A role should contribute domain judgment or communication style; decorative personas add tokens without improving behavior.
|
|
42
42
|
|
|
43
43
|
Example:
|
|
44
44
|
|
|
@@ -1,60 +1,123 @@
|
|
|
1
1
|
# GPT-5.5 prompting and migration
|
|
2
2
|
|
|
3
|
-
Use this reference when targeting `gpt-5.5`. Guidance checked on September 5, 2026 against [OpenAI's GPT-5.5 guide](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-5.5). Reevaluate legacy prompts against this model; do not assume [GPT-5.6](gpt_5_6.md) or [GPT-6
|
|
3
|
+
Use this reference when targeting `gpt-5.5`. Guidance checked on September 5, 2026 against [OpenAI's GPT-5.5 guide](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-5.5). Snippets below are adaptations for prompt authors, not verbatim official quotes. Reevaluate legacy prompts against this model; do not assume [GPT-5.6](gpt_5_6.md) or [GPT-6](gpt_6.md) has the same defaults.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## When starting or migrating a complex workflow
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Observed behavior: GPT-5.5 works best from an outcome-first contract. It follows specific instructions literally and thoroughly, so inherited step lists and repeated rules can make it mechanical or over-constrained.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Prompt adjustment: state the destination, success criteria, permitted side effects, evidence rules, output shape, and stopping conditions. Keep step-by-step process only where the product requires that exact path.
|
|
10
|
+
|
|
11
|
+
Adaptable prompt:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
Resolve the user's request end to end within the authorized scope.
|
|
15
|
+
|
|
16
|
+
Success means:
|
|
17
|
+
- the requested result is complete
|
|
18
|
+
- allowed local actions are completed before the final answer
|
|
19
|
+
- consequential factual claims are supported by evidence or labeled assumptions
|
|
20
|
+
- required validation is run or its absence is explained
|
|
21
|
+
- blockers name the smallest missing input or permission
|
|
22
|
+
|
|
23
|
+
Choose the efficient path. Do not trade correctness, required evidence, or approval boundaries for fewer tool calls.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Caveats: reserve `always`, `never`, `must`, and `only` for true invariants such as permissions, safety, required fields, or forbidden actions. Use conditional rules for searching, clarifying, tool use, delegation, and persistence.
|
|
27
|
+
|
|
28
|
+
## When the product needs a particular tone or format
|
|
29
|
+
|
|
30
|
+
Observed behavior: GPT-5.5 is direct and task-oriented by default, with more polish than earlier models. Customer-facing products may need explicit warmth, rationale, or structure; internal tools may need terse answers.
|
|
31
|
+
|
|
32
|
+
Prompt adjustment: separate personality from collaboration rules and output format. Define observable writing choices rather than broad labels.
|
|
33
|
+
|
|
34
|
+
Adaptable prompt:
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
Tone: steady, direct, and practical. Acknowledge the user's specific issue when they report a problem. Avoid generic praise, sign-offs, and filler reassurance.
|
|
38
|
+
|
|
39
|
+
Collaboration: make reasonable assumptions when the request is clear enough to attempt. Ask only when missing information would materially change the answer or create meaningful risk.
|
|
40
|
+
|
|
41
|
+
Output: lead with the answer. Keep material caveats, required evidence, and next steps. Use short paragraphs by default; use bullets only when they improve comparison or scanning.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Caveats: do not use tone instructions to hide uncertainty, omit caveats, or soften required refusal/permission boundaries. Visible length is separate from reasoning quality; ask for the length you want.
|
|
45
|
+
|
|
46
|
+
## When a long or tool-heavy task feels slow to start
|
|
47
|
+
|
|
48
|
+
Observed behavior: GPT-5.5 may spend time reasoning or preparing tool calls before visible output. A short preamble can improve perceived responsiveness without narrating private reasoning.
|
|
49
|
+
|
|
50
|
+
Prompt adjustment: request a brief user-visible first step for multi-step tasks, then let work continue.
|
|
51
|
+
|
|
52
|
+
Adaptable prompt:
|
|
10
53
|
|
|
11
54
|
```text
|
|
12
|
-
|
|
55
|
+
For a multi-step or tool-using task, begin with one short user-visible update that acknowledges the request and states the first useful step. Then continue with the task. Do not narrate every tool call or reveal private reasoning.
|
|
13
56
|
```
|
|
14
57
|
|
|
15
|
-
|
|
58
|
+
Caveats: avoid preambles for latency-critical single-turn answers where the extra text is noise.
|
|
59
|
+
|
|
60
|
+
## When retrieval can sprawl or under-support claims
|
|
61
|
+
|
|
62
|
+
Observed behavior: GPT-5.5 handles grounded workflows well when evidence rules and retrieval budgets are explicit. Without them, it may search too much or overstate missing evidence.
|
|
16
63
|
|
|
17
|
-
|
|
64
|
+
Prompt adjustment: define what needs citation, when another retrieval is warranted, and how to behave when evidence is absent.
|
|
18
65
|
|
|
19
|
-
|
|
66
|
+
Adaptable prompt:
|
|
20
67
|
|
|
21
68
|
```text
|
|
22
|
-
|
|
69
|
+
For ordinary Q&A, start with one broad search using short, discriminative terms. Search again only when the core question remains unanswered, a required fact is missing, a specific source must be read, the user asked for exhaustive coverage, or an important claim would otherwise be unsupported.
|
|
70
|
+
|
|
71
|
+
Do not search again merely to improve wording, add optional examples, or cite nonessential detail. Absence of evidence is not proof of a factual no. State uncertainty, use placeholders, or ask for the smallest missing input when needed.
|
|
23
72
|
```
|
|
24
73
|
|
|
25
|
-
|
|
74
|
+
Caveats: user requests for comprehensive research, regulated evidence, legal/business-critical decisions, or source-specific summaries may require broader retrieval. For creative drafts, distinguish source-backed facts from generated wording.
|
|
75
|
+
|
|
76
|
+
## When drafting creative or customer-facing artifacts
|
|
77
|
+
|
|
78
|
+
Observed behavior: GPT-5.5 can produce polished drafts, but polish can tempt it to fill gaps with unsupported specifics.
|
|
79
|
+
|
|
80
|
+
Prompt adjustment: state which claims must be sourced and which parts may be creative.
|
|
26
81
|
|
|
27
|
-
|
|
82
|
+
Adaptable prompt:
|
|
28
83
|
|
|
29
|
-
|
|
84
|
+
```text
|
|
85
|
+
Write a useful draft, but keep factual claims grounded. Use provided or retrieved evidence for product capabilities, customer names, metrics, dates, roadmap status, legal/compliance claims, and competitive comparisons. Do not invent specifics to make the draft sound stronger.
|
|
86
|
+
|
|
87
|
+
If support is missing, use a placeholder, a generic phrasing, or a clearly labeled assumption. Preserve the requested length, genre, and structure unless the user asks to change them.
|
|
88
|
+
```
|
|
30
89
|
|
|
31
|
-
|
|
90
|
+
Caveats: unsupported placeholder text is acceptable only when the user can review or fill it. Do not present assumptions as facts.
|
|
32
91
|
|
|
33
|
-
##
|
|
92
|
+
## When the task needs validation
|
|
34
93
|
|
|
35
|
-
|
|
94
|
+
Observed behavior: GPT-5.5 benefits from concrete validation instructions, especially in coding, planning, and visual work. Generic “double-check” prompts are weaker than naming the check.
|
|
36
95
|
|
|
37
|
-
|
|
96
|
+
Prompt adjustment: identify relevant checks and what to report when they cannot run.
|
|
38
97
|
|
|
39
|
-
|
|
98
|
+
Adaptable prompt:
|
|
40
99
|
|
|
41
|
-
|
|
100
|
+
```text
|
|
101
|
+
After making changes, run the most relevant available validation: targeted tests for changed behavior, type or lint checks when applicable, build checks for affected packages, or a minimal smoke test when full validation is too expensive. If validation cannot run, say why and name the next best evidence.
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
For visual artifacts:
|
|
105
|
+
|
|
106
|
+
```text
|
|
107
|
+
Render the artifact before finalizing when the environment supports it. Inspect layout, clipping, spacing, missing content, responsive behavior, and visual consistency. Revise until the rendered result matches the requirements, or report that rendering was unavailable.
|
|
108
|
+
```
|
|
42
109
|
|
|
43
|
-
|
|
44
|
-
| --- | --- |
|
|
45
|
-
| Effort | The default and balanced starting point is `medium`. Evaluate `low` for latency-sensitive tasks that still need tools or planning. Reserve `none` for latency-critical work that does not need reasoning or chained tools. Increase to `high` or `xhigh` only for measured quality gains. |
|
|
46
|
-
| Effort regressions | Resolve contradictory instructions, open-ended tools, and weak stopping rules before increasing effort. More reasoning can increase searching or reduce quality when the contract is unclear. |
|
|
47
|
-
| Structured output | Prefer a supported Structured Outputs schema over duplicating the entire schema in prompt prose. Retain semantic requirements, missing-data behavior, and validation. |
|
|
48
|
-
| Continuations | Use `previous_response_id`, or replay the relevant returned output items for stateless/ZDR flows. Preserve each assistant item's original `phase` unchanged when managing history manually. |
|
|
49
|
-
| Phase | Intermediate assistant updates use `commentary`; completed answers use `final_answer`. Do not add `phase` to user messages. Check preambles, repeated tool calls, and final completion in the actual continuation loop. |
|
|
50
|
-
| Caching | Keep static instructions first and dynamic user context last. Use `prompt_cache_key` consistently for shared prefixes and track cached tokens. Do not silently apply GPT-5.6's caching migration contract to this model. |
|
|
51
|
-
| Compaction | Preserve completed actions, active assumptions, IDs, tool outcomes, unresolved blockers, and the next concrete goal. |
|
|
52
|
-
| Dates | The official guide says GPT-5.5 knows the current UTC date. Avoid redundant date injection unless the application needs a business timezone, policy-effective date, user-local date, or other specific reference date. |
|
|
110
|
+
Caveats: do not turn validation into repeated self-check loops with no new evidence. Keep required repository checks and user-requested regressions.
|
|
53
111
|
|
|
54
|
-
|
|
112
|
+
## Prompt structure notes
|
|
55
113
|
|
|
56
|
-
|
|
114
|
+
- Effort regressions: resolve contradictory instructions, open-ended tools, and weak stopping rules before increasing effort; more reasoning can increase unnecessary searching when the contract is unclear.
|
|
115
|
+
- Structured output: when a schema is enforced, do not repeat the whole schema in prose; keep semantic requirements, missing-data behavior, and validation rules in the prompt.
|
|
116
|
+
- Caching: keep static instructions first and dynamic user context last, and keep shared prefixes identical across requests.
|
|
117
|
+
- Compaction: preserve completed actions, active assumptions, IDs, tool outcomes, unresolved blockers, and the next concrete goal.
|
|
118
|
+
- Dates: GPT-5.5 knows the current UTC date. Add explicit date or timezone context only for business-specific, policy-effective, user-local, or other non-UTC references.
|
|
119
|
+
- Mentioning a tool or feature in a prompt does not enable it; the host must provide it.
|
|
57
120
|
|
|
58
|
-
|
|
121
|
+
## Validate the prompt change
|
|
59
122
|
|
|
60
|
-
Compare
|
|
123
|
+
Compare representative normal, missing-evidence, tool-failure, style-sensitive, visual if relevant, and permission-boundary cases. Measure accuracy, completeness, token use, end-to-end latency, required evidence, and whether the model stops at the right time. Change one prompt, model, or effort variable at a time.
|
|
@@ -1,58 +1,107 @@
|
|
|
1
1
|
# GPT-5.6 prompting and migration
|
|
2
2
|
|
|
3
|
-
Use this reference for the GPT-5.6 family. Guidance checked on September 5, 2026 against [OpenAI's GPT-5.6 guide](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-5.6). Keep these defaults separate from [GPT-6
|
|
3
|
+
Use this reference for the GPT-5.6 family. Guidance checked on September 5, 2026 against [OpenAI's GPT-5.6 guide](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-5.6). Snippets below are adaptations for prompt authors, not verbatim official quotes. Keep these defaults separate from [GPT-6](gpt_6.md) and [GPT-5.5](gpt_5_5.md).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## When moving from an older prompt stack
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Observed behavior: GPT-5.6 often maintains or improves quality with fewer tokens, especially when prompts and tool descriptions are lean. Over-specified legacy prompts can waste context and constrain useful judgment.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Prompt adjustment: preserve product requirements and measured fixes, but remove repeated instructions, redundant examples, and irrelevant tools one group at a time. Evaluate the chosen variant on the actual workload: `gpt-5.6` routes to Sol for flagship capability, Terra balances quality and price, and Luna targets efficient high-volume work.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Adaptable prompt:
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```text
|
|
14
|
+
Define the result, constraints, approval boundaries, required evidence, and output shape once. Let the model choose routine steps. Keep examples only when they encode a product requirement or correct a measured failure. Remove repeated process instructions unless the exact path is part of the requirement.
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Caveats: OpenAI reports leaner internal coding-agent prompts improved scores and reduced token/cost ranges in a sample; treat those as directional, not guaranteed. Track behavior in long sessions, where repeated tool and prompt content compounds.
|
|
18
|
+
|
|
19
|
+
## When authorization or mutation scope is ambiguous
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
Observed behavior: GPT-5.6 can infer the user's intended level of work, but broad or repeated approval language can still cause unnecessary stops.
|
|
22
|
+
|
|
23
|
+
Prompt adjustment: distinguish answer/review/diagnose requests from fix/build/change requests, and name confirmation boundaries once.
|
|
24
|
+
|
|
25
|
+
Adaptable prompt:
|
|
16
26
|
|
|
17
27
|
```text
|
|
18
|
-
For
|
|
28
|
+
For requests to answer, explain, review, diagnose, or plan, inspect the relevant materials and report findings without editing.
|
|
29
|
+
|
|
30
|
+
For requests to fix, build, update, or change, make the requested in-scope local changes and run relevant non-destructive validation without asking first.
|
|
31
|
+
|
|
32
|
+
Ask before external writes, destructive actions, purchases, credential changes, deployments, publishing, or material scope expansion when they are not already explicitly authorized, and honor any mandatory confirmation gate. Stop when the requested result and required checks are complete, or name the smallest blocking decision.
|
|
19
33
|
```
|
|
20
34
|
|
|
21
|
-
|
|
35
|
+
Caveats: if the user explicitly asks for review-only/no-edit work, that wins. Prompt text does not override repository safety rules or host permissions.
|
|
22
36
|
|
|
23
|
-
|
|
37
|
+
## When answers become too terse
|
|
38
|
+
|
|
39
|
+
Observed behavior: GPT-5.6 tends to be more concise than GPT-5.5. Migrated prompts that also demand brevity can lose caveats, evidence, or next steps.
|
|
40
|
+
|
|
41
|
+
Prompt adjustment: say what a short answer must retain and what can be cut, and state the task-specific length and content.
|
|
42
|
+
|
|
43
|
+
Adaptable prompt:
|
|
24
44
|
|
|
25
45
|
```text
|
|
26
|
-
Lead with the conclusion.
|
|
46
|
+
Lead with the conclusion. Keep the evidence needed to support it, any material caveat, and the next action. Trim introductions, repetition, generic reassurance, optional background, and secondary examples first.
|
|
47
|
+
|
|
48
|
+
If the user reports a problem, acknowledge the specific issue before the next step. Omit generic praise and sign-offs.
|
|
27
49
|
```
|
|
28
50
|
|
|
29
|
-
|
|
51
|
+
Caveats: do not let brevity remove required output fields, citations, validation status, or uncertainty that changes a decision.
|
|
30
52
|
|
|
31
|
-
|
|
53
|
+
## When high effort or pro mode is enabled
|
|
32
54
|
|
|
33
|
-
|
|
34
|
-
| --- | --- |
|
|
35
|
-
| Reasoning effort | Supported values are `none`, `low`, `medium`, `high`, `xhigh`, and `max`; the default is `medium`. Preserve the current GPT-5.5/5.4 effort on migration, then compare one level lower. If starting at `none`, retain that latency baseline and test `low` for reasoning or tool work. |
|
|
36
|
-
| Higher effort | Use `high` or `xhigh` for measured quality gains. Reserve `max` for the hardest quality-first work; compare it against `xhigh` rather than assuming more effort is better. |
|
|
37
|
-
| Pro mode | Keep the selected model and set `reasoning.mode: "pro"`; do not invent a separate Pro model slug. Effort is independent and defaults to `medium` in standard and pro modes. Pro increases latency and bills the aggregated model work. Compare it with standard mode at the same model and effort. |
|
|
38
|
-
| Persisted reasoning | GPT-5.6 defaults to `all_turns`. Omit `reasoning.context` or use `auto`, and inspect the effective response value. Use `all_turns` for stable goals and `current_turn` when earlier reasoning is no longer relevant. |
|
|
39
|
-
| Continuations | With `all_turns`, use `previous_response_id`. For manual history, preserve prior user inputs and every response output item. With `store: false` or Zero Data Retention, replay the returned encrypted reasoning items. |
|
|
40
|
-
| Caching | Implicit caching remains available. Cache writes cost 1.25 times uncached input; track `cached_tokens` and `cache_write_tokens`. Use explicit breakpoints or `prompt_cache_options.mode: "explicit"` when useful, and replace `prompt_cache_retention` with `prompt_cache_options.ttl`. |
|
|
55
|
+
Observed behavior: higher effort and pro mode can improve difficult tasks but add latency and cost. On migration from GPT-5.5, keep the previous effort, then compare one level lower.
|
|
41
56
|
|
|
42
|
-
|
|
57
|
+
Prompt adjustment: keep the prompt outcome-focused. Do not ask for private reasoning or multiple visible candidate answers merely because pro mode or high effort is enabled.
|
|
58
|
+
|
|
59
|
+
Adaptable prompt:
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
Use the selected effort or mode to produce one complete answer that satisfies the task. Do not expose private reasoning. For difficult analysis, show conclusions, supporting evidence, assumptions, and unresolved risks. Prefer the lowest effort or mode that passes the same representative evaluations.
|
|
63
|
+
```
|
|
43
64
|
|
|
44
|
-
|
|
65
|
+
Caveats: keep higher effort or pro mode only where a measured quality gain justifies the latency and cost.
|
|
45
66
|
|
|
46
|
-
|
|
67
|
+
## When a tool-heavy workflow needs reduction
|
|
47
68
|
|
|
48
|
-
|
|
69
|
+
Observed behavior: Programmatic Tool Calling can help bounded workflows that filter, join, rank, deduplicate, aggregate, or validate large tool results. Multiple calls alone do not justify it.
|
|
70
|
+
|
|
71
|
+
Prompt adjustment: declare which stage is eligible, which tools it may call, the output schema, evidence requirements, retry/concurrency limits, and what remains direct model judgment.
|
|
72
|
+
|
|
73
|
+
Adaptable prompt:
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
Use programmatic tool calling only for this bounded stage: [stage]. Eligible tools: [tools]. Use documented input and output fields only. Reduce the intermediate results to this schema: [schema], including evidence needed for the final answer.
|
|
77
|
+
|
|
78
|
+
Stop when [condition] is met. Retry transient failures at most [N] times. Do not repeat completed calls or perform side-effecting actions. Use direct tool calls for semantic judgment, approvals, source inspection, and final validation.
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Caveats: the host must enable programmatic tool calling and opt tools in; prompt text alone does not. A correct program result is not enough if the final answer drops a citation, field, or caveat.
|
|
82
|
+
|
|
83
|
+
## When frontend or visual work is part of the task
|
|
84
|
+
|
|
85
|
+
Observed behavior: GPT-5.6 improves frontend aesthetics, layout, visual hierarchy, and design judgment, but good prompting still names product context and required states.
|
|
86
|
+
|
|
87
|
+
Prompt adjustment: describe the user, first screen, design-system constraints, familiar controls, responsive behavior, empty/loading/error states, and generated-UI defaults to avoid.
|
|
88
|
+
|
|
89
|
+
Adaptable prompt:
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
Build the interface for [user] trying to [goal]. Prioritize first-screen clarity, familiar controls, accessible contrast, responsive layout, and visible loading, empty, and error states. Align with [design system or brand constraints]. Avoid generic hero sections, nested decorative cards, placeholder instructional text, ornamental gradients, and controls that look clickable but are not.
|
|
93
|
+
|
|
94
|
+
Render or inspect the result before finalizing. Fix clipping, spacing, hierarchy, missing states, and broken responsive behavior.
|
|
95
|
+
```
|
|
49
96
|
|
|
50
|
-
|
|
97
|
+
Caveats: if the host cannot render or inspect the UI, report that limitation and use the best static evidence available. Do not claim visual validation from code inspection alone.
|
|
51
98
|
|
|
52
|
-
|
|
99
|
+
## Prompt structure notes
|
|
53
100
|
|
|
54
|
-
|
|
101
|
+
- Model choice: choose Sol, Terra, or Luna by workload and test the prompt on the variant you will run.
|
|
102
|
+
- Caching: keep static instructions and tool definitions first and dynamic context last, so the shared prefix stays cacheable. Do not rewrite earlier turns when replaying history.
|
|
103
|
+
- Safeguards: real-time cyber and biology classifiers can refuse requests or pause streaming. Do not prompt around safeguards; ask for the legitimate task directly.
|
|
55
104
|
|
|
56
|
-
|
|
105
|
+
## Validate the prompt change
|
|
57
106
|
|
|
58
|
-
|
|
107
|
+
Compare a normal task, a terse-answer case, a tool-heavy reduction, a frontend/visual case if relevant, and a permission-boundary case. Measure task success, final-answer completeness, required evidence, latency, tokens, cost, and refusal handling. Change one prompt, model, or effort variable at a time.
|