Agent, PraisonAIAgents, or Workflow import and instantiation should appear within the first 40 lines, before low-level module imports.
Quick Start
Command Reference
| Option | Description |
|---|---|
--scan PATH | Scan path and print compliance report |
--fix PATH | Rewrite non-compliant files, then re-scan |
--check PATH | Scan and exit 1 if any file is non-compliant (CI) |
--json | Output report as JSON |
--line-limit N | Header scan line limit (default: 40) |
--only-examples | Scan Python examples only |
--only-docs | Scan documentation only |
-v, --verbose | List each non-compliant file and reason |
Exactly one of
--scan, --fix, or --check is required, each with a path.Examples
Scan with verbose output
Fix non-compliant files
CI check
JSON output
Compliance reasons
| Code | Meaning |
|---|---|
A_no_agent_import | No agent-centric import found in header |
B_import_no_instantiation | Import present but no instantiation |
C_low_level_first | Low-level import appears before agent-centric code |
D_too_advanced | Example is too advanced for quick-start placement |
E_wrong_folder | File in wrong folder for its content type |
F_outdated_api | Uses deprecated API patterns |
G_non_runnable | Example cannot run as written |
H_duplicate_quickstart | Duplicate quick-start block |
I_instantiation_too_late | Agent instantiation beyond --line-limit |
Related
Doctor CLI
Runtime health checks including MCP connectivity
Validate CLI
Validate YAML configs and agent definitions

