Field noteOct 13, 20262 min read1 source

How We Made Our Docs Test Themselves

In one minute

LangChain’s documentation case shows a division of labor between agent instructions and continuous integration.

The thesis is: Documentation examples become more maintainable when migration into runnable artifacts is paired with recurring execution checks, rather than left as static inline text.

The source reports that Deep Agents CLI used a repository skill to move inline examples into standalone files, add setup and teardown, lint code, mark snippets, run examples, and regenerate documentation snippets. It also says a GitHub Action runs tests regularly and creates tickets on failure. The mechanism is: A reusable skill encodes the migration procedure, while CI repeatedly tests the resulting artifacts and surfaces failures for follow-up. The why_now is: LangChain says rapid changes to its product, models, SDKs, and practices make stale examples a recurring risk.

The first implication is: Teams can treat documentation examples as executable assets in the same quality loop as application code. This does not establish that every documentation system can adopt the workflow unchanged, nor does the post quantify reliability gains; the evidence boundary is: This is LangChain’s account of its own implementation, without comparative results or independent validation. The first watch condition is: Whether LangChain reports that recurring checks are maintained at scale and how often failures lead to corrected documentation rather than merely tickets. This starts a distinct analytical record because no prior New Runtime record is supplied; the article offers a specific implementation to track, not a basis for inventing continuity with another record.

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1langchain.com/blog/our-docs-test-themselves
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicAgentsExplore the agents topic hub.
  2. 02topicVerificationExplore the verification topic hub.
  3. 03topicDeveloper ToolsExplore the developer-tools topic hub.
  4. 04archiveField NotesOpen the latest editorial analysis.
  5. 05sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract