Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

audit: fix github_intelligence_agent - rewrite em dashes, remove invalid pip install reference

Tiioluwanifb632c47484c
diff --git a/ai_agents/github_intelligence_agent/.env.example b/ai_agents/github_intelligence_agent/.env.example
index e2c5776..df67822 100644
--- a/ai_agents/github_intelligence_agent/.env.example
+++ b/ai_agents/github_intelligence_agent/.env.example
@@ -1,8 +1,6 @@
-# Google Gemini — required
-# Get your free API key at https://aistudio.google.com
+# Google Gemini API key (required). Get one free at https://aistudio.google.com
GEMINI_API_KEY=your_gemini_api_key_here
-# GitHub Personal Access Token — required
-# GitHub → Settings → Developer Settings → Personal Access Tokens → Fine-grained
-# Read-only access to public repositories is enough
+# GitHub Personal Access Token (required). Generate one at GitHub Settings > Developer Settings > Personal Access Tokens > Fine-grained.
+# Read-only access to public repositories is enough.
GITHUB_PAT=your_github_pat_here
diff --git a/ai_agents/github_intelligence_agent/README.md b/ai_agents/github_intelligence_agent/README.md
index 540e33d..09ca9d3 100644
--- a/ai_agents/github_intelligence_agent/README.md
+++ b/ai_agents/github_intelligence_agent/README.md
@@ -6,7 +6,7 @@
## Overview
-GitHub Intelligence Agent connects Gemini 3 Flash to GitHub's official MCP server through Haystack, giving you a conversational interface to the entire GitHub API. Ask it anything — surface trending repositories, profile a contributor, summarise open issues, or explore a codebase — and it figures out which tools to call on its own.
+GitHub Intelligence Agent connects Gemini 3 Flash to GitHub's official MCP server through Haystack, giving you a conversational interface to the entire GitHub API. Ask it anything: surface trending repositories, profile a contributor, summarise open issues, or explore a codebase. It figures out which tools to call on its own.
The agent uses Haystack's **SearchableToolset** to dynamically discover tools from GitHub's catalog of 40+ API endpoints. Instead of loading every tool schema upfront (which would blow the context limit), it searches for relevant tools by keyword and loads only what it needs. This keeps the context lean and the agent focused.
@@ -22,25 +22,25 @@ The agent uses Haystack's **SearchableToolset** to dynamically discover tools fr
## Tech Stack
**Frameworks and Libraries:**
-- [Haystack](https://haystack.deepset.ai/) — agent framework and tool orchestration
-- [Streamlit](https://streamlit.io/) — chat UI with streaming support
+- [Haystack](https://haystack.deepset.ai/): agent framework and tool orchestration
+- [Streamlit](https://streamlit.io/): chat UI with streaming support
**Models and APIs:**
-- [Gemini 3 Flash](https://aistudio.google.com/) via Google AI — reasoning and tool calling
-- [GitHub MCP Server](https://api.githubcopilot.com/mcp/) — official GitHub API over MCP
+- [Gemini 3 Flash](https://aistudio.google.com/) via Google AI: reasoning and tool calling
+- [GitHub MCP Server](https://api.githubcopilot.com/mcp/): official GitHub API over MCP
**Key Haystack Components:**
-- `MCPToolset` — connects to GitHub's MCP server
-- `SearchableToolset` — dynamically discovers tools to keep context lean
-- `GoogleAIGeminiChatGenerator` — Gemini 3 Flash integration
+- `MCPToolset`: connects to GitHub's MCP server
+- `SearchableToolset`: dynamically discovers tools to keep context lean
+- `GoogleAIGeminiChatGenerator`: Gemini 3 Flash integration
## Prerequisites
- Python 3.11 or higher
- [uv](https://docs.astral.sh/uv/) (recommended) or pip
- API keys for:
- - [ ] Google Gemini — free at https://aistudio.google.com
- - [ ] GitHub Personal Access Token — read-only permissions are enough
+ - [ ] Google Gemini (free at https://aistudio.google.com)
+ - [ ] GitHub Personal Access Token (read-only permissions are enough)
### Getting a GitHub PAT
@@ -66,12 +66,6 @@ cd Hands-On-AI-Engineering/ai_agents/github_intelligence_agent
uv sync
```
-Or with pip:
-
-```bash
-pip install -r requirements.txt
-```
-
### 3. Set Up Environment Variables
```bash
diff --git a/ai_agents/github_intelligence_agent/app.py b/ai_agents/github_intelligence_agent/app.py
index e955407..8e1c08b 100644
--- a/ai_agents/github_intelligence_agent/app.py
+++ b/ai_agents/github_intelligence_agent/app.py
@@ -1,5 +1,5 @@
"""
-GitHub Intelligence Agent — Streamlit UI
+GitHub Intelligence Agent: Streamlit UI
Research anything on GitHub through natural language.
Powered by Gemini 3 Flash + GitHub MCP Server via Haystack.