nanomind-analyst
Installer for the NanoMind Analyst daemon. The daemon serves the Qwen3-1.7B security analyst NLM behind an input-classifier gate over a Unix socket at /tmp/nanomind-guard.sock. Consumers (hackmyagent, opena2a-cli, ai-trust) connect to that socket for generative threat analysis on individual findings.
This package writes a per-user launchd LaunchAgent, fetches and verifies the model artifacts from Hugging Face, and manages the daemon lifecycle. Apple Silicon (Darwin arm64) only in v0.1.
Install
pip install nanomind-analyst
nanomind-analyst install
The install step:
- Verifies platform (Apple Silicon required).
- Copies the input-classifier-v1 artifacts (bundled in the wheel) into
~/Library/Application Support/nanomind-analyst/artifacts/input-classifier-v1/. SHA256 verified before copy. - Fetches the Analyst NLM (~3.4 GB) from
opena2a/nanomind-security-analystat the pinned v3.0.0 commit. SHA256 verified after fetch. - Writes a launchd plist to
~/Library/LaunchAgents/org.opena2a.nanomind-analyst.plist. - Bootstraps the LaunchAgent into the user's gui session.
- Waits up to 60 seconds for the daemon to bind the socket and pass its healthz probe.
The fetch step is the long one (several minutes on first run; cached on subsequent runs).
Commands
| Command | What |
|---|---|
nanomind-analyst install |
Full install flow. Idempotent. |
nanomind-analyst uninstall |
Stop, unload, remove plist. --remove-artifacts also deletes the 3.4 GB NLM. |
nanomind-analyst start |
Kickstart the loaded LaunchAgent. |
nanomind-analyst stop |
SIGTERM the daemon. Agent stays loaded; no auto-restart on clean exit. |
nanomind-analyst restart |
Stop then start. |
nanomind-analyst status |
Report whether the agent is loaded and healthz returns ready. |
nanomind-analyst logs |
Tail ~/Library/Logs/nanomind-analyst.log. --no-follow for one-shot. |
nanomind-analyst --version |
Print the package version. |
What gets written where
| Path | Purpose |
|---|---|
~/Library/LaunchAgents/org.opena2a.nanomind-analyst.plist |
LaunchAgent plist. |
~/Library/Application Support/nanomind-analyst/artifacts/input-classifier-v1/ |
Classifier joblib + meta.json (~5 KB). |
~/Library/Application Support/nanomind-analyst/artifacts/nanomind-security-analyst/ |
NLM weights, tokenizer, configs (~3.4 GB). |
~/Library/Logs/nanomind-analyst.log |
Daemon stdout + stderr. |
/tmp/nanomind-guard.sock |
Unix socket the daemon binds (0600, owner-only). |
No root, no /opt, no sudo.
Trust chain
The install does not depend on Hugging Face being trustworthy. The wheel manifest is the authoritative source of artifact identity:
- PyPI Trusted Publishing (OIDC) attests the wheel was built by the workflow at
.github/workflows/release-nanomind-analyst.ymlfrom a commit inopena2a-org/nanomind(SLSA v1 provenance). - The wheel bakes
EXPECTED_NLM_SAFETENSORS_SHA256andEXPECTED_NLM_TOKENIZER_SHA256constants inartifacts.py. - At
install, the fetched NLM files are SHA256-verified against those constants. A tampered Hugging Face artifact causes install to refuse. - At daemon boot,
INPUT_CLASSIFIER_JOBLIB_SHA256is re-verified beforejoblib.load()runs (joblib uses pickle = arbitrary code execution at deserialization).
Verify wheel provenance after publish:
npm # no equivalent; use:
python -m pip download nanomind-analyst --no-deps --dest /tmp/verify
# Then inspect the wheel's METADATA + RECORD; PyPI surfaces attestations
# at https://pypi.org/project/nanomind-analyst/#files
Linux / cloud daemon
Not supported in v0.1. The daemon is bf16 on Apple MPS; fp16 yields 0% accuracy on Qwen3-1.7B. Cross-platform inference is tracked in opena2a-org/nanomind issues with the labels nanomind-analyst + platform-linux.
Known limitations
- Cold-boot latency. Daemon takes ~30 seconds to load the NLM on first request after a system reboot. The install flow waits up to 60 seconds for this; subsequent restarts are faster (the launchd-managed process stays warm).
- NLM latency floor. The Analyst NLM emits ~400 tokens of structured output per request at ~15 ms/token on bf16 MPS. Floor is ~6 seconds per finding. Consumers (HMA, opena2a-cli) should batch or filter before invoking. The input-classifier gate bypasses the NLM on off-topic inputs (~92% bypass rate on benign user input).
- Single-instance. The daemon binds a single Unix socket. Multiple
nanomind-analyst installruns on the same machine share the same socket; the LaunchAgent label is unique to the user.
Companion package
hackmyagent (npm) --nanomind flag uses this daemon. After installing this package, hackmyagent nanomind setup detects the nanomind-analyst CLI on PATH and shells out to nanomind-analyst install. If the CLI is missing, it prints the pip install instructions.
Model card
opena2a/nanomind-security-analyst. v3.0.0 (Qwen3-1.7B SFT LoRA r=64), Apache-2.0.
License
MIT.
Metadata
Release files for nanomind-analyst 0.1.3
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 |
|---|---|---|---|---|
| nanomind_analyst-0.1.3.tar.gz | 53.3 kB | With provenance | Details for nanomind_analyst-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanomind_analyst-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for nanomind_analyst-0.1.3-py3-none-any.whl |
Total release size: 97.0 kB
Release files / nanomind_analyst-0.1.3.tar.gz
| Download URL | nanomind_analyst-0.1.3.tar.gz |
|---|---|
| Size | 53.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00febe343018a7daa95c77c6b65362ff895130ccfc0c1eb9ed2e3b97b601127b
|
|
BLAKE2b-256 checksum How to use checksums |
daf2c5386d3ca432d3cf8dd3dac3b4197254b588c051f1f9171dd858cdc9806a
|
| 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 Jun 11, 2026.
Transparency logRelease files / nanomind_analyst-0.1.3-py3-none-any.whl
| Download URL | nanomind_analyst-0.1.3-py3-none-any.whl |
|---|---|
| Size | 43.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a0c366e145768baf7529c8fe823e712d7211697370601261e323f68295f3daf
|
|
BLAKE2b-256 checksum How to use checksums |
3b405494686579f3b795ff5e33cc8deb44ddb6521907c0cc8147363fb141305b
|
| 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 Jun 11, 2026.
Transparency logSecurity for nanomind-analyst 0.1.3
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 nanomind_analyst-0.1.3.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 Jun 11, 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.