OpenWiki: CLI that writes and maintains agent documentation for your codebase
TL;DR Highlight
CLI turns your codebase into a linked Markdown wiki for agents and updates only what changed.
Who Should Read
Developer whose coding agent keeps relearning the repo and who wants docs generated and kept current automatically
Core Mechanics
- Codebase becomes a linked Markdown wiki
- It is saved as plain Markdown in the repo's openwiki/ folder, which you own.
- Coding agents use it to understand the repo and answer questions.
- Only changed parts get updated
- Each fact (Claim) is tracked back to source evidence so updates focus on changes.
- Clean updates skip model calls and leave the wiki untouched.
- Runs inside the agent you already use
- Install it into Codex, Claude Code, OpenCode, Cursor, GitHub Copilot CLI and more via integrations install.
- It uses the agent's authenticated model session, so no separate provider setup.
- Search across linked repo wikis
- openwiki link groups repos into a workspace so search spans the whole service.
- openwiki_search finds ranked results and openwiki_read fetches the sections needed.
- It manages AGENTS.md too
- Each code run rewrites only the OPENWIKI:START to END block in the root AGENTS.md.
- It also refreshes CLAUDE.md if one exists and leaves the rest alone.
- CI can keep it fresh on a schedule
- Example files exist for GitHub Actions, GitLab CI and Bitbucket Pipelines.
- The job opens a docs PR when the wiki changes.
Community Reactions
- Opinion that the name sounds human-oriented
- Commenters said wiki implies human collaboration and a name like Agent Wiki would be better.
- Pushback that it is just a prompt wrapper
- One said it is a thin TypeScript CLI around prompts and could be a SKILL.
- Another said a good prompt or skill gives similar results and the rest is for maintenance.
- Concern that docs can hurt performance
- A commenter wants evidence it beats having only AGENTS.md and letting agents explore.
- They noted verbose, duplicated or outdated docs often make agents perform worse.
- Experience that wiki upkeep is hard
- One commenter found maintaining high-quality structure and writing took more effort than expected.
- Another suggested giving the agent an LSP or code-intel MCP instead.
How to Apply
- Install OpenWiki into your agent and build a wiki
- Run npm install -g openwiki on Node.js 22.22.0 or newer.
- Run openwiki integrations install claude (or your agent of choice).
- Restart the agent and ask it to initialize the wiki on a small repo.
- Compare agent answers with and without the wiki
- Ask the agent the same 5 questions before and after generating the wiki.
- Compare answer accuracy and token usage to decide whether to keep it.
- Steer the docs with openwiki/INSTRUCTIONS.md
- Write repo-specific guidance in this file.
- It is preserved even when you rerun --init.
- Automate update PRs with scheduled CI
- Copy openwiki-update.yml into .github/workflows/.
- Pin versions and the provider, and restrict add-paths to generated docs.
Try It
# Paste into a coding agent with OpenWiki installed (e.g. Claude Code)
Initialize this repository's OpenWiki from the current source and tests.
# When asking questions after the wiki exists
Search this repository's OpenWiki for {{topic}}, then read the relevant sections.
# To refresh after code changes
Update this repository's OpenWiki for changes since its last successful run.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques