← Back to glossary
+Suggest a term
Tool·Builder Tools·Added today

OpenWiki

Also known as: langchain openwiki, open wiki CLI, openwiki CLI

An open-source CLI from LangChain that automatically generates and maintains documentation for your codebase, formatted specifically for AI coding agents to read. Keeps agents oriented in large repos without stuffing everything into a single instruction file.

When a coding agent opens a large repository it has never seen before, it has to figure out how things connect: which files matter, what the naming conventions are, how the data flows, where the tests live. The naive solution is to dump everything into one big context file. OpenWiki's approach is different: it builds a structured wiki of markdown pages, organized the way an LLM parses information, and keeps that wiki current as the codebase changes.

Released by LangChain in July 2026, OpenWiki runs as a CLI (command-line interface, a text-based tool you invoke from your terminal). You install it, run the init command, and it generates an openwiki directory with structured files covering architecture, conventions, and key call chains. It can also pull in external context sources like Notion, Gmail, and GitHub via connectors, and it auto-updates via GitHub Actions so the documentation never drifts from the actual code.

OpenWiki is a practical implementation of the LLM Wiki pattern (the idea that agents should read a compiled, maintained wiki rather than raw source files every time). It updates your AGENTS.md or CLAUDE.md to point agents at the wiki instead of relying on RAG (retrieval-augmented generation, where chunks of raw docs are fetched at query time). For teams running Claude Code, Cursor, or similar agentic coding tools on maturing codebases, it addresses a real failure mode: agents that keep making the same wrong assumptions because they have no durable picture of how the codebase is organized.

This definition is AI-generated and refreshed weekly. It may contain inaccuracies. Use your own judgment, especially for production decisions.
Related terms
LLM WikiContext engineeringAGENTS.mdCLAUDE.mdLiving Spec