- Python 3.10+ (up to 3.13)
- uv — package and project manager
Verify both are available:
python --version # 3.10 or higher
uv --versiongit clone <repo-url> CodeKnow
cd CodeKnow
uv syncRun commands via uv run:
uv run codeknow --help
uv run codeknow-api --helpuv run pytest # run tests
uv run project-scripts.py dev-check # ruff + pyrefly
uv run project-scripts.py pipeline # run the pipeline on a repoRunning the pipeline and the e2e suite needs three backing services up: ChromaDB, Redis, and Docker Model Runner (embeddings). Bring them up with:
docker compose -f infra/docker-compose.yml up -dSee infra-setup.md for details, the embedding-model setup script, and troubleshooting.
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | shRestart your shell, then verify with uv --version.
On macOS:
brew install python@3.12uv will automatically detect the right Python version from pyproject.toml. You can also set it explicitly:
uv python install 3.12
uv python pin 3.12