Skip to main content
Factory Wiki generates comprehensive, structured documentation for your repositories. It analyzes your codebase and produces a browsable wiki with architecture overviews, module breakdowns, and cross-linked pages — then keeps it current as your code changes.

Generate

Run /wiki in the CLI to produce a wiki from any repo

Auto-refresh

Run /install-wiki to refresh the wiki on every push

Browse

Read, search, and export wikis in the Factory app

How it works

1

Generate from the CLI

Run /wiki inside a Droid session. Droid analyzes the codebase and produces a set of structured markdown pages covering architecture, modules, APIs, and conventions.
2

Upload to Factory cloud

The generated wiki is uploaded to Factory’s cloud, where it becomes browsable at app.factory.ai/wiki. Each upload is versioned so you can compare changes over time.
3

Sync to GitHub wiki

For GitHub-hosted repositories, the wiki is automatically pushed to the repo’s built-in wiki tab. Internal links are rewritten, a sidebar is generated, and the content is pushed to {repo}.wiki.git.
4

Keep it current

Run /install-wiki to create a CI workflow (GitHub Actions or GitLab CI) that regenerates the wiki on every push to the default branch — or trigger a refresh from the web UI at any time.

GitHub wiki sync

When you generate a wiki for a GitHub-hosted repository, Factory optionally syncs the content to GitHub’s built-in wiki tab. Your team can browse the wiki directly from the repository page without visiting the Factory app. For details on how the sync works, see Generate a Wiki.
GitHub requires the wiki to be initialized before Factory can sync to it. If you haven’t used the wiki tab before, create the first page manually at https://github.com/{owner}/{repo}/wiki, then re-run /wiki.

Enterprise controls

Wiki Cloud Sync

Organizations that need to prevent wiki content from being stored in Factory’s cloud can disable Wiki Cloud Sync. This is an org-level enterprise control available at app.factory.ai under Settings > Enterprise Controls > Wiki. When Wiki Cloud Sync is disabled:
  • All wiki API endpoints return 403 for your organization
  • The /wiki command will not upload content to Factory cloud
  • GitHub wiki sync is also skipped from the CLI
  • The web viewer at app.factory.ai/wiki shows no content
Wiki Cloud Sync is enabled by default. Only org managers can toggle this setting. For more on how enterprise controls work, see Hierarchical Settings & Org Control.

What’s next

Generate a Wiki

Step-by-step guide to producing your first wiki

Set Up Auto-Refresh

Install a CI action that keeps your wiki current

Browse in the Web App

Search, read, and export your wiki documentation

Enterprise Settings

Learn how org-level controls govern wiki and other features