awiki is a CLI for exploring and maintaining flat-file Markdown wikis.
It helps answer practical wiki-gardening questions:
- Which pages are isolated from the rest of the wiki?
- Which missing pages are linked often enough that they should probably exist?
- How do two pages connect through the link graph?
- Which pages look like refactoring candidates because they are too long, too thin, too distant, or near-duplicates?
awiki is optimized for a folderless wiki: every note lives in the same
directory, uses Markdown plus Obsidian-style front matter, and is structured
through links instead of folders or tags. Nested layouts are supported too via
-recursive, where documents are identified by repo-relative path.
brew install corca-ai/tap/awikiOther install paths are documented in Install.
Run from a wiki directory:
awiki lint
awiki format
awiki suggest
awiki wanted
awiki links "Graph theory"
awiki path "Probability" "Bayes theorem"Or point at a wiki explicitly:
awiki suggest -root ~/wiki
awiki lint -root ~/wiki -recursivelint— fail on mechanical quality problems such as orphans, islands, and context-free link-only linesformat— rewrite Markdown files with awiki's default stylesuggest— print non-failing refactoring hints such as sampled long graph paths, missing-page pressure, long pages, short stubs, and near-duplicateswanted— rank unresolved links by how much the wiki already points at themlinks— inspect inbound, outbound, and missing links for one documentgraph— print link counts for every document, every link, or both as JSONpath— print the shortest path between two documentsrename— rename a document and rewrite links that point to it
Most output is line-oriented and grep-friendly. Document lines usually look like
[[Page Name]]: First visible line, so the result is useful both for humans and
for coding agents.
- Agent Guide — project doc index and codebase guide
- Overview — user-oriented tour and command selection guide
- CLI Reference — command behavior, flags, output, and examples
- Wiki Model — document identity, link parsing, and graph rules
- Install — Homebrew, install script, Cargo, and source builds
Released under the MIT license.