ArchDocs
Start free

Generate a wiki from code

Point ArchDocs at a repository, review the suggested pages, then get a wiki whose statements cite the code.

A new engineer joining a team that owns a large service often starts by reading code and asking whoever is free. Generation gives them a starting wiki instead. ArchDocs reads a repository, suggests a set of pages, and writes them after you approve the outline. Statements can cite the files and lines they came from.

Start a generation

Open the New menu and select Generate from code. You can also start from an empty space, which offers Generate docs from code, or from the prompt that appears after you create a space.

Choose where the code comes from:

  • Select Connect GitHub to pick a public or private repository. ArchDocs reads only the repositories you allow when installing the GitHub App.
  • Paste a Public GitHub URL. A URL with /tree/<branch>/<path> fills in the branch and folder.
  • Select Upload a ZIP for a project folder if you can't install the GitHub App. A ZIP can be up to 100 MB compressed, 20,000 archive entries and 500 MB unpacked. ArchDocs stores the whole archive you upload, including files the file filter leaves out, for 30 days so the run can read it, then deletes it. While it's stored it counts toward your organization's storage.

Generating from GitHub works on every plan.

Choose what to read

On the repository step:

  1. Pick the repository. Leave Branch empty for the default branch, or enter one and select Check branch.
  2. Under What to read, choose The whole repository or One folder or service.
  3. Under Save in, choose My docs or a space.
  4. On Business and Enterprise, add Instructions of up to 4,000 characters, such as who the docs are for or what to leave out. The instructions apply to the outline and to every page.

Which files are used

ArchDocs chooses which files to use by path and file name. It leaves out:

  • Dependency, build and tool folders such as node_modules, vendor, dist, build, target, .next, coverage, __pycache__, .venv and .git.
  • Lockfiles such as package-lock.json, pnpm-lock.yaml, poetry.lock and go.sum.
  • Images, fonts, archives, audio, video, PDFs, compiled binaries, source maps and minified JavaScript.
  • Files named like credentials: .env and .env.* (but not .env.example, .env.sample or .env.template), .npmrc, .netrc, credentials.json, id_rsa and id_ed25519 keys, and .pem, .key, .p12, .pfx, .crt and .cer files.
  • Any single file over 1 MB.

Files left out by the filter are never sent to the AI model, but they are still part of what you provided: they are in a GitHub checkout and in an uploaded ZIP. The filter goes by name, not by content. A token pasted into an ordinary source file such as settings.py is used like any other code. Remove secrets from the code before you generate, or choose a folder that doesn't contain them.

Review the outline

ArchDocs reads the source and suggests pages grouped into sections. Nothing is written until you approve the outline. On the Review your outline screen you can:

  • Turn pages on or off.
  • Rename a page or a section.
  • Move a page to another section, to No section or to a New section.
  • Add a page that wasn't suggested with Add a page.

Pages marked Little to go on have thin source material and start switched off. The screen shows the commit that will be read. Select Generate N pages to start writing.

While it runs

The run page shows how many pages are ready, and, for each page, its coverage gaps and how many citations were removed. You can close the tab. ArchDocs emails you a link when the run finishes with ready pages. Cancel generation stops the run and keeps any pages already written.

What you get

The result is a wiki. Its home page is an overview with an In this wiki list and a What this wiki covers section. That section says how many source files the pages draw on, what isn't fully covered and which pages you switched off. Pages are grouped by the sections from the outline. Diagrams that belong to a page appear at the top of that page. Large topics are split into several pages.

How citations are checked

Each citation carries a short quote from the code. ArchDocs checks that the quote appears in the cited lines and that the range is under 40 lines. If it doesn't, ArchDocs removes the statement and records a coverage gap, such as "A statement citing src/cache.py lines 40-52 was removed because the cited lines do not support it". Statements without a citation are kept as written. Citations that pass appear as numbered markers. Select one to see the cited lines, and read the full list in the Sources block at the end of the page. A page embeds at most four code excerpts of up to 30 lines each.

A citation shows that the quoted text is in the cited lines. It doesn't show that the statement draws the right conclusion from them or that the page covers everything about the topic, and generated pages start without an owner or a verification. Read page trust before treating a generated wiki as reviewed documentation.

Plans and credits

FreeTeamBusiness and Enterprise
GenerationsFirst wiki free, up to 15 pagesUses AI creditsUses AI credits
Larger or later runsPay with AI creditsYesYes
GitHub repository sizeUp to 5,000 files and 20 MB of code read per run, unless paying with creditsNo file or size limit for connected repositoriesNo file or size limit for connected repositories
InstructionsNoNoYes
Redo with AINoNoYes

An uploaded ZIP can be up to 100 MB compressed, 20,000 archive entries and 500 MB unpacked on every plan, including runs paid with credits. A public repository URL is downloaded as an archive and has the same limits. Files over 1 MB are skipped on every plan, and an outline has at most 40 pages.

On Free, an outline with more than 15 pages asks you to turn some off, use credits for the run or buy credits. A run that fails or is cancelled before any page is ready gives the free generation back. Free workspaces can pay for a run with purchased credits by ticking Pay for this run with credits. Pages from a free run or a credit-paid run don't count toward the Free page allowance.

A paid run shows an estimate before it starts, at about 45 credits per page. If the workspace runs out of credits partway through, the run stops, keeps the ready pages and offers Continue once you add credits. See AI credits for prices and spending order.

Redo a page or section

On Business and Enterprise, open Page actions on a generated page and select Redo page with AI, or use Redo with AI beside one of its sections. Under What should change?, describe the change in up to 2,000 characters, such as "go deeper on how compaction chooses files". ArchDocs shows the Current and Proposed text side by side, with how many citations were kept and removed. Select Accept to apply it, Try again or Discard. The page changes only when you accept. Pages generated from an uploaded ZIP can't be redone; generate again from a new upload. Redo uses AI credits.

What is uploaded, kept and sent

What you provide:

  • From GitHub, ArchDocs clones the repository at one commit into an isolated sandbox with a read-only token. The sandbox is deleted when the outline is ready for review and again when the run finishes, and never lives longer than 50 minutes. File contents aren't stored on the run.
  • From a ZIP, ArchDocs stores the archive you uploaded, unchanged, for 30 days, then deletes it.

What is sent to the AI model:

  • To suggest the outline, ArchDocs sends repository metadata (languages, manifest and dependency names, module and file paths and sizes) and the first 4,000 characters of the root README. The README excerpt is the only file text sent at this step.
  • To write each page, ArchDocs sends the full text of the selected files that page draws on, up to about 240,000 characters per page, and excerpts of files that don't fit. Files left out by the filter are never sent. Across many pages, a large part of the repository can be sent.
  • Generation requests go to Anthropic's Claude models. ArchDocs doesn't train models on your code.

What stays afterwards:

  • The run keeps the repository, commit, folder, instructions, outline, the counts of files it left out and its coverage gaps.
  • Pages keep the code they cite. Each citation stores the cited lines, and a page can embed up to four excerpts of 30 lines. Those lines stay in the wiki after the checkout or ZIP is gone, and anyone who can read the page can read them.