- Create project directory structure
- Create SPEC.md with detailed architecture
- Set up Python virtual environment and dependencies (requirements.txt)
- Create dataset collection module (vulnai/data/collector.py)
- Implement code preprocessing pipeline (vulnai/preprocessing/)
- Create tokenization and AST-based parsing
- Implement CodeBERT embedding generation
- Design and implement model architecture (vulnai/models/classifier.py)
- Create training pipeline with PyTorch (vulnai/models/trainer.py)
- Implement multi-class classification for CWE categories
- Add evaluation metrics (Precision, Recall, F1, FPR)
- Design database schema (vulnai/storage/database.py)
- Create vector storage for embeddings (vulnai/storage/vector_store.py)
- Implement vulnerability intelligence API
- Build REST API with FastAPI (vulnai/api/)
- Create detection CLI tool (vulnai/cli/)
- Implement code parsing and vulnerability detection
- Multi-language support (Python, Java, JS)
- Rule-based filtering for false positives (vulnai/detection/filter.py)
- Explainability features (vulnerable line highlighting)
- Incremental learning support (via feedback API)
- Create README with architecture diagram
- Generate evaluation report with confusion matrix
- Package trained model (.pt/.onnx)
- Create training script (train.py)