Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

LangChain 21 min read Case study mediumAdept

How We Built Our Design Agent

Content Studio, LangChain's Slack-based design agent, produces on-brand videos, graphics, slide decks and UI recreations entirely as code, running on Managed Deep Agents with a per-thread LangSmith Sandbox. Quality came from encoding designers' principles, anti-slop guardrails and the reasoning behind feedback rather than from prebuilt components. A 115-component design system was largely discarded once a stronger model arrived, because rules that compensate for model weaknesses expire. Motion runs on HyperFrames (web-page video editing with GSAP) and a custom canvas engine with motion blur, both rendering deterministically by timestamp so frames can be inspected and rendered in parallel. Median request cost fell from about $8 to 50 cents, and the harness is open-sourced.

Related posts

  • How We Built LangChain’s Paid Media Agent

    LangChain mediumAdept

    LangChain's Paid Media Agent is a Slack-resident Deep Agent that merges ad-platform data with warehouse pipeline data, produces weekly per-platform PDF reports, answers follow-up questions, and proposes campaign changes for human approval. It runs in a sandboxed microVM. Context is split into layers: a short map-like system prompt, progressively disclosed skills, a company wiki, live tools and deterministic code. Moving calculations into Python and keeping the model for judgment cut a reporting run from 18 minutes and about $3 (3.9M tokens) to 85 seconds, roughly 40x cheaper. Other lessons: merge separate Slack and scheduled graphs into one runtime with per-entry-point capability profiles, and define a source of truth per metric instead of forcing one normalized schema.

  • Harness design for long-running apps

    Anthropic Engineering mediumAdept

    A GAN-inspired multi-agent harness separates generation from evaluation so Claude can produce distinctive frontend designs and build full-stack apps autonomously over multi-hour sessions. For frontend work, a generator and a Playwright-equipped evaluator iterate 5-15 times. The evaluator grades against four weighted criteria (design quality, originality, craft, functionality) and is calibrated with few-shot score breakdowns, which pushes output away from generic 'AI slop'. For full-stack apps, the harness has three agents: a planner expands a short prompt into a spec, a generator builds in sprints against negotiated sprint contracts, and an evaluator QA-tests the running app with hard per-criterion thresholds. A retro game maker built this way cost about $200 over 6 hours, against $9 and 20 minutes for a solo agent, and produced dramatically better results; tuning a standalone skeptical evaluator proved more tractable than making a generator critique itself.

  • How our GTM Agent builds consistent, high-quality sales artifacts

    LangChain mediumAdept

    LangChain's internal GTM Agent generates sales artifacts such as account plans, proof-of-value documents, proposal decks and onboarding plans, producing over 100 per week across 12 weeks. Most of its quality comes from business context rather than prompt tuning: sales-stage gates, leadership-owned templates, Salesforce and call data, and a brand kit baked into a sandbox image. The pipeline fills templates with python-pptx, renders them through LibreOffice to rasterized pages for visual self-review, then files native Google docs and hands them off in Slack. A stop rule (ship once one review finds no real defect) cut a one-pager run from 18 to 7 minutes, and deals with a sent artifact advanced 47% of the time versus 16% for matched deals.

  • Palette: teaching a small model to build decks in your design language

    Hugging Face mediumAdept

    Palette fine-tunes a 20B open-weight model with a single LoRA adapter to generate slide decks in a specific design language (IBM Design Language), splitting the work into a designer role that writes a structured JSON brief and a coder role that writes per-slide pptxgenjs code in parallel (about 6–7× faster). Training data is ~1000 synthetic decks (~10,000 slides) from a large open teacher, with counterfactual reasoning traces and render-check-repair loops. Reference decks fixed hallucination where prompt rules did not, and designer examples had to be oversampled 5×. A geometry-checking harness keeps editor-model rewrites only when they measurably improve a slide, adding 3.5 points on PresentBench, where Palette ranks first on Economics and Education and second overall (59.7 vs NotebookLM's 60.8).

  • You Should Write An Agent

    Fly.io mediumAdept

    An LLM agent is just a loop around a stateless chat API: keep a list of messages, replay it on every call, and when the model emits a function_call, run the tool and append its output. A few dozen lines of Python against the OpenAI Responses API produce a working tool-using agent that decides on its own to ping multiple Google hosts. MCP is barely a technology, just a plugin interface for agents you don't control, and context engineering is a real, legible programming problem of budgeting tokens across sub-agents, tools and summaries. Agent design leaves open problems around nondeterminism, grounding, inter-agent interchange formats and cost, and each design iteration takes about 30 minutes, so engineers should build one themselves.

The quest for software engineering knowledge.

Look:
Layout: