Skip to content
Krv Labs

Open source

Scientific software built in the open.

Seven tools for code quality, representation learning and safe clinical AI. Each one installs in a single line.

01 · Code quality

See the shape of your code.

Mathematical dependency-graph invariants and structural complexity metrics for agent-written and human-written software.

0.87STRUCTURE SCORE0 CYCLES

Rust · Python · CLI + MCP

Topos

Scores the shape of your dependency graph — cycles, coupling, spectral complexity — in milliseconds, so coding agents catch architectural drift before it merges.

02 · Representation learning

Learn the shape of your data.

Topological and multiverse methods that find structure across scales — without collapsing rare phenotypes.

Rust · Python · MCP

Pulsar

Clusters a cohort at every resolution at once and keeps only the groups that stay stable. From our Nature Energy 2025 paper.

MEANFEATURE AB

Python · scikit-learn · MCP

Phil

Fills missing EHR values from the shape of the data, so rare patients aren’t averaged into a mean nobody actually has.

Rust · Python · Polars

TRAILED

Fast, differentiable Euler Characteristic Transforms for tabular and longitudinal health records — the geometry under Phil.

03 · Clinical AI safety

Use AI safely in healthcare.

Stress-tested models, no raw identifiers in front of an AI, and a human signature on every methodological decision.

Rust · Python · BSD-3

Pasteur

Stress-tests clinical models against missing labs, noisy vitals and corrupted labels — before they reach a hospital floor.

Local vault · MCP gateway

Slated release

Phirewall

Lets AI analyse patient data without knowing who the patients are: identifiers stay in a local vault, agents only see tokens.

InstallComing soon

MCP server

Coming soon

Ethos

Walks a researcher and their AI through study design first, and records every human decision in a ledger the IRB can review.

InstallComing soon