You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(kb): GitHub repositories as a knowledge source — a github/git connector that reuses the Codebase Analytics code-source pipeline #19717
A GitHub repository cannot be added as a knowledge-base source. The connector picker has GitLab, Gitea and Forgejo (knowledge/connectors/gitlab.py, #9011), but no GitHub type is registered.
Codebase Analytics already clones and indexes GitHub repositories as code sources (api/codebase_analytics/source_storage.py, chromadb_storage.py, collection autobot_code). On 2026-10-26 one public GitHub repo had 3,625 indexed chunks, and its owner still could not reach it from the knowledge base or from chat (#17625).
Fix
Use one implementation, not a second clone path.
Add a github connector type (and a generic git one for any https remote) that delegates to the existing code-source machinery: same clone, same source_id, same autobot_code collection, same owner and access fields. A repo added from Knowledge and the same repo added from Codebase Analytics resolve to one source record.
Optionally ingest the README, docs and wiki as KB documents through add_document, so prose is retrievable as documents and not only as code chunks.
Private repos authenticate through the canonical secrets manager (credential store), never a token kept in connector config.
A github connector type is registered. Creating one with owner/repo produces, or reuses, a code source with the same source_id that Codebase Analytics shows. A test asserts there is one record, not two.
The repo's README and docs are ingested as KB documents with source_id provenance.
A private repo uses a credential from the secrets manager. A test asserts the connector config holds no token.
Activity