org-wiki
Turn a GitHub organization into a searchable engineering wiki that updates itself when pull requests merge.
Point org-wiki at your GitHub org using your existing gh auth login. It reads your repositories, builds a plain-Markdown wiki of your APIs, database tables, queues, CI runners, and env var names, indexes everything locally on your machine, and serves a Web UI plus an MCP server for Cursor and Claude Code.
No SaaS account. No cloud vector database. Secret values are never copied.
What you need
- Python 3.10 or newer (
uvorpipxrecommended, plainpython3works too) gitgh(GitHub CLI, logged in withgh auth login) — or aGH_TOKENenvironment variable
Install
Run instantly without installing via uvx:
uvx org-wiki
Or install globally (org-wiki and orgwiki commands):
uv tool install org-wiki
pipx install org-wiki
pip install org-wiki
One-line shell installer (auto-detects uv, pipx, or isolated ~/.local venv):
curl -fsSL https://raw.githubusercontent.com/sharifli4/org-wiki/main/install.sh | bash
Quickstart (Browser Easy Mode)
Create an empty folder for your company's wiki and run org-wiki (or orgwiki):
mkdir acme-wiki && cd acme-wiki
org-wiki
Open http://127.0.0.1:8787.
org-wikidetects yourgh authsession and lists every GitHub organization (and personal account) you belong to.- Pick your organization and check the repositories you want tracked.
- Click Build & Index Wiki.
org-wiki shallow-clones default branches into a temporary folder, writes the Markdown catalogs, builds a local SQLite + ONNX semantic index, and opens the search and Q&A screen.
Quickstart (Terminal Mode)
If you prefer the command line over the browser wizard:
mkdir acme-wiki && cd acme-wiki
org-wiki init --org your-github-org
Then search or ask questions offline:
org-wiki search "billing_invoices"
org-wiki ask "Which service publishes invoice events and which table stores them?"
Single-Box Docker Mode
Run the whole app inside one container (includes git, gh, and the pre-downloaded ONNX embedding model):
git clone https://github.com/sharifli4/org-wiki.git
cd org-wiki
GH_TOKEN="$(gh auth token)" docker compose up -d
Open http://127.0.0.1:8787. Everything is stored in ./wiki-data.
Connect Cursor & Claude Code (MCP)
Give your AI coding agent direct access to wiki_search, wiki_ask, wiki_read_doc, wiki_list_docs, and wiki_sync:
org-wiki mcp --install cursor
org-wiki mcp --install claude-code
Or click Connect IDE (MCP) in the top bar of the Web UI.
What gets created in your workspace
acme-wiki/
├── org-wiki.toml # Tracked org, excluded repos, domain groupings
├── INDEX.md # Entry table routing engineers & AI agents
├── 00-infra-and-access/ # Servers, runners, dashboards, open questions
├── 01-system-map/
│ ├── company-overview.md # Cross-repo topology map
│ └── repo-catalog.md # Auto-harvested active & archived GitHub repos
├── 02-runbooks/ # Step-by-step operational guides
├── 03-features/ # End-to-end feature mechanics
├── 04-decisions/ # Architecture Decision Records (ADRs)
├── 05-reference/ # Auto-harvested from code (never hand-edit)
│ ├── http-apis.md # NestJS, Express/Fastify, Next.js, FastAPI/Flask/Django, Go, Spring
│ ├── data-models.md # Prisma, TypeORM/MikroORM/Sequelize, SQLAlchemy/Django, GORM, SQL
│ ├── messaging-and-queues.md # Exchanges, queues, topics, cross-repo mismatches
│ ├── ci-workflows.md # GitHub Actions workflows & runs-on labels
│ └── env-vars.md # Variable names from .env.example (values stripped)
└── .github/workflows/sync-wiki.yml # Keeps the repo updated automatically on GitHub
How auto-sync works on GitHub
org-wiki uses a two-speed update model so factual catalogs never hallucinate and architecture prose stays reviewed by humans:
- Publish the wiki repo to your GitHub org:
org-wiki publish-repo - Add
WIKI_ORG_TOKENon<org>/<wiki-repo>(read access to org repos + read/write contents and pull requests on<wiki-repo>), plus an org secretWIKI_DISPATCH_TOKENscoped to<wiki-repo>. - Connect your product repositories (dry-run first, then
--applyto open onboarding PRs):org-wiki connect-repos org-wiki connect-repos --apply
Whenever a PR merges in a connected repository:
- Job 1 (
harvest-to-main) deterministically re-harvests05-reference/*and01-system-map/repo-catalog.mdfrom GitHub default branches and commits straight tomain. - Job 2 (
draft-feature-pr) reads the merged PR diff and opens a human-reviewed PR on<wiki-repo>only when feature mechanics, runbooks, system maps, or ADRs changed.
Commands
Both org-wiki and orgwiki run the same CLI:
| Command | Description |
|---|---|
org-wiki |
Start Web UI on http://127.0.0.1:8787 (setup wizard + search + Q&A + editor) |
org-wiki init --org <owner> |
Interactive or non-interactive workspace setup via gh auth |
org-wiki search "<query>" |
Offline hybrid search (ONNX BAAI/bge-small-en-v1.5 + SQLite FTS5 BM25) |
org-wiki ask "<question>" |
Cited Q&A (synthesizes prose when an LLM is configured, offline hits otherwise) |
org-wiki harvest |
Re-harvest routes, tables, queues, workflows, and env var names from GitHub |
org-wiki sync |
Pull or re-harvest latest changes and incrementally update the local index |
org-wiki index [--force] |
Build or rebuild the local SQLite + ONNX index |
org-wiki mcp [--install cursor|claude-code] |
Run stdio MCP server or register it in your editor |
org-wiki publish-repo [--public] |
Create <org>/<wiki-repo> on GitHub via gh and push |
org-wiki connect-repos [--apply] |
Open PRs across org repos installing merge webhooks & AI rules |
org-wiki doctor |
Check Python, gh auth, git, embedding cache, and LLM configuration |
Optional AI answer synthesis
Search and MCP retrieval run 100% offline with zero API keys. If you also want synthesized prose answers with inline [path] citations in org-wiki ask, the Web UI, and wiki_ask, set any one of these in .env or your shell:
- Anthropic:
ANTHROPIC_API_KEY=sk-ant-... - OpenAI / compatible:
OPENAI_API_KEY=sk-...(optionalOPENAI_BASE_URL=...) - Local Ollama:
OLLAMA_MODEL=llama3.2(optionalOLLAMA_HOST=http://127.0.0.1:11434) - GitHub Models (reuses
gh auth):ORGWIKI_USE_GH_MODELS=1
Tests
python3 -m unittest discover -s tests -v
License
MIT
Metadata
Release files for org-wiki 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| org_wiki-0.1.0.tar.gz | 58.1 kB | With provenance | Details for org_wiki-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| org_wiki-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for org_wiki-0.1.0-py3-none-any.whl |
Total release size: 117.6 kB
Release files / org_wiki-0.1.0.tar.gz
| Download URL | org_wiki-0.1.0.tar.gz |
|---|---|
| Size | 58.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
293066b61ad3f35135029aa5d5880742d7ece5f6e0668cc6976a43c3c5ad57e9
|
|
BLAKE2b-256 checksum How to use checksums |
a33ab9cdfa6c90ed43df578123c2f4ca924ebe0333ef8d1c57c3ba6318ce13c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / org_wiki-0.1.0-py3-none-any.whl
| Download URL | org_wiki-0.1.0-py3-none-any.whl |
|---|---|
| Size | 59.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
152078d4742952fc24c2f02731b02643fd6b4d090e2f6fbd477f783841f66295
|
|
BLAKE2b-256 checksum How to use checksums |
ef8615e79c18a0dd78ac90b6e3277000f59abe3f03704213653f967aff129c7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for org-wiki 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for org_wiki-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.