Author: William Tygart

  • Building Your First Agentic Workflow with Claude’s Agent SDK

    Building Your First Agentic Workflow with Claude’s Agent SDK

    Last refreshed: August 2026

    The Claude Agent SDK tutorial starts here — the SDK (formerly the Claude Code SDK, renamed late 2025) eliminates the boilerplate of building agentic loops by hand, shipping the same tool execution, context management, and permission system that powers Claude Code into a Python or TypeScript library you can embed in any product, pipeline, or internal tool.

    This is a practical build guide. It covers when to use an agent versus a script, what the SDK actually does, how to set one up with working code, and what to watch for in production.


    When to Use an Agent vs. a Script

    Side-by-side when to use a script versus an agent
    Agent vs script — choose deliberately.

    Use an agent when the number of steps to complete the task is unpredictable. If the workflow can be hardcoded, a linear script is faster, cheaper, and easier to debug.

    This is Anthropic’s own guidance in Building Effective Agents, and it’s the right frame. The common mistake is reaching for agents because agents are fashionable — not because the problem requires them.

    Agents fit:

    • Open-ended research tasks where the number of searches needed varies
    • Code debugging where the error chain isn’t known in advance
    • Multi-step data pipelines where decisions at each step depend on prior outputs
    • Any workflow where the model needs to try, observe, and adjust

    Scripts fit:

    • Known sequences of steps that always run in the same order
    • Simple data transformation with no conditional branching
    • Any task where the output of each step is fully predictable

    The cost implication matters too: a 15-step agentic research task can hit 200K+ tokens without optimization. Agents are expensive when you don’t need them.


    How the Claude Agent SDK Works

    Observe remember act update loop for agent SDK workflows
    How the Agent SDK loop behaves in practice.

    The SDK automates the ReAct loop — Reason, Act, Observe, repeat — so you define the tools and instructions and the SDK handles the rest. You never write the prompt → check stop_reason → execute tool → loop boilerplate yourself.

    The core loop the SDK manages:

    1. Send the task to Claude with available tool definitions
    2. Claude reasons and produces a tool call (or a final answer)
    3. The SDK executes the tool in the local environment
    4. The SDK sends the result back to Claude
    5. Claude observes and decides: call another tool or produce final output
    6. Loop until done

    This continues until Claude produces a response with no tool calls. The SDK handles conversation history, token tracking, error handling, and session management across the entire loop.


    Installing the SDK

    # Python
    pip install claude-agent-sdk
    
    # TypeScript
    npm install @anthropic-ai/claude-agent-sdk
    

    Set your API key:

    export ANTHROPIC_API_KEY="sk-ant-..."
    

    Building a Minimal Agent

    A working agent requires three things: a task, tool definitions, and a Runner call. Everything else is configuration.

    from claude_agent_sdk import ClaudeAgentOptions, Runner
    import subprocess
    import json
    
    # Define tools the agent can use
    tools = [
        {
            "name": "run_command",
            "description": "Run a shell command and return its output",
            "input_schema": {
                "type": "object",
                "properties": {
                    "command": {
                        "type": "string",
                        "description": "The shell command to execute"
                    }
                },
                "required": ["command"]
            }
        },
        {
            "name": "read_file",
            "description": "Read the contents of a file",
            "input_schema": {
                "type": "object",
                "properties": {
                    "path": {
                        "type": "string",
                        "description": "File path to read"
                    }
                },
                "required": ["path"]
            }
        }
    ]
    
    # Tool execution handlers
    def execute_tool(tool_name: str, tool_input: dict) -> str:
        if tool_name == "run_command":
            result = subprocess.run(
                tool_input["command"],
                shell=True,
                capture_output=True,
                text=True
            )
            return result.stdout or result.stderr
        elif tool_name == "read_file":
            with open(tool_input["path"], "r") as f:
                return f.read()
        return f"Unknown tool: {tool_name}"
    
    # Configure and run the agent
    options = ClaudeAgentOptions(
        model="claude-sonnet-4-6",
        max_turns=20,               # safety ceiling
        tools=tools,
        tool_executor=execute_tool
    )
    
    result = Runner.run_sync(
        task="Check the disk usage on this machine and report the top 5 largest directories under /home",
        options=options
    )
    
    print(result.final_output)
    

    That’s a complete working agent. The SDK handles the loop; the tool definitions and executor are the only custom code.


    Adding Cost Controls

    Cost control gates before an agent runs
    Add cost controls before multi-turn agents hit production.

    Always set a max_turns ceiling and a token budget. An uncapped agent loop can run indefinitely on an ambiguous task.

    options = ClaudeAgentOptions(
        model="claude-sonnet-4-6",
        max_turns=20,
        max_tokens_per_turn=4000,   # cap per individual turn
        tools=tools,
        tool_executor=execute_tool
    )
    

    Cost at 20 turns using Claude Sonnet 4.6 with an average of 2,000 tokens per turn:

    • Input: 40,000 tokens × $3/M = $0.12
    • Output: 10,000 tokens × $15/M = $0.15
    • Total per agent run: ~$0.27

    At 1,000 agent runs per month: ~$270. At 10,000: ~$2,700. Budget from these numbers, not from seat prices.

    Switching the inner loop to Haiku 4.5 for tool selection and Sonnet only for synthesis cuts cost significantly:

    # Route lighter reasoning to Haiku, reserve Sonnet for synthesis
    light_options = ClaudeAgentOptions(model="claude-haiku-4-5-20251001", ...)
    heavy_options = ClaudeAgentOptions(model="claude-sonnet-4-6", ...)
    

    Multi-Turn Agents (Conversational)

    For agents where a human asks follow-up questions across multiple turns, maintain conversation history and pass it on each call.

    from claude_agent_sdk import ClaudeAgentOptions, Runner
    
    conversation_history = []
    
    def chat_with_agent(user_message: str) -> str:
        conversation_history.append({
            "role": "user",
            "content": user_message
        })
    
        options = ClaudeAgentOptions(
            model="claude-sonnet-4-6",
            max_turns=10,
            tools=tools,
            tool_executor=execute_tool,
            messages=conversation_history  # full history each call
        )
    
        result = Runner.run_sync(task=user_message, options=options)
    
        conversation_history.append({
            "role": "assistant",
            "content": result.final_output
        })
    
        return result.final_output
    
    # Usage
    print(chat_with_agent("What Python packages are installed on this system?"))
    print(chat_with_agent("Which of those are outdated?"))
    

    Claude Managed Agents vs. the Agent SDK

    The Agent SDK runs locally in your environment. Claude Managed Agents runs in Anthropic’s cloud infrastructure with persistent sessions, built-in tools, and cross-session memory. Choose based on where you need the agent to execute.

    Agent SDKManaged Agents
    Where it runsYour server / local machineAnthropic-managed cloud
    Persistent sessionsManual (maintain history)Built-in
    Cross-session memoryManualBuilt-in (public beta)
    Built-in toolsBring your own20+ included
    Multi-agent coordinationManualBuilt-in
    CostAPI tokens onlyAPI tokens + platform fee
    ControlFullManaged

    The Agent SDK is right for custom environments, data that can’t leave your infrastructure, and workflows deeply embedded in existing systems. Managed Agents is right when you want to skip infrastructure and get to the agent behavior faster.


    What Goes Wrong in Production

    The most common production failures are uncapped loops, conversation history that grows without bound, and tool definitions written too vaguely.

    Uncapped loops: An agent on an ambiguous task will keep calling tools indefinitely without a max_turns ceiling. Always set one. Always check message.subtype rather than is_error — a max-turns termination doesn’t set is_error: true correctly in some SDK versions.

    Growing conversation history: Each turn adds tokens to history. At 20 turns on a complex task, history can push 100K+ tokens. Summarize aggressively between phases for long-running agents: prompt Claude to summarize phase 1 outputs before starting phase 2.

    Vague tool definitions: Tool descriptions are how Claude decides which tool to call and how to use it. Vague descriptions produce tool call errors and unnecessary retry loops. Write tool descriptions as precisely as you would write a function docstring — what it does, what inputs it expects, what it returns.

    camelCase vs snake_case mismatch: AgentDefinition uses camelCase (disallowedTools); ClaudeAgentOptions uses snake_case (disallowed_tools). This caught teams in early SDK versions.


    Related on Tygart Media: how to use Claude · Anthropic API key.

    Frequently Asked Questions

    What is the Claude Agent SDK?

    The Claude Agent SDK is Anthropic’s Python and TypeScript library for building autonomous AI agents. It wraps the same agentic loop that powers Claude Code — tool execution, context management, and session handling — so developers don’t build that infrastructure from scratch. It was formerly called the Claude Code SDK and was renamed in late 2025.

    What is the difference between the Agent SDK and Claude Code?

    Claude Code is Anthropic’s interactive terminal-based development tool for agentic coding. The Agent SDK is the programmatic library for embedding agent behavior in custom applications and pipelines. They share the same underlying agent loop and tool system. Claude Code stays in the picture for interactive development; the SDK is for production automation.

    How much does it cost to run an agent?

    Agent cost is API token cost only (no platform fee for the SDK itself). A 20-turn agent on Claude Sonnet 4.6 with 2,000 tokens average per turn costs approximately $0.27. At 10,000 agent runs per month, that’s about $2,700. Switching the tool selection loop to Haiku 4.5 and reserving Sonnet for synthesis significantly reduces cost.

    When should I use Managed Agents instead of the Agent SDK?

    Use Managed Agents when you want cloud-hosted execution, persistent cross-session memory, built-in tools (20+ included), and multi-agent coordination without building that infrastructure yourself. Use the Agent SDK when you need local execution, full control over the environment, or your data can’t leave your infrastructure.

    What to Read Next

    Anthropic Console: API Keys, Billing, and the Workbench

     Claude AI Pricing — All Plans and API Rates 

    Claude API Model IDs and Strings 

    How to Install Claude Code

  • Calculating the ROI of Claude Enterprise: Is the $100+ Per User Worth It? (2026)

    Calculating the ROI of Claude Enterprise: Is the $100+ Per User Worth It? (2026)

    Last refreshed: August 2026

    Claude Enterprise starts at $20/seat/month for access, but actual spend runs $60–250+ per user depending on usage — because tokens are billed separately at API rates. The ROI calculation isn’t about the seat fee. It’s about whether the productivity return on active usage exceeds the total consumption cost.

    This is a practical ROI framework for business decision-makers evaluating Claude Enterprise in 2026. It covers what the pricing actually includes, how to model real cost, and what the productivity return looks like across different team roles.


    What Claude Enterprise Actually Costs in 2026

    Enterprise pricing changed in April 2026: Anthropic decoupled seat fees from token bundles. The headline price is $20/seat/month, but that covers access only — every token consumed by every user is billed separately at standard API rates.

    This is a meaningful structural change from the pre-2026 model, where Enterprise seats included bundled token allocations. Under the current model:

    ComponentCost
    Seat fee~$20/user/month (annual, contact sales)
    Token usage — Haiku 4.5$0.80 input / $4 output per 1M tokens
    Token usage — Sonnet 4.6$3 input / $15 output per 1M tokens
    Token usage — Opus 4.8$15 input / $75 output per 1M tokens
    Claude Code (premium seat)$100/seat/month (annual)
    Minimum seatsCustom, typically 20+ for sales-assisted

    Compare this to Claude Team:

    PlanSeat CostToken ModelCap
    Team Standard$20/seat/mo (annual)Bundled — included in seat150 users
    Team Premium (with Claude Code)$100/seat/mo (annual)Bundled150 users
    Enterprise~$20/seat + API usageMetered separatelyNone

    Team is predictable cost with a usage ceiling. Enterprise is variable cost with no ceiling and no cap. The right choice depends on your compliance requirements and usage intensity, not just team size.


    The Real Cost Per Active User

    Four gates: max turns, tool allowlist, token budget, kill switch
    Real cost per active user — model seats, not sticker shock.

    The most important number is not the seat price — it’s the real cost per active user, which is seat fee plus token consumption. At 10% seat adoption, your effective cost per active user is 10x the headline seat price.

    Adoption rate determines economics:

    Team sizeActive users (40% adoption)Monthly seat costToken cost (moderate usage)Total / active user
    50 seats20$1,000~$800~$90
    100 seats40$2,000~$1,600~$90
    500 seats200$10,000~$8,000~$90

    At 10% adoption (a common early-deployment reality):

    Team sizeActive usersMonthly seat costToken costTotal / active user
    100 seats10$2,000~$400~$240

    The implication: increasing adoption from 10% to 40% is a higher-ROI move than adding seats. An adoption problem looks like an economics problem but isn’t.


    What the Productivity Return Looks Like

    Three cards: coding depth, latency first, agent reliability
    Productivity return depends on the job shape.

    Industry estimates put the productivity upside at $7,800 per employee per year — but that figure only materializes when Claude is actively integrated into daily workflows, not when it’s available as an optional chat tab.

    The $7,800/employee figure comes from enterprise AI ROI research measuring time saved across knowledge work tasks. It assumes genuine integration into workflows, not passive availability. Here’s how it breaks down by role:

    Software developers (highest ROI):

    • Agentic coding with Claude Code reduces code review cycles, test writing, and boilerplate
    • Estimated 1.5–2 hours/day returned on routine coding tasks
    • At $100K loaded annual salary: ~$9,000–12,000/year in time value per developer

    Content and marketing teams:

    • Drafting, editing, research, brief writing at significantly higher speed
    • Estimated 45–90 minutes/day returned on writing-heavy tasks
    • At $75K loaded: ~$5,600–11,200/year per person

    Legal and compliance teams:

    • Contract review, policy drafting, compliance checklist work
    • Estimated 30–60 minutes/day returned
    • At $120K loaded: ~$7,500–15,000/year per lawyer or compliance analyst

    Operations and admin:

    • SOPs, reporting, email drafting, meeting prep
    • Estimated 20–30 minutes/day returned
    • At $60K loaded: ~$2,500–3,750/year

    The ROI Model

    A simple ROI model: (hours returned per user per day × working days × loaded hourly rate) − annual total cost per user = net annual value per seat.

    Example for a 50-person software team on Enterprise:

    Loaded developer salary: $120,000/year = ~$57.70/hour
    Hours returned per day (conservative): 1 hour
    Working days: 230
    Value returned per developer: 230 × $57.70 = $13,271/year
    
    Annual Enterprise cost per developer:
      Seat fee: $20 × 12 = $240
      Token cost (moderate Sonnet usage): ~$600/year
      Total per developer: ~$840/year
    
    Net ROI per developer: $13,271 − $840 = $12,431
    ROI multiple: 15.8x
    

    Even at half the productivity estimate (30 minutes/day returned), the ROI multiple remains above 7x for any knowledge worker with a loaded salary above $60K. The economics are compelling when adoption is real.


    When Enterprise Is the Right Choice vs. Team

    Three cards for fast volume, daily workhorse, and deep flagship Claude seats
    When Enterprise is right vs Team.

    Choose Enterprise when you have a compliance mandate (SSO, SCIM, audit logs, HIPAA), a team above 150 users, or a negotiated consumption commitment that reduces effective per-token cost. Otherwise, Team is more predictable and sufficient.

    NeedTeamEnterprise
    SSO / SAML authentication✗✓
    SCIM provisioning✗✓
    Audit logs✗✓
    HIPAA-ready configuration✗✓
    Compliance API (export to SIEM)✗✓
    Users above 150✗✓
    Fixed predictable monthly cost✓✗
    Usage bundled in seat price✓✗

    The honest rule: buy Team until a real compliance or scale requirement forces Enterprise. If security review, identity governance, or audit trails are requirements, Enterprise is necessary. If they’re not, Team is cheaper and simpler.


    Related on Tygart Media: how to use Claude · Anthropic API key.

    Frequently Asked Questions

    How much does Claude Enterprise cost?

    Claude Enterprise starts at approximately $20/user/month for access (billed annually, custom via sales), with token usage billed separately at standard API rates. Real total cost typically runs $60–250+/user/month depending on usage intensity and which Claude models the team uses most.

    What’s the difference between Claude Team and Enterprise?

    Team is self-serve per-seat licensing ($20 standard / $100 premium per seat/month, annual) with token usage bundled into the seat and a 150-user cap. Enterprise adds SSO, SCIM, audit logs, HIPAA support, a Compliance API for SIEM integration, no user cap, and usage billed separately at API rates. Choose Team for simplicity; choose Enterprise for compliance and governance requirements.

    What is the ROI of Claude Enterprise?

    At 1 hour of productivity returned per day per knowledge worker, the annual value per seat at a $120K loaded developer salary is approximately $13,270 — against an annual Enterprise cost of ~$840/developer. ROI multiple is roughly 15x under that assumption. At 30 minutes/day returned, the multiple is still above 7x for most knowledge worker salaries.

    Why did Anthropic unbundle tokens from Enterprise seats?

    Anthropic decoupled seat fees from token bundles in April 2026, lowering the headline seat price from $40–200/seat to $20/seat while making token usage variable. The change gives large organizations more flexibility — light users cost less, heavy users cost more — but requires better usage monitoring to forecast actual spend.

    What to Read Next

    Claude AI Pricing — All Plans and API Rates

     Claude Team vs Enterprise: Complete Comparison

     Anthropic Console: API Keys and Billing

     Current Claude Model Version Tracker

  • Claude vs GPT-5 for Developers: Which API Wins in 2026?

    Claude vs GPT-5 for Developers: Which API Wins in 2026?

    Last refreshed: November 5, 2026

    Update history: August 19, 2026 — first published. October 20, 2026 — Claude figures refreshed (checked October 8, 2026); OpenAI rows carried as October 1 figures, flagged on the page as not re-verified. November 5, 2026 — full rebuild: both vendors verified against current pricing, gpt-6-astra added as OpenAI’s flagship, GPT-5 marked deprecated, legacy context figures corrected. (Later the same day: the two context corrections were themselves reversed — a primary-source read showed Opus 5 and Sonnet 5 carry 1M context; the figures stand as originally published. See the wave-25 log.)

    Claude wins on coding quality and long-context reliability. OpenAI’s deprecated GPT-5 was the cheaper mid-tier list; its current mid-tier matches Sonnet 5.5 on price. Pick the SKU, not the family name.

    Claude figures verified November 5, 2026 against platform.claude.com pricing and Haiku 5.5. OpenAI figures verified November 5, 2026 against current OpenAI pricing; GPT-5 is deprecated and shuts down December 11, 2026.

    The Models Being Compared

    Three cards: coding depth, latency first, agent reliability
    Compare APIs by job shape — not by hype.

    Compare Claude Haiku 5.5 / Sonnet 5.5 / Opus 5.5 against gpt-6-astra / gpt-6.1-sol. GPT-5 remains listed below, deprecated. Fable 5.1 sits above Opus on Anthropic’s list price.

    Model Provider Input (per 1M tokens) Output (per 1M tokens) Context
    Claude Haiku 5.5 (≤100k / >100k) Anthropic $0.10 / $0.50 $0.50 / $2.50 priced by prompt length
    Claude Haiku 4.5 Anthropic $1 $5 still listed
    Claude Sonnet 5.5 Anthropic $2 $10 1M tokens; cache read $0.10
    Claude Sonnet 5 Anthropic $2 $10 1M tokens; cache read $0.20
    Claude Sonnet 4.6 Anthropic $3 $15 1M tokens
    Claude Opus 5.5 Anthropic $4 $20 1M tokens
    Claude Opus 5 / 4.8 Anthropic $5 $25 1M tokens
    Claude Fable 5.1 Anthropic $10 $50 1M tokens
    GPT-5 OpenAI $1.25 $10 400K tokens — deprecated; shuts down December 11, 2026
    gpt-6.1-sol OpenAI $2 $10 prompts over 272K tokens bill at $4 / $15 for the whole request; cache read $0.10
    gpt-6-astra (current flagship) OpenAI $10 $50 cache read $1.00

    Sonnet 5.5 remains $2 / $10, with cache reads at $0.10. Opus 5.5 remains $4 / $20 with cache reads at $0.20. Haiku 5.5 is the new cheap band: $0.10 / $0.50 under 100,000 prompt tokens, $0.50 / $2.50 over. Haiku 4.5 stays $1 / $5. GPT-5’s list ($1.25 / $10) is cheaper per input token than Sonnet 5.5, but GPT-5 is deprecated and shuts down on December 11, 2026. Do not average Haiku 5.5’s two bands.

    Coding Performance

    Use Claude Opus 5.5 or Sonnet 5.5 for interactive coding and agentic runs. Use Haiku 5.5 when the task is a subagent, summary, or classification and the prompt stays under 100k tokens.

    Latency and Context

    Claude Sonnet and Opus SKUs publish a 1M token context window at one rate. Haiku 5.5 raises the rate above 100,000 prompt tokens. Opus 5.5 fast mode is $8 / $40 on the Claude API only.

    Cost Comparison for Real Workloads

    On Claude, cache reads are now 5% of input on Sonnet 5.5 ($0.10) and Opus 5.5 ($0.20), and 2.5% on Fable 5.1 ($0.25). Haiku 5.5 cache reads are $0.01 under 100k. The 50% batch API still applies. For stateless high-frequency calls, Haiku 5.5 under 100k is the Claude list to beat. gpt-6.1-sol short-context matches Sonnet 5.5 at $2 / $10 (verified November 5, 2026); over the 272K band it bills $4 / $15 for the whole request.

    Which API to Choose

    Use Claude for coding, long-context document work, and agentic workflows. Use Haiku 5.5 for the cheap loop. Running both vendors is normal.

    Related: Claude API token rates.

  • How to Index Business Files Into a Local Vector Database (2026)

    How to Index Business Files Into a Local Vector Database (2026)

    Last refreshed: August 2026

    A local vector database Claude setup — indexed with your business documents, contracts, SOPs, client notes, and invoices — gives back the operational time lost to hunting through folders. The right answer appears in seconds, without any of those documents leaving the machine.

    This is the full build: architecture, tools, working code, what performs well in production, what breaks, and whether the ROI justifies the setup time.


    What Problem This Solves

    The problem isn’t that the documents don’t exist. It’s that finding the right one — the specific contract clause, the pricing from eight months ago, the onboarding SOP for a client — takes longer than it should, and normal search doesn’t solve it.

    File search matches keywords. It doesn’t understand that “what did we agree on for payment timing” and “net 30” are the same thing. A retrieval-augmented setup solves the semantic gap: the vector database finds relevant sections by meaning, Claude synthesizes them into a direct answer.

    The use cases where this setup pays for itself:

    • Contract and clause lookup — “What are the payment terms in the Acme agreement?” in 4 seconds vs. 3 minutes of folder navigation
    • SOP retrieval — “What’s our onboarding process for new social media clients?” surfaces the relevant runbook section directly
    • Client history — “What scope did we quote [client] last spring?” retrieves the invoice or email thread
    • Cross-document synthesis — “What are the termination clauses across all active client contracts?” — something no file search can do

    The Architecture

    Five-step flow from files to chunk, embed, store, retrieve
    Architecture: business files into a local vector index.

    The stack is ChromaDB for local vector storage, Nomic Embed for on-device embeddings via Ollama, LlamaIndex for document ingestion, and Claude Sonnet via API for the reasoning step — all files stay local, Claude only sees the retrieved chunks.

    Component Tool Why
    Vector database ChromaDB (local) Free, runs on-device, persistent to disk
    Embedding model Nomic Embed via Ollama Open-source, 8K context, no external calls
    Ingestion layer LlamaIndex Handles PDF, DOCX, MD, TXT, CSV natively
    Retrieval layer Python (custom) Readable and modifiable as needs evolve
    Reasoning layer Claude Sonnet API Materially better synthesis than local models
    Interface CLI Most queries don’t need a UI

    Why local for the vector database: The documents never leave the machine. Claude receives only the retrieved chunks — not the full corpus. For contracts, financial records, and internal communications, this is the right boundary.

    Why Claude for reasoning and not a local model: Local models (Llama 3, Mistral) handle the retrieval step comparably. They don’t handle synthesis comparably — reading five contract sections and returning a coherent, accurate answer is where Claude’s API cost is earned.


    What to Index

    Start with the 50 most-referenced documents. Get the workflow running and verified before expanding to the full corpus.

    File types that index well:

    • Contracts and agreements (PDF, DOCX)
    • Internal SOPs and runbooks (MD, DOCX)
    • Client notes and meeting logs (MD, TXT)
    • Invoices and financial records (PDF, CSV)
    • Email threads exported from Gmail (EML, TXT)

    Organize before indexing. File names and folder paths become metadata attached to each chunk. A consistent folder structure takes an hour to set up and improves retrieval quality throughout:

    /business-knowledge/
      /clients/
      /contracts/
      /operations/
      /finance/
      /communications/
      /reference/
    

    Poorly named files produce confusing retrieval results. The index is only as organized as the source files.


    Building the System

    Step 1: Install the stack

    # Ollama for local embedding
    brew install ollama
    ollama pull nomic-embed-text
    
    # Python dependencies
    pip install chromadb llama-index llama-index-embeddings-ollama anthropic
    

    Step 2: Ingest and index

    from llama_index.core import SimpleDirectoryReader, VectorStoreIndex
    from llama_index.embeddings.ollama import OllamaEmbedding
    from llama_index.vector_stores.chroma import ChromaVectorStore
    import chromadb
    
    embed_model = OllamaEmbedding(model_name="nomic-embed-text")
    
    chroma_client = chromadb.PersistentClient(path="./chroma_db")
    chroma_collection = chroma_client.get_or_create_collection("business_knowledge")
    vector_store = ChromaVectorStore(chroma_collection=chroma_collection)
    
    documents = SimpleDirectoryReader("./business-knowledge", recursive=True).load_data()
    index = VectorStoreIndex.from_documents(
        documents,
        embed_model=embed_model,
        vector_store=vector_store
    )
    
    print(f"Indexed {len(documents)} documents")
    

    500 files on an M2 MacBook Pro takes approximately 20–25 minutes. The index persists to disk — this runs once, then incrementally as files change.

    Step 3: Build retrieval and reasoning

    import anthropic
    
    def query_business_knowledge(question: str, top_k: int = 5) -> str:
        retriever = index.as_retriever(similarity_top_k=top_k)
        nodes = retriever.retrieve(question)
    
        sep = chr(10) + chr(10) + "---" + chr(10) + chr(10)
        context = sep.join([
            f"Source: {node.metadata.get('file_name', 'unknown')}{chr(10)}{node.text}"
            for node in nodes
        ])
    
        client = anthropic.Anthropic()
        response = client.messages.create(
            model="claude-sonnet-4-6",
            max_tokens=1000,
            messages=[{
                "role": "user",
                "content": f"""Answer this question using only the provided business documents.
    If the answer isn't in the documents, say so clearly. Always cite the source file.
    
    Question: {question}
    
    Documents:
    {context}"""
            }]
        )
    
        return response.content[0].text
    
    print(query_business_knowledge("What are the payment terms in the Acme contract?"))
    

    Always include source attribution in the prompt. When an answer returns, the source file name makes verification fast.


    What Works Well in Production

    Side-by-side when to use a script versus an agent
    What works well in production — narrow corpora first.

    Cross-document synthesis is the capability that justifies this over standard search — querying across hundreds of files simultaneously to find patterns, compare terms, or surface a specific clause is something no file search does.

    Where the system consistently delivers:

    Contract and clause lookup: Specific clause retrieval across a full contract library. Synthesis across multiple contracts simultaneously (termination terms, payment terms, liability caps) returns a summary across all of them at once.

    SOP and runbook retrieval: Operational questions answered directly from internal documentation. Works best when SOPs are written in complete sentences rather than bullet fragments — the retrieval quality reflects the writing quality.

    Client history: Invoice amounts, quoted scopes, prior project notes. Email threads sometimes split across chunks in ways that lose context — use the result as a pointer to the source document, then verify.

    Cross-document pattern finding: “What are the common liability terms across our contracts?” — synthesizes across every indexed contract in one response. No file search tool does this.


    What Breaks

    Cost control gates before an agent runs
    What breaks — bad chunks and untrusted documents.

    The index is only as current as the last re-index. The most common production failure is stale data — documents updated after the last index run return old answers.

    Stale index: Build re-indexing into the workflow immediately. Schedule it weekly, or trigger it automatically when files are modified. Documents that change and don’t get re-indexed are the biggest reliability risk.

    Top-k ceiling: Retrieval returns the top-k chunks (default 5). A question whose complete answer requires synthesizing 20 documents gets a partial answer. Increase top_k for broad synthesis questions — at the cost of slightly more API token usage.

    Numerical calculations: The system finds financial documents reliably. It should not be trusted to calculate totals across extracted text. Use it to surface the right source documents; do the arithmetic elsewhere.

    Documentation debt: The index reveals gaps in internal documentation. SOPs written in ambiguous shorthand, contracts with undefined terms, emails with unclear context — all produce lower quality retrieval. The index reflects the quality of the underlying documents.


    Chunk Size

    512 tokens with 50-token overlap is the right starting point for mixed document types.

    Adjust based on document type:

    • Contracts (dense, long): 512–768 tokens, 100-token overlap
    • SOPs (structured, modular): 256–512 tokens, 50-token overlap
    • Emails (short, conversational): 256 tokens, 25-token overlap
    • Financial records (tabular): Parse as structured data where possible; plain text chunking loses table relationships

    Metadata Filtering at Scale

    Once the corpus exceeds ~200 files, adding metadata to chunks and filtering at query time significantly improves precision.

    # Tag at ingestion
    documents = SimpleDirectoryReader(
        "./business-knowledge",
        recursive=True,
        file_metadata=lambda filepath: {
            "document_type": filepath.split("/")[2],
            "client": filepath.split("/")[3] if len(filepath.split("/")) > 3 else "internal"
        }
    ).load_data()
    
    # Filter at retrieval
    retriever = index.as_retriever(
        similarity_top_k=5,
        filters={"document_type": "contracts"}
    )
    

    “What are our SOPs for [client]?” filtered to that client’s folder returns meaningfully more accurate results than querying the full corpus.


    ROI

    Setup takes roughly one full day. At 25 minutes saved per week on document lookups, break-even is approximately 6–8 weeks.

    Item Cost
    Setup time ~8 hours
    ChromaDB Free
    Nomic Embed (Ollama) Free
    Claude Sonnet API per query ~$0.003
    Monthly at 50 queries/week ~$0.60
    Weekly time saved ~25 minutes
    Break-even ~7 weeks

    The less quantifiable return: operational confidence. Questions that previously required folder-hunting get answered in seconds. That reduces the cognitive overhead of running a multi-client operation and changes how quickly decisions get made.


    Related on Tygart Media: how to use Claude · Anthropic API key.

    Frequently Asked Questions

    Does this send business documents to Anthropic?

    No. The vector database and embedding model run locally. Claude receives only the retrieved chunks — small sections of relevant documents — not the full corpus. For zero external calls, replace Claude with a local model, though synthesis quality will be lower.

    What file types are supported?

    LlamaIndex handles PDF, DOCX, TXT, MD, CSV, EML, and HTML natively. Other formats need conversion to plain text first.

    How long does indexing take?

    Approximately 20–25 minutes for 500 files on an M2 MacBook Pro. Subsequent re-indexing processes only changed or new files and takes a few minutes.

    What is a vector database?

    A vector database stores documents as numerical representations (embeddings) that encode meaning, not just keywords. This allows semantic search — finding relevant contract sections from a natural-language question, even when the exact words don’t match.

    Can a local model replace Claude?

    es — swap the API call for an Ollama-hosted model. Retrieval quality is comparable. Synthesis quality on complex multi-document questions is noticeably lower on current local models.

    What chunk size should be used?

    512 tokens with 50-token overlap is the right default for mixed document types. Adjust for document type: larger for dense contracts, smaller for short emails.


    What to Read Next

    Anthropic Console: API Keys and the Workbench

    Claude AI Pricing — All Plans and API Rates

    Claude API Model IDs and Strings

    History of Anthropic

    >Part of the complete guide: Your Laptop Is Already an AI PC

  • Metricool 2026: The Complete Guide (2026)

    Last refreshed: October 20, 2026 — vendor primaries: Metricool API integrations help, Metricool API guide, Metricool pricing.

    Metricool 2026 is a social media scheduling, analytics, and API platform that manages multi-brand operations across LinkedIn, Facebook, Instagram, X/Twitter, Google Business Profile, TikTok, YouTube, Pinterest, Threads, and Bluesky — at a price point that makes Hootsuite and Sprout Social look overpriced for most use cases.

    This guide covers what changed in 2025–2026, how to set up the platform correctly from day one, how to use the API for programmatic scheduling, and where the tool still falls short. Built from operating 24 brands in Metricool, not from a comparison of their marketing pages.


    What Is Metricool and What Does It Do in 2026?

    Three cards for LSA, search ads, and SEO/AI authority channels
    What Metricool is and does in 2026.

    Metricool is a social media management platform organized around “brands” as the core unit — one login manages multiple brands, each with its own calendar, analytics, and connected accounts, at plan-based pricing that doesn’t scale per connected account.

    Platform support as of August 2026:

    PlatformSchedulingAnalyticsAPI Access
    LinkedIn (profile + page)✓✓✓
    Facebook (page)✓✓✓
    Instagram (business/creator)✓✓✓
    X / Twitter✓✓✓
    Google Business Profile✓✓✓
    TikTok✓✓✓
    YouTube✓✓✓
    Pinterest✓✓✓
    Threads✓Limited✓
    Bluesky✓Limited✓

    The core value proposition is unchanged: multi-brand management at plan-based pricing (not per-seat or per-connected-account), with a working REST API that most competitors at the same price point don’t offer.


    What’s New in Metricool in 2025–2026

    The biggest 2026 updates are Threads and Bluesky as stable scheduling platforms, a rebuilt analytics dashboard, AI caption suggestions in the composer, and a versioned API developer portal replacing the old PDF documentation.

    Threads scheduling (stable): Moved from beta to fully stable. Posts with images, text, and links schedule and publish reliably. Analytics remain limited relative to Instagram — engagement data is available but not at native-insight depth.

    Bluesky scheduling (stable): Full scheduling and basic analytics now live. Handles the platform without a separate tool.

    Analytics dashboard redesign: Cross-platform comparison views are cleaner. Custom date ranges now set on the overview screen without drilling into individual platform tabs first.

    AI caption suggestions: Available inside the post composer for first-draft generation. Useful for routine content; not a replacement for intentional copy.

    API developer portal: Documentation moved from a downloadable PDF to a versioned web portal. Same endpoints, significantly easier to navigate.


    How to Set Up Metricool Correctly

    Three ranked panels: intent near need, catch overflow, compound trust
    How to set up Metricool correctly.

    Create one brand per entity, connect all social accounts for that brand before creating the next one, and establish posting cadence in the Planner before importing any bulk content. Setup decisions made incorrectly early create restructuring work later.

    Step 1: Create brands

    Navigate to the brand switcher in the top left and create a new brand for each business, client, or property. Name each brand clearly — the name appears in the interface and in API responses as the brand identifier. Each brand is an isolated workspace: separate calendar, separate analytics, separate connected accounts.

    Step 2: Connect social accounts per brand

    With a brand selected, link every social platform before moving to the next brand. Common friction points:

    • Instagram: Requires a Professional account (Business or Creator) linked to a Facebook Page. Personal Instagram accounts cannot be scheduled through third-party tools. If the Facebook Page isn’t connected first, Instagram won’t link.
    • LinkedIn: Personal profiles and Company Pages connect separately. Add both if scheduling to both.
    • Google Business Profile: Connect via Google account. GBP posts are limited to 1,500 characters and one image — Metricool enforces this in the composer.

    Step 3: Configure the Planner

    The Planner is the scheduling interface used most. Access it from the left navigation. Best-time recommendations appear as highlighted slots based on historical engagement data — worth following for the first few months before overriding with observed data.

    Step 4: Enable post failure notifications

    When a scheduled post fails — usually because a platform connection expired — the right time to know is immediately, not when a client asks why content didn’t go out.


    How the Metricool Planner Works

    Click a time slot or use the New Post button, write the caption, attach media, select platforms, set the publish time, and Metricool handles publishing across all selected channels.

    Post creation steps:

    1. Click a time slot or New Post
    2. Write the caption — platform previews update in real time on the right
    3. Upload media — Metricool flags aspect ratio issues per platform
    4. Select platforms using the toggles
    5. Set date and time, or accept the best-time recommendation
    6. Click Schedule

    Platform previews matter: LinkedIn truncates long captions differently than Instagram. What reads cleanly on one platform can break on another. Always check previews before scheduling.

    Bulk scheduling via CSV: Upload a spreadsheet of posts with columns for caption, media URL, platform, date, and time. Right workflow for scheduling a full month at once rather than building post by post.


    How Metricool Analytics Works

    Five zone panels: estimating, job costing, cash/AR, sales, leadership
    How Metricool analytics works.

    Analytics shows follower growth, engagement, reach, impressions, and best-performing content across all connected platforms — with a unified overview and per-platform deep dives.

    Overview dashboard: Aggregated metrics across all platforms for the current brand. Custom date ranges with prior-period comparison. Answers “how is this brand doing overall” without switching tabs.

    Per-platform analytics: Post-level performance, follower growth trends, engagement rate over time, audience demographics where platforms expose them, and best-performing content sortable by any metric.

    Competitor tracking: Add competitor social profiles for follower count and posting frequency monitoring. Available on paid plans.

    What analytics don’t do: Metricool doesn’t integrate with GA4 for web traffic attribution. If connecting social performance to site traffic and conversions is a requirement, a separate analytics tool is needed.


    How the Metricool API Works in 2026

    The Metricool REST API allows programmatic post scheduling, post retrieval, brand listing, and media management — authenticated via an API token from account settings, with full CRUD operations on scheduled content.

    Step 1: Get your API token

    Go to account settings and find the API section. Generate a token — it’s account-level, not brand-specific. Treat it like a password.

    Step 2: Get brand IDs

    GET https://app.metricool.com/api/v2/brands
    Authorization: Bearer YOUR_API_TOKEN
    

    Returns an array of brands with IDs, names, and connected platforms. Store these IDs — they’re required on every brand-specific API call.

    Step 3: Schedule a post

    POST https://app.metricool.com/api/v2/posts
    Authorization: Bearer YOUR_API_TOKEN
    Content-Type: application/json
    
    {
      "blogId": "YOUR_BRAND_ID",
      "text": "Post caption here.",
      "date": "2026-09-01T10:00:00Z",
      "networks": ["linkedin", "facebook", "instagram"],
      "imageUrls": ["https://your-media-host.com/image.jpg"]
    }
    

    A successful POST returns the created post object with its ID. Store IDs for any post that may need updating or deletion.

    What the API can do: Schedule posts to any connected platform, retrieve scheduled and published posts, list brands and connected networks, upload and attach media, delete or update scheduled posts.

    What the API can’t do: Analytics data is not exposed via the API. Engagement metrics are view-only in the dashboard. For analytics in automated workflows, a separate reporting approach is required.

    Rate limits: Metricool enforces rate limits per endpoint. For production workflows scheduling at volume, build exponential backoff retry logic on 429 responses.


    Metricool Plans and Pricing in 2026

    Metricool charges per brand, not per connected social account — which makes it significantly cheaper than Hootsuite or Sprout Social for multi-brand operations.

    PlanBrandsPosts/MonthTeam MembersAPI Access
    Free1501No
    Starter12,0001No
    Advanced5Unlimited3Yes
    Agency15+Unlimited5+Yes

    API access requires Advanced or above. For a 10-brand operation, Metricool Advanced costs a fraction of the Hootsuite or Sprout Social equivalent, where per-seat or per-account pricing compounds quickly.


    Metricool vs. Hootsuite vs. Buffer in 2026

    For multi-brand operations managing 5+ brands with API requirements, Metricool wins on price. Buffer is comparable for simple single-brand operations. Hootsuite is justified only at enterprise scale with dedicated support requirements.

    FeatureMetricoolHootsuiteBuffer
    Pricing modelPer brandPer user + per accountPer channel
    API accessYes (Advanced+)Yes (Enterprise)Limited
    GBP schedulingYesLimitedNo
    Multi-brand managementNativeClunkyBasic
    Analytics depthStrongStrongBasic
    Best forAgencies, multi-brand operatorsLarge enterpriseSimple single-brand

    Hootsuite for a 10-brand agency operation typically runs 3–5x the cost of Metricool at the equivalent plan level.


    Common Metricool Problems and Fixes

    The most common issues are expired social connections, Instagram setup errors, and GBP rejection — all fixable in a few steps.

    Instagram won’t connect: Switch the account to Professional (Business or Creator) in Instagram settings, connect to a Facebook Page, then reconnect in Metricool.

    Scheduled post failed: Look for failed posts in the calendar. The cause is usually an expired connection. Disconnect and reconnect the affected platform, then reschedule.

    GBP post rejected: Check the error message — GBP rejections usually include a reason. Verify the post is under 1,500 characters, uses one image, and doesn’t contain promotional language that violates GBP content policies.

    API 401 Unauthorized: Token expired or regenerated. Go to account settings, generate a new token, update the integration.

    Wrong brand getting content: The most common operational error in multi-brand setups. Confirm the active brand in the switcher before creating or scheduling. Build this check into every team SOP.


    Frequently Asked Questions

    What is Metricool used for?

    Metricool is used for social media scheduling, analytics, and multi-brand management across LinkedIn, Facebook, Instagram, X/Twitter, Google Business Profile, TikTok, YouTube, Pinterest, Threads, and Bluesky — with a REST API for programmatic scheduling.

    Is Metricool free?

    Yes — a permanent free plan (not a trial) supporting one brand, 50 posts per month, and basic analytics. API access and multi-brand management require a paid plan.

    Does Metricool have an API?

    Yes. The Metricool REST API supports programmatic post scheduling, retrieval, brand management, and media handling. Available on Advanced plan and above. Documentation is at Metricool’s developer portal.

    How does Metricool compare to Hootsuite?

    Metricool is 3–5x cheaper for multi-brand operations at agency scale. Hootsuite charges per user and per connected account. Hootsuite has stronger enterprise support and integrations; Metricool wins on value for most agency and mid-market use cases.

    Can Metricool schedule Google Business Profile posts?

    Yes — and it’s one of Metricool’s strongest differentiators. Most tools at this price point don’t support GBP scheduling. Posts are limited to 1,500 characters and one image.

    Does Metricool support Threads and Bluesky?

    Yes. Both are fully stable as of 2026. Threads analytics are available but limited. Bluesky analytics are basic. Scheduling to both platforms is reliable.

    What to Read Next

    Metricool API: What It Can Do and How to Actually Use It 

    Metricool Review 2026: The Social Media Tool for Multi-Brand Operations

     Metricool Pricing 2026: What Each Plan Actually Gets You

     Metricool Free Plan: Is It Actually Enough?

  • Anthropic Roadmap 2027: What Comes After Claude Fable 5

    Anthropic Roadmap 2027: What Comes After Claude Fable 5

    Last refreshed: November 13, 2026 · Sources: Anthropic models overview, API pricing & Anthropic Newsroom

    Direct Answer (November 13, 2026): Since the June 2026 Fable 5 / Opus 4.8 rollout this roadmap baseline started from, Anthropic has shipped Fable 5.2 (claude-fable-5-2, $8/$40), Opus 5.5 ($4/$20 daily driver), Sonnet 5.5 ($2/$10), and Haiku 5.5 ($0.10/$0.50 ≤100K) — all with a 1M context window and 128K output — alongside unbundled Enterprise seats ($20/seat/mo annual, 20-seat min) and Managed Agents ($0.08/session-hr active runtime).

    TAKEAWAY PDF & MARKDOWN TWIN
    Anthropic Roadmap 2027 — Takeaway PDF
    Edition of November 13, 2026 — facts verified November 13, 2026. For AI: read the markdown edition.

    The Anthropic roadmap 2027 comes into focus after Fable 5 launched in June 2026 as Anthropic’s most capable widely available model — a new Mythos-class tier above Opus — and the signals from Anthropic’s research agenda, model release cadence, and safety roadmap point clearly toward what comes next.

    This is a forward-looking read grounded in public signals: what Anthropic has shipped, what they’ve said, and what the patterns suggest for 2027. It’s relevant for developers planning integrations, enterprises making multi-year platform commitments, and anyone tracking where Claude’s capabilities are heading.


    Where Anthropic Stands as of November 2026 (Mid-2026 Baseline Updated)

    Abstract milestone timeline from early Claude eras through today without version numbers
    Where Anthropic stands as of mid-2026.

    Claude has grown from a single chat model in 2021 to a four-tier family — Haiku, Sonnet, Opus, and the new Mythos class — with a 1-million-token context window, native vision, tool use, Computer Use, extended thinking, and persistent memory across managed agents.

    Current production model lineup as of November 13, 2026 (replacing the June/August Fable 5 · Opus 4.8 · Sonnet 4.6 · Haiku 4.5 baseline):

    TierCurrent Model (Nov 2026)API Rate (In/Out MTok) & SpecBest For
    Flagship / FableClaude Fable 5.2 (claude-fable-5-2)$8 / $40 ($0.20 read · 1M / 128K)Most demanding reasoning, long-horizon agentic work
    Opus (Daily Driver)Claude Opus 5.5 (claude-opus-5-5)$4 / $20 ($0.20 read · 1M / 128K)Primary reasoning & software engineering default
    SonnetClaude Sonnet 5.5 (claude-sonnet-5-5)$2 / $10 ($0.10 read · 1M / 128K)Fast everyday development & production
    HaikuClaude Haiku 5.5 (claude-haiku-5-5)$0.10 / $0.50 ≤100K (1M / 128K)Ultra-low-cost, high-throughput pipelines

    Fable 5 launched June 9, 2026 alongside Claude Mythos 5 — a restricted version available only through Project Glasswing for vetted cybersecurity and infrastructure partners. The distinction matters: Fable 5 is the general-availability frontier model; Mythos 5 is the same model with certain safety filters lifted for specific use cases.

    The June 2026 launch was followed by a brief government-imposed deployment pause after Amazon researchers identified a method of prompting Fable 5 to surface software vulnerabilities. Anthropic worked with government partners to add new classifiers and redeployed the model globally July 2, 2026.


    What the Fable 5 Launch Signals About 2027

    The Fable 5 launch established that Anthropic is building a two-track release model — a general-availability tier with conservative safety filters and a restricted frontier tier for vetted partners — and that cadence will continue into 2027.

    Several specific signals point forward:

    The Mythos class will expand access. Anthropic said explicitly at Fable 5 launch that Project Glasswing would expand to more vetted partners over time. The current restriction is a staged rollout, not a permanent ceiling. By 2027, Mythos-class access is likely to be more widely available to enterprise customers who can meet Anthropic’s trust and verification requirements.

    Safety classifiers will improve. Fable 5 launched with classifiers that trigger on roughly 5% of sessions, routing those queries to Opus 4.8 instead. Anthropic committed to reducing false positives “as more capable models arrive in the coming months.” More capable models arriving implies at least one Mythos/Opus generation release before end of 2026 or early 2027.

    Token unbundling sets up the next Enterprise pricing tier. The April 2026 decoupling of Enterprise seat fees from token bundles ($20/seat/month annual, 20-seat minimum, plus API usage) — creates a cleaner structure for consumption-based tiers as model capability increases. Expect the 2027 pricing architecture to track closely with Mythos access tiers.

    Agentic infrastructure is the platform bet. Managed Agents launched April 8, 2026, Memory entered public beta April 23, and the Agent SDK (formerly Claude Code SDK) now handles the entire agent loop automatically. The infrastructure is being built to support long-running, multi-session, multi-agent workflows. The 2027 roadmap is almost certainly agentic-first.


    What Anthropic’s Research Agenda Suggests

    Anthropic’s published research priorities — interpretability, Constitutional AI, alignment, and scaling — point toward a 2027 model that is more self-correcting, better at long-horizon planning, and safer to deploy with reduced human oversight.

    Interpretability is Anthropic’s differentiator. Chris Olah’s interpretability team is the most distinct research group at any frontier lab. Their work on understanding what’s actually happening inside neural networks feeds directly into how future models are trained and where safety filters are placed. Advances in interpretability in 2026–2027 will likely show up in more precise, less overreaching safety classifiers — meaning fewer false positives on legitimate requests.

    Long-horizon agency is the capability frontier. Fable 5’s headline capability over Opus 4.8 isn’t raw reasoning quality on static benchmarks — it’s how little friction there is in multi-step agentic workflows. Fable 5’s AutomationBench scores are the clearest signal of where Anthropic is competing. The 2027 research agenda will push this further: more steps, less human intervention, better recovery from errors mid-task.

    Multi-agent coordination is early. The current Managed Agents platform supports multi-agent orchestration, but the tooling is young. 2027 is when production multi-agent deployments at scale become routine rather than experimental for most enterprise customers.


    What It Means for Developers

    Three stacked layers: chat UI, tools, agent runtime
    What it means for developers building agents.

    Developers building on Claude in 2026 should architect for the Agent SDK and Managed Agents platform, not just the Messages API — that’s where Anthropic is investing, and it’s where the capability gains will be most significant in 2027.

    Practical implications:

    Plan around Opus 5.5 as your daily driver and Fable 5.2 as your frontier escalation layer. Anthropic’s late-2026 pricing drop on Fable 5.2 ($8/$40 vs. June’s Fable 5 at $10/$50) and Opus 5.5 ($4/$20 vs. Opus 4.8 at $5/$25) lets teams default everyday agents to Opus 5.5 and escalate complex runs to Fable 5.2 without re-architecting integrations.

    The Fallback API is now infrastructure. Any integration calling Fable 5 needs fallback logic configured. Anthropic’s safety classifiers will route some queries to Opus automatically — your integration needs to handle that gracefully, not treat it as an error.

    Memory changes what agents can do. Agents that don’t retain context across sessions are meaningfully less capable than those that do. The Managed Agents memory API (public beta since April 23, 2026) is the right surface to build persistent agent behavior on now, before it becomes a standard expectation.


    What to Watch

    Three cards for fast volume, daily workhorse, and deep flagship Claude seats
    What to watch next on the roadmap.

    The clearest leading indicators for 2027 Anthropic roadmap developments:

    • Project Glasswing expansion announcements — any broadening of Mythos-class access is a signal that the trust-gating model is maturing
    • Interpretability research publications — Anthropic publishes regularly; major interpretability papers tend to precede model releases by 3–6 months
    • Managed Agents general availability — currently in public beta; GA signals the platform is production-ready for the long-term
    • Context window changes — the 1M token context window is already the industry standard; what comes next is likely structural, not just larger

    Related on Tygart Media: how to use Claude · Anthropic API key.

    Frequently Asked Questions

    What is Claude Fable 5?

    Claude Fable 5 is Anthropic’s most capable widely released model, launched June 9, 2026. It sits in the new Mythos class above the Opus tier and is built for the most demanding reasoning and long-horizon agentic work. It launched alongside Claude Mythos 5, which is restricted to vetted partners through Project Glasswing.

    What is Project Glasswing?

    Project Glasswing is Anthropic’s program for giving vetted cybersecurity and infrastructure partners access to Claude Mythos 5 — the same underlying model as Fable 5, but with certain safety filters lifted for specific use cases. Access is currently limited and application-based.

    When will Anthropic release the next model after Fable 5?

    Anthropic has not announced a release date. Their historical cadence — roughly one major model generation per 6–9 months — suggests a 2026 Q4 or early 2027 release is plausible. Anthropic has stated that more capable models arrived in late 2026 with Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5, alongside an expected 2027 cadence.

    What is Claude Managed Agents?

    Claude Managed Agents is Anthropic’s managed infrastructure for running autonomous Claude agents in cloud sandboxes, launched in public beta April 8, 2026. It handles session management, tool execution, credential management, and multi-agent coordination without requiring developers to build that infrastructure themselves. Memory for Managed Agents entered public beta April 23, 2026


    What to Read Next

    History of Anthropic 

    Claude AI Pricing — All Plans and API Rates 

    Current Claude Model Version Tracker 

    Claude API Model IDs and Strings

    TAKEAWAY PDF & MARKDOWN TWIN
    Keep This Guide: Anthropic Roadmap 2027 (PDF)
    Edition of November 13, 2026 — facts verified November 13, 2026. For AI: read the markdown edition.
  • Free IICRC Van Pocket Card: Water Damage Cheat Sheet

    Free IICRC Van Pocket Card: Water Damage Cheat Sheet

    Tape this in the van. Category, Class, PPE floor, one photo. Twenty seconds. Then go to work.

    This is a free pocket card, not a certification, and not official IICRC. It does not replace S500/S520.

    What you get

    Five-step van pocket flow: category, class, extract, dry, document
    Protocol answers belong in the van — not back at the office.
    • A Notion page you can duplicate and print
    • A tiny Claude skill with the same tables (upload the zip, or paste SKILL.md into a Project)

    How to get it

    Restoration SOP clipboard with checklist, moisture meter, and gloves on a jobsite table
    How to get it: keep the checklist where the carpet is wet.

    Duplicate the card here: IICRC Van Pocket Card (free Notion account, Duplicate in the top right).

    What this is not

    White restoration work van with ladder rack parked at a suburban jobsite curb
    What this is not: another binder collecting dust.
    • Equipment sizing
    • A drying plan
    • Adjuster language

    Need that? The paid IICRC Protocol Lookup ($19) or the Complete Restoration Operations Kit ($97).

    Related on Tygart Media: Starlink on a water job · S500 in the van · local SEO for restoration.

  • IICRC S500 in the van — stop flipping the binder

    IICRC S500 in the van — stop flipping the binder

    You do not need another binder in the truck. You need the protocol answer while the carpet is still wet.

    IICRC S500 is not mysterious. The failure mode is that the PM is standing in a basement and the binder is in the office. That is how a supplement dies in email.

    Office owns jobs, fleet, claims, and certs. Van gets a work order. When the question is S500-shaped, ask Claude with a protocol-grounded skill — not a Facebook group.

    That stack is the Complete Restoration Operations Kit — six Notion templates plus the IICRC lookup skill. $97 on Square. No email to purchase.

    Need only the lookup? Buy the skill. Need more than two pieces? The kit is cheaper.

    Buy the kit on Square →

    IICRC S500 pocket flow for van crews — extract, decide, document without flipping the binder
    S500 in the van — pocket flow, not binder theater.
    Restoration van parked at curb on a jobsite
    If the protocol is not on the truck, it is not the protocol.

    Related on Tygart Media: crawl space inspection checklist · crawl space mold removal · Starlink on a water job.

    Clipboard checklist on a restoration jobsite
    Protocol on a clipboard beats a binder in the office.
  • Restoration CRM Prompt Library — Claude Skill

    Restoration CRM Prompt Library — Claude Skill

    Updated November 13, 2026 — facts verified against live Anthropic pricing & product documentation.

    Direct Answer · Verified November 13, 2026

    Restoration CRM Prompt Library — Claude Skill ($19 packaged Skill install on Square, or free to copy from our companion library) runs cleanly on a free claude.ai account ($0/mo, up to 5 Projects, Sonnet 5.5 & Haiku 5.5) with zero API keys or code required. Upgrade to Claude Pro ($20/mo, $17 annual) or Team Standard ($20/seat annual / $25 monthly) only if multiple staff need higher throughput or shared workspaces. See Claude AI pricing or explore workspace capabilities on claude.com/product/overview.

    CRM PROMPT FIELD SHEET
    Restoration CRM Prompt Library — Tygart Media Field Sheet (PDF)
    2-page CRM reference: all 9 prompt blueprints, Free ($0) workflow rules, banned AI cliché list, and review guardrails. Verified 2026-11-13.

    Restoration CRM Prompt Library — Claude Skill

    $19

    Delivered by email after checkout.

    Buy Now →

    Secure checkout via Square — all major cards accepted

    You can copy this library and do it yourself. The full article is already live. Paste a prompt into claude.ai, fill the brackets, edit the draft, send it. Buy Now is the packaged Claude Skill so the library lives in the project instead of a browser tab.

    The live article (do not treat this page as a replacement): AI-Assisted Email Drafting for Restoration Companies: A Claude Prompt Library.

    Who it is for: anyone at the company who writes emails. Owner, office manager, whoever runs the CRM touch calendar. No technical background. A free Claude account at claude.ai is enough. No API key. No code.

    The workflow

    Four skill cards: scope narrative, insurance write, homeowner write, referral write
    CRM prompt workflow: paste facts → draft → human send.
    1. Go to claude.ai. Create a free account if you need one.
    2. Open a new conversation.
    3. Paste a prompt. Fill the bracketed fields with real information.
    4. Claude drafts the email.
    5. Review it. Edit anything that does not sound like you. Copy it into your email platform.

    That is the entire workflow. Specific beats generic. “Write a hiring email for a restoration company” is weak. “Write a hiring email for a 12-person water and fire restoration company in Tacoma, WA that’s been in business for eight years and is known for fast response times and honest communication with insurance adjusters” is usable.

    Strategy lives in Your CRM Is Not a Lead Database. Timing lives in The 12-Month Outreach Calendar. This library is the words.

    Prompt 1: Hiring email, homeowner version

    I run [company name], a [type] restoration company in [city, state]. We’ve been in business [X] years and are known for [one or two specific things your company does well]. We currently have [number] employees and serve the [geographic area] area.
    
    I need to write a short, plain-text email to past homeowner clients who we’ve done [water damage / fire damage / mold / storm] work for. We’re currently hiring for [job title]. The goal of the email is to ask if they know anyone — family, friends, people in the trades — who might be a great fit for a company like ours. We want to reach out to trusted contacts before posting the job publicly.
    
    Tone: Personal and warm, like a note from a real person. Not corporate, not salesy. The recipient should feel like we remembered them and value their opinion specifically.
    
    Requirements: Under 150 words. Plain text (no HTML). Sign it from [owner first name] at [company name]. Include a phone number as the only contact info. No subject line needed — just the body.

    Prompt 2: Hiring email, insurance adjuster version

    Clipboard and tablet on a kitchen counter during an insurance adjuster walkthrough after water loss
    Hiring email for adjusters — clear, dated, professional.
    I run [company name], a restoration company in [city, state]. I need to write a short email to insurance adjusters I’ve worked with on claims. We’re hiring a [job title].
    
    The tone should be collegial — peer to peer, professional but not formal. We want to reach out to trusted colleagues before posting publicly, and we’d appreciate any recommendations they might have. Keep it under 120 words. Plain text. From [owner name]. Include phone number.
    
    Do not use any of these phrases: “I hope this email finds you well,” “I wanted to reach out,” “touch base,” “circle back,” or “leverage.” Write it how a real contractor would talk to an adjuster they’ve worked with for years.

    Prompt 3: Vendor ask (specialty sub search)

    Write a short email from a restoration company owner to their contact database asking if anyone knows a reliable [trade type — e.g., drywall sub, flooring contractor, HVAC tech] in [city/region]. We have a larger project coming up and want to find a quality sub through our network before going the cold-search route.
    
    Context about our company: [2–3 sentences about your company — size, how long you’ve been in business, your service area]. The recipients are a mix of past homeowner clients, insurance industry contacts, and trade partners.
    
    Tone: Casual and direct. Like asking a trusted colleague. Under 100 words. Plain text. From [owner name]. Phone number only.
    
    Optional addition: Add one sentence at the end that invites the recipient to reach out directly if the description matches their own business.

    Prompt 4: Seasonal safety email (winter freeze)

    I run a water damage restoration company in [city, state]. I want to send a helpful, non-promotional email to past homeowner clients before freeze season. The goal is to give them genuinely useful information about preventing the kind of water damage we see most commonly in [our region] in winter.
    
    Specific things to cover: [list 3–4 real things relevant to your region]. These should be specific to [region] winters, not generic national advice.
    
    Tone: Knowledgeable and helpful, like a trusted expert checking in on a neighbor. No sales pitch, no CTA other than “if you have questions, we’re here.” Under 200 words. Include a link placeholder for [blog post URL] if they want to read more. From [owner name].

    The rest of the library (on the live article)

    Prompts 5–9 are on the live page. Use that URL. Do not treat this SKU page as a rewrite of that article.

    • Prompt 5: Post-storm check-in to past homeowners. Warm, community-focused, not a pitch. Under 120 words.
    • Prompt 6: Company anniversary or milestone. Thank the people who have been part of the journey. No CTA. No offer. Under 175 words.
    • Prompt 7: Brand-voice rewrite. Paste two real emails you have sent, then the draft, and ask Claude to make it sound like you.
    • Prompt 8: Eight subject-line options. Personal, no click-bait, no exclamation points, no “Quick question for you!”
    • Prompt 9: Batch personalization. CSV of past clients. One opening sentence per row that references job type and, if the job is older than 18 months, that it has been a while. Up to 20 rows at a time.

    Full text: tygartmedia.com/restoration-crm-claude-prompt-library.

    How to get better drafts

    Restoration SOP clipboard with checklist, moisture meter, and gloves on a jobsite table
    Better drafts still need a human check before send.
    • Name the phrases you do not want: “I hope this finds you well,” “reaching out,” “touch base,” “leverage.”
    • Give two sentences of real company context. History, reputation, service area, typical client.
    • Iterate in the same conversation. “Good, but make it shorter.” Do not start a new chat for every revision.
    • Ask for three versions: shorter, more formal, more casual.
    • Review everything before it sends. Claude will sometimes assume details you did not provide.

    A free claude.ai account ($0, up to 5 Projects, Sonnet 5.5 & Haiku 5.5) is enough for a full annual campaign calendar. Claude Pro ($20/mo or $17 annual) is not required for this use case (compare plans). Store the filled-in prompts in Notion so you are not hunting them before each send. Using AI to draft is fine if you review and approve every email. The relationship still has to be yours.

    If you want the packaged skill

    The method and the live article are free to use. Buy Now is the Claude Skill package, delivered by email after checkout, so the library is installed instead of copy-pasted from the article each time. Same Square button at the top of this page.

    The Next Step · Verified Research Verdict (November 13, 2026)

    Run Your Annual Restoration Touch Calendar on Free or Pro

    Explore workspace basics on claude.com/product/overview, compare seat options on Claude AI pricing, read the complete 9-prompt library on AI-Assisted Email Drafting, or see the Operations Kit ($197).

    CRM PROMPT FIELD SHEET
    Restoration CRM Prompt Library — Tygart Media Field Sheet (PDF)
    Keep this 2-page restoration CRM touchpoint guide and Free vs Pro cost breakdown at your desk. Verified 2026-11-13.

    Related: Front door: Complete Restoration Operations Kit ($97). Stack: The Restoration.

    Related on Tygart Media: Starlink on a water job · S500 in the van · local SEO for restoration.

  • AI for Water Damage Restoration — 4 Claude Skills

    AI for Water Damage Restoration — 4 Claude Skills

    Updated November 13, 2026 — facts verified against live Anthropic pricing & product documentation.

    Direct Answer · Verified November 13, 2026

    AI for Water Damage Restoration — 4 Claude Skills by Tygart Media is a $29 Square digital product packaging four Claude Project skills for emergency water losses: first-hour homeowner texts, IICRC S500-aware adjuster summaries, contents and rebuild letters, and plumber or property-manager outreach (or copy all four free on this page). Projects work on Claude Free ($0, up to 5 Projects), Claude Pro ($20/mo or $17 annual), and Team Standard ($20/seat annual / $25 monthly). Review plans on our Claude AI pricing guide and Anthropic’s small-business guide.

    WATER DAMAGE FIELD SHEET
    AI for Water Damage Claude Skills — Tygart Media Field Sheet (PDF)
    2-page mitigation reference: 4 emergency water-loss skills, S500 review boundary, Project uploads, and verified Claude plan fit. Verified 2026-11-13.

    AI for Water Damage Restoration — 4 Claude Skills

    $29

    Packaged zip delivered by email within 24 hours after Square checkout.

    Buy on Square — $29 →

    Secure checkout via Square — all major cards accepted

    Tygart Media publishes the full skill text below so water-damage contractors can copy each block into Claude Project Instructions before the next 2 a.m. call. The $29 Buy Now option is Will Tygart’s packaged zip so Tygart Media is not rebuilding Project Instructions while the crew is en route.

    Water damage restoration is a 24/7 business. The company that communicates fastest and clearest wins the job. Between emergency calls, adjuster coordination, and anxious homeowners, Claude takes the writing load off the operations team — under certified human review.

    DIY Copy vs $29 Packaged Zip

    Option Price Water-Loss Focus Best For
    Copy from this page$0Four skills in HTML; manual pasteTesting one emergency template tonight
    Water 4 Claude Skills (this product)$29Emergency, adjuster, contents, referral24/7 dispatch and PM teams
    General 4 Claude Skills$29Scope narratives + broad insurance lettersMulti-loss shops (fire, mold, water)
    Operations Kit — Claude Edition$1978 skills + equipment sizing + KPI coachFull operational AI copilot

    How to use this

    Four skill cards covering emergency, adjuster, contents, and referral communication
    Four water-job skills. Paste facts. Review. Send.
    • Claude Skills go into Claude Project Instructions.
    • Prompts work in any Claude conversation.
    • Tygart Media recommends stating Category and Class, ETA, and what the homeowner has already been told. Vague input makes vague output.

    Create a Claude Project. Paste the skill. Answer what it asks. Review every text and letter before it sends. This is a writing assistant, not a substitute for IICRC S500 or your certified judgment.

    Skill 1: Emergency Response and Homeowner Communication Writer

    Flooded residential living room with standing water on hardwood after a water loss
    Emergency response copy should match the room you walked into.

    Drafts the rapid-response communications that set expectations, reduce panic, and document the first 24 hours of a loss.

    Paste into Claude Project Instructions:

    You are an emergency response communication assistant for a water damage restoration company.
    
    When I describe an active loss, produce:
    
    FIRST CONTACT (phone follow-up text): We're on our way. ETA, who's coming, what to do right now. Under 100 words. Fast and reassuring.
    
    ON-SITE FINDINGS SUMMARY: What we found, what we're doing right now, what happens next. Plain English. Under 150 words. Send within the first hour.
    
    24-HOUR UPDATE: Moisture readings summary (plain language, not numbers), drying equipment placed, expected drying timeline, what the homeowner needs to do. Under 175 words.
    
    DAILY MOISTURE UPDATE: Progress, anything notable, adjusted timeline if needed. Under 100 words.
    
    EQUIPMENT REMOVAL NOTICE: Drying is complete. What was achieved. What happens next (demo, rebuild, clearance). Under 100 words.
    
    Tone: fast, expert, calm. In a water emergency, the restoration company that communicates well becomes the trusted partner for everything that follows.

    Example prompt: “Write a text message to send to a homeowner who just called our emergency line. We’re dispatching a crew. ETA is [X] hours. What they should do right now to minimize damage. Under 120 characters if possible.”

    Example prompt: “A homeowner has a Category 3 sewage backup in their basement. Write a plain-English explanation of what that means for health and safety, why we have to treat it differently than clean water, and what the remediation process involves. Honest without being terrifying. Under 175 words.”

    Skill 2: Insurance Adjuster Communication Writer

    Clipboard and tablet on a kitchen counter during an insurance adjuster walkthrough after water loss
    Adjuster notes: dated, specific, easy to forward.

    Produces the mitigation documentation, photo narrative summaries, and supplement requests that keep claims moving.

    Paste into Claude Project Instructions:

    You are an insurance documentation assistant for a water damage restoration company.
    
    When I describe a water loss and our scope, produce:
    
    MITIGATION SUMMARY: What was found, Category and Class of water loss, what was done and why, equipment placed, drying standard referenced (IICRC S500). Technical but clear. Under 300 words.
    
    PHOTO NARRATIVE: Written descriptions for the documentation photo sequence — each photo type with a one-sentence caption template I can use. Organized by area.
    
    SUPPLEMENT REQUEST: What was found during mitigation that wasn't visible initially. Itemized, with rationale. Professional and factual.
    
    DELAY JUSTIFICATION: When we need to proceed before adjuster approval for health/safety reasons. Documented, professional, covers our position.
    
    ADJUSTER FOLLOW-UP: Professional check-in when we haven't heard back. States what we're waiting on and impact on the homeowner.
    
    Always: factual, documented, professional. Supplement disputes are resolved through evidence.

    Example prompt: “The insurance carrier is disputing the replacement value of [item type] damaged in the loss. Write a professional response that documents the basis for our valuation and requests reconsideration. Factual, not emotional. Under 150 words.”

    Skill 3: Contents and Rebuild Communication Writer

    Handles pack-out, demo scope, rebuild timeline, and walkthrough communications after the drying phase.

    Paste into Claude Project Instructions:

    You are a project communication assistant for a water damage restoration company.
    
    When I describe a post-mitigation situation, draft:
    
    CONTENTS PACK-OUT NOTICE: We need to move and protect contents. What happens, where things go, how the inventory process works, when they get it back. Reassuring and specific. Under 150 words.
    
    DEMO SCOPE EXPLANATION: What needs to come out, why, and what the space will look like during the work. Plain English. Under 150 words.
    
    REBUILD TIMELINE: What the reconstruction process involves, who does what, realistic timeline with caveat for material lead times and permits. Under 200 words.
    
    COMPLETION WALKTHROUGH GUIDE: What to inspect at final walkthrough, how to note punch list items, our warranty terms, how to reach us. Professional close.
    
    INSURER REBUILD UPDATE: Progress report for the carrier on reconstruction. Factual, organized by trade, with current completion percentage.
    
    Ask me: scope, timeline, any notable complications, what the homeowner has been told.

    Give it the real scope and what the homeowner has already heard. Do not let it invent a timeline Tygart Media cannot keep on the job.

    Skill 4: Referral Network and Emergency Preparedness Content

    Drafts plumber, roofer, and property manager outreach, plus the educational notes that put you first in the phone when water hits.

    Paste into Claude Project Instructions:

    You are a referral and content assistant for a water damage restoration company.
    
    When I describe an outreach or content need, produce:
    
    PLUMBER/ROOFER OUTREACH: We're a trusted restoration partner. How the relationship works, what we provide their clients, how referrals work. Peer-to-peer. Under 100 words.
    
    PROPERTY MANAGER OUTREACH: 24/7 emergency response, direct insurance billing, fast documentation for their records. What makes us the right call at 2am. Under 100 words.
    
    EMERGENCY PREPAREDNESS CONTENT (blog, 400 words): What homeowners should do in the first hour of a water emergency. Step by step. Practical. Ends with when to call a professional.
    
    STORM RESPONSE POST: After a weather event. What to watch for. When to call. Urgent but not alarmist. Under 100 words. Timely.
    
    Ask me: audience, loss type if specific, geographic area, any credential to reference.

    Example prompt: “Write an outreach email to a real estate agent in [city] about our water damage restoration services for transactions where damage is discovered during inspection. Cover our speed, documentation quality, and experience working within real estate timelines. Under 120 words.”

    Optional: Books for Bots

    Upload to a Claude Project if Tygart Media’s recommended references are written:

    • Company Context Sheet: name, service area, certifications (IICRC WRT, ASD, FSRT), equipment inventory, communication approach.
    • Water Loss Categories and Classes in Plain English: how you explain Category 1/2/3 and Class 1–4 drying to homeowners and adjusters.
    • Insurance Communication Standards: documentation standards, supplement philosophy, coverage disputes.

    If you want the packaged files

    The four skills are on this page. Buy Now is the packaged zip / install, delivered by email within 24 hours after Square checkout, so the Project Instructions are ready when the next water call comes in. Same Square button at the top of this page.

    Frequently Asked Questions

    What is AI for Water Damage Restoration — 4 Claude Skills?

    AI for Water Damage Restoration — 4 Claude Skills by Tygart Media is a $29 digital product with four Claude Project instruction blocks built for 24/7 water losses: emergency homeowner messaging, adjuster mitigation summaries, contents and rebuild letters, and referral or storm-response outreach. Tygart Media emails the packaged zip within 24 hours after Square checkout.

    Does this replace IICRC S500 judgment?

    No. Tygart Media positions these skills as a writing assistant only. Every draft must be reviewed by a certified restorer before it is sent. Category, Class, equipment counts, and drying decisions still follow IICRC S500 and the contractor’s field judgment.

    How is this different from the general restoration 4-skill pack?

    This water-focused pack ($29) targets emergency texts, mitigation photo narratives, pack-out letters, and storm referral content. The general AI for Restoration Contractors — 4 Claude Skills ($29) covers scope narratives and broad insurance correspondence. The Restoration Operations Kit — Claude Edition ($197) adds eight operational skills including equipment sizing and KPI coaching.

    What is included in the $29 Square purchase?

    The $29 checkout includes a formatted zip of all four water-damage Claude skills ready to paste into Project Instructions, plus email delivery from Tygart Media within 24 hours. The full skill text also remains free to copy from this page.

    Is there a refund policy?

    Because this is a digital product, all sales are final. If you have a problem with your purchase, email will@tygartmedia.com and we will sort it out.

    How is this delivered?

    Within 24 hours of purchase via email from will@tygartmedia.com. You will receive your download link — Notion duplicate link, skill file, or both depending on the product.

    $29

    Packaged zip delivered by email within 24 hours via Square.

    Buy on Square — $29 →

    The Next Step · Verified Research Verdict (November 13, 2026)

    Standardize 2 A.M. Water Loss Messaging Safely

    Verify shared dispatch options on claude.com/solutions/small-business, check Free/Pro/Team seat limits in our Claude AI pricing guide, or pair with the general 4 Restoration Skills ($29) or Operations Kit ($197).

    WATER DAMAGE FIELD SHEET
    AI for Water Damage Claude Skills — Tygart Media Field Sheet (PDF)
    Download the water-damage communication cheat sheet and verified Claude seat comparison. Verified 2026-11-13.

    Related Operations & Systems

    Companion Systems: Complete Restoration Operations Kit ($97) · General 4 Claude Skills ($29) · Operations Kit — Claude Edition ($197) · Tygart Media Shop.

    Related on Tygart Media: Starlink on a water job · S500 in the van · local SEO for restoration.

    Author: Will Tygart, Founder of Tygart Media — AI operating systems designed specifically for property restoration contractors.