Skip to content

codenib.wiki

Index-derived wiki generation for the DeepWiki-style demo.

Produces a per-repo page tree and source-grounded page content from the already-loaded BM25 / vector indexes — no LLM required. When an LLM is configured it can later refine the prose, but every code anchor here resolves to a real symbol span pulled from the indexes (no fabricated lines).

Modules:

Name Description
agent_wiki

Agent wiki pipeline: a DeepWiki-style, high-level conceptual wiki.

builder

Build a repo wiki (page tree + source-grounded page content) from indexes.

evidence

Grounding primitives for generated repository Wiki pages.

narrator

LLM-authored narrative layer for the wiki (DeepWiki-style prose).

outline

Stage 1 of the agent wiki pipeline: a high-level conceptual outline.

quality

Deterministic quality reports for generated repository Wiki pages.

Classes:

Name Description
WikiBuilder

Build wiki structure + content for one loaded repo bundle.

WikiBuilder

WikiBuilder(bundle, narrator: Narrator | None = None)

Build wiki structure + content for one loaded repo bundle.

Source code in codenib/wiki/builder.py
def __init__(self, bundle, narrator: Optional[Narrator] = None) -> None:
    # bundle: codenib.web.repo_registry.RepoBundle
    self._bundle = bundle
    self._entry = bundle.entry
    self._language = bundle.entry.language
    self._narrator = narrator or Narrator(enabled=False)
    self._symbols_cache: Optional[tuple] = None
    self._project_summary_cache: Optional[str] = None