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.
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.
- First, connect your GitHub or GitLab account under Integrations.
- In your project, click Add Source and select GitHub or GitLab.
- 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.
- Click Add Source and select Website.
-
Enter the URL (e.g.,
https://docs.example.com). - 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.
- Click Add Source and select Files.
- 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.