---
title: "How We Made Our Docs Test Themselves"
description: "LangChain made its documentation code samples testable by delegating the migration to the Deep Agents CLI using a reusable skill file."
url: "https://swe.quest/articles/how-we-made-our-docs-test-themselves-5eac8e20fa6945ec"
canonical: "https://www.langchain.com/blog/our-docs-test-themselves"
source: "LangChain"
published: "2026-10-13"
difficulty: "medium"
kind: "How-to"
reading_minutes: 4
tags: ["documentation","ai-agents","testing","ci-cd"]
---

# How We Made Our Docs Test Themselves

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-10-13, 4 min read, How-to. Original: [https://www.langchain.com/blog/our-docs-test-themselves](https://www.langchain.com/blog/our-docs-test-themselves)

## Summary

LangChain made its documentation code samples testable by delegating the migration to the Deep Agents CLI using a reusable skill file. The skill instructs the agent to move inline code into standalone files under src/code-samples/{product}, add setup and teardown, lint, mark snippets with :snippet-start:/:snippet-end: tags, run the samples, and generate Mintlify snippet includes via Bluehawk. A GitHub Action then runs the samples regularly and opens tickets when one fails, so stale examples surface in CI rather than with readers.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Documentation](https://swe.quest/tags/documentation.md) (Engineering practices)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- CI pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- Markdown/MDX docs ([easy posts on Documentation](https://swe.quest/tags/documentation.md?difficulty=easy))

## Keywords

Deep Agents CLI, LangChain, Bluehawk, Mintlify, SKILL.md, GitHub Actions

## Related posts

- [Context Engineering Is Just Writing Things Down](https://swe.quest/articles/context-engineering-is-just-writing-things-down-529d8105d51bf0f4.md): Fly.io · 2026-02-23 · Medium · 5 min read · AI for coding, AI agents, Developer productivity
  Agent output quality depends more on project and environment context than on model capability, and that context can be built from plain files on disk.
- [Agent-driven development in Copilot Applied Science](https://swe.quest/articles/agent-driven-development-in-copilot-applied-science-57df9b7433878456.md): GitHub Engineering · 2026-03-31 · Medium · 9 min read · AI for coding, AI agents, Developer productivity, Evaluation, Testing
  A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.
- [Four minutes after midnight, Codex said the page was live](https://swe.quest/articles/four-minutes-after-midnight-codex-said-the-page-was-live-25ae19da11733480.md): Render · 2026-08-16 · Medium · 9 min read · AI for coding, AI agents, Code review, Developer productivity
  OpenAI's Dominik Kundel argues that with agentic delegation, code is no longer the bottleneck.
- [Agent experience and agent-led growth: a chat with Caelean Barnes](https://swe.quest/articles/agent-experience-and-agent-led-growth-a-chat-with-caelean-barnes-92e47c9e7361bcbe.md): Mux · 2026-11-03 · Easy · 21 min read · AI agents, AI for coding, Evaluation, Developer tools, Documentation
  Coding agents like Claude Code and Codex increasingly choose which developer tools get adopted, and Gauge measures that choice by running agents in sandboxes, checkpointing sessions, and testing variants of prompts, docs, skills and CLIs against success criteria over many trials.
- [Building effective agent automations](https://swe.quest/articles/building-effective-agent-automations-abcba7937b1d5df2.md): claude.dev · 2026-10-08 · Medium · 12 min read · AI agents, LLMs, Resilience
  A scheduled daily-brief agent built on Claude Managed Agents reads Slack channels and GitHub pull requests, tracks what changed since the last run, and posts a short brief to Slack.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
