HeadlinesBriefing favicon HeadlinesBriefing.com

OpenWiki Automates Agent Documentation for Codebases

Hacker News •
×

Langchain-ai's new OpenWiki CLI tool automates the creation and maintenance of agent documentation directly from your codebase. This command-line interface initializes documentation in an `openwiki/` directory. If the directory exists, it refreshes documentation based on repository changes, ensuring accuracy without manual effort. The tool integrates seamlessly with Git for continuous updates.

OpenWiki offers an interactive mode for ongoing documentation refinement or a one-shot `-p` flag for immediate output. It automatically appends instructions to `AGENTS.md` or `CLAUDE.md` files, guiding coding agents to reference the generated context. Configuration occurs locally, saving API keys and model preferences to `~/.openwiki/.env`.

Support extends to multiple inference providers including OpenAI, Anthropic, and Fireworks, with options for custom model IDs. Users can also optionally link their runs to Lang Smith for tracing. This provides a practical solution for keeping AI agent documentation synchronized with evolving codebases.