Agent OS follows "Scale by Subtraction" - minimal dependencies for a lean kernel.
| Package | Version | Why Needed | Alternatives Considered |
|---|
| pydantic | >=2.0.0 | Type validation, schema enforcement, JSON serialization | dataclasses (lacks validation), attrs (less ecosystem) |
Total core deps: 1 (matches our "kernel should be lean" philosophy)
- No additional dependencies (zero external deps)
| Package | Why Needed |
|---|
| numpy | Drift calculation, semantic similarity metrics |
| Package | Why Needed |
|---|
| fastapi | REST API endpoints |
| uvicorn | ASGI server |
| pypdf | Document parsing |
| numpy | Vector operations |
| scikit-learn | ML-based context ranking |
| Package | Why Needed |
|---|
| fastapi | Trust gateway API |
| uvicorn | ASGI server |
| httpx | Async HTTP for agent-to-agent comms |
| Package | Why Needed |
|---|
| anyio | Async runtime abstraction |
| aiofiles | Async file I/O for durability |
| Package | Why Needed |
|---|
| docker | Container isolation for untrusted tools |
- Zero external dependencies (by design)
- All kernel-space code uses only stdlib
| Package | Why Needed |
|---|
| pytest | Test framework |
| pytest-asyncio | Async test support |
| pytest-cov | Coverage reporting |
| mypy | Static type checking |
| ruff | Fast linting |
| black | Code formatting |
Run pip-audit to check current status:
pip-audit
All dependencies use MIT, BSD, or Apache 2.0 licenses (enterprise-friendly).
| Package | License |
|---|
| pydantic | MIT |
| numpy | BSD |
| fastapi | MIT |
| uvicorn | BSD |
| httpx | BSD |
| anyio | MIT |
- Kernel Space (0 deps): Control plane uses only Python stdlib
- User Space (optional): Features that need deps are optional extras
- No Transitive Bloat: We pin major versions, not micro-deps
- Regular Audits: Dependabot + pip-audit in CI
# Minimal (just pydantic)
pip install agent-os-kernel
# With specific features
pip install agent-os-kernel[cmvk] # + numpy
pip install agent-os-kernel[iatp] # + fastapi, httpx
pip install agent-os-kernel[full] # Everything
# Development
pip install agent-os-kernel[dev] # + pytest, mypy, ruff
# Check for outdated packages
pip list --outdated
# Check for vulnerabilities
pip-audit
# Update all (dev environment)
pip install --upgrade -e ".[dev]"