Offline verification suite for local LLM workflows
Project description
contcode
Offline verification suite for local LLM workflows.
Runs a read-only inventory + defense-in-depth check on a host that talks to a local OpenAI-compatible endpoint. Zero runtime dependencies, stdlib only.
Install
pip install --user contcode
Use
contcode recon # one-shot environment scan
contcode verify --soft-only # run non-privileged tests
contcode verify # full test suite (sudo enables critical L1 tests)
contcode pcap --duration 30 # optional: capture + flow analysis (needs tcpdump)
contcode report # list recent reports
contcode selftest # package integrity
Reports are written to /tmp/contcode/ (override with
CONTCODE_REPORT_DIR=...).
Config
Whitelist overrides (format: one entry per line, HOST[:PORT] or CIDR[:PORT]):
~/.config/contcode/whitelist.txt
Model match needle (endpoint probe looks for this substring in /v1/models):
export CONTCODE_MODEL_NEEDLE="my-model-id"
Exit codes (verify)
| code | meaning |
|---|---|
| 0 | all pass |
| 1 | non-critical fail |
| 2 | critical fail |
| 3 | partial (skipped, e.g. no sudo) |
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contcode-0.1.1-py3-none-any.whl.
File metadata
- Download URL: contcode-0.1.1-py3-none-any.whl
- Upload date:
- Size: 43.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0879be430ee74ea1002e7c0faca44c266c082efb60afa173f907c7944fb24e07
|
|
| MD5 |
12ec75ed854175046efaaba858e07b0f
|
|
| BLAKE2b-256 |
99981d80d63a0ab0c295583b4e2963c2c861c02a0b08af3fe6d7e54d843418fd
|