github-twin

Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code over MCP.

stdiocommunityknowledge

Package Details

Transportstdio
Runtimeuvx

Runtime Arguments

Positional
Position 0
serve

Environment Variables

GITHUB_TOKEN
Secret

GitHub personal access token. Optional: github-twin can also pick the token up from `gh auth token` or from its own OAuth device-flow login (`gt auth login`).

ANTHROPIC_API_KEY
Secret

Optional. Enables the Claude backend for `gt summarize`, `gt distill`, and `gt eval`. Defaults to local Ollama when unset.

GEMINI_API_KEY
Secret

Optional. Enables the Gemini backend for embedding and the LLM seam. Vertex AI ADC via `GT_GEMINI_PROJECT` is also supported.

GT_PATHS__DATA_DIR

Optional. Override the on-disk data directory holding the SQLite index, embeddings, and cached GitHub responses. Defaults to `$XDG_DATA_HOME/github-twin`.