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
Prompt guide
MediaClaude Sonnet 4.6

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

Original source

Claude Platform Docs / Prompting best practices

AuthorAnthropic

Tabbit curation2026-08-19

Read original

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

<role>
You are a careful, verifiable assistant for engineering and research analysis.
</role>

<instructions>
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.”
</instructions>

<context>
  <document id="<id>">
    <source><source-name-or-url></source>
    <document_content>
      <paste-document-or-code-here>
    </document_content>
  </document>
</context>

<request>
  <goal><specific-goal></goal>
  <constraints>
    <item><constraint-1></item>
    <item><constraint-2></item>
  </constraints>
  <acceptance_criteria>
    <item><testable-criterion-1></item>
    <item><testable-criterion-2></item>
  </acceptance_criteria>
</request>

<output_format>
1. Conclusion / completion status
2. Evidence or test results
3. Change / citation locations
4. Risks and unresolved items
</output_format>

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

Test/workflow steps

  1. Put the long document and metadata in <context>, and place the question, constraints, and acceptance criteria separately at the end.

  2. Use 2–3 <example> 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 <document>, <document_content>, and <source>; 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).

Curated by Tabbit

Prompt material is summarized from public sources and Tabbit editorial notes. Check the original licensing and intended use before copying it.

Claude Sonnet 4.6

Use in Tabbit

Claude Sonnet 4.6

Related prompts

MediaClaude Platform Docs / Effort and Prompting best practices

Claude Sonnet 4.6: Effort and Tool-Triggering Configuration

MediaAnthropic Platform Docs / Computer Use API Reference2026-02-17

Claude Sonnet 4.6: Computer Use Tool Definitions and Automated Closed-Loop Workflow

MediaAnthropic Platform Docs / Context Management & Compaction2026-02-17

Claude Sonnet 4.6: 1M Long Context and Context Compaction Architecture Configuration

CommunityGitHub / Claude Code Architecture & Best Practices2026-03-05

Claude Code: Sonnet 4.6 Engineering Architecture and Subagent Division

Claude Sonnet 4.6

Related reviews

MediaAnthropic News / Introducing Sonnet 4.62026-02-17

Claude Sonnet 4.6 Official Release: Coding, Computer Use, and Agent Benchmarks

MediaBenchLM2026-08-17

BenchLM's Public Evidence Ledger for Claude Sonnet 4.6

MediaIDP Leaderboard

IDP Leaderboard: Sonnet 4.6 Matches Opus 4.6 on Real-World Document Understanding

MediaArtificial Analysis

Artificial Analysis: Sonnet 4.6 Non-Reasoning Intelligence Index 37