Changes: - Fix README.md agent counts (48 QE agents = 41 main + 7 subagents) - Fix README.md skill counts (15 QE-specific skills) - Fix v3/README.md agent counts (47 → 48) - Fix init-wizard.ts hooks from 'npx @agentic-qe/v3' to 'npx agentic-qe' - Complete v2 → v2/ folder reorganization (54 items moved) - Update root package.json to point to v3 as main version Verified claims: - 48 QE agents (41 main + 7 TDD subagents) - 15 QE-specific skills - 12 DDD bounded contexts - ~5,600+ tests - HNSW, ReasoningBank, Queen Coordinator features exist Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
5.1 KiB
Code Intelligence System Prerequisites
This document outlines the required software and setup steps for the Code Intelligence System.
Required Software
1. Docker with RuVector
RuVector is a PostgreSQL extension providing vector similarity search capabilities.
# Start RuVector container
docker run -d \
--name agentic-qe-ruvector-dev \
-p 5432:5432 \
-e POSTGRES_PASSWORD=ruvector \
ruvnet/ruvector:latest
Verify the database is running:
docker exec agentic-qe-ruvector-dev psql -U ruvector -d ruvector_db -c "SELECT version();"
2. Ollama for Embeddings (Recommended)
Ollama provides local embedding generation using the nomic-embed-text model.
Installation
# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh
# Start Ollama service (in separate terminal)
ollama serve
# Pull embedding model
ollama pull nomic-embed-text
Automated Setup
We provide a setup script for convenience:
# Make script executable
chmod +x scripts/setup-ollama.sh
# Run setup
./scripts/setup-ollama.sh
Verify Ollama
# Check if Ollama is running
curl http://localhost:11434/api/tags
# Test embedding generation
curl http://localhost:11434/api/embeddings -d '{"model": "nomic-embed-text", "prompt": "Hello world"}'
3. Node.js 18+
Node.js 18 or higher is required for Tree-sitter native bindings.
# Check Node.js version
node --version # Should be v18.0.0 or higher
Environment Variables
Configure the Code Intelligence System using these environment variables:
| Variable | Default | Description |
|---|---|---|
RUVECTOR_HOST |
localhost | RuVector database host |
RUVECTOR_PORT |
5432 | RuVector database port |
RUVECTOR_DATABASE |
ruvector_db | Database name |
RUVECTOR_USER |
ruvector | Database user |
RUVECTOR_PASSWORD |
ruvector | Database password |
AQE_KNOWLEDGE_GRAPH_ENABLED |
false | Enable knowledge graph features |
Setting Environment Variables
Create a .env file in the project root:
# Database Configuration
RUVECTOR_HOST=localhost
RUVECTOR_PORT=5432
RUVECTOR_DATABASE=ruvector_db
RUVECTOR_USER=ruvector
RUVECTOR_PASSWORD=ruvector
# Knowledge Graph (optional)
AQE_KNOWLEDGE_GRAPH_ENABLED=true
Installation Steps
1. Install Dependencies
npm install
This will install:
tree-sitter- Parsing librarytree-sitter-typescript- TypeScript grammartree-sitter-python- Python grammartree-sitter-go- Go grammartree-sitter-rust- Rust grammartree-sitter-javascript- JavaScript grammarchokidar- File system watchergpt-tokenizer- Token counting
2. Setup RuVector Database
# Start the database
docker run -d \
--name agentic-qe-ruvector-dev \
-p 5432:5432 \
-e POSTGRES_PASSWORD=ruvector \
ruvnet/ruvector:latest
# Wait for database to be ready
sleep 5
# Verify connection
docker exec agentic-qe-ruvector-dev psql -U ruvector -d ruvector_db -c "SELECT version();"
3. Setup Ollama (Optional)
# Run automated setup
./scripts/setup-ollama.sh
Or manually:
ollama serve # In separate terminal
ollama pull nomic-embed-text
Verification
Run these commands to verify your setup:
# 1. Check database connection
docker exec agentic-qe-ruvector-dev psql -U ruvector -d ruvector_db -c "SELECT version();"
# 2. Check Ollama (if using local embeddings)
curl http://localhost:11434/api/tags
# 3. Verify Tree-sitter installation
node -e "require('tree-sitter')"
# 4. Test embedding generation
curl http://localhost:11434/api/embeddings -d '{"model": "nomic-embed-text", "prompt": "test"}'
All commands should complete without errors.
Troubleshooting
Database Connection Issues
# Check if container is running
docker ps | grep ruvector
# View container logs
docker logs agentic-qe-ruvector-dev
# Restart container
docker restart agentic-qe-ruvector-dev
Ollama Issues
# Check if Ollama is running
curl http://localhost:11434/api/tags
# View available models
ollama list
# Re-pull model if corrupted
ollama pull nomic-embed-text
Tree-sitter Build Issues
# Rebuild native modules
npm rebuild tree-sitter
# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install
Alternative: OpenAI Embeddings
If you prefer not to run Ollama locally, you can use OpenAI's embedding API:
# Add to .env
OPENAI_API_KEY=your-api-key-here
Update configuration in your code:
import { getConfig } from './src/code-intelligence/config';
const config = getConfig({
embeddings: {
provider: 'openai',
model: 'text-embedding-3-small',
dimensions: 1536,
batchSize: 100,
},
});
Next Steps
Once prerequisites are installed:
- Review the Code Intelligence Architecture
- Run the initialization script (Wave 2)
- Index your first codebase (Wave 4)
- Try semantic code search (Wave 5)
Support
For issues or questions:
- GitHub Issues: https://github.com/ruvnet/agentic-qe-cf/issues
- Documentation: See
docs/directory