Skip to main content

Vexqr Core (Python)

AI-Supervised Cybersecurity Tool Orchestration Platform — Python core.

A pipeline that connects any AI client (Claude, Gemini, Copilot, GitLab Duo, Cursor, Codex, custom OpenAI-compatible) to security tools — via MCP servers when available, or via terminal automation as a fallback — and supervises the worker AI in real time so it does not loop, waste tokens, or wander.

The core is Python. It is supported by:

  • TypeScript adapters for MCP / IDE clients (see the repository root).
  • C and hand-tuned Assembly accelerators for hot paths (token estimation, fuzzy-signature hashing) — see src/vexqr/accel.
  • A Java performance layer (JDK 21+) for high-throughput, cross-platform fan-out (parallel tool dispatch, concurrent sub-agent monitoring) — see src/vexqr/perf.

Everything degrades gracefully: with no native components installed the platform runs in pure Python with identical behavior, just slower on the hot paths.

The security layer (scope enforcement, risk gating, audit logging) is owned and implemented separately by the security team. It is intentionally not part of this package.

Install

pip install .                 # pure-Python core (zero native build steps)
pip install '.[accel]'        # + C/Assembly fast paths and the Java bridge
pip install '.[mcp]'          # + official Model Context Protocol SDK
pip install '.[dev]'          # + test dependencies

Optional: build the native accelerator

cd src/vexqr/accel && make            # C + hand-tuned x86-64 Assembly
# or, portable C only (any architecture):
cd src/vexqr/accel && make portable

Optional: build the Java performance layer (JDK 21+)

cd src/vexqr/perf
javac -d out java/com/vexqr/perf/DispatchCoordinator.java
jar --create --file vexqr-perf.jar -C out .

Usage

# Run a supervised assessment (simulated, safe, no tools installed/executed)
vexqr run "check if my web app is secure" --target scanme.nmap.org --dry-run

# Emit machine-readable JSON
vexqr run "full security assessment" --target example.test --dry-run --json

# Inspect run history and export the audit trail
vexqr history
vexqr export <task_id>

# Registry + native acceleration status
vexqr registry
vexqr accel

Programmatic:

import asyncio
from vexqr import Vexqr
from vexqr.platform import VexqrOptions
from vexqr.core.store import SessionStore

async def main():
    store = SessionStore()                       # persists to .vexqr/sessions.db
    app = Vexqr(VexqrOptions(client="custom", dry_run=True, store=store))
    result = await app.run("check if my web app is secure", "scanme.nmap.org")
    print(result.summary)

asyncio.run(main())

Architecture

Five vertical layers plus a cross-cutting supervisor:

Layer Module Responsibility
L1 adapters/ Normalize any AI client into a TaskObject; format results back.
L2 router/ Classify + route each tool call (MCP first, terminal fallback).
L3 mcp/ MCP registry, server lifecycle, trust-tier policy, transports.
L4 terminal/ Auto-install cascade + PTY automation + output parser.
L5 supervisor/ Loop detection, progress scoring, token budgets, feedback, escalation.

Cross-cutting: core/ (types, config, events, reporter, SQLite session/audit store), util/ (IDs, ANSI, logging, native acceleration bridge).

Test

pip install '.[dev]'
pytest                # src/ is on the path via pyproject [tool.pytest.ini_options]

Metadata

Release files for vexqr 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vexqr 2.0.0
File Size Uploaded
vexqr-2.0.0.tar.gz 43.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vexqr 2.0.0
File Interpreter ABI Platform
vexqr-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 100.3 kB

Release files / vexqr-2.0.0.tar.gz

Download URL vexqr-2.0.0.tar.gz
Size 43.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d3342461d91769ff312bbcadafe3207d148be6659a28aa4b487c806772ccecc1
BLAKE2b-256 checksum
How to use checksums
91ca25848cb58f3244f05d25f7e33153e3cefaa60df1d334fb4e38e5922cb949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / vexqr-2.0.0-py3-none-any.whl

Download URL vexqr-2.0.0-py3-none-any.whl
Size 57.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
627e175a7b362ba5322163e6d39ba2a8013c9889a75f59b2e54ecb38e4f5ffa5
BLAKE2b-256 checksum
How to use checksums
73fd3d4a97fb985fb7cd34c8bffec13fe44c345f0889fdd2a72e9c1860ddd49f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page