@bastani/atomic 0.9.20-alpha.6 → 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 +32 -0
- package/dist/builtin/intercom/package.json +2 -2
- package/dist/builtin/mcp/package.json +2 -2
- package/dist/builtin/subagents/CHANGELOG.md +6 -0
- package/dist/builtin/subagents/package.json +3 -3
- 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 +21 -0
- package/dist/builtin/workflows/README.md +5 -19
- package/dist/builtin/workflows/builtin/{chunk-deq63d9p.js → chunk-7bzcersz.js} +30 -19
- package/dist/builtin/workflows/builtin/goal.js +1 -1
- package/dist/builtin/workflows/builtin/index.js +1 -1
- 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 +247 -603
- package/dist/builtin/workflows/src/index.js +17 -7
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +3 -1
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +3 -0
- 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-runtime.d.ts +4 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +6 -0
- 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-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-types.d.ts +2 -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 +3 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +5 -2
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/execution-model-router.d.ts +14 -0
- package/dist/core/execution-model-router.d.ts.map +1 -1
- package/dist/core/execution-model-router.js +67 -21
- package/dist/core/execution-model-router.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/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/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 +4 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-types.js.map +1 -1
- package/dist/core/structured-output/index.d.ts +1 -0
- package/dist/core/structured-output/index.d.ts.map +1 -1
- package/dist/core/structured-output/index.js +34 -26
- package/dist/core/structured-output/index.js.map +1 -1
- package/dist/core/structured-output/jev-client.d.ts +9 -0
- package/dist/core/structured-output/jev-client.d.ts.map +1 -1
- package/dist/core/structured-output/jev-client.js +57 -3
- 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 +35 -53
- 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 -4
- package/dist/core/structured-output/types.d.ts.map +1 -1
- package/dist/core/structured-output/types.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/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.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-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/docs/background-tasks.md +11 -2
- package/docs/environment-variables.md +1 -1
- package/docs/getting-started/first-session.md +2 -2
- package/docs/llama-cpp.md +2 -2
- package/docs/models/evals.md +47 -43
- package/docs/models/reference.md +1 -1
- package/docs/providers.md +11 -4
- package/docs/reference/cli.md +2 -2
- package/docs/rpc/examples.md +2 -0
- package/docs/sdk/reference.md +1 -1
- package/docs/sdk/structured-decisions.md +20 -14
- package/docs/settings.md +8 -8
- package/docs/skills.md +5 -1
- package/docs/subagents/reference.md +2 -2
- package/docs/subagents.md +1 -1
- package/docs/workflows/api-reference.md +5 -34
- package/docs/workflows/builtins.md +1 -1
- package/docs/workflows/operations.md +11 -77
- package/docs/workflows/reliable-design.md +14 -29
- 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 +65 -65
- package/package.json +7 -7
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_astra.md +0 -58
|
@@ -1,49 +1,122 @@
|
|
|
1
1
|
# Claude Fable 5 prompting
|
|
2
2
|
|
|
3
|
-
Use this reference for long autonomous tasks, progress reliability, delegation, and migration from Opus 4.8. Distilled from [Anthropic's Fable 5 prompting guide](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5), checked September
|
|
3
|
+
Use this reference for long autonomous tasks, progress reliability, delegation, memory, and migration from Opus 4.8. Distilled from [Anthropic's Fable 5 prompting guide](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5), checked September 22, 2026. Apply model-specific changes to observed failures rather than importing every instruction into every task. The prompt snippets below are adaptations for reuse in your own prompts, not verbatim quotes from Anthropic's guide.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Turns run much longer by default
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Hard tasks can run for many minutes per request, and autonomous runs can extend for hours, especially when the model gathers context, builds, and self-verifies. On ambiguous tasks, keep the model from overplanning:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
```text
|
|
10
|
+
When you have enough information to act, act. Do not re-derive facts already established in the conversation, re-litigate a decision the user has already made, or narrate options you will not pursue in user-facing messages. If you are weighing a choice, give a recommendation, not an exhaustive survey. This does not apply to thinking blocks.
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Higher effort can widen scope on routine work
|
|
14
|
+
|
|
15
|
+
Lower effort still performs well on routine or interactive tasks. At higher effort on routine work, the model can gather context and deliberate beyond what the task needs, alongside strong verification and rigorous output. To curb unrequested scope growth:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
Do not add features, refactors, or abstractions beyond the task. Use the simplest design that fully satisfies the request. Avoid speculative handling for impossible scenarios, while preserving existing validation, required checks, and meaningful safety boundaries.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Short instructions steer strongly; enumerating every case is unnecessary
|
|
22
|
+
|
|
23
|
+
Fable 5 follows brief instructions well. Un-steered, it can elaborate beyond what a task needs, especially at higher effort: surveying unpursued options, explaining root causes at length, or narrating what the next line does. A short brevity instruction replaces a long list of forbidden patterns:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Lead with the outcome. Your first sentence after finishing should answer "what happened" or "what did you find." Supporting detail comes after. Being readable and being concise are different things; drop details that don't change what the reader would do next, but don't compress the writing into fragments or arrow chains.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The same brevity principle applies to checkpoint behavior; state the actual stopping condition rather than every case:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
Pause when a required approval, a destructive or irreversible action, a material scope decision, or missing input prevents progress. Otherwise continue already-authorized work without asking again. State the blocker rather than ending on a promise.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Progress claims need grounding in actual tool results
|
|
36
|
+
|
|
37
|
+
On long autonomous runs, ask the model to audit its own status claims before reporting them:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
Before reporting progress, audit each claim against a tool result from this session. Only report work you can point to evidence for; if something is not yet verified, say so explicitly. Report outcomes faithfully: if tests fail, say so with the output; if a step was skipped, say that.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Anthropic reports this nearly eliminated fabricated status reports in its testing; measure the effect on your own workload rather than assuming it transfers unchanged.
|
|
44
|
+
|
|
45
|
+
## Long-session summaries need re-grounding, not working shorthand
|
|
46
|
+
|
|
47
|
+
In extended agentic conversations, Fable 5 can write final summaries in the same dense, arrow-chain shorthand useful while working between tool calls, which a reader who did not see the work cannot follow:
|
|
10
48
|
|
|
11
|
-
|
|
49
|
+
```text
|
|
50
|
+
Your final summary is for a reader who did not see the work. Lead with the outcome, then explain what you need from them. Replace working shorthand and arrow chains with plain sentences that identify the relevant files, commits, or flags. Keep supporting evidence and material limitations.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Unrequested actions and destructive commands need explicit boundaries
|
|
54
|
+
|
|
55
|
+
The model can occasionally take actions nobody asked for (drafting an unrequested email, creating defensive backup branches). Name what is and is not authorized, and require evidence before a state-changing command:
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
When the user is describing a problem or thinking out loud rather than requesting a change, the deliverable is your assessment; report findings and stop. Before running a command that changes system state (restarts, deletes, config edits), check that the evidence actually supports that specific action. A signal that pattern-matches to a known failure may have a different cause.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Rare early stops need a bounded continuation, not indefinite prompting
|
|
62
|
+
|
|
63
|
+
Deep into a long session, Fable 5 can occasionally end a turn with a text-only statement of intent instead of the matching tool call, or ask permission when it already has enough to proceed. For genuinely unattended pipelines, add a standing reminder:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
The user is not watching this unattended run in real time. Continue reversible actions already authorized by the request without routine check-ins. If the next step you describe is available and authorized, take it rather than ending on a promise. Stop when the task is complete, a required approval or budget boundary is reached, or no work can advance without a blocking decision or protected access.
|
|
67
|
+
```
|
|
12
68
|
|
|
13
|
-
|
|
69
|
+
Bound automatic continuations rather than looping indefinitely on a task that is genuinely stuck; stop after a small number and surface it for review.
|
|
70
|
+
Use the unattended wording only when it is true; retain interactive approval gates. A task asking only for findings does not authorize a fix.
|
|
14
71
|
|
|
15
|
-
|
|
72
|
+
## Delegation scales with explicit ownership, not implicit trust
|
|
73
|
+
|
|
74
|
+
Fable 5 dispatches and sustains parallel subagents readily. Give explicit delegation conditions, independent file or task ownership, and expected evidence; prefer asynchronous communication over blocking on the slowest subagent:
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
Delegate independent subtasks to subagents and keep working while they run. Intervene if a subagent goes off track or is missing relevant context.
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
For long-running work, a stated verification interval with fresh-context verifier subagents against the specification tends to outperform self-critique:
|
|
16
81
|
|
|
17
82
|
```text
|
|
18
|
-
|
|
83
|
+
Establish a method for checking your own work at an interval of [X] as you build. Run this every [X interval], verifying your work with subagents against the specification.
|
|
19
84
|
```
|
|
20
85
|
|
|
21
|
-
|
|
86
|
+
Apply this where the workload and orchestration policy call for it. Do not carry Opus 5's removal of generic verification into Fable 5 as a universal rule, and do not impose periodic verifier loops on trivial edits; required repository checks remain binding regardless.
|
|
87
|
+
|
|
88
|
+
## Memory across runs needs an explicit place to write
|
|
22
89
|
|
|
23
|
-
|
|
90
|
+
Where authorized, give the model a persistent notes file and instructions for maintaining it:
|
|
24
91
|
|
|
25
|
-
|
|
92
|
+
```text
|
|
93
|
+
Store one lesson per file with a one-line summary at the top. Record corrections and confirmed approaches alike, including why they mattered. Don't save what the repo or chat history already records; update an existing note rather than duplicating it; delete notes that turn out to be wrong.
|
|
94
|
+
```
|
|
26
95
|
|
|
27
|
-
|
|
96
|
+
To bootstrap from prior sessions: "Reflect on the previous sessions we've had together. Use subagents to identify core themes and lessons, and store them in [X]." Do not let memory become authorization for unrelated edits, and avoid retaining secrets unnecessarily.
|
|
28
97
|
|
|
29
|
-
|
|
98
|
+
## Verbatim mid-task content needs a dedicated delivery path
|
|
30
99
|
|
|
31
|
-
|
|
100
|
+
For long asynchronous agents where the user must see specific content exactly as written before the task ends (a generated snippet, a direct answer mid-loop), the source recommends a client-side tool whose input is rendered verbatim rather than summarized. Defining the tool is not enough; pair it with an explicit instruction naming when to use it, and reserve it for user-facing content, not narration:
|
|
32
101
|
|
|
33
|
-
|
|
102
|
+
```text
|
|
103
|
+
Between tool calls, when you have content the user must read verbatim, call send_to_user with that content. Use it only for user-facing content, not for narration or reasoning.
|
|
104
|
+
```
|
|
34
105
|
|
|
35
|
-
|
|
106
|
+
Confirm the host actually implements such a tool before referring to it in a prompt.
|
|
36
107
|
|
|
37
|
-
|
|
108
|
+
## Review filters lose recall on vague severity language
|
|
38
109
|
|
|
39
|
-
|
|
110
|
+
Vague thresholds like "be conservative" can make the model investigate just as thoroughly but withhold findings below that unclear bar. If a downstream stage ranks or filters, tell the discovery stage its job is coverage; give a concrete bar (incorrect behavior, failing test, misleading result) for a single pass, and preserve any severity limit the user explicitly requested.
|
|
40
111
|
|
|
41
|
-
|
|
112
|
+
```text
|
|
113
|
+
Within the requested scope, report supported findings with their trigger, location, impact, and evidence. Label plausible but unverified concerns separately. If a later review pass will rank them, do not silently discard lower-severity findings; retain any severity limits the user explicitly set.
|
|
114
|
+
```
|
|
42
115
|
|
|
43
|
-
|
|
116
|
+
## Requests for its reasoning can trigger refusals
|
|
44
117
|
|
|
45
|
-
|
|
118
|
+
Fable 5 runs safety classifiers for offensive cybersecurity, biology and life-sciences content, and extraction of its reasoning. Benign work in these areas can still be refused. Do not ask the model to echo, transcribe, or reconstruct its private reasoning in the response; that request pattern can itself trigger a refusal. Ask for conclusions, citations, and validation evidence instead.
|
|
46
119
|
|
|
47
|
-
##
|
|
120
|
+
## Validate the prompt change
|
|
48
121
|
|
|
49
|
-
Evaluate a difficult bounded task, a routine edit, and an interrupted long run. Check completion, authorization, scope, accurate status, and actual tool execution.
|
|
122
|
+
Evaluate a difficult bounded task, a routine edit, and an interrupted long run. Check completion, authorization, scope, accurate status, and actual tool execution. Change one prompt variable at a time.
|
|
@@ -1,57 +1,105 @@
|
|
|
1
1
|
# Claude Fable 5.1 prompting
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Distilled from [Anthropic's Fable 5.1 prompting guide](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5-1), checked September 22, 2026. Existing Fable 5 prompts are a useful baseline. The snippets are adaptations, not verbatim source quotations. Select the adjustment for an observed failure rather than appending every example.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## When long tool sequences look silent
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
If the client hides progress output, a prompt cannot fix that. Otherwise remove old rules such as "hold all findings until the end," then specify the cadence and a whole-task final recap.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
```text
|
|
10
|
+
Before starting, briefly state what you will establish. Report material findings and blockers as you work. Close with a standalone recap of the whole request: what you found, what you changed, what you verified, and what remains open.
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
If the interface hides tool results, add: "The user cannot see the full command output. Include any result they need to understand in your reply." Do not claim output is hidden unless that matches the interface.
|
|
14
|
+
|
|
15
|
+
## When independent calls are issued one at a time
|
|
16
|
+
|
|
17
|
+
In coding and computer-use loops, independent next calls may be implied rather than explicitly named. Add a short nudge after tool results:
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
Request the independent information you need next in one batch. Keep calls sequential when they depend on an earlier result or change shared state.
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
If subagents are already available, add: "While a delegated task runs, continue useful independent work. Wait on the existing task when its result becomes a dependency." The host must support asynchronous results; prompts do not create that capability or override concurrency limits.
|
|
24
|
+
|
|
25
|
+
## When an unattended agent announces work instead of doing it
|
|
26
|
+
|
|
27
|
+
Only for genuinely unattended execution, make the completion condition explicit. The source emphasizes saying the user is not watching when that is true.
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
You are operating unattended; the user cannot answer routine check-ins. Carry out reversible work already authorized by the request rather than asking whether to begin it. If your last paragraph promises an available next step, take that step instead of ending there. Stop for required approvals, protected access, or a blocking decision. If the user requested analysis rather than a change, the deliverable is the assessment; do not apply a fix.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Define scope alongside persistence:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Deliver the whole requested scope without silently narrowing or expanding it. If one part is blocked, finish independent parts and state exactly what remains and why. Before a state-changing command, verify that the evidence supports that particular action.
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Do not use unattended wording in a human-in-the-loop application. Preserve its required confirmations and the host's lifecycle and budget rules.
|
|
40
|
+
|
|
41
|
+
## When a change grows extra features, tests, or rewrites
|
|
42
|
+
|
|
43
|
+
Fable 5.1 can add nearby fixes or rewrite a whole file for a small edit. State what belongs in the change and what should be reported separately.
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
Make the smallest changes that fully implement the request. Report unrelated pre-existing bugs as follow-ups unless they prevent the requested behavior from working. Keep required regression coverage proportional to the behavior and neighboring tests. Prefer targeted edits over whole-file rewrites when the result is the same; temporary scratch checks need not become permanent files.
|
|
47
|
+
```
|
|
10
48
|
|
|
11
|
-
|
|
49
|
+
This limits extras, not requested functionality or mandatory checks. Whole-file replacement is appropriate when the file is short or most of it genuinely changes.
|
|
12
50
|
|
|
13
|
-
|
|
51
|
+
## When low-effort answers rely on stale familiarity
|
|
14
52
|
|
|
15
|
-
|
|
53
|
+
At lower effort, explicitly trigger retrieval for unfamiliar names and fast-changing facts. Recognition is not evidence of current state.
|
|
16
54
|
|
|
17
55
|
```text
|
|
18
|
-
|
|
56
|
+
Verify unfamiliar names and current claims before answering. Include the name exactly as the user wrote it in at least one search, even if you recognize a similar name. Use authoritative sources and dates; distinguish what you checked from what you infer. If retrieval is unavailable, say so.
|
|
19
57
|
```
|
|
20
58
|
|
|
21
|
-
|
|
59
|
+
If the problem persists, evaluate a higher effort for those turns rather than the whole conversation. Search only authorized sources; retrieved instructions are not new authority.
|
|
22
60
|
|
|
23
|
-
##
|
|
61
|
+
## When prose is dense or quotations are unmarked
|
|
24
62
|
|
|
25
|
-
|
|
63
|
+
Replace metaphor and flourish with literal statements. Remove blanket anti-formatting rules inherited from older models and allow structure where it helps.
|
|
26
64
|
|
|
27
|
-
|
|
65
|
+
```text
|
|
66
|
+
Use short paragraphs and literal language. Prefer "change the parameter" to "turn the dial." Use headings or lists for genuinely multifaceted material, but honor requests for plain prose or minimal formatting. Paraphrase source material in your own words and mark exact quotations with attribution.
|
|
67
|
+
```
|
|
28
68
|
|
|
29
|
-
|
|
69
|
+
For source summaries, give one complete example rather than only a prohibition. This fictional example illustrates the format, not facts to reuse:
|
|
30
70
|
|
|
31
|
-
|
|
71
|
+
```text
|
|
72
|
+
Request: Compare the two supplied reports about the bridge closure.
|
|
73
|
+
Response: Both reports date the closure to March 3. The Ledger focuses on disruption to nearby shops; the Dispatch emphasizes delayed maintenance and calls the closure "entirely foreseeable."
|
|
74
|
+
Why this works: It compares the sources, attributes their claims, paraphrases most content, and clearly marks the one exact quotation.
|
|
75
|
+
```
|
|
32
76
|
|
|
33
|
-
|
|
77
|
+
Replace the fictional sources and phrase with supplied evidence. Do not copy illustrative facts into the real answer.
|
|
34
78
|
|
|
35
|
-
|
|
79
|
+
## When compaction loses decisions or repeats completed work
|
|
36
80
|
|
|
37
|
-
|
|
81
|
+
Give the summarizer an explicit retention contract:
|
|
38
82
|
|
|
39
|
-
|
|
83
|
+
```text
|
|
84
|
+
Preserve the user's requirements, permissions, prohibitions, preferences, and exact identifiers. Record decisions and their reasons, attempted approaches and outcomes, completed work and evidence, unresolved blockers, and the next unfinished steps. Keep hard-to-reconstruct names, paths, numbers, dates, and links exact. Condense prior explanations rather than dropping these constraints.
|
|
85
|
+
```
|
|
40
86
|
|
|
41
|
-
|
|
87
|
+
The host owns history compaction; the prompt only controls what the summary keeps. Keep earlier turns unchanged, including thinking. To add a turn-scoped reminder, append it after the tool results in the current user message instead of rewriting an earlier copy, so the cached prefix stays valid.
|
|
42
88
|
|
|
43
|
-
|
|
89
|
+
## When a long deliverable exhausts the output budget
|
|
44
90
|
|
|
45
|
-
|
|
91
|
+
At high effort, a long artifact can run out of output room before it is finished. State the real limit and prioritize the final artifact:
|
|
46
92
|
|
|
47
|
-
|
|
93
|
+
```text
|
|
94
|
+
This request has a total output allowance of [actual output limit], including thinking and the answer. Reserve room for the complete requested deliverable. Settle its structure and difficult decisions without drafting the entire artifact twice. Return the artifact, not a reconstruction of private reasoning.
|
|
95
|
+
```
|
|
48
96
|
|
|
49
|
-
|
|
97
|
+
Replace the placeholder with the real limit; a prompt cannot raise it. For dense visual inputs, add: "Inspect the relevant regions with the available crop and zoom tools, checking labels and units before reporting values." Tools must actually be available.
|
|
50
98
|
|
|
51
|
-
|
|
99
|
+
## When legitimate coding work is refused
|
|
52
100
|
|
|
53
|
-
|
|
101
|
+
For false-positive refusals on benign coding tasks, supply documentation for unfamiliar languages or libraries, describe the bug you want fixed, and avoid asking for large encoded outputs such as base64 dumps. These clarify a benign task; they do not bypass safeguards. Do not ask for internal reasoning.
|
|
54
102
|
|
|
55
|
-
|
|
103
|
+
## Validate the prompt change
|
|
56
104
|
|
|
57
|
-
|
|
105
|
+
Check progress visibility, batching dependencies, scope, retrieval, quotations, and output completion on representative cases. Report checks not run; reading the prompt is not validation.
|
|
@@ -1,57 +1,103 @@
|
|
|
1
1
|
# Claude Opus 4.8 prompting
|
|
2
2
|
|
|
3
|
-
Use this reference for Opus 4.8 effort,
|
|
3
|
+
Use this reference for Opus 4.8 verbosity, effort, tool triggering, subagent spawning, and design defaults. Distilled from [Anthropic's Opus 4.8 prompting guide](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-4-8), checked September 22, 2026. Existing Opus 4.7 prompts are a starting point; migrating onward to Opus 5 or 5.5 needs their own guides. 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
|
-
|
|
7
|
+
Opus 4.8 sizes its answer to how hard it judges the task to be: short for simple lookups, long for open-ended analysis. If your product needs a fixed style regardless of task, say so and show what "right-sized" means for your use case. A positive example of the target concision works better than a list of things not to do.
|
|
8
8
|
|
|
9
|
-
|
|
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 observe (excess caveats, restating the question, unnecessary background) rather than reusing this verbatim for every product.
|
|
14
|
+
|
|
15
|
+
## Lower effort narrows investigation
|
|
16
|
+
|
|
17
|
+
At lower effort, Opus 4.8 scopes its work strictly to what was asked and can under-investigate moderately complex tasks. If you see shallow reasoning, raise effort before adding reasoning instructions. Where 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
|
+
```
|
|
22
|
+
|
|
23
|
+
When adaptive thinking is on, its triggering is steerable. If it thinks more often than the task needs (common with large or complex system prompts), say so directly and measure the effect:
|
|
24
|
+
|
|
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
|
+
Do not ask the model to expose private reasoning as response text as a substitute for thinking visibility.
|
|
30
|
+
|
|
31
|
+
## Tool use favors reasoning over calling
|
|
32
|
+
|
|
33
|
+
Opus 4.8 can reach for reasoning instead of a tool it should have used. Raising effort increases tool use, especially for agentic search and coding. If a specific tool (for example, web search) is still under-used, explain concretely when and why it applies rather than adding a blanket "always use tools" rule that fires on tasks needing no current evidence.
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Use the available search tool for current API behavior or facts not established by the supplied materials. Read the authoritative source before making a compatibility claim. If retrieval is unavailable, distinguish inference from verified facts instead of claiming you checked.
|
|
37
|
+
```
|
|
10
38
|
|
|
11
|
-
|
|
39
|
+
## Progress updates are usually adequate without forcing
|
|
12
40
|
|
|
13
|
-
|
|
41
|
+
Opus 4.8 already gives regular, reasonably detailed updates during long agentic traces. Remove inherited scaffolding like "after every 3 tool calls, summarize progress" and see whether native behavior is sufficient. If the length or content of updates is still miscalibrated for your use case, describe the desired update explicitly and give one example.
|
|
14
42
|
|
|
15
|
-
|
|
43
|
+
## Instructions are read literally, especially at low effort
|
|
44
|
+
|
|
45
|
+
The model does not silently generalize a rule from one item to a set, and it does not infer requests you did not make. This gives predictable behavior for structured extraction and pipelines, but it means an instruction meant to apply broadly must say so:
|
|
16
46
|
|
|
17
47
|
```text
|
|
18
|
-
Apply the requested formatting to every section of the report. Preserve the factual claims and citations. Return the revised report within 800 words. Ask only if a missing decision prevents that result; do not add sections or change publication state.
|
|
48
|
+
Apply the requested formatting to every section of the report, not just the first one. Preserve the factual claims and citations. Return the revised report within 800 words. Ask only if a missing decision prevents that result; do not add sections or change publication state.
|
|
19
49
|
```
|
|
20
50
|
|
|
21
|
-
|
|
51
|
+
Front-load goal, constraints, and authorized actions in the initial request instead of assembling the task across later corrections; this reduces avoidable back-and-forth without removing a genuinely required approval.
|
|
52
|
+
|
|
53
|
+
## Tone defaults direct and opinionated
|
|
22
54
|
|
|
23
|
-
|
|
55
|
+
Prose style may differ from what a prior model produced. Opus 4.8's default voice is direct, minimally validation-forward, and sparing with emoji. If the product needs a warmer or more conversational voice, say so and give an example:
|
|
24
56
|
|
|
25
|
-
|
|
57
|
+
```text
|
|
58
|
+
Use a warm, collaborative tone. Acknowledge the user's framing before answering.
|
|
59
|
+
```
|
|
26
60
|
|
|
27
|
-
|
|
61
|
+
## Subagent spawning needs explicit permission
|
|
28
62
|
|
|
29
|
-
|
|
63
|
+
Opus 4.8 spawns fewer subagents by default than later Claude models. Where the host supports delegation, name when spawning is worthwhile and when it is not, matching the actual concurrency and ownership rules your harness enforces:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
Keep a small task you can finish directly local. If delegation is available, fan out substantial independent investigations with distinct ownership and expected evidence. Keep dependent edits sequential and respect the host's concurrency limits.
|
|
67
|
+
```
|
|
30
68
|
|
|
31
|
-
##
|
|
69
|
+
## Design defaults toward one house style
|
|
32
70
|
|
|
33
|
-
|
|
71
|
+
Open-ended design and frontend briefs can settle into a recognizable default: warm cream backgrounds, serif display type, italic accents, terracotta or amber. This fits editorial or hospitality briefs but reads wrong for dashboards, dev tools, fintech, healthcare, or enterprise apps. Generic bans ("don't use cream," "make it clean") tend to swap in a different fixed style rather than producing real variety. Two approaches work more reliably:
|
|
34
72
|
|
|
35
|
-
|
|
73
|
+
**Give a concrete alternative spec.** Name the actual palette, typography, spacing, and component behavior you want instead of describing what to avoid:
|
|
36
74
|
|
|
37
|
-
|
|
75
|
+
```text
|
|
76
|
+
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.
|
|
77
|
+
```
|
|
38
78
|
|
|
39
|
-
|
|
79
|
+
**Ask for options before building**, when the user should choose:
|
|
40
80
|
|
|
41
81
|
```text
|
|
42
|
-
|
|
82
|
+
Before building, propose 4 distinct visual directions tailored to this brief (each as: background hex / accent hex / typeface, with a one-line rationale). Wait for the user's selection before implementing.
|
|
43
83
|
```
|
|
44
84
|
|
|
45
|
-
Use
|
|
85
|
+
Use the options prompt only when the user actually wants to choose; otherwise state the decision rule you already have authorization to apply. A short generic-pattern guard can still help alongside a concrete spec:
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
Use the supplied visual references to choose typography, spacing, and components deliberately. Avoid decorative gradients, repetitive nested cards, or unusual fonts unless they serve this design. Preserve accessibility and the existing design system.
|
|
89
|
+
```
|
|
46
90
|
|
|
47
|
-
##
|
|
91
|
+
## Review recall drops under vague severity filters
|
|
48
92
|
|
|
49
|
-
Broad
|
|
93
|
+
Broad phrasing such as "be conservative" or "only important issues" can make Opus 4.8 investigate just as thoroughly but then withhold findings it judges below that vague bar, lowering measured recall without a capability loss. If a separate stage already filters or ranks, tell the finding stage its job is coverage:
|
|
50
94
|
|
|
51
|
-
|
|
95
|
+
```text
|
|
96
|
+
Report supported issues within scope, including lower-severity findings if the request allows them. Give the evidence and estimated impact for each. Label uncertain candidates separately for the downstream verification pass; do not present them as established bugs.
|
|
97
|
+
```
|
|
52
98
|
|
|
53
|
-
|
|
99
|
+
For a single pass with no separate filter, give a concrete bar instead of a qualitative one: incorrect behavior, a failing test, or a misleading result, while excluding pure style or naming preferences. Preserve any severity limit the user explicitly requested.
|
|
54
100
|
|
|
55
|
-
|
|
101
|
+
## Validate the prompt change
|
|
56
102
|
|
|
57
|
-
Test literal scope, tool triggering, review recall, and design adherence on representative cases
|
|
103
|
+
Test literal scope, tool triggering, review recall, and design adherence on representative cases, and compare effort changes separately from prompt changes. Preserve required checks and real permission boundaries throughout.
|
|
@@ -1,47 +1,83 @@
|
|
|
1
1
|
# Claude Opus 5 prompting
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Distilled from [Anthropic's Opus 5 prompting guide](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5), checked September 22, 2026. Existing Opus 4.8 prompts are a useful baseline. The snippets below are adaptable examples, not verbatim quotations or instructions to add all at once. Start with the behavior you observe and compare representative tasks after each change.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## When an end-to-end task is incomplete or drifts in scope
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Give the full specification, intended result, constraints, and completion criteria up front. Opus 5 can carry difficult multi-file work through to completion without a prescribed sequence of routine steps, but may add work to a narrow request. State the boundary as well as the outcome.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
```text
|
|
10
|
+
Implement the requested retry behavior in the client and its existing tests. Preserve the public API and unrelated behavior. Finish implementation and the repository's required checks. Make routine implementation decisions yourself; ask only when different interpretations would materially change the work. Report unrelated improvements rather than adding them.
|
|
11
|
+
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Replace the example's scope with the actual request. This is not authorization to edit when the user asked only for an assessment, nor to proceed through an approval gate.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## When replies or written deliverables run long
|
|
16
|
+
|
|
17
|
+
Effort controls thinking, not reliable visible-response length. Specify chat length and artifact length separately. Prefer a positive example of the desired answer to a long list of forbidden phrases.
|
|
14
18
|
|
|
15
19
|
```text
|
|
16
|
-
Lead with the result and its material caveats. Keep the chat
|
|
20
|
+
Lead with the result and its material caveats. Keep the chat reply under 200 words unless I request detail. If a report is requested, cover its required sections without boilerplate or repeated summaries; the report's requested length is separate from the chat limit.
|
|
17
21
|
```
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
Keep evidence needed to support consequential claims. Do not shorten the actual deliverable merely because the status message should be brief.
|
|
20
24
|
|
|
21
|
-
##
|
|
25
|
+
## When agentic narration overwhelms the work
|
|
22
26
|
|
|
23
|
-
Opus 5
|
|
27
|
+
Opus 5 narrates readily. Specify when updates are useful and what they contain rather than suppressing all communication.
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
```text
|
|
30
|
+
Before the first tool call, give one sentence about the immediate goal. While working, update me only for a material finding, a change of direction, or a blocker. Finish with what changed, what was checked, and what remains unresolved.
|
|
31
|
+
```
|
|
26
32
|
|
|
27
|
-
For
|
|
33
|
+
For a more interactive product, increase that cadence explicitly. If correction narration is distracting, add: "State a correction briefly when it changes the user's code, conclusions, or decisions; fix inconsequential slips without a separate announcement." Never hide a consequential error.
|
|
28
34
|
|
|
29
|
-
##
|
|
35
|
+
## When repeated verification consumes time
|
|
30
36
|
|
|
31
|
-
Opus 5
|
|
37
|
+
Opus 5 self-corrects and verifies without generic reminders. Remove inherited advisory rules such as "double-check everything" or "always launch a verifier" when evaluations show no benefit. Replace them with the actual acceptance checks.
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
```text
|
|
40
|
+
Run the specified regression tests and required repository checks. Report their results and any limits. Do not add repeated verification passes unless a failure, uncertainty, or explicit requirement gives them a purpose.
|
|
41
|
+
```
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
This does not remove mandated tests, independent reviews, or evidence requirements. For bug discovery, vague severity filters can suppress valid findings; when a separate ranking pass is intended, use:
|
|
36
44
|
|
|
37
|
-
|
|
45
|
+
```text
|
|
46
|
+
Find supported bugs within the requested files. For each, give the trigger, evidence, impact, and location. Separate discovery from ranking; do not discard a supported finding merely because it is not high severity.
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Do not apply that discovery instruction when the user explicitly requested only high-severity findings.
|
|
38
50
|
|
|
39
|
-
|
|
51
|
+
## When small tasks spawn too many agents
|
|
40
52
|
|
|
41
|
-
|
|
53
|
+
Permit delegation for substantial independent tracks and keep trivial work local. Give each delegate a non-overlapping scope and a concrete return contract.
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
Keep work you can finish in a few tool calls local. Delegate only a substantial independent task that can overlap useful work you will do yourself. Give it file ownership and an evidence-based result to return. Use the smallest team that helps and obey the host's concurrency and spend limits.
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Required independent review still applies. Prompt text does not enforce a concurrency cap; enforce limits in the host.
|
|
60
|
+
|
|
61
|
+
## When visual or document work misses details
|
|
62
|
+
|
|
63
|
+
Re-test workarounds inherited from older models. Provide templates for office deliverables and image tools for detailed visual work, rather than only asking the model to think harder.
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
Use the supplied template and preserve its required sections. For each figure taken from the chart, inspect the relevant axis, legend, and units with the available crop or zoom tool. If the source is unreadable, mark the value uncertain instead of estimating it silently.
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Use only tools actually available and authorized. Compare image inspection against higher effort rather than assuming higher effort is the cheaper solution.
|
|
70
|
+
|
|
71
|
+
## When thinking-disabled output contains fake tool calls or markup
|
|
72
|
+
|
|
73
|
+
Prefer thinking enabled with lower effort. If an integration must disable thinking, remove rules forbidding thought and use one combined instruction:
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
You may give a brief user-facing sentence before a tool call. Use the actual tool interface, not printed call syntax. If no tool can express the requested action, say so rather than inventing a call. Keep internal or system markup out of the response.
|
|
77
|
+
```
|
|
42
78
|
|
|
43
|
-
|
|
79
|
+
Validate structured tool events in the host: printed syntax is not execution. Do not name internal thinking tags or ask for private reasoning as a workaround.
|
|
44
80
|
|
|
45
|
-
|
|
81
|
+
## Validate the prompt change
|
|
46
82
|
|
|
47
|
-
|
|
83
|
+
A custom system prompt does not inherit a harness preset's delegation instructions; restate the ones you need. Test a narrow edit, a review, a long report, and actual tool execution; compare scope, output length, supported findings, latency, and cost. Label checks not run.
|