BEE
BEE is a CLI for vetting AI/ML model artifacts before they enter your environment. It establishes an artifact's identity, detects its real structural format (never trusting the file extension), and flags mismatches between the two.
This is early — 0.1, the foundation release. It covers local-file
identity and format detection only. Real static security analysis
(pickle call-graph analysis, SafeTensors bounds checks, GGUF metadata
inspection, and more), provenance, supply-chain checks, licensing, and
policy enforcement are planned in later releases — see
docs/superpowers/specs for the design behind
where this is headed.
Install
pip install bee-guard
or, for local development:
git clone https://github.com/Aj7Ay/BEE.git
cd BEE
uv sync
Usage
# Initialize a workspace in the current directory
bee init
# Scan a file or directory
bee scan ./models
# Inspect a single artifact in detail
bee inspect ./models/model.safetensors
# JSON output, for scripting or CI
bee scan ./models --format json
Example
$ bee scan ./models
BEE SCAN
Target: models
Artifacts scanned: 2
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━┳━━━━━━━━━━┓
┃ PATH ┃ FORMAT ┃ SIZE ┃ FINDINGS ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━╇━━━━━━━━━━┩
│ models/model.gguf │ gguf │ 16 │ - │
│ models/weights.pt │ numpy │ 24 │ 1 │
└───────────────────┴────────┴──────┴──────────┘
Findings: 0 critical, 0 high, 1 medium, 0 low, 0 info
weights.pt is flagged (BEE-FMT-001) because its extension claims
PyTorch but the file is structurally a NumPy array — exactly the kind of
mismatch a renamed or mislabeled artifact would produce.
What BEE detects today
Structural signatures for: SafeTensors, GGUF, NumPy, HDF5/Keras, Pickle,
PyTorch (zip-based), ONNX (heuristic), and generic zip/tar/gzip archives.
Anything else is reported as unknown rather than guessed.
Development
uv sync
uv run pytest -v
License
Apache License 2.0 — see LICENSE.
Release files for bee-guard 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bee_guard-0.1.0.tar.gz | 26.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bee_guard-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.2 kB
Release files / bee_guard-0.1.0.tar.gz
| Download URL | bee_guard-0.1.0.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffd92989f8b824e3422b2713efc8805398711261cb6b6c738a0e8991d79498f7
|
|
BLAKE2b-256 checksum How to use checksums |
248e3181b929e25adf52ff2845e2ceca31d32ff5317c92cb75eb500f76a81de8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 11, 2026.
Transparency logRelease files / bee_guard-0.1.0-py3-none-any.whl
| Download URL | bee_guard-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
250a9ad45adac884ed1ca66bbc81400f62ec012331a7d3a4b9fbcb358aa7b9c3
|
|
BLAKE2b-256 checksum How to use checksums |
8550b766d95095023b2671401b4b564c41e216da50ae99bc360c69765b64d513
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 11, 2026.
Transparency log