AI 原生 GitHub 助手,采用 Embedder+Qdrant+LLM 架构。实现仓库索引、Issue/PR/代码的语义搜索,并通过飞书进行主动监控。
Powered by the same Embedder + Qdrant + LLM architecture as elite memory systems. Index repos, search semantically, monitor proactively — all with natural language.
text
Query → [LLM: understand intent] → [Embedder: vectorize] → [Qdrant: semantic search] → [gh CLI: act]
Three-layer system (same as production memory pipelines):
LayerComponentRoleEmbedderOllama nomic-embed-textConverts text → 768-dim vectorsVector StoreQdrant (local)Stores & searches vectors by similarityAction Layergh CLIExecutes GitHub operations
gh CLI authenticated ( gh auth status)nomic-embed-text:latestlocalhost:6333bash
# 1. Initialize Qdrant collection
python scripts/github_indexer.py init
# 2. Index a repo
python scripts/github_indexer.py add owner/repo --all
# 3. Search with natural language
python scripts/github_search.py "memory search failing in agent" --limit 10
# 4. Monitor for keywords
python scripts/github_monitor.py watch owner/repo --events issues,ci --keywords bug,broken,urgent
ScriptPurposegithub_indexer.pyIndex repos (issues, PRs, metadata) into Qdrantgithub_search.pyNatural language semantic searchgithub_monitor.pyProactive monitoring with keyword alerts
bash
python github_indexer.py init # Create Qdrant collection
python github_indexer.py add owner/repo --all # Index everything
python github_indexer.py add owner/repo --issues # Issues only
python github_indexer.py add owner/repo --prs # PRs only
python github_indexer.py add owner/repo --repo # Repo metadata
python github_indexer.py status # Show indexed data
python github_indexer.py rm owner/repo # Remove from index
bash
python github_search.py "query" # Search all
python github_search.py "query" --repo owner/repo # Filter by repo
python github_search.py "query" --type issue # Filter by type
python github_search.py "query" --limit 20 # More results
python github_search.py "query" --repo owner/repo --ci # Show CI runs
bash
python github_monitor.py watch owner/repo # Start watching
python github_monitor.py watch owner/repo --events issues,ci
python github_monitor.py status # Show watches
python github_monitor.py check # Run checks
python github_monitor.py unwatch owner/repo # Stop watching
ComponentGitHub SkillMemory SystemDataIssues, PRs, codeConversationsEmbeddernomic-embed-textnomic-embed-textVector StoreQdrantQdrantAddgithub_indexer.pymem0 addSearchgithub_search.pymem0 search
Approach"memory problems" queryKeywordExact match onlyVector (this)"memory leak", "OOM", "out of memory"
gh auth login — authenticate GitHub CLIollama pull nomic-embed-text:latest — download embedderqdrant --storage-path ./qdrant-datapython github_indexer.py init — create collection