Adding Sources

Add repositories, websites, and files to your project

Adding Sources

Sources are the content your AI assistant can read and reason about. CtxSync supports three types of sources: code repositories, websites, and file uploads.

Add Source Form

To add a source, open your project and click Add Source.

GitHub and GitLab repositories

Connect a code repository so the AI can read your entire codebase.

  1. First, connect your GitHub or GitLab account under Integrations.
  2. In your project, click Add Source and select GitHub or GitLab.
  3. Pick the repository you want to add.

The full repository is cloned into your project’s isolated container. Currently, the default branch is synced.

Websites

Crawl a documentation site or any public web page.

  1. Click Add Source and select Website.
  2. Enter the URL (e.g., https://docs.example.com).
  3. Set the page limit (1–50 pages) and crawl depth (0 for just the URL, 1 to follow links on that page).

This is useful for pulling in API docs, wikis, or reference material alongside your code.

File uploads

Upload documents directly — PDF, Markdown, or plain text files.

  1. Click Add Source and select Files.
  2. Upload your files.

Good for design specs, architecture docs, or any reference material that isn’t hosted online.

Syncing

Sources are synced when first added. To pull the latest changes from a repository, go to your source and click Sync. You can view sync history and status under Syncs in the sidebar.

Sync History