Skip to main content

Repo Wiki

Generate structured repository documentation and keep project knowledge up to date as code changes.

Repo Wiki analyzes your project structure and implementation to generate structured documentation covering architecture, module relationships, and business workflows. It tracks code changes so Qoder CN can combine project knowledge with task context to understand the codebase, locate implementations, and assess change impact. Repo Wiki and Knowledge Cards provide project knowledge that agents can use as context during development tasks.
Qoder CN App Repo Wiki overview and documentation tree

Use cases

  • Understand architecture and implementation: Explore module responsibilities, service dependencies, and call chains. For example, ask which modules handle order creation.
  • Develop and troubleshoot: Review related implementations and constraints before adding features, fixing issues, or refactoring to narrow your code search.
  • Learn a project: Use the documentation tree to explore the overall structure, core workflows, and design decisions, helping new contributors get started.

Find a repository

  1. Open More in the sidebar and select Repo Wiki, or use its current location if you customized the sidebar.
  2. Search for the repository, then use Generation Status to show All, Generated, or Not generated projects.
  3. Switch between Grid view and List view when that makes the list easier to scan. Select Refresh to reload status.
If the entry is missing or you want it directly in the sidebar, see Customize sidebar navigation.

Generate Repo Wiki

  1. Open a repository that is marked Not generated, or select Go to generate.
  2. Choose English or 简体中文 under Language.
  3. Review the generation options:
    • Auto Update incrementally refreshes the Wiki when code changes.
    • Auto Export exports knowledge to the project's .qoder/repowiki directory after generation or updates.
    • Citation lets agents use the generated knowledge as task context.
  4. Select Generate.
Generation runs against the current codebase. Before starting, switch to the target branch and prepare the code and project documentation you want the Wiki to reference. The initial generation creates both Wiki pages and Knowledge Cards. After generation, search for or select a Wiki page on the left to read it on the right. Select Repo Wiki Overview to check the generation status, document count, and update time. Switch to the Knowledge cards view to explore the extracted project knowledge.

Updates and maintenance

  • Incremental updates: After committing code changes, select Update to refresh affected knowledge. Enable Auto Update to run incremental updates automatically. This feature compares commits and is available only for Git repositories.
  • Pause and resume: You can pause generation or an update and continue from saved progress. If a model becomes unavailable or credentials expire, restore model access or refresh the credentials. Return to the same Repo Wiki and use the resume or retry action available for its current state.
  • Regenerate: Select Regenerate to replan the documentation structure or rebuild it from scratch, replacing existing generated content with the current configuration.
Auto Update and Auto Export are off by default. Change them in the generation settings or the More (…) menu.

Use it in a task

With Citation enabled, open a task in the same workspace. Qoder CN uses project knowledge as needed. You can also state the question or intended change explicitly, for example:
  • Explain how a request moves through the main modules.
  • Locate the implementation and callers of a feature.
  • Summarize dependencies and likely impact before a change.
  • Identify repository conventions that should guide an implementation.
Repo Wiki provides project context, but runtime behavior can still differ from documentation. Confirm critical conclusions against current code, configuration, tests, and runtime output.

Intervening in Wiki Generation

Specify the documentation focus and structure before generation, or use a task to edit knowledge after it has been generated.

Before generation: Plan the content

In a task in the target workspace, ask Qoder CN to create or edit wiki_plan.yaml. Describe the audience, required content, and writing guidelines. For example: "Create a Repo Wiki generation plan for new engineers, focusing on system architecture and order workflows." The configuration file is located at:
<project_root>/.qoder/repowiki/wiki_plan.yaml
OptionDescription
repowiki.templatePreset template: architecture (technical architecture) or product_requirement (product requirements)
repowiki.notesSet the Wiki's writing focus, key facts, and conventions
repowiki.documentsList the pages to generate; omit it to plan the directory automatically. Each page includes title and goal, with optional parent, hints, and a section template
knowledgecard.notesGuide module boundaries and content focus for Knowledge Cards
Example:
version: 1

repowiki:
  template: architecture
  notes:
    - text: "Write for new engineers, focusing on business workflows and module relationships"
  documents:
    - title: "System Architecture Overview"
      goal: "Explain core modules, responsibilities, and dependencies"
    - title: "Order Workflow"
      goal: "Explain order creation, payment, and cancellation"
      parent: "System Architecture Overview"

knowledgecard:
  notes:
    - text: "Focus on the order module's architecture and coding conventions"
Share the configuration file through Git commits. After changing it, manually select Generate or Regenerate for the changes to take effect. Tasks already in progress are unaffected.

After generation: Edit knowledge

Invoke the /knowledge-edit skill in the task input in the same workspace, then describe the Wiki page and changes you need. You can make targeted edits, add sections, or rewrite pages, using design documents or API documentation as reference. For example: "Add the order cancellation conditions to the order workflow and update the related API descriptions." Review the changes in Repo Wiki, then export if you need files. Wiki pages and Knowledge Cards are maintained separately; specify both when you want to update both. Later code updates may regenerate affected pages, so review important revisions afterward.

Repo Wiki Sharing

  • Share through Git: After exporting, commit and push .qoder/repowiki to a remote branch. Team members can pull the files with git pull, then import them to reuse the knowledge.
  • Pull from team: Accounts with team knowledge sharing can select Pull from team in the More (…) menu to retrieve published team knowledge for the same remote repository, current branch, and language.
Pulling from the team replaces local Wiki pages and Knowledge Cards for the current branch and language with the team version. Check any local revisions you want to keep before proceeding.
When account and organization policy allow, Qoder can automatically retrieve available team knowledge for the current repository, branch, and language. You can still use the existing team-pull action to retrieve it manually.

Multilingual Support

Repo Wiki supports English and Simplified Chinese. Choose a language when generating. Knowledge is stored separately for each language and exported to .qoder/repowiki/en/ or .qoder/repowiki/zh/. Switch languages to view or generate the corresponding content.

Import and export

On the repository's Repo Wiki detail page, open More (…) to import or export project knowledge for the current branch and language:
  • Export to .qoder/repowiki: Save existing Wiki pages and Knowledge Cards to the project directory for backup and Git sharing. Wiki content is saved as Markdown; Knowledge Cards are stored under knowledge/<language>/. Enable Auto Export to export automatically after generation or updates.
  • Import from .qoder/repowiki: Read existing Wiki pages and Knowledge Cards from the project directory and replace the corresponding current content after confirmation. Use this after pulling files through Git or editing them manually, without regenerating.
Qoder CN App Repo Wiki import and export
Keep the complete .qoder/repowiki directory structure when sharing or moving it, including the Wiki's content/ and meta/repowiki-metadata.json. Export overwrites the corresponding language directories, so import any manual file edits before exporting.

Billing

Generation and updates consume Credits as usual. Check the records in Usage - Credits. Credits consumption correlates with the number of files in a repository, and is also affected by other repository characteristics such as lines of code, business logic, and architectural complexity. The chart below shows an approximate reference range of Credits consumption by file count.
Estimated average Credits consumption for Repo Wiki generation on Qoder CN, by file count
The values are approximate estimates for reference only and are not guaranteed to be accurate. Actual consumption depends on real usage; refer to Usage - Credits for the actual records.

Data Security

Repo Wiki's knowledge generation runs on your local client. Agents read project files as needed for the task; the repository is not uploaded in full during generation.Generated content is stored locally and written to .qoder/repowiki when exported. Team sharing syncs published knowledge content.