Tabbit
ResourcesBlogModels
Tabbit LogoTabbit

Tabbit — The AI Browser that Works for You

Topics

  • AI Browser Resources
  • Agentic Browser Resources
  • Browser Downloads and Install Guides
  • Browser Comparisons
  • AI Browser Alternatives
  • Browser Productivity Resources

Popular Guides

  • AI Browser
  • Agentic Browser Download
  • Best AI Browser 2026: Top 9 Tested & Ranked
  • AI Browser Download
  • Free AI Browser
  • Best AI Browser 2026
  • AI Browser Comparison 2026
  • AI Browser for Windows
  • AI Browser for Mac
  • Chrome Alternative 2026

Events

  • Tabbit Skill Competition
  • KPOP SBTI Fandom Personality Test
  • Tabbit Campus Creator Program
  • fifi's Picks: AI Skills for Research Papers
  • User Survey

About

  • Tabbit Blog
  • Press & Media
English
简体中文English
Prompts and workflows

Claude Sonnet 4.6 · prompting-guide

Clear Instructions, XML Context, and Self-Checking for Claude Sonnet 4.6

Follow a task-specific guide for “Clear Instructions, XML Context, and Self-Checking for Claude Sonnet 4.6”; prerequisites, steps, checks, fixes, and source boundaries are explicit.

Source not verifiedClaude API, Claude Code, or an Anthropic-compatible runner

Prerequisites and inputs

  • Task-specific source files
  • Tool allowlist and permissions
  • Output schema
  • Acceptance evidence

Complete templates

Editorial adaptation: task-specific prompt block

Tabbit editorial adaptation; not the original source prompt
<context>\n{{DOCUMENT_SET}}\n</context>\nTask: {{QUESTION}}\nReturn {{OUTPUT_SCHEMA}} and run: {{SELF_CHECKS}}. Keep unsupported values unknown.

Replace before running: {{DOCUMENT_SET}}, {{QUESTION}}, {{OUTPUT_SCHEMA}}, {{SELF_CHECKS}}

Prerequisites\nEvidence-first XML task: separate context, task, constraints, and output, then run self-checks before returning.\n\n## Task-specific steps\nTest short, long, and conflicting documents. Mark unsupported fields unknown and reject schema drift in the client parser.\n\n## Output and acceptance\nTest short, long, and conflicting documents. Mark unsupported fields unknown and reject schema drift in the client parser.\n\n## Source and boundary\nAnthropic prompting best practices; not a universal Sonnet accuracy rate.

Read the source research notes

One-sentence takeaway

Using clear, sequential requirements, XML delimiters for context and examples, and a requirement to self-check against acceptance criteria can help Claude Sonnet 4.6 stay within scope and maintain formatting more reliably in document analysis, coding, and multi-step tasks.

Use cases

  • Suitable tasks: Long-document/codebase analysis, structured extraction, complex deliverables, and agents that require post-tool validation.

  • Unsuitable tasks: Tasks that depend on the model inferring missing facts or that lack verifiable acceptance criteria; prompts cannot replace permission checks or server-side schema validation.

  • Applicable model versions: Claude Sonnet 4.6; the general principles also apply to Anthropic's current models.

  • Applicable clients, agents, or APIs: Claude API, Claude Code, and Claude Cowork; XML is a prompt structure and does not limit the client.

  • Recommended reasoning tier and parameters: Explicitly set effort=medium for Sonnet 4.6 as a starting point balancing speed and quality; try high for complex code or agent tasks, and low for simple, high-throughput work. When thinking is needed, configure adaptive/extended thinking according to the target API.

Ready-to-use content

&lt;role&gt;
You are a careful, verifiable assistant for engineering and research analysis.
&lt;/role&gt;

&lt;instructions&gt;
1. First understand the task goal, scope, and acceptance criteria.
2. Complete the necessary steps in order; clearly flag missing information instead of guessing.
3. When files need to be modified or tools need to be called, first choose the minimum necessary action.
4. Run the relevant tests after each write or modification, and explain where the changes were made and the results.
5. Before giving the final answer, check each acceptance criterion one by one; list incomplete items under “Unresolved items.”
&lt;/instructions&gt;

&lt;context&gt;
  &lt;document id="&lt;id&gt;"&gt;
    &lt;source&gt;&lt;source-name-or-url&gt;&lt;/source&gt;
    &lt;document_content&gt;
      &lt;paste-document-or-code-here&gt;
    &lt;/document_content&gt;
  &lt;/document&gt;
