Every time you start a new conversation with an AI coding assistant (Claude, ChatGPT, Copilot, etc.), it begins with zero knowledge of your codebase. This "fresh start" problem creates critical issues:
β
AI can quickly understand the entire structure
β
Changes are generally safe and accurate
β
Minimal risk of breaking existing functionality
β AI makes overconfident changes without understanding interconnected systems
β Creates duplicate files instead of updating existing ones
β Causes cascading errors by breaking hidden dependencies
β Wastes time exploring files one-by-one (and still misses critical context)
CodebaseIQ Pro provides a one-time comprehensive analysis that gives AI assistants everything they need to know about your codebase upfront:
- π§ Deep Understanding: What each file does and WHY it exists
- π Dependency Mapping: How files connect and impact each other
β οΈ Danger Zones: Critical files that shouldn't be modified- πΌ Business Logic: The actual purpose behind the technical implementation
- π Safety Instructions: Specific rules for making changes without breaking things
Instead of AI assistants blindly making changes that seem correct but break your system, they now have:
- Complete context before suggesting any modifications
- Awareness of ripple effects from changes
- Understanding of existing solutions (no more duplicate implementations)
- Knowledge of critical paths that must be preserved
This transforms AI from a confident-but-dangerous helper into an informed collaborator that truly understands your codebase architecture.
Every secondary error from incomplete AI understanding costs:
- π Time: Debugging issues AI created
- π° Money: Token usage exploring files repeatedly
- π€ Frustration: Fixing "fixes" that broke other systems
CodebaseIQ Pro eliminates these issues with one comprehensive analysis that serves as your AI's complete knowledge base for every future conversation.
- Deep Understanding Agent: Semantic code analysis with purpose extraction
- Cross-File Intelligence: Impact analysis and circular dependency detection
- Business Logic Extraction: Translates code into business terms
- AI Knowledge Packaging: Instant context with safety instructions
- Danger Zone Identification: Critical files marked with clear warnings
- Impact Analysis: See how changes ripple through your codebase
- Risk Assessment: Every file rated (CRITICAL/HIGH/MEDIUM/LOW)
- Safe Modification Guide: Step-by-step checklists for changes
- 9 Specialized Agents: Each focused on a specific aspect
- Parallel Processing: Fast analysis with intelligent orchestration
- Adaptive Configuration: Works with free or premium services
- Language Support: Python, JavaScript, TypeScript, Java, Go, and more
- Vector Search: Qdrant (free/local) or Pinecone (premium)
- Embeddings: OpenAI (required) or Voyage AI (premium)
- Caching: In-memory or Redis for large codebases
- Performance: Handles codebases of any size
- Python 3.9+
- OpenAI API key (required)
- MCP-compatible client (Claude Desktop, Cline VSCode, etc.)
- Clone the repository
git clone https://github.com/chatcbdai/codebase-iq-pro.git
cd codebase-iq-pro
- Install dependencies
pip install -r requirements.txt
- Set up environment
# Create .env file
echo "OPENAI_API_KEY=your-key-here" > .env
# Optional premium features
echo "VOYAGE_API_KEY=your-key-here" >> .env
echo "PINECONE_API_KEY=your-key-here" >> .env
- Configure MCP client
For Claude Desktop, add to claude_desktop_config.json
:
{
"mcpServers": {
"codebase-iq-pro": {
"command": "python",
"args": ["/path/to/codebaseiq-pro/src/codebaseiq/server.py"],
"env": {
"OPENAI_API_KEY": "your-key-here"
}
}
}
}
analyze_codebase /path/to/your/project
get_ai_knowledge_package
Returns comprehensive understanding with:
- Instant context (read in seconds)
- Danger zones with warnings
- Safe modification guidelines
- AI-specific instructions
get_modification_guidance /src/critical/auth.py
Returns:
- Risk level assessment
- Impact analysis (affected files)
- Safety checklist
- Safer alternatives
get_business_context
Returns:
- Domain entities and relationships
- User journeys
- Business rules
- Compliance requirements
semantic_code_search "authentication logic"
find_similar_code /src/services/auth.py
CodebaseIQ Pro
βββ Core Engine
β βββ Adaptive Configuration
β βββ Simple Orchestrator
β βββ Analysis Base
βββ Analysis Agents (Phase 1)
β βββ Dependency Analysis
β βββ Security Audit
β βββ Pattern Detection
β βββ Architecture Analysis
β βββ Performance Analysis
βββ Enhanced Agents (Phase 2-4)
β βββ Deep Understanding Agent
β βββ Cross-File Intelligence
β βββ Business Logic Extractor
β βββ AI Knowledge Packager
βββ Services
βββ Vector Database (Qdrant/Pinecone)
βββ Embeddings (OpenAI/Voyage)
βββ Cache (Memory/Redis)
- Analysis Speed: < 60s for 10K files
- Search Latency: < 100ms
- Memory Usage: < 2GB
- Parallel Processing: Uses all CPU cores
- Smart Caching: Reduces redundant analysis
- Never stores credentials: All secrets via environment variables
- Secure file handling: Respects .gitignore patterns
- Compliance detection: Identifies HIPAA, PCI, SOC2 requirements
- Access control: Configurable file/directory restrictions
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
# Install in development mode
pip install -e .
# Run tests
pytest tests/
# Format code
black src/
-
"No module named 'codebaseiq'"
- Run:
pip install -e .
- Run:
-
"OpenAI API key not found"
- Ensure
.env
file exists withOPENAI_API_KEY
- Ensure
-
"Analysis takes too long"
- Try
analysis_type="quick"
for faster results - Reduce file size limit in config
- Try
- v2.0: Enhanced understanding with AI safety
- v2.1: Language-specific security rules
- v2.2: Real-time file watching
- v2.3: Git history analysis
- v2.4: Team knowledge sharing
- v3.0: Cloud-based analysis
MIT License with Attribution - see LICENSE file for details.
Important: While this is open source software, we require attribution when using or building upon CodebaseIQ Pro. This helps us track adoption and build a community of contributors.
Are you passionate about code analysis and AI-assisted development? We're actively looking for experienced developers to join our core team!
We're especially interested in:
- Language analyzer experts (Go, Rust, C++, Ruby, etc.)
- Security researchers
- AI/ML engineers
- DevOps and infrastructure specialists
To join: Email us at hi@chatcbd.com with:
- Your GitHub profile
- Areas of expertise
- Why you're excited about CodebaseIQ Pro
- Built for the Model Context Protocol
- Inspired by the need to reduce cost, headaches, and unnecessary time wasted.
- Thanks to all contributors and early adopters
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- π¦ Idea Guy: @cannavis - Christopher Visser
- βοΈ Developer: Claude Code Opus 4
- π€ Coordinator: @chatcbdai - ChatCBD
- π§ Sponsor: Cannabidiol Life - Stress & Headache Reliever
- π§ Give Us A Shout: hi@chatcbd.com
Transform your codebase understanding. Make AI-assisted coding less stressful. Spend more time improving your project and less time explaining and retraining for every new conversation. Check it out: Try CodebaseIQ Pro today! π