chatcbdai/codebase-iq-pro
If you are the rightful owner of codebase-iq-pro and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
CodebaseIQ Pro is a tool designed to solve the AI 'Zero Knowledge' problem by providing AI coding assistants with comprehensive knowledge of a codebase upfront.
CodebaseIQ Pro: Solving the AI "Zero Knowledge" Problem
The Challenge
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:
š Small Codebases (< 10 files)
ā
AI can quickly understand the entire structure
ā
Changes are generally safe and accurate
ā
Minimal risk of breaking existing functionality
š Large Codebases (100+ files)
ā 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)
The Solution
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
The Result
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.
Why This Matters
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.
⨠Key Features
š§ Enhanced Understanding (v2.0)
- 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
š”ļø Safety First
- 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
šÆ Multi-Agent Analysis
- 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
š§ Flexible Infrastructure
- 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
š Quick Start
Prerequisites
- Python 3.9+
- OpenAI API key (required)
- MCP-compatible client (Claude Desktop, Cline VSCode, etc.)
Installation
- 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"
}
}
}
}
š Usage
Basic Analysis
analyze_codebase /path/to/your/project
Get AI Knowledge Package (NEW!)
get_ai_knowledge_package
Returns comprehensive understanding with:
- Instant context (read in seconds)
- Danger zones with warnings
- Safe modification guidelines
- AI-specific instructions
Check Before Modifying (NEW!)
get_modification_guidance /src/critical/auth.py
Returns:
- Risk level assessment
- Impact analysis (affected files)
- Safety checklist
- Safer alternatives
Understand Business Logic (NEW!)
get_business_context
Returns:
- Domain entities and relationships
- User journeys
- Business rules
- Compliance requirements
Semantic Search
semantic_code_search "authentication logic"
Find Similar Code
find_similar_code /src/services/auth.py
šļø Architecture
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)
š Performance
- Analysis Speed: < 60s for 10K files
- Search Latency: < 100ms
- Memory Usage: < 2GB
- Parallel Processing: Uses all CPU cores
- Smart Caching: Reduces redundant analysis
š Security & Compliance
- 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
š¤ Contributing
We welcome contributions! Please see for guidelines.
Development Setup
# Install in development mode
pip install -e .
# Run tests
pytest tests/
# Format code
black src/
š Documentation
š Troubleshooting
Common Issues
-
"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
š Roadmap
- 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
š License
MIT License with Attribution - see 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.
š¤ Join Our Team
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 with:
- Your GitHub profile
- Areas of expertise
- Why you're excited about CodebaseIQ Pro
š Acknowledgments
- 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
š Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
š CodebaseIQ Pro Team
- š¦ Idea Guy: @cannavis - Christopher Visser
- āļø Developer: Claude Code Opus 4
- š¤ Coordinator: @chatcbdai - ChatCBD
- š§ Sponsor: Cannabidiol Life - Stress & Headache Reliever
- š§ Give Us A Shout:
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! š