The Scanner module performs AST-based static analysis of your AI codebase — detecting features, extracting prompts, and mapping workflows. Scan results can be uploaded to the Valiqor backend for deeper analysis and attached to Failure Analysis runs.Documentation Index
Fetch the complete documentation index at: https://docs.valiqor.com/llms.txt
Use this file to discover all available pages before exploring further.
Quick start
Convenience function
For one-liner scans:What the scanner does
The scanner runs a local pipeline:Feature detection
Identifies AI features: LLM calls, retrieval functions, tool definitions, agent patterns.
Workflow mapping
Maps execution flow: which functions call which, how data flows through your pipeline.
Scanner configuration
The scanner uses the same.valiqorrc config file:
| Config | Description | Default |
|---|---|---|
scan_dir | Local output directory for scan results | valiqor_output/scans |
valiqor_intelligence | Upload results to Valiqor backend | true |
scan() method
ScanResult fields
| Field | Type | Description |
|---|---|---|
status | str | "success" or "error" |
project_name | str | Project name used |
scan_id | str | Unique identifier for this scan |
local_output_dir | str | Path to generated files |
files_generated | list[str] | Local files created |
files_uploaded | list[str] | Files uploaded to backend |
upload_response | dict | Backend response (if uploaded) |
error | str | Error message (if failed) |
Local-only scanning
For environments without backend access:Integration with Failure Analysis
Whenrun_scan=True (default) in FA, scan data is automatically attached:
CLI
Failure Analysis →
Use scan data for deeper failure analysis.
Tracing →
Combine scanning with runtime tracing.