&lt;/context&gt;

&lt;request&gt;
  &lt;goal&gt;&lt;specific-goal&gt;&lt;/goal&gt;
  &lt;constraints&gt;
    &lt;item&gt;&lt;constraint-1&gt;&lt;/item&gt;
    &lt;item&gt;&lt;constraint-2&gt;&lt;/item&gt;
  &lt;/constraints&gt;
  &lt;acceptance_criteria&gt;
    &lt;item&gt;&lt;testable-criterion-1&gt;&lt;/item&gt;
    &lt;item&gt;&lt;testable-criterion-2&gt;&lt;/item&gt;
  &lt;/acceptance_criteria&gt;
&lt;/request&gt;

&lt;output_format&gt;
1. Conclusion / completion status
2. Evidence or test results
3. Change / citation locations
4. Risks and unresolved items
&lt;/output_format&gt;

Before you finish, verify your answer against every acceptance criterion.

Test/workflow steps

  1. Put the long document and metadata in &lt;context&gt;, and place the question, constraints, and acceptance criteria separately at the end.

  2. Use 2–3 &lt;example&gt; elements based on realistic tasks to show the target format and edge cases; do not use examples unrelated to the task.

  3. Test effort=low/medium/high separately, keeping the model, tools, and input fixed.

  4. Measure format compliance, factual support, test pass rate, number of tool calls, latency, and token usage; compare whether excessive scope expansion occurs.

Original evidence and data

  • Anthropic recommends stating the output format and constraints clearly, directly, and specifically, and using numbered steps when order or completeness matters.

  • The official guidance recommends organizing multiple documents with XML &lt;document&gt;, &lt;document_content&gt;, and &lt;source&gt;; put long documents above the prompt, with the query and instructions after them.

  • The official guidance recommends first asking Claude to quote the relevant source text for long-document tasks before completing the subsequent task, to help focus on relevant content.

  • Anthropic notes that Sonnet 4.6 supports context awareness and is suitable for long-horizon and multi-context-window workflows; for tasks such as coding and mathematics, self-checking before completion can be used.

Scope and limitations

  • XML tags are a prompt structure, not a security boundary; content inside tags from users or webpages must still be treated as untrusted data.

  • “Self-checking” is a behavioral requirement and does not mean that the model has run real tests; tools or the server must execute and record them in practice.

  • Putting long documents above the prompt and questions below them is a general official recommendation; specific tasks still need to be validated with evals, so you must not claim that it will necessarily improve results.

  • Do not ask the model to expose hidden chain-of-thought; ask only for brief, verifiable evidence, tests, and unresolved items.

Source excerpt or observation (short compliant paraphrase only)

The official golden rule is: if a colleague who lacked context would be confused, Claude would be confused too (compliant paraphrase).

Source and dates

Claude Platform Docs / Prompting best practices · Source date: Not disclosed · Edited: 2026-09-20

Read the original source
Variable checklist

Still to replace: 4

{{DOCUMENT_SET}}{{QUESTION}}{{OUTPUT_SCHEMA}}{{SELF_CHECKS}}

Related prompts

Claude Sonnet 4.6: Computer Use Tool Definitions and Automated Closed-Loop WorkflowClaude Sonnet 4.6: 1M Long Context and Context Compaction Architecture ConfigurationClaude Code: Sonnet 4.6 Engineering Architecture and Subagent DivisionClaude Sonnet 4.6: Effort and Tool-Triggering Configuration

Related reviews

Claude Sonnet 4.6 Official Release: Coding, Computer Use, and Agent BenchmarksOSWorld-Verified Independent Review: Claude Sonnet 4.6 Computer Use and GUI Task Deep AnalysisBrowser Use BU Benchmark: Sonnet 4.6 Browser Agent 62%Harvey Legal Agent Bench: Sonnet 4.6 Full-Pass Rate 4.2%

Read the full analysis

Overview · English

Claude Sonnet 4.6: What It Is, Pricing, Access, and the Sonnet 5 Migration Question

A sourced overview of Claude Sonnet 4.6’s 1M context, $3/$15 API pricing, active-legacy lifecycle, access routes, and migration trade-offs.

Claude Sonnet 4.6

Use Claude Sonnet 4.6 in Tabbit

Run this guide in the environment listed above. Downloading does not transfer the template or establish model availability for your account.