Turn an OpenAPI spec into executable API checks and an HTML failure report.
Recon QA discovers endpoints, derives test cases from their schemas, executes them with bounded concurrency, and writes self-contained HTML and JSON reports. It works without an AI account; LLM-assisted generation and failure analysis are optional.
Use Recon only on applications you own or are explicitly authorized to test. Generated requests can create, update, or delete data described by the target API.
Quick Start (Just 1 Command)
Requires Python 3.12 or newer.
pip install recon-qa
recon test http://localhost:8000
That's it. Recon automatically:
- Discovers OpenAPI endpoints & web routes
- Generates happy-path, boundary fuzzing, negative validation & authentication tests
- Executes tests with bounded concurrency and live terminal feedback
- Classifies failures with deterministic root-cause analysis
- Generates a self-contained interactive HTML & JSON report
Or Let the Autonomous Agent Handle It
Give Recon natural language instructions to test your web app and fix bugs:
recon agent "Test checkout on localhost:8000 and fix any bugs"
Or drop into an interactive QA pair-programming session:
recon agent
Optional Commands
You only need the command above to get your testing done. These optional commands are available when you need extra control:
| Command | Description |
|---|---|
recon fix |
Automatically patch source code defects found in your test run |
recon report |
Open the interactive HTML test report in your default browser |
recon config |
Configure AI provider keys (recon config set-key) or switch models (recon config model) |
recon doctor |
Check runtime, Playwright Chromium setup, and system diagnostics |
Common Flags for recon test
# Include browser discovery & UI interaction checks
recon test http://localhost:8000 --browser
# Supply authentication
recon test http://localhost:8000 --header "Authorization: Bearer <token>"
# Limit testing to specific endpoints
recon test http://localhost:8000 --include "/api/orders*" --exclude "/api/admin*"
# Pass custom or non-standard OpenAPI specification file
recon test http://localhost:8000 --spec ./openapi.yaml
Reports are stored under ~/.recon/reports/ by default. Use --report-dir to choose another location. A test run exits with code 1 when it finds failed checks, which makes the command useful as a CI quality gate.
Architecture & Execution Pipeline
For full system architecture, ADRs, 5-wave DAG execution, SSRF/redaction guardrails, self-healing AST rollback, OpenTelemetry tracing, and failure recovery matrices, see docs/ARCHITECTURE.md.
What Recon checks
- Discovers OpenAPI 3.x and Swagger 2.0 operations.
- Generates happy-path, validation, boundary, negative, and authentication cases.
- Uses schema constraints including types, enums, numeric ranges, string lengths, and formats.
- Orders dependent operations and can reuse IDs returned by earlier requests.
- Applies bounded asynchronous concurrency.
- Classifies HTTP, timeout, assertion, and security-related failures.
- Produces standalone HTML reports and machine-readable JSON results.
- Instruments 5-wave DAG execution with OpenTelemetry tracing, W3C
traceparentpropagation, and per-wave latency/p50/p95 report summaries. - Optionally crawls pages and runs Playwright browser checks.
- Optionally asks a configured LLM for additional cases and failure explanations.
Recon is intended to expose suspicious behavior for review. It is not a proof of correctness, a replacement for application-specific tests, or a substitute for a professional security assessment.
AI Providers & Models
Recon works out of the box with zero configuration using deterministic failure analysis. To connect frontier reasoning models for autonomous agent tasks:
recon config set-key
# Select from Anthropic (claude-sonnet-5-5), OpenAI (gpt-6-luna), Gemini (gemini-3.8-flash), DeepSeek, Mistral, or local Ollama
To switch models anytime:
recon config model
Inspect active providers:
recon config list
CI example
name: API quality
on: [push, pull_request]
jobs:
recon:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install recon-qa
- run: recon test http://127.0.0.1:8000 --no-ai
Start your application in an earlier step and upload the chosen report directory as an artifact if the report should be retained.
How the pipeline fits together
OpenAPI document / application URL
│
▼
Endpoint discovery
│
▼
Schema-driven test generation
│
▼
Stateful, bounded execution ───── optional Playwright checks
│
▼
Deterministic classification ──── optional LLM analysis
│
▼
HTML + JSON reports
The LLM layer does not decide whether deterministic assertions passed or failed.
Current limitations
- Python 3.12 or newer is required.
- Authentication discovery handles common flows but cannot infer every custom login or multi-factor workflow.
- Generated payloads are schema-driven and may not satisfy undocumented business rules.
- Browser support requires the
browserextra and a separate Chromium installation. - OpenAPI documents that rely heavily on vendor extensions may need a reduced reproduction and compatibility fix.
- The project is alpha software; review generated requests before pointing it at data-bearing environments.
Development
git clone https://github.com/ttnhan227/recon.git
cd recon
python -m pip install -e ".[browser,dev]"
python -m playwright install chromium
ruff check .
ruff format --check .
mypy recon tests
pytest -q
python -m build
See the contribution guide before proposing a change, the roadmap for current priorities, and the changelog for release history.
Feedback wanted
If you try Recon against a real API, please share what worked, what blocked you, and the framework or OpenAPI generator you used in the trial feedback form. Sanitized minimal specifications are especially useful. See the technical walkthrough for a concise explanation you can share with another developer.
License
Recon QA is available under the MIT License.
Metadata
Release files for recon-qa 0.3.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 |
|---|---|---|---|---|
| recon_qa-0.3.3.tar.gz | 115.5 kB | Without provenance | Details for recon_qa-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| recon_qa-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for recon_qa-0.3.3-py3-none-any.whl |
Total release size: 247.1 kB
Release files / recon_qa-0.3.3.tar.gz
| Download URL | recon_qa-0.3.3.tar.gz |
|---|---|
| Size | 115.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8e70ec9f0e4fcce15b2f96d33c897e9ccdbecfc2456155d37b052211dfc3a44
|
|
BLAKE2b-256 checksum How to use checksums |
5e426232011256975325870cb7cce023e22cf636c324b805e8b2530e8868dcdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / recon_qa-0.3.3-py3-none-any.whl
| Download URL | recon_qa-0.3.3-py3-none-any.whl |
|---|---|
| Size | 131.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
602dedfd0e036bb0f2d4b4a012efa0edef6de48cf76ca77499bc28801e295893
|
|
BLAKE2b-256 checksum How to use checksums |
16fd87aa9d6514757722f8f840e54964168555605d89e7cafc23a31d131b616a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for recon-qa 0.3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.