-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
This guide will help you set up and run Issue Analyzer on your local machine.
Before you begin, ensure you have the following installed and configured:
| Requirement | Version | Purpose |
|---|---|---|
| Python | 3.8+ | Runtime environment |
| GitHub CLI | Latest | Repository access via gh commands |
| Git | Latest | Version control |
| Service | Environment Variable | Purpose |
|---|---|---|
| OpenAI | OPENAI_API_KEY |
GPT-5.1 Codex for AI analysis |
| Firecrawl | FIRECRAWL_API_KEY |
Web scraping for documentation |
git clone https://github.com/kingabzpro/Issue-Analyzer.git
cd Issue-Analyzerpip install -r requirements.txtThis installs:
-
openai-agents==0.5.1- OpenAI Agents SDK -
firecrawl-py==2.4.0- Firecrawl Python client
Linux/macOS:
export OPENAI_API_KEY="your_openai_api_key_here"
export FIRECRAWL_API_KEY="your_firecrawl_api_key_here"Windows (Command Prompt):
set OPENAI_API_KEY=your_openai_api_key_here
set FIRECRAWL_API_KEY=your_firecrawl_api_key_hereWindows (PowerShell):
$env:OPENAI_API_KEY = "your_openai_api_key_here"
$env:FIRECRAWL_API_KEY = "your_firecrawl_api_key_here"Tip: For persistent configuration, add these to your shell profile (
.bashrc,.zshrc) or system environment variables.
Ensure GitHub CLI is authenticated:
gh auth statusIf not authenticated:
gh auth loginThe primary way to use Issue Analyzer:
python src/app.py --repo owner/repository --issue 123Parameters:
| Parameter | Description | Example |
|---|---|---|
--repo |
GitHub repository in owner/name format |
openai/openai-agents-python |
--issue |
Issue number to analyze | 456 |
Run without arguments for interactive prompts:
python src/app.pyYou'll be prompted to enter:
- GitHub repo (owner/name)
- Issue number
Let's analyze a real issue step by step:
python src/app.py --repo openai/openai-agents-python --issue 456The tool will display:
π Analyzing openai/openai-agents-python#456...
π Reasoning: I need to understand the issue first...
[1] π§ Calling: get_github_issue β openai/openai-agents-python#456...
π Reasoning: This issue relates to the agent runner component.
I should explore the src/agents/ directory...
[2] π§ Calling: list_repo_files_gh β ext=['.py'], paths=['src/agents/']...
[3] π§ Calling: get_repo_file_gh β src/agents/runner.py...
The AI generates a structured plan with:
- Issue Summary: Clear problem description
- Project Context: Where the issue fits architecturally
- Key Files: Specific files to modify
- Step-by-Step Plan: Detailed implementation steps
- Testing Strategy: How to verify the fix
- Risk Assessment: Edge cases and potential issues
Results are saved to:
output/execution_plan_{repo}_{issue}_{timestamp}.md
Example:
output/execution_plan_openai_openai-agents-python_issue_456_20251116_143022.md
| Symbol | Meaning |
|---|---|
| π | Analysis started |
| π | AI reasoning/thought process |
| π§ | Tool being called |
| [N] | Tool call number (order of execution) |
| π | Summary of tools used |
| β | Output saved successfully |
# GitHub Issue Analysis: owner/repo#123
**Generated on:** 2024-01-15 14:30:22
**Repository:** owner/repo
**Issue Number:** 123
---
## Issue Summary
[Clear description of the problem]
## Project/Codebase Understanding
[Where this issue lives in the architecture]
## Key Files / Components to Touch
[List of files with paths]
## Step-by-Step Implementation Plan
[Detailed steps 1, 2, 3...]
## Testing Strategy
[Unit / integration / manual testing approach]
## Edge Cases, Risks, and Open Questions
[Potential issues and considerations]Solution: Set the environment variable:
export OPENAI_API_KEY="your_key_here"Solution: Set the environment variable:
export FIRECRAWL_API_KEY="your_key_here"Possible causes:
- GitHub CLI not installed
- Not authenticated with
gh auth login - Invalid repository or issue number
- Private repository without access
Solution: Verify GitHub CLI:
gh auth status
gh issue view 123 --repo owner/repoThe application automatically handles UTF-8 encoding on Windows. If you still see issues, ensure your terminal supports UTF-8.
- Be Patient: Complex issues may take 1-2 minutes to fully analyze
- Check API Costs: The tool is designed to be cost-efficient, but monitor your API usage
- Review Plans: Always review AI-generated plans before implementing
- Iterative Analysis: Run multiple times on complex issues for different perspectives
- Learn about the Architecture and Tools that power Issue Analyzer
- Return to Home for an overview