<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Soha Sarwar on Medium]]></title>
        <description><![CDATA[Stories by Soha Sarwar on Medium]]></description>
        <link>https://medium.com/@sohasarwar2000?source=rss-efb49a72b8e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gNS06vNEtW_IXWQS</url>
            <title>Stories by Soha Sarwar on Medium</title>
            <link>https://medium.com/@sohasarwar2000?source=rss-efb49a72b8e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:12:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sohasarwar2000/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Connecting Custom MCP Servers to Claude Data & Sheets]]></title>
            <link>https://medium.com/@sohasarwar2000/connecting-custom-mcp-servers-to-claude-data-sheets-2e1a177cd9d2?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e1a177cd9d2</guid>
            <category><![CDATA[model-context-protocol]]></category>
            <category><![CDATA[claude-mcp-server]]></category>
            <category><![CDATA[custom-mcp-server]]></category>
            <category><![CDATA[anthropic-claude-code]]></category>
            <category><![CDATA[claude-data-and-sheets]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 12:01:02 GMT</pubDate>
            <atom:updated>2026-11-23T12:01:02.515Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Bridging custom Model Context Protocol servers and DuckDB into Anthropic’s stateful BI primitives, Certified Queries, and permission-decoupled Live Sharing.</em></p><p>In my earlier posts on building custom MCP servers and pairing DuckDB with local analytics, the main friction wasn’t querying data — it was what happened <em>after</em> Claude returned a table. Everything stayed trapped inside a single chat thread as static Markdown or an isolated Artifact. If a teammate wanted to verify the SQL, tweak a filter, or refresh the numbers next week, they had to re-run the prompt from scratch.</p><p>With the November 10, 2026 release of <strong>Claude Data</strong> (formerly Dashboards), <strong>Claude Sheets</strong>, and <strong>interactive remote MCP connectors</strong>, Anthropic turned ephemeral chat outputs into versioned, multiplayer data assets.</p><p>If you already run internal databases, DuckDB pipelines, or proprietary REST APIs, you don’t need to wait for an official vendor integration. Here is how to wire a custom remote MCP server into Claude’s new workspace primitives — and how to configure governance so Claude doesn’t hallucinate your company’s KPIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-xjsLu2-bTx7E2WlX4rRw.jpeg" /></figure><h3>1. The Architecture: Why Remote HTTP/SSE Matters Now</h3><p>Local STDIO MCP servers (claude_desktop_config.json) only run inside Claude Desktop on your local machine. <strong>Claude Data</strong> and <strong>Claude Sheets</strong>, however, execute across web, desktop, and mobile from Anthropic’s cloud.</p><p>To feed live internal metrics into Claude Data or populate a multi-tab Claude Sheet, your custom MCP server must be exposed over <strong>Streamable HTTP or SSE</strong> ([https://your-domain.com/mcp](https://your-domain.com/mcp)). Under the hood, Claude treats custom connectors as remote MCP tool providers:</p><ul><li><strong>In Claude Data:</strong> Claude writes SQL or invokes your MCP read tools to populate charts, caches the query results on a per-dashboard refresh cadence (from 5 minutes to 1 week), and logs every edit in version history.</li><li><strong>In Claude Sheets:</strong> Claude calls your MCP server to pull aggregated records, builds multi-tab spreadsheets with native formulas and dropdowns, and exports directly to .xlsx, CSV, or partner tools like Airtable and Smartsheet.</li></ul><h3>2. Building a Read-Only Remote MCP Server for Claude Data &amp; Sheets</h3><p>When connecting an MCP server to BI surfaces, two platform limits dictate how you should design your tools:</p><ol><li><strong>Payload &amp; Timeout Ceilings:</strong> Remote connector tool calls time out after <strong>240 seconds</strong> and cap returned text payloads at roughly <strong>150,000 characters</strong>.</li><li><strong>Aggregation Over Raw Dumps:</strong> Never expose a SELECT * tool that dumps 50,000 raw rows into context; Claude will silently summarize a truncated slice. Force grouping, filtering, and row limits inside the MCP tool schema.</li></ol><p>Here is a production-ready <strong>FastMCP</strong> server exposing a read-only DuckDB analytical store over Streamable HTTP, complete with SQL guardrails and schema inspection:</p><pre>import re<br>import duckdb<br>from fastmcp import FastMCP<br><br>mcp = FastMCP(&quot;InternalWarehouseMCP&quot;)<br>DB_PATH = &quot;/data/analytics.duckdb&quot;<br><br>FORBIDDEN_SQL = re.compile(<br>    r&quot;\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|ATTACH|COPY|EXPORT|PRAGMA)\b&quot;,<br>    re.IGNORECASE,<br>)<br><br>@mcp.tool()<br>def list_warehouse_schemas() -&gt; list[dict]:<br>    &quot;&quot;&quot;Return available tables, columns, and types so Claude Data writes valid SQL.&quot;&quot;&quot;<br>    with duckdb.connect(DB_PATH, read_only=True) as con:<br>        rows = con.execute(&quot;&quot;&quot;<br>            SELECT table_schema, table_name, column_name, data_type<br>            FROM information_schema.columns<br>            WHERE table_schema NOT IN (&#39;information_schema&#39;, &#39;pg_catalog&#39;)<br>            ORDER BY table_name, ordinal_position<br>        &quot;&quot;&quot;).fetchall()<br>    return [<br>        {&quot;schema&quot;: r[0], &quot;table&quot;: r[1], &quot;column&quot;: r[2], &quot;type&quot;: r[3]}<br>        for r in rows<br>    ]<br><br>@mcp.tool()<br>def run_aggregated_query(sql: str, max_rows: int = 500) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Execute a read-only analytical SELECT query for Claude Data or Claude Sheets.<br>    Always use GROUP BY or aggregations; raw unaggregated dumps are capped.<br>    &quot;&quot;&quot;<br>    cleaned = sql.strip().rstrip(&quot;;&quot;)<br>    if not cleaned.lower().startswith((&quot;select&quot;, &quot;with&quot;)):<br>        raise ValueError(&quot;Only SELECT or WITH (CTE) queries are permitted.&quot;)<br>    if FORBIDDEN_SQL.search(cleaned):<br>        raise ValueError(&quot;Mutating or DDL statements are blocked.&quot;)<br><br>    safe_limit = min(max(1, max_rows), 2000)<br>    wrapped_sql = f&quot;SELECT * FROM ({cleaned}) AS sub LIMIT {safe_limit}&quot;<br><br>    with duckdb.connect(DB_PATH, read_only=True) as con:<br>        cursor = con.execute(wrapped_sql)<br>        columns = [desc[0] for desc in cursor.description]<br>        rows = cursor.fetchall()<br><br>    return {<br>        &quot;row_count&quot;: len(rows),<br>        &quot;truncated&quot;: len(rows) == safe_limit,<br>        &quot;columns&quot;: columns,<br>        &quot;rows&quot;: [dict(zip(columns, row)) for row in rows],<br>    }<br><br>if __name__ == &quot;__main__&quot;:<br>    # Exposes Streamable HTTP endpoint at http://0.0.0.0:8000/mcp<br>    mcp.run(transport=&quot;http&quot;, host=&quot;0.0.0.0&quot;, port=8000, path=&quot;/mcp&quot;)</pre><h4>Wiring Authentication &amp; Network Access</h4><ol><li><strong>OAuth Callback URI:</strong> If you authenticate users via OAuth (recommended for Team/Enterprise plans so queries inherit per-user row-level permissions), register Anthropic’s exact redirect URI in your identity provider:</li></ol><pre>https://claude.ai/api/mcp/auth_callback</pre><h3>3. Locking Down Definitions with Certified Queries</h3><p>The biggest failure mode in AI-assisted BI isn’t syntax errors — it’s <strong>semantic drift</strong>. One PM asks Claude for <em>“Monthly Active Revenue”</em> excluding refunds, while another asks for <em>“MRR”</em> including annual prepayments, and both share conflicting charts.</p><p>Claude Data solves this with <strong>Certified Queries &amp; Metrics</strong> (currently in beta on Team and Enterprise plans):</p><ol><li><strong>Inspect &amp; Edit the Underlying Query:</strong> Every chart in Claude Data exposes the exact query and tool call used to generate it. Open the chart’s query editor and standardize the SQL or MCP parameters.</li><li><strong>Attach Semantic Instructions:</strong> Toggle <strong>Certify query</strong> on and add line-by-line rules for Claude (e.g., <em>“Always exclude internal test accounts where </em><em>org_type = &#39;sandbox&#39;&quot;</em> or <em>&quot;Use </em><em>recognized_at UTC timestamps, never </em><em>created_at&quot;</em>).</li><li><strong>Reuse Across Dashboards:</strong> Once published, charts built on that definition display a <strong>Certified</strong> badge, and Claude automatically prioritizes that certified query whenever teammates build new dashboards or Sheets referencing that metric.</li></ol><blockquote><strong><em>Watch out for silent un-certification:</em></strong><em> Editing a certified query directly inside a dashboard strips its certification badge. Treat certified queries like versioned semantic views — test changes before re-publishing.</em></blockquote><h3>4. Live Sharing vs. Viewer Permissions</h3><p>Once your custom MCP server powers a Claude Data dashboard, how you share it determines whose credentials execute queries:</p><ul><li><strong>Live Sharing OFF (“Their access”):</strong> Viewers must authenticate against your MCP server with their own OAuth token. Use this whenever your MCP backend enforces row-level security (e.g., regional sales reps only seeing their own territories).</li><li><strong>Live Sharing ON (“Your access”):</strong> Viewers see the live cached results of your approved queries <em>without</em> needing direct database or MCP connector access. They cannot run arbitrary new prompts against your credentials — they can only view the dashboard’s cached output and any explicitly allowed filter parameters.</li></ul><h3>5. Moving from Claude Data to Claude Sheets in One Loop</h3><p>Because connectors and workspace artifacts share session context, your custom MCP server isn’t limited to static charts:</p><ol><li><strong>Pull via MCP:</strong> Ask Claude to query your run_aggregated_query tool for Q4 cohort retention by acquisition channel.</li><li><strong>Model in Claude Sheets:</strong> Convert that output into a <strong>Claude Sheet</strong> to add live spreadsheet formulas (XLOOKUP, cohort retention decay curves), conditional formatting, and scenario inputs—with visual diff outlines showing every cell Claude modifies.</li><li><strong>Handoff to Ops Tools:</strong> Export the finished sheet directly to .xlsx or push a tab into <strong>Smartsheet</strong>, <strong>Airtable</strong>, or <strong>monday.com</strong> via their interactive MCP connectors without leaving the thread.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e1a177cd9d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Fable 5.2 for Developers: Faster Agent Loops, Effort Controls & Migration Gotchas]]></title>
            <link>https://medium.com/@sohasarwar2000/claude-fable-5-2-for-developers-faster-agent-loops-effort-controls-migration-gotchas-10da70243746?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/10da70243746</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[anthropic-fable]]></category>
            <category><![CDATA[claude-fable-5]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[fable]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 17:41:19 GMT</pubDate>
            <atom:updated>2026-11-22T17:41:19.860Z</atom:updated>
            <content:encoded><![CDATA[<p>Anthropic shipped <strong>Claude Fable 5.2</strong> (claude-fable-5-2) on November 9, 2026. On paper, the headline numbers look straightforward: <strong>30% faster standard output</strong>, <strong>20% lower token pricing</strong> ($8 / $40 per million tokens, down from Fable 5.1’s $10 / $50), a <strong>1M-token context window</strong> with no long-context surcharge, and a <strong>128K output ceiling</strong>.</p><p>If you are building multi-step agent loops, however, simply swapping the model string in your config will break your pipeline. Fable 5.2 changes how reasoning budgets are controlled, enforces strict conversation-prefix validation, and introduces asymmetric rules for multi-model hand-offs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lea23sKQ89rzcSQcn6a-Qw.jpeg" /></figure><p>Here is what actually changed in the API and how to migrate cleanly.</p><h3>1. Prompt Hacks Are Dead: Tuning output_config.effort</h3><p>In Fable 5.2, adaptive thinking is <strong>always on</strong>. Passing thinking={&quot;type&quot;: &quot;disabled&quot;} or thinking={&quot;type&quot;: &quot;enabled&quot;, &quot;budget_tokens&quot;: ...} returns a 400 error. Even prompt-level instructions like <em>&quot;answer directly without deliberating&quot;</em> no longer suppress reasoning tokens at medium effort and above.</p><p>Because thinking tokens bill as output tokens ($40/MTok), your cost and latency dial is now output_config.effort, which accepts five levels:</p><ul><li>low — Minimal thinking, terse responses. Best for routing, classification, and high-volume extraction.</li><li>medium — A lightweight reasoning pass without deep branching.</li><li>high — <strong>The API default.</strong> Balanced depth for standard coding and multi-step tool use.</li><li>xhigh — Built for long-horizon agent runs spanning 30+ minutes.</li><li>max — Uncapped deliberation for correctness-critical synthesis.</li></ul><p>If you need lower wall-clock latency on interactive tasks without dropping effort, Fable 5.2 also introduces speed=&quot;fast&quot;, which delivers up to <strong>2.5x higher output tokens/sec</strong> at double token pricing ($16 / $80 per MTok).</p><pre>import anthropic<br><br>client = anthropic.Anthropic()<br><br>response = client.messages.create(<br>    model=&quot;claude-fable-5-2&quot;,<br>    max_tokens=8192,<br>    speed=&quot;fast&quot;,  # Up to 2.5x tokens/sec (standard API only, not Batch)<br>    output_config={&quot;effort&quot;: &quot;medium&quot;},<br>    messages=[<br>        {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Audit this SQL query for N+1 and lock contention risks.&quot;}<br>    ],<br>)<br><br># Always iterate content blocks; thinking blocks precede text blocks at medium+ effort<br>for block in response.content:<br>    if block.type == &quot;text&quot;:<br>        print(block.text)</pre><h4>Mid-Conversation Effort Switching (Without Busting Your Cache)</h4><p>In agent loops, you rarely want xhigh effort on every turn. Usually, you want low or medium while gathering context via tool calls, and high only when synthesizing the final plan.</p><p>Using the mid-conversation-output-config-2026-07-01 beta header, you can append an empty system message carrying a new output_config mid-thread. This changes the reasoning budget for subsequent turns while keeping your cached prompt prefix intact:</p><pre>response = client.beta.messages.create(<br>    model=&quot;claude-fable-5-2&quot;,<br>    betas=[&quot;mid-conversation-output-config-2026-07-01&quot;],<br>    max_tokens=16000,<br>    output_config={&quot;effort&quot;: &quot;low&quot;},<br>    messages=[<br>        {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Inspect the repo structure and list failing tests.&quot;},<br>        {&quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: previous_assistant_blocks},<br>        {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Now design the migration plan to fix all three.&quot;},<br>        # Dial effort up mid-thread without altering the prefix<br>        {<br>            &quot;role&quot;: &quot;system&quot;,<br>            &quot;content&quot;: &quot;&quot;,<br>            &quot;output_config&quot;: {&quot;effort&quot;: &quot;high&quot;},<br>        },<br>    ],<br>)</pre><h3>2. Multi-Model Loops: Asymmetric Thinking Hand-Offs &amp; The Advisor Tool</h3><p>A common production pattern is running <strong>Opus 5.5</strong> ($4 / $20 per MTok) as the fast daily driver and escalating hard debugging or architectural turns to <strong>Fable 5.2</strong> ($8 / $40 per MTok).</p><p>Fable 5.2 handles cross-model reasoning blocks asymmetrically:</p><ol><li><strong>Escalating up (</strong><strong>Opus/Sonnet/Haiku 5.5 → </strong><strong>Fable 5.2):</strong> Fable 5.2 natively reads and continues from thinking blocks generated by smaller 5.5 models.</li><li><strong>Routing down (</strong><strong>Fable 5.2 → </strong><strong>Opus 5.5):</strong> Only Fable 5.2 and Mythos 5.2 can read Fable 5.2 thinking blocks. If your router hands a conversation <em>back</em> to Opus 5.5 for an easy follow-up turn, the API won&#39;t throw an error—it silently drops Fable&#39;s prior thinking blocks.</li></ol><p>If you use Anthropic’s beta <strong>advisor tool</strong> (where an executor model consults a stronger model mid-loop), note the pairing rule: <strong>a </strong><strong>claude-fable-5-2 executor only accepts </strong><strong>claude-fable-5-2 or </strong><strong>claude-mythos-5-2 as its advisor.</strong> Leaving an older claude-fable-5-1 advisor in your tool definition triggers an immediate 400 invalid_request_error.</p><h3>3. Four Breaking Changes That Will Throw 400 Errors</h3><p>Before flipping traffic to claude-fable-5-2, audit your request builder for four breaking behaviors:</p><h4>1. Strict Prefix Validation on Thinking Blocks</h4><p>If your agent loop mutates the system prompt, swaps tools, or truncates/edits earlier messages mid-conversation and then sends back a later Fable 5.2 thinking block, the API rejects the request with:</p><pre>400 invalid_request_error: The block is bound to a different conversation</pre><p>On Fable 5.1, this check only applied to newer accounts; on Fable 5.2, it applies universally. Keep your message history strictly append-only (use Anthropic’s compaction API rather than manually slicing old messages). As a temporary stopgap during migration, you can pass the thinking-binding-controls-2026-08-01 beta header with thinking.block_binding.prefix_mismatch_behavior = &quot;drop_block&quot;.</p><h4>2. Legacy Computer Use Tools Are Rejected</h4><p>Declaring computer_20251124 returns a 400 error everywhere except Amazon Bedrock. Update your tool definition to the unified toolset ({&quot;type&quot;: &quot;computer_toolset_20260801&quot;}) and remove the legacy display dimension fields.</p><h4>3. Forced Tool Choice &amp; Sampling Parameters</h4><p>Just like Fable 5.1, passing tool_choice={&quot;type&quot;: &quot;any&quot;} or tool_choice={&quot;type&quot;: &quot;tool&quot;, &quot;name&quot;: &quot;...&quot;} returns a 400 error. Keep tool_choice on auto and enforce tool execution in your application loop. Similarly, strip temperature, top_p, and top_k from your payloads—Fable 5.2 rejects them.</p><h4>4. 30-Day Data Retention Requirement</h4><p>Fable 5.2 requires 30-day server-side retention and is <strong>not available under Zero Data Retention (ZDR)</strong> unless explicitly authorized on your account. If your enterprise compliance pipeline enforces ZDR at the gateway level, requests will fail until your account policy is updated.</p><h3>Quick Migration Checklist</h3><ul><li><strong>Remove</strong> thinking, temperature, top_p, top_k, and forced tool_choice fields.</li><li><strong>Set</strong> output_config={&quot;effort&quot;: &quot;medium&quot;} as your baseline for standard agent turns, bumping to high only on complex planning steps.</li><li><strong>Keep</strong> system, tools, and past messages immutable once a thinking block is in the thread.</li><li><strong>Update</strong> any advisor tool definitions to claude-fable-5-2 and computer use definitions to computer_toolset_20260801.</li></ul><p><em>Next up: how to wire custom remote MCP servers into Anthropic’s new </em><strong><em>Claude Data</em></strong><em> and </em><strong><em>Claude Sheets</em></strong><em> workspace primitives using Certified Queries.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10da70243746" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How OpenUI Renders AI Interfaces 3x Faster Than JSON]]></title>
            <link>https://medium.com/@sohasarwar2000/how-openui-renders-ai-interfaces-3x-faster-than-json-067b230b8c2d?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/067b230b8c2d</guid>
            <category><![CDATA[open-ui]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[openui-lang]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 22:24:08 GMT</pubDate>
            <atom:updated>2026-11-16T22:24:08.789Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve built an AI agent recently, you know the frustration. You ask an LLM to analyze a complex data pipeline or review a sales forecast, and what do you get back? Three dense paragraphs of markdown text, wrapped in a chat bubble.</p><p>For years, we’ve tried to fix this by forcing models to output massive JSON schemas to render custom UI. But JSON is verbose, token-heavy, expensive, and prone to breaking mid-stream when a model misses a single closing bracket.</p><p>Enter <strong>OpenUI</strong> (developed by Thesys) — an open-source standard and toolchain designed specifically to solve this problem. At its core is <strong>OpenUI Lang</strong>, a compact, code-like language built expressly for how large language models generate tokens. It lets your AI respond not just with plain text, but with live, interactive components — charts, tables, cards, and forms — rendered in real time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MaFvlEHslL3oQNSFJRfXTw.jpeg" /></figure><h3>Why JSON Broke Generative UI</h3><p>Before looking at how OpenUI works, it helps to understand why the industry’s previous default approach — JSON-based generative UI — hit a ceiling.</p><p>When an LLM generates structured data via JSON:</p><ol><li><strong>Token Bloat:</strong> Repetitive structural overhead like quotes, commas, keys, and brackets consume a massive percentage of your context window and token budget.</li><li><strong>Streaming Fragility:</strong> If a model streams a 2,000-token JSON object and times out or drops a comma near the middle, the entire parsing tree fails. Users are left staring at a broken UI block or an empty container.</li><li><strong>Cognitive Misalignment:</strong> LLMs are trained heavily on code and programming syntax. Forcing them to mimic rigid database payloads works, but it isn’t how they naturally compose nested logic.</li></ol><p>OpenUI Lang circumvents these issues by adopting a syntax that looks and feels like a lightweight programming language — closely matching the code structures LLMs were trained on.</p><h3>How OpenUI Works Under the Hood</h3><p>The architecture relies on a clean, decoupled loop between your component registry, your system prompts, the LLM, and the client-side renderer.</p><pre>[ Component Library ] <br>        ↓ (Generates System Prompt)<br>   [ System Prompt ] <br>        ↓ <br>    [ LLM ] <br>        ↓ (Streams OpenUI Lang)<br>[ Renderer ] → [ Live Interactive UI ]</pre><ol><li><strong>Define Your Components:</strong> You register your existing design system elements (buttons, cards, metric grids, data tables) or use OpenUI’s built-in UI primitives.</li><li><strong>Prompt Generation:</strong> OpenUI compiles your component definitions into a compact system prompt instructing the model on available props and contracts.</li><li><strong>Streaming Generation:</strong> When a user sends a prompt, the model streams back compact OpenUI Lang code instead of raw text or raw JSON.</li><li><strong>Progressive Rendering:</strong> The client-side runtime (@openuidev/react-lang or framework-equivalent) parses the stream line-by-line, updating the interface incrementally as tokens arrive.</li></ol><h3>Code in Action: What OpenUI Lang Looks Like</h3><p>Instead of hundreds of lines of nested JSON brackets, OpenUI Lang uses clean, declarative assignment statements.</p><p>Here is what a model-generated dashboard snippet looks like in practice:</p><pre>root = Stack([<br>  Header(title=&quot;Q3 Pipeline Health&quot;, subtitle=&quot;Generated by Analytics Agent&quot;),<br>  Grid([<br>    MetricCard(label=&quot;Active ARR&quot;, value=&quot;$2.4M&quot;, trend=&quot;+12%&quot;),<br>    MetricCard(label=&quot;Open Pipeline&quot;, value=&quot;$850K&quot;, trend=&quot;-3%&quot;),<br>    MetricCard(label=&quot;Conversion Rate&quot;, value=&quot;24.2%&quot;, trend=&quot;+4.1%&quot;)<br>  ]),<br>  DataTable(<br>    source=&quot;q3_deals_view&quot;,<br>    columns=[&quot;Account&quot;, &quot;Stage&quot;, &quot;Owner&quot;, &quot;Value&quot;]<br>  )<br>])</pre><h3>Setting It Up in Code</h3><p>Getting started in a modern frontend stack is straightforward. First, install the core packages:</p><pre>npm install @openuidev/react-lang @openuidev/react-ui @openuidev/react-headless zustand</pre><p>Then, configure your system prompt from your component library and bind it to your chat orchestration layer (such as LangChain or Vercel AI SDK):</p><pre>import { openuiLibrary, openuiPromptOptions } from &quot;@openuidev/react-ui/genui-lib&quot;;<br>import { Renderer } from &quot;@openuidev/react-lang&quot;;<br><br>// 1. Generate the system instructions at startup<br>const SYSTEM_PROMPT = openuiLibrary.prompt({<br>  ...openuiPromptOptions,<br>  preamble: &quot;You are an analytics copilot. When data is requested, output clean openui-lang representing the dashboard layout.&quot;,<br>});<br><br>// 2. Render the streamed output safely on the frontend<br>function DashboardView({ streamText }) {<br>  return (<br>    &lt;div className=&quot;p-6 bg-zinc-950 text-zinc-100 min-h-screen&quot;&gt;<br>      &lt;Renderer content={streamText} library={openuiLibrary} /&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><h3>Key Benefits of Adopting OpenUI</h3><ul><li><strong>Massive Token Efficiency:</strong> Benchmarks show OpenUI Lang uses up to <strong>67% fewer tokens</strong> than equivalent JSON schemas. This directly translates to lower API costs and lower latency.</li><li><strong>Up to 3× Faster Rendering:</strong> Because the syntax is compact and parsed progressively, UI components materialize on screen much faster than waiting for a massive payload to complete.</li><li><strong>Design-System Agnostic:</strong> OpenUI doesn’t force you into a proprietary visual box. You can map it to Tailwind, shadcn/ui, Material-UI, or your own bespoke component library.</li><li><strong>Framework Flexibility:</strong> While it has first-class bindings for React 19 and modern component architectures, core parsers remain decoupled, making it adaptable across ecosystems.</li></ul><h3>Practical Scenarios: Where Should You Use It?</h3><p>Generative UI shines brightest when text-in, text-out experiences bottleneck user workflows:</p><ol><li><strong>AI Data Analysts &amp; BI Dashboards:</strong> Instead of an AI explaining SQL query results in paragraphs, it spins up a custom layout featuring live charts, filtering controls, and summary tables.</li><li><strong>Context-Aware Copilots:</strong> Coding assistants or internal workflow tools that need to render multi-step approval forms, parameter configuration sliders, or debugging cards dynamically based on a user’s prompt.</li><li><strong>Interactive Reporting:</strong> Generating executive briefs where users can click, tweak filters, or export structured documents without scrubbing through chat histories.</li></ol><p>We are moving past the era where every AI application has to look like a generic chatbot window. Users don’t want to chat with data; they want to <em>interact</em> with software powered by AI.</p><p>By swapping rigid JSON structures for a purpose-built language like OpenUI Lang, developers get the best of both worlds: the expressive intelligence of LLMs combined with the predictable, type-safe reliability of traditional frontend design systems. If you’re building copilots or data-rich agents today, OpenUI is well worth bringing into your toolchain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=067b230b8c2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LanceDB: The DuckDB Equivalent for Multimodal Embeddings and Vector Search]]></title>
            <link>https://medium.com/@sohasarwar2000/lancedb-the-duckdb-equivalent-for-multimodal-embeddings-and-vector-search-574dc846cab9?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/574dc846cab9</guid>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[vector-search]]></category>
            <category><![CDATA[lancedb]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 22:40:56 GMT</pubDate>
            <atom:updated>2026-09-15T22:40:56.558Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve built AI applications over the past two years, you know the pain of managing a modern retrieval architecture.</p><p>Typically, it looks something like this: raw media assets (images, audio clips, video frames) live in an S3 bucket; structured metadata sits in Postgres or DuckDB; and your 1536-dimensional float vectors are shipped off to a dedicated, managed vector database.</p><p>To execute a simple query like <em>“Find product images similar to this sketch, but only for items priced under $50 in stock,”</em> your app has to orchestrate an awkward multi-hop choreography:</p><ol><li>Query the vector database for nearest neighbor IDs.</li><li>Query your SQL database to filter those IDs by price and stock.</li><li>Stitch the results together in memory.</li><li>Fetch the actual raw image binaries from cloud storage.</li></ol><p>This architecture is brittle, expensive, and slow. We went through a similar pain point in analytics years ago until <strong>DuckDB</strong> disrupted the status quo by introducing fast, serverless, in-process columnar analytics on local files.</p><p>What DuckDB did for structured analytics, <strong>LanceDB</strong> is doing for multimodal AI workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34Tg1Eq_jI96uSDhauyCfg.jpeg" /></figure><h3>What makes LanceDB the “DuckDB of Vector DBs”?</h3><p>LanceDB is an embedded, open-source vector database built on top of <strong>Lance</strong> — a modern, disk-native columnar format written in Rust and fully compatible with Apache Arrow.</p><p>Just like DuckDB, LanceDB runs directly inside your application process (no Docker containers, no background daemons, no managed API keys required). However, its true super-power lies in how it handles <strong>multimodal payloads</strong>:</p><ul><li><strong>Disk-Native Vector Indexing:</strong> Lance uses disk-backed IVF-PQ (Inverted File with Product Quantization) indexes. You can perform sub-millisecond similarity searches on millions of vectors directly from disk without loading everything into expensive RAM.</li><li><strong>Unified Payload &amp; Vectors:</strong> You store the raw text, binary blobs (or object URIs), structured metadata, and embeddings inside a single .lance table.</li><li><strong>Zero-Copy Ecosystem Integration:</strong> Because Lance speaks Apache Arrow natively, it integrates seamlessly with Polars, Pandas, and PyArrow with zero serialization overhead.</li></ul><h3>Building a Multimodal Search Pipeline with LanceDB and Polars</h3><p>Let’s look at how easy it is to build a hybrid, multimodal search engine in pure Python using LanceDB and Polars.</p><h3>1. Installation</h3><pre>pip install lancedb polars pyarrow pillow torch transformers</pre><h3>2. Defining the Schema &amp; Ingesting Data</h3><p>LanceDB supports Pydantic models out of the box, making schema design clean and self-documenting.</p><pre>import lancedb<br>from lancedb.pydantic import LanceModel, Vector<br>from lancedb.embeddings import EmbeddingFunctionRegistry<br>import polars as pl<br>import numpy as np<br><br># Connect to a local folder (just like DuckDB or SQLite)<br>db = lancedb.connect(&quot;./data/multimodal_lakehouse&quot;)<br><br># Define a schema with metadata, image links, and a 512-dim embedding<br>class ProductCatalog(LanceModel):<br>    product_id: str<br>    category: str<br>    price: float<br>    in_stock: bool<br>    image_uri: str<br>    # 512-dimensional vector (e.g., CLIP output)<br>    vector: Vector(512) <br><br># Create or open the table<br>table = db.create_table(&quot;products&quot;, schema=ProductCatalog, mode=&quot;overwrite&quot;)<br><br># Generate mock data<br>mock_data = [<br>    {<br>        &quot;product_id&quot;: f&quot;PROD_{i}&quot;,<br>        &quot;category&quot;: &quot;apparel&quot; if i % 2 == 0 else &quot;footwear&quot;,<br>        &quot;price&quot;: round(20.0 + (i * 5.5), 2),<br>        &quot;in_stock&quot;: True if i % 3 != 0 else False,<br>        &quot;image_uri&quot;: f&quot;s3://my-bucket/items/item_{i}.jpg&quot;,<br>        &quot;vector&quot;: np.random.randn(512).astype(np.float32).tolist()<br>    }<br>    for i in range(1000)<br>]<br><br># Insert records directly<br>table.add(mock_data)<br>print(f&quot;Table created with {len(table)} records.&quot;)</pre><h3>3. Vector Similarity Search with Metadata Filtering</h3><p>Instead of running separate database queries, LanceDB allows you to pass SQL pushdown filters directly alongside your vector search:</p><pre># Create a dummy query vector (e.g., generated from a user&#39;s uploaded image)<br>query_vector = np.random.randn(512).astype(np.float32)<br><br># Run Vector Search + Hard Metadata Filtering in a single pass<br>results_arrow = (<br>    table.search(query_vector)<br>    .where(&quot;category = &#39;apparel&#39; AND price &lt; 50.0 AND in_stock = true&quot;)<br>    .limit(5)<br>    .to_arrow()<br>)<br><br># Convert zero-copy to a Polars DataFrame for downstream processing<br>df = pl.from_arrow(results_arrow)<br>print(df.select([&quot;product_id&quot;, &quot;price&quot;, &quot;category&quot;, &quot;_distance&quot;]))</pre><h3>The Secret Weapon: Zero-Copy Workflows with Polars</h3><p>Because Lance is built on Apache Arrow, you can extract your entire database or query output as a <strong>Polars LazyFrame</strong>. This allows you to chain complex analytical queries without pulling massive embedding vectors into memory.</p><pre># Convert Lance table directly to a Polars LazyFrame<br>lazy_df = table.to_polars()<br><br># Perform heavy aggregation directly via Arrow buffers<br>summary = (<br>    lazy_df<br>    .filter(pl.col(&quot;in_stock&quot;) == True)<br>    .group_by(&quot;category&quot;)<br>    .agg([<br>        pl.col(&quot;price&quot;).mean().alias(&quot;avg_price&quot;),<br>        pl.col(&quot;product_id&quot;).count().alias(&quot;total_items&quot;)<br>    ])<br>    .collect()<br>)<br><br>print(summary)</pre><h3>When Should You Use LanceDB?</h3><h3>Choose LanceDB if:</h3><ul><li><strong>You want zero infrastructure management:</strong> You’re running in serverless environments (AWS Lambda, Cloudflare Workers), local notebooks, or edge devices.</li><li><strong>Your data is genuinely multimodal:</strong> You are working with mixed assets (audio, images, text, tables) and want to store vectors next to raw metadata.</li><li><strong>You want lower cloud costs:</strong> Storing indexes on disk (or directly in S3/MinIO via Lance format) saves massive RAM overhead compared to in-memory vector stores.</li></ul><h3>Consider a Client-Server Vector DB (e.g., Qdrant, Milvus) if:</h3><ul><li>You require multi-node distributed write consensus across massive real-time streaming architectures.</li><li>Your team requires fine-grained database role-based access control (RBAC) at the network socket layer.</li></ul><p>The era of stitching together three different databases just to run a multimodal retrieval pipeline is coming to an end. By bringing columnar storage, Arrow-native interop, and disk-backed ANN indexing under one embedded roof, LanceDB gives AI engineers their long-awaited “DuckDB moment.”</p><p>If you are building RAG systems or visual search pipelines today, replacing your multi-hop infrastructure with a unified LanceDB table is one of the quickest ways to dramatically simplify your codebase.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=574dc846cab9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DuckDB: The “SQLite for Analytics”]]></title>
            <link>https://medium.com/@sohasarwar2000/duckdb-the-sqlite-for-analytics-1fd01c54397f?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fd01c54397f</guid>
            <category><![CDATA[dataframes]]></category>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Thu, 07 May 2026 14:11:01 GMT</pubDate>
            <atom:updated>2026-05-07T14:11:01.214Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever felt the pain of waiting for a pandas dataframe to join or struggled to set up a full Postgres instance just to analyze a few CSVs, you’re the reason DuckDB exists.</p><p>Often called the “SQLite for Analytics,” DuckDB is a high-performance, analytical database that lives inside your application. No servers, no complex configs — just raw speed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z5TuPCcgQwqemx7YqY0uVg.png" /></figure><p>Here is everything you need to know to get started.</p><h3>Why Use DuckDB?</h3><p>Traditional databases (like Postgres or MySQL) are Row-Oriented. They are great at adding a new user or updating a password. However, they struggle when you ask them to calculate the average of 100 million sales records.</p><p>DuckDB is Column-Oriented. It only reads the columns you ask for, making it incredibly fast for data analysis.</p><h4>The big wins:</h4><ol><li>Zero Setup: pip install duckdb and you’re done.</li><li>In-Process: It runs inside your Python/R script, so there’s no data transfer overhead.</li><li>SQL on Everything: You can run SQL directly on CSVs, Parquet files, and even Pandas DataFrames without “importing” them first.</li></ol><h3>Key Features (and How to Use Them)</h3><h4>1. Querying Files Directly</h4><p>You don’t need to “load” data into DuckDB to analyze it. You can point DuckDB at a file and start querying immediately.</p><pre>import duckdb<br><br># Query a CSV file as if it were a table<br>duckdb.sql(&quot;SELECT * FROM &#39;sales_data.csv&#39; WHERE price &gt; 100&quot;).show()<br><br># It even works with Parquet files (even remote ones!)<br>duckdb.sql(&quot;SELECT category, SUM(revenue) FROM &#39;s3://bucket/data.parquet&#39; GROUP BY 1&quot;).show()</pre><h4>2. The “MotherDuck” Connection (Hybrid Cloud)</h4><p>DuckDB is local, but if you need to share data or scale, it integrates with MotherDuck, allowing you to combine local data with cloud data in a single SQL query.</p><h4>3. Deep Integration with Python</h4><p>DuckDB speaks “Data Science.” It can read a Pandas DataFrame, process it using SQL, and hand it back as a Polars DataFrame or a NumPy array.</p><pre>import pandas as pd<br>import duckdb<br><br>df = pd.read_csv(&quot;huge_dataset.csv&quot;)<br><br># DuckDB can see the &#39;df&#39; variable in your local scope!<br>result = duckdb.query(&quot;SELECT category, count(*) FROM df GROUP BY category&quot;).df()<br><br>print(type(result)) # Returns a Pandas DataFrame</pre><h4>4. Incredible Compression</h4><p>Because it’s columnar, DuckDB is a master of compression. A 1GB CSV file can often be stored as a ~150MB DuckDB file, making it much easier to move data around.</p><h3>When Should You Use It?</h3><ul><li><strong>Local Data Analysis:</strong> When your dataset is too big for Pandas but too small to justify a Spark cluster.</li><li><strong>Data Pipelines:</strong> Using it as a middleman to transform Parquet files before sending them to a cloud warehouse like Snowflake or BigQuery.</li><li><strong>Serverless Functions:</strong> Because it’s a tiny binary, it’s perfect for AWS Lambda or Google Cloud Functions.</li><li><strong>CLI Tools: </strong>It’s a great way to quickly “peek” into a Parquet file from your terminal.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fd01c54397f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Re-Prompting Claude: Use Skills Instead]]></title>
            <link>https://medium.com/@sohasarwar2000/stop-re-prompting-claude-use-skills-instead-7014a53cea34?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7014a53cea34</guid>
            <category><![CDATA[claude-skills]]></category>
            <category><![CDATA[claude-code-skills]]></category>
            <category><![CDATA[artificial-inte]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Wed, 06 May 2026 15:01:05 GMT</pubDate>
            <atom:updated>2026-05-06T15:01:05.347Z</atom:updated>
            <content:encoded><![CDATA[<p>Claude has transitioned from a chatbot to a specialized operator, and the secret sauce is <strong>Claude Skills</strong>. If you’ve been using Claude Code or the desktop app and noticed it “thinking” through multi-step workflows or executing local scripts, you’re seeing Skills in action.</p><p>Here is exactly what you need to know to master them.</p><h3>What Exactly Are “Skills”?</h3><p>Think of a Skill as a <strong>reusable Standard Operating Procedure (SOP)</strong>. Instead of pasting a 2,000-word instruction set into every new chat, you “teach” Claude a skill once. It then sits in the background, consuming zero tokens until Claude determines the current task requires it.</p><p>Technically, a Skill is a directory containing a SKILL.md file. It follows a <strong>Progressive Disclosure</strong> model:</p><ol><li><strong>The Hook:</strong> Claude sees a tiny metadata description (~100 tokens).</li><li><strong>The Payload:</strong> Only if the task matches that description does Claude “load” the full instructions and associated scripts.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Z9xaZTMIuMcQktVuMQRdQ.png" /></figure><h3>Step-by-Step: Setting Up Your First Skill</h3><p>Skills work best in <strong>Claude Code</strong> (the CLI tool), but the logic applies to the web interface as well.</p><h4>1. The Directory Structure</h4><p>Skills are file-based. You don’t “upload” them to a database; you place them in a specific folder on your machine.</p><ul><li><strong>Global Skills (Available everywhere):</strong> ~/.claude/skills/</li><li><strong>Project Skills (Specific to one repo):</strong> ./.claude/skills/</li></ul><p>Create a folder for your skill, for example: mkdir -p ~/.claude/skills/api-reviewer.</p><h4>2. The SKILL.md Blueprint</h4><p>Inside that folder, create a SKILL.md file. This file <strong>must</strong> have YAML frontmatter at the top—this is how Claude identifies the skill.</p><pre>---<br>name: api-guardian<br>description: Trigger this when I am writing or refactoring FastAPI endpoints or database schemas.<br>---<br><br># Instructions<br>1. **Validation:** Ensure all Pydantic models have clear `Field` descriptions for documentation.<br>2. **Security:** Flag any hardcoded API keys or sensitive strings and suggest `os.getenv` or `.env` alternatives.<br>3. **Efficiency:** For database queries, check for &quot;N+1&quot; problems and suggest optimized joins or eager loading.<br>4. **Consistency:** Ensure error responses follow our standard JSON structure: `{&quot;error&quot;: &quot;string&quot;, &quot;code&quot;: int}`.</pre><h4>3. Adding Executable Logic (The Secret Weapon)</h4><p>You can include a /scripts folder within your skill directory. If you have a Python script that perfectly cleans a CSV or a Bash script that runs a specific build command, Claude can execute these instead of trying to write the code from scratch.</p><h3>How Skills Supercharge “Claude Code”</h3><p>When you’re working in the terminal, Skills turn Claude into an autonomous teammate.</p><ul><li><strong>Context Efficiency:</strong> By only loading instructions when needed, you save thousands of tokens on every prompt, keeping your context window clean for actual code.</li><li><strong>Architectural Guardrails:</strong> You can define a skill that enforces your company’s specific design patterns. If a developer asks Claude to “Build a new UI component,” Claude will pull the “UI-Standard” skill and follow the rules automatically.</li><li><strong>Tool Integration:</strong> Skills allow Claude to bridge the gap between “knowing” and “doing.” It can trigger local tests, run linters, or even fetch data from an internal API via a helper script defined in the skill.</li></ul><h3>Practical Example: The “Zero-Bugs” Reviewer</h3><p>Instead of typing “Please check for bugs” every time, create a skill called reviewer.</p><p><strong>File:</strong> ~/.claude/skills/reviewer/SKILL.md</p><pre>---<br>name: code-auditor<br>description: Trigger this when asked to review code, PRs, or diffs.<br>---<br><br># Review Protocol<br>1. Identify any missing error handling (try/except blocks).<br>2. Verify that environment variables are used for secrets.<br>3. Check if the logic matches the project&#39;s existing React 19 patterns.</pre><p>Now, just type: claude &quot;Review my changes&quot;—and Claude will automatically invoke the <strong>code-auditor</strong> logic.</p><p><em>The future of AI isn’t better prompting; it’s better </em><strong><em>orchestration</em></strong><em>. Claude Skills allow you to build a library of expertise that stays with you across projects. They make the AI predictable, efficient, and, most importantly, truly useful for production-grade engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7014a53cea34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Custom MCP Servers for Your Internal Stack]]></title>
            <link>https://medium.com/@sohasarwar2000/building-custom-mcp-servers-for-your-internal-stack-b8db275281d9?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8db275281d9</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[model-context-protocol]]></category>
            <category><![CDATA[claude-ai]]></category>
            <category><![CDATA[mcp-protocol]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Tue, 05 May 2026 13:01:05 GMT</pubDate>
            <atom:updated>2026-05-05T13:01:05.164Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re using Claude for development, you’ve likely felt the “context wall.” You copy-paste logs, export database schemas, or upload PDFs of internal docs just to get an informed answer.</p><p>Anthropic’s <strong>Model Context Protocol (MCP)</strong> changes this. Instead of you bringing the data to the AI, MCP allows you to give Claude a “plug” into your actual infrastructure.</p><p>Here’s how to build a custom, local-first MCP server to connect Claude to your internal tools using Python and uv.</p><h3>The Architecture: Why MCP?</h3><p>Traditionally, connecting an LLM to a private database required building a complex RAG pipeline or a full-blown web app. MCP simplifies this into a client-server relationship: Claude (the client) talks to a local server (your code) that has the keys to your data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*010QZO3SEJau6XR7Iu3mxQ.png" /></figure><h3>1. The Setup (The uv Way)</h3><p>We’re using uv, the extremely fast Python package manager. It handles virtual environments and dependencies seamlessly, which is perfect for lightweight MCP servers.</p><pre># Install uv if you haven&#39;t<br>curl -LsSf https://astral.sh/uv/install.sh | sh<br><br># Initialize your project<br>mkdir internal-mcp-server &amp;&amp; cd internal-mcp-server<br>uv init<br>uv add &quot;mcp[cli]&quot; fastmcp</pre><h3>2. Building the “Internal Helper”</h3><p>Instead of a “Hello World,” let’s build a server that performs a read-only query on a production-mirror database. This gives Claude the ability to verify data structures or troubleshoot records in real-time.</p><p><strong>server.py</strong></p><pre>from mcp.server.fastmcp import FastMCP<br>import sqlite3 # Or your db driver of choice<br><br># Initialize FastMCP - it handles the protocol boilerplate for you<br>mcp = FastMCP(&quot;InternalDBHelper&quot;)<br><br>@mcp.tool()<br>async def query_inventory(product_id: str) -&gt; str:<br>    &quot;&quot;&quot;Queries the internal read-only database for stock levels.&quot;&quot;&quot;<br>    # In a real scenario, use environment variables for credentials<br>    conn = sqlite3.connect(&quot;read_only_prod_mirror.db&quot;)<br>    cursor = conn.cursor()<br>    <br>    try:<br>        cursor.execute(&quot;SELECT name, stock_count FROM inventory WHERE id = ?&quot;, (product_id,))<br>        result = cursor.fetchone()<br>        if result:<br>            return f&quot;Product: {result[0]} | Stock: {result[1]}&quot;<br>        return &quot;Product not found.&quot;<br>    finally:<br>        conn.close()<br><br>if __name__ == &quot;__main__&quot;:<br>    mcp.run()</pre><h3>3. Connecting it to Claude</h3><p>To make Claude “see” this tool, you need to edit your Claude Desktop configuration file.</p><ul><li><strong>macOS:</strong> ~/Library/Application Support/Claude/claude_desktop_config.json</li><li><strong>Windows:</strong> %APPDATA%\Claude\claude_desktop_config.json</li></ul><p>Add your server to the mcpServers object:</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;my-internal-helper&quot;: {<br>      &quot;command&quot;: &quot;uv&quot;,<br>      &quot;args&quot;: [<br>        &quot;--directory&quot;,<br>        &quot;/absolute/path/to/internal-mcp-server&quot;,<br>        &quot;run&quot;,<br>        &quot;server.py&quot;<br>      ]<br>    }<br>  }<br>}</pre><h3>The Impact</h3><p>Once you restart Claude, a small “hammer” icon will appear. You can now ask: <em>“Claude, check the stock for product ID 405 and tell me if we need to restock based on last week’s trend.”</em></p><p>Claude will:</p><ol><li>Recognize the need for the query_inventory tool.</li><li>Call your local Python script.</li><li>Receive the raw data and synthesize a professional answer.</li></ol><p>MCP isn’t just another API; it’s a way to turn an LLM into a specialized member of your engineering team. By building custom servers for your internal docs, Jira tickets, or DBs, you stop being a data-middleman and start being an orchestrator.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8db275281d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The “Oatmeal” Revolution: Why Everyone is Obsessed with Claude’s Design]]></title>
            <link>https://medium.com/@sohasarwar2000/the-oatmeal-revolution-why-everyone-is-obsessed-with-claudes-design-8bc1bb3f22eb?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bc1bb3f22eb</guid>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[claude-design-tool]]></category>
            <category><![CDATA[claude-design]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 18:51:03 GMT</pubDate>
            <atom:updated>2026-04-28T18:51:03.463Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of Silicon Valley, there is a specific brand of “cool” that has dominated for a decade. It’s the dark mode, neon-blue, brushed-aluminum aesthetic — the kind that makes you feel like you’re piloting a starship.</p><p>But lately, if you’ve scrolled through X (Twitter) or LinkedIn, you’ve likely seen something different. It’s beige. It’s soft. It’s full of serif fonts and subtle shadows. It looks less like a spaceship and more like a high-end Japanese stationery store.</p><p>This is the “Claude Design” aesthetic, and it’s quietly winning the AI war. Not with more parameters, but with a vibe.</p><h3>The Death of the “Robot” Aesthetic</h3><p>When we think of AI, we usually think of glowing brains or robotic arms. Anthropic, the creators of Claude, took a hard left turn. They embraced what designers are calling the <strong>“Oatmeal and Clay”</strong> palette.</p><p>Instead of stark #000000 black, they use deep charcoals. Instead of pure white, they use warm, textured off-whites. It’s a design choice that signals something very specific: <strong>Safety and Sophistication.</strong> By making the UI feel “analog,” they’ve managed to humanize something that is inherently non-human. It tells the user, <em>“I’m not a machine trying to replace you; I’m a thoughtful assistant here to help you think.”</em></p><h3>Fact #1: The “Artifacts” Pivot</h3><p>The biggest breakthrough in Claude’s design wasn’t a color — it was a layout. Before <strong>Artifacts</strong>, talking to an AI was like texting a ghost. You’d ask for code or a document, and it would disappear into the “scroll of doom” as the conversation continued.</p><p>Claude Design introduced the side-by-side workspace. It turned a “chat” into a “studio.” It was the first time an AI interface acknowledged that humans don’t just want answers; we want to <em>work</em> on things.</p><h3>Fact #2: Typography as a Personality Trait</h3><p>Most tech companies stick to safe, “techy” sans-serif fonts (think Inter or Roboto). Claude uses elegant serifs for its headings. In design psychology, serifs are associated with literature, history, and academia.</p><p>By choosing these fonts, the design team didn’t just pick a style — they gave Claude a “voice” before you even read a single word. It’s the visual equivalent of a British professor wearing a tweed jacket.</p><h3>Fact #3: Claude Design is now a Tool, not just a Look</h3><p>As of April 2026, “Claude Design” has moved beyond just the website aesthetic. Anthropic launched a dedicated <strong>Claude Design</strong> tool that can actually read your company’s codebase and “absorb” your brand.</p><p>It’s a fascinating flip: the AI that was famous for its own design is now helping teams maintain <em>theirs</em>. It can generate high-fidelity prototypes, presentations, and one-pagers that automatically inherit your team’s specific colors and components.</p><h3>Why It Matters</h3><p>We are currently in a period of “AI Fatigue.” Everything is starting to look the same — glowing gradients and “magic” stars.</p><p>The obsession with Claude’s design proves that in an era of infinite machine-generated content, humans are craving something that feels <strong>grounded.</strong> We don’t want more “magic.” We want tools that feel like they belong in our physical, analog world.</p><p>The “Oatmeal” revolution is here. And honestly? It’s a lot easier on the eyes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bc1bb3f22eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Skills: Turning AI Prompts into Real Workflows]]></title>
            <link>https://medium.com/@sohasarwar2000/claude-skills-turning-ai-prompts-into-real-workflows-7f63ff7abed9?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f63ff7abed9</guid>
            <category><![CDATA[claude-skills]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[claude-code-tips]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[claude-code-skills]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Thu, 12 Mar 2026 17:01:09 GMT</pubDate>
            <atom:updated>2026-03-12T17:01:09.071Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bdxh9WcanlNH2eBrNKE6IQ.png" /></figure><p>Most people still treat AI assistants like chatbots.</p><p>They write a prompt, get an answer, then repeat the process in the next conversation. But if you find yourself explaining the <strong>same workflow to Claude again and again</strong>, you’re missing a powerful feature: <strong>Skills</strong>.</p><p>Skills allow you to <strong>teach Claude a workflow once</strong> and let it apply that knowledge automatically whenever it’s relevant. Instead of re-prompting the model each time, you package your instructions into a reusable structure.</p><p>In this article, we’ll walk through the key ideas from Anthropic’s guide to building Claude skills — and show how you can design your own.</p><h3>What Is a Claude Skill?</h3><p>At its core, a <strong>Skill is just a folder with instructions</strong>.</p><p>It teaches Claude how to execute a repeatable workflow — generating reports, orchestrating tools, running research processes, or performing multi-step operations.</p><p>Instead of prompting the AI every time, you create a reusable blueprint.</p><p>A minimal skill looks like this:</p><pre>my-skill/<br>├── SKILL.md        # Required: the main instructions<br>├── scripts/        # Optional: helper scripts (Python, Bash, etc.)<br>├── references/     # Optional: documentation or guides<br>└── assets/         # Optional: templates or resources</pre><p>The only required file is <strong>SKILL.md</strong>.</p><p>Everything else simply supports the workflow. This structure turns prompts into something closer to <strong>software infrastructure</strong>.</p><h3>How Claude Decides When to Use a Skill</h3><p>Claude doesn’t load every skill into memory at once.</p><p>Instead, it uses a <strong>progressive loading system</strong>:</p><ol><li><strong>YAML Frontmatter</strong> — a short description that tells Claude when to use the skill.</li><li><strong>Skill Instructions</strong> — detailed workflow steps inside SKILL.md.</li><li><strong>External Resources</strong> — files in references/ or assets/, loaded only when needed.</li></ol><p>This approach prevents context overload while still allowing complex workflows.</p><p>Example frontmatter:</p><pre>---<br>name: blog-post-generator<br>description: Generate structured technical blog posts from outlines and research notes.<br>tools:<br>  - web-search<br>  - code-execution<br>---</pre><p>The <strong>description is critical</strong>.<br> If Claude doesn’t clearly understand when the skill applies, it won’t trigger it.</p><h3>Writing the Core Skill Instructions</h3><p>Inside SKILL.md, you describe the workflow step-by-step.</p><p>For example, imagine a skill for writing technical blog posts.</p><pre># Blog Post Generator Skill<br><br>## Goal<br>Generate a structured blog post from a topic or outline.<br><br>## Workflow<br><br>1. Understand the user&#39;s topic or outline.<br>2. Generate a blog structure:<br>   - Title<br>   - Introduction<br>   - Key sections<br>   - Conclusion<br>3. Expand each section with clear explanations.<br>4. Include code examples when relevant.<br>5. Ensure the tone is developer-friendly.<br>6. Return the final article in Markdown format.</pre><p>The key is <strong>specificity</strong>. Ambiguous instructions lead to inconsistent results.</p><h3>The Three Major Categories of Skills</h3><p>Most Claude skills fall into three categories.</p><h4>1. Document &amp; Asset Creation</h4><p>These skills generate structured outputs such as: blog posts, reports, design specs, presentations, spreadsheets</p><p>Example use case:</p><pre>Input: feature requirements<br>Output: frontend design spec</pre><p>You embed: templates, style guides, quality checks</p><h4>2. Workflow Automation</h4><p>These skills guide Claude through <strong>multi-step processes</strong>.</p><p>Example:</p><pre>Create account<br>→ Configure payment<br>→ Setup subscription<br>→ Send welcome email</pre><p>The skill ensures the steps always happen <strong>in the correct order</strong>.</p><h4>3. MCP Enhancement</h4><p>When used with the <strong>Model Context Protocol (MCP)</strong>, skills turn raw tool access into real workflows.</p><p>Think of it like this:</p><p><strong>MCP = tools</strong><br> <strong>Skills = instructions for using those tools</strong></p><p>Without skills, users see tools but don’t know what to do.</p><p>With skills, workflows become automatic.</p><h3>Design Patterns for Reliable Skills</h3><p>From real-world usage, several patterns work consistently.</p><h4>1. Sequential Workflows</h4><p>Best for tasks where <strong>order matters</strong>.</p><p>Example:</p><pre>Draft → Review → Revise → Finalize</pre><p>Include clear dependencies between steps.</p><h4>2. Multi-Tool Coordination</h4><p>Useful when combining multiple systems.</p><p>Example:</p><pre>Figma MCP → export assets<br>Drive MCP → upload files<br>Linear MCP → create tasks<br>Slack MCP → notify team</pre><p>The skill orchestrates the tools.</p><h4>3. Iterative Refinement</h4><p>Some outputs improve through cycles.</p><p>Example workflow:</p><pre>Draft<br>→ Validate<br>→ Improve<br>→ Re-validate<br>→ Final output</pre><p>This pattern is especially useful for writing, design, and analysis tasks.</p><h4>4. Context-Aware Tool Selection</h4><p>Sometimes the same task needs different tools depending on context.</p><p>Example:</p><pre>File &gt; 10MB → cloud storage<br>Code file → GitHub<br>Collaborative doc → Notion</pre><p>The skill defines the decision logic.</p><h3>Testing Your Skill</h3><p>Testing is one of the most overlooked parts.</p><p>You should test:</p><ul><li><strong>direct triggers</strong></li><li><strong>paraphrased requests</strong></li><li><strong>edge cases</strong></li></ul><p>Example tests:</p><pre>&quot;Write a blog post about vector databases&quot;<br>&quot;Create a developer article explaining vector DBs&quot;<br>&quot;Generate a technical article about embeddings&quot;</pre><p>The skill should activate for all relevant variations.</p><h3>Distributing Skills</h3><p>Once a skill works, you can share it.</p><p>Common approaches:</p><h4>Personal use</h4><p>Upload the skill in Claude settings.</p><h4>Team deployment</h4><p>Admins can distribute skills across a workspace with automatic updates.</p><h4>Open source</h4><p>Host the skill on GitHub and document how to use it.</p><h3>A Simple Pre-Launch Checklist</h3><p>Before publishing your skill:</p><ul><li>Folder name uses kebab-case</li><li>File is named exactly SKILL.md</li><li>YAML frontmatter is included</li><li>Description clearly explains <strong>what and when</strong></li><li>Instructions are specific</li><li>Error handling is included</li><li>Trigger tests pass</li></ul><p><strong>AI is moving from prompts to structured workflows.</strong></p><p>If you’re building agents, automation systems, or AI-powered tools, learning to design skills is one of the fastest ways to move from <strong>experimental prompts to reliable systems</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f63ff7abed9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Your Code with Claude Code’s Code-Simplifier Agent]]></title>
            <link>https://medium.com/@sohasarwar2000/simplifying-your-code-with-claude-codes-code-simplifier-agent-92b9c273d039?source=rss-efb49a72b8e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/92b9c273d039</guid>
            <category><![CDATA[code-simplifier]]></category>
            <category><![CDATA[claude-code-simplifier]]></category>
            <category><![CDATA[code-simplifier-agent]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[claude-code-cli]]></category>
            <dc:creator><![CDATA[Soha Sarwar]]></dc:creator>
            <pubDate>Tue, 13 Jan 2026 19:36:58 GMT</pubDate>
            <atom:updated>2026-01-13T19:36:58.321Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced software development world, writing code that works is just the first step. Maintaining clarity, readability, and consistency in your codebase is equally critical, especially when multiple developers or AI-generated code are involved. This is where <strong>Claude Code’s code-simplifier agent</strong> comes in — a powerful tool designed to automatically clean, refactor, and simplify your code without changing its functionality.</p><h3>What is the Code-Simplifier Agent?</h3><p>The code-simplifier agent is a specialized sub-agent within Claude Code that focuses entirely on <strong>improving the quality and maintainability of code</strong>. Its primary goal is to make your code <strong>clearer, easier to understand, and more consistent</strong> while ensuring that the logic and output remain exactly the same.</p><p>Think of it as a digital code assistant that constantly reviews your work and refactors it in a human-friendly way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QdAEhwI_QFM4OLGcEOyF4w.png" /></figure><h3>Why You Should Use It</h3><p>Even experienced developers often write code that is functional but unnecessarily complex. Over time, this can lead to a codebase that is difficult to maintain, understand, or scale. The code-simplifier agent addresses these challenges:</p><ol><li><strong>Improves Readability:</strong> It restructures nested logic, consolidates repetitive patterns, and improves variable and function naming so that anyone can understand your code at a glance.</li><li><strong>Maintains Functionality:</strong> Unlike automated code formatters that focus only on style, the code-simplifier ensures your code <strong>behaves exactly the same</strong>.</li><li><strong>Applies Coding Standards:</strong> It can be configured to follow project conventions or specific coding guidelines, ensuring consistent quality across your team.</li><li><strong>Optimizes AI-Generated Code:</strong> When working with AI tools to generate code, this agent can clean up output, making it production-ready with minimal manual intervention.</li><li><strong>Reduces Cognitive Load:</strong> Simplified code is easier to debug, extend, and review — saving time for you and your team.</li></ol><h3>Key Features</h3><ul><li><strong>Preserves Original Behavior:</strong> All logic, outputs, and processes remain intact.</li><li><strong>Enhances Consistency:</strong> Applies coding patterns and standards automatically.</li><li><strong>Simplifies Complexity:</strong> Reduces nested loops, redundant statements, and overly complicated structures.</li><li><strong>Supports AI Workflows:</strong> Perfect for cleaning AI-generated code for human readability and maintainability.</li><li><strong>Saves Tokens in AI Workflows:</strong> Cleaner code reduces token usage when Claude reads or processes your code in future sessions.</li></ul><h3>How to Install and Use the Code-Simplifier Agent</h3><p>Installing and activating the code-simplifier agent in Claude Code is straightforward. Here’s a quick guide:</p><pre># Update Claude plugins marketplace<br>claude plugin marketplace update claude-plugins-official<br><br># Install the code-simplifier plugin<br>claude plugin install code-simplifier<br><br># Restart the session to activate the plugin<br>claude session restart</pre><p>Once installed, you can invoke the agent within a Claude Code session to automatically simplify any block of code or even your entire project. For example:</p><pre># Example pseudo-command inside a Claude session<br>/simplify code</pre><p>The agent will analyze the provided code, refactor it for clarity, remove unnecessary complexity, and return a cleaner version without altering functionality.</p><h3>When to Use It</h3><ul><li>After long coding sessions where the code has become messy.</li><li>Before submitting pull requests to ensure your code is readable and consistent.</li><li>After generating code with AI models to make it production-ready.</li><li>During refactoring to standardize coding patterns across your project.</li></ul><p>By integrating the code-simplifier into your workflow, you reduce technical debt and ensure your codebase remains maintainable over time. It’s like having an experienced developer reviewing your code, every time you write or modify it.</p><h3>Conclusion</h3><p>The Claude Code code-simplifier agent is a game-changer for developers who value <strong>clean, readable, and maintainable code</strong>. Whether you’re working alone, collaborating with a team, or refining AI-generated code, this agent streamlines the process of keeping your code understandable and consistent. In a world where complexity grows faster than clarity, a tool like this is not just convenient — it’s essential.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92b9c273d039" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>