Corvus - ML Development Assistant
Platform-agnostic, extensible AI-powered ML Development Assistant
Overview
Corvus is built on three pillars:
- Universal Skills Framework - 24 ML skill functions across 24 modules for data engineering, model training, deployment, observability, and ML advisory
- MCP Integration - 6 MCP server integrations for GitHub, PostgreSQL, Filesystem, MLflow, Docker, and Cloud Storage
- Knowledge Base - Hybrid retrieval (BM25 + Vector + RRF), GraphRAG with Neo4j, persistent memory with Mem0
- AI Safety - Defense-in-depth security with prompt injection defense, DLP, grounding validation, and quality monitoring
Features
Skills Library (24 Skills)
| Category | Skills |
|---|---|
| Data Engineering | data-profiler, feature-recommender, pipeline-generator, schema-designer, validation-generator |
| Model Training | model-selector, architecture-recommender, pytorch-codegen, experiment-tracker, distributed-config, hyperparameter-optimizer |
| Deployment | endpoint-generator, docker-generator, terraform-generator, k8s-manifest-generator, cicd-generator, quantization-exporter |
| Observability | monitoring-setup, drift-detector, dashboard-creator |
| ML Advisory | ml-spec-generator, experiment-advisor |
| Model Hub | huggingface-skills, github-ml-skills |
MCP Integrations (6 Servers)
| Server | Capabilities |
|---|---|
| GitHub | Repository access, PRs, issues, commits |
| PostgreSQL | Database queries, schema management |
| Filesystem | File operations, directory traversal |
| MLflow | Experiment tracking, model registry |
| Docker | Container management, image operations |
| S3/GCS | Cloud storage operations |
Knowledge Base
| Component | Description |
|---|---|
| Qdrant Vector Store | Semantic search with voyage-code-3 embeddings |
| Hybrid Retrieval | BM25 + Vector search with RRF fusion |
| Cross-Encoder Reranking | Precision improvement for retrieval |
| Neo4j GraphRAG | Knowledge graph with entity extraction |
| Mem0 Memory | Persistent memory across sessions |
AI Safety & Guardrails
| Component | Purpose |
|---|---|
| Prompt Guard | Injection detection and input validation |
| Tool Guard | MCP security and sandboxing |
| Memory Guard | Memory injection prevention |
| Grounding Validator | Hallucination prevention with citations |
| DLP Scanner | PII/credential detection and redaction |
| Quality Monitor | Output quality and drift detection |
Quick Start
Install from PyPI:
pip install corvus-ai
corvus --version
Or clone for development:
git clone https://github.com/CloudlyIO/corvus.git
cd corvus
# Install with all dependencies
pip install -e ".[all]"
# Install pre-commit hooks
pre-commit install --hook-type pre-commit --hook-type commit-msg
# Run tests
make test
Usage Examples
Using Skills
import asyncio
from corvus.skills.library.model_selector import select_model
from corvus.skills.library.pytorch_codegen import generate_pytorch_code
async def main():
# Select a model for your task
result = await select_model(
task_type="classification",
data_characteristics={
"num_samples": 10000,
"num_features": 50,
"num_classes": 3,
},
)
print(f"Recommended: {result['recommended_model']}")
# Generate PyTorch training code
code = await generate_pytorch_code(
model_type="mlp_classifier",
input_features=50,
output_classes=3,
hidden_layers=[128, 64],
)
print(code["model_code"])
asyncio.run(main())
Using Safety Features
from corvus.safety import (
validate_input,
create_dlp_scanner,
assess_quality,
)
# Validate user input for injection attempts
result = validate_input("Help me build a classifier")
if result.is_safe:
print("Input is safe")
# Scan for sensitive data
scanner = create_dlp_scanner()
dlp_result = scanner.scan_content("Contact: john@example.com")
if dlp_result.pii_count > 0:
print("PII detected!")
# Assess response quality
quality = assess_quality(
"Here's a detailed explanation with examples...",
prompt="Explain gradient descent"
)
print(f"Quality score: {quality.overall_score:.2f}")
Running the E2E Demo
# Run the complete ML workflow demo
python3 demos/e2e/ml_workflow_demo.py
Development
# Testing (TDD)
make test # Unit tests
make test-all # All tests
make test-cov # With coverage
# Evaluation (EDD)
make benchmark # Run benchmarks
# Quality
make lint # Ruff linting
make format # Black formatting
make quality # Lint + typecheck
Project Structure
corvus/
├── src/corvus/ # Main package
│ ├── core/ # Config, exceptions
│ ├── skills/ # Universal skills framework (24 skills)
│ ├── llm/ # LLM gateway (LiteLLM)
│ ├── agents/ # Agent orchestration (LangGraph)
│ ├── knowledge/ # Knowledge base (RAG/GraphRAG/Memory)
│ ├── mcp/ # MCP integrations (6 servers)
│ └── safety/ # AI safety & guardrails (6 components)
├── tests/ # Test suite
│ ├── unit/ # 10,168+ tests
│ ├── integration/ # integration tests
│ └── e2e/ # End-to-end tests
├── benchmarks/ # Performance benchmarks
├── demos/ # Executable examples
│ ├── skills/ # Individual skill demos
│ ├── knowledge/ # Knowledge base demos
│ ├── mcp/ # MCP integration demos
│ ├── safety/ # Safety feature demos
│ └── e2e/ # End-to-end workflow demos
└── docs/ # Documentation
Documentation
| Document | Description |
|---|---|
| Documentation Index | All guides, API reference, architecture docs |
| Status | Current project status |
| Architecture | Technical architecture |
| Contributing | Developer workflow |
| Changelog | Version history |
Configuration
# Core
CORVUS_DEBUG=true|false
CORVUS_LOG_LEVEL=INFO|DEBUG|WARNING|ERROR
# LLM
CORVUS_LLM_DEFAULT_PROVIDER=anthropic|openai
CORVUS_LLM_DEFAULT_MODEL=claude-sonnet-4-20250514
# Knowledge Base
CORVUS_KNOWLEDGE_VECTOR_STORE=qdrant
CORVUS_KNOWLEDGE_EMBEDDING_MODEL=voyage-code-3
Technology Stack
| Layer | Technology |
|---|---|
| Agent Orchestration | LangGraph |
| LLM Gateway | LiteLLM |
| Primary LLM | Claude Sonnet 4 / Opus 4.5 |
| Vector Database | Qdrant |
| Knowledge Graph | Neo4j |
| Code Embeddings | voyage-code-3 |
| Text Embeddings | e5-large-v2 |
| Memory System | Mem0 |
| Tool Integration | MCP |
License
MIT
Metadata
Release files for corvus-ai 0.3.88
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| corvus_ai-0.3.88.tar.gz | 805.6 kB | With provenance | Details for corvus_ai-0.3.88.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| corvus_ai-0.3.88-py3-none-any.whl | Python 3 | none | any | Details for corvus_ai-0.3.88-py3-none-any.whl |
Total release size: 1.7 MB
Release files / corvus_ai-0.3.88.tar.gz
| Download URL | corvus_ai-0.3.88.tar.gz |
|---|---|
| Size | 805.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
046f9f12088f4b182e572f9ede777f176b998c39d046638ccc8366893ec79d55
|
|
BLAKE2b-256 checksum How to use checksums |
38a4ec7202cee44e2a01be1ae3bbe08a3d0e67e4e5cc7422fc95401ae488ec38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 14, 2026.
Transparency logRelease files / corvus_ai-0.3.88-py3-none-any.whl
| Download URL | corvus_ai-0.3.88-py3-none-any.whl |
|---|---|
| Size | 884.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1cd699be8b1d98fede2110d7de800dafe3927b87d1a2a3076678d03c1faebba
|
|
BLAKE2b-256 checksum How to use checksums |
0b469af411480f1f4e6016ebbf940f4a70769fa0d599ae1778ae92a36449813f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 14, 2026.
Transparency logSecurity for corvus-ai 0.3.88
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for corvus_ai-0.3.88.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.