spawn inspect#
spawn inspect [PATH] [--json] [--verbose | -v]Statically inspects a repository and reports its languages, frameworks, declared dependencies, package managers, engineering tooling and layout. PATH defaults to .. Every positive finding carries repository-relative evidence.
| Option | Effect |
|---|---|
--json |
Print the full report as JSON on stdout (schema_version "1.0"); errors go to stderr |
--verbose, -v |
Show all dependencies, all top-level entries and evidence paths |
Safety#
spawn inspect is read-only and static. It never executes or imports repository code, installs dependencies, uses the network or writes to the repository. Symbolic links and directory junctions are listed as skipped, never followed. Files are read with a 1 MB cap. .env files are never read.
Human output#
Sections, in order: header, Project overview (primary language, framework, package manager, origin, Spawn version for Spawn-generated projects), Technology (languages, other frameworks, dependencies), Tooling (tools, CI, containers, databases), Repository structure (file/directory counts, top-level entries, structure markers), Diagnostics, and a final status line.
State markers:
| Marker (ASCII) | State | Meaning |
|---|---|---|
✓ (+) |
detected | A direct static indicator exists |
~ |
inferred | Indirect evidence only (for example a declared dependency without config); the detail says why |
? |
unknown | The check could not be completed |
○ (-) |
not detected / not checked | Looked for and absent, or not looked for |
The framework line is suffixed inferred when the primary framework rests on a dependency declaration alone. Diagnostics list warnings and errors with a stable code (for example discovery.permission_denied, framework.malformed_manifest) and the affected path. A report with warnings ends Inspection partial: findings may be incomplete.
JSON output#
--json writes one JSON document to stdout and nothing else. target.root is always "."; no absolute path is emitted. Fields: schema_version, status, generated_at, target, recorded_metadata, summary, structure, findings, analyzer_results, diagnostics.
spawn inspect ./my-project --jsonInspect exit codes#
| Code | When |
|---|---|
| 0 | Inspection complete or partial (a partial report still prints) |
| 7 | Path missing, not a directory or unreadable; or the repository root could not be scanned (status failed) |
| 10 | Unexpected error |
With --json, an invalid path prints the message to stderr, leaves stdout empty and exits 7. An unexpected error in --json mode also prints to stderr only (SPAWN_DEBUG=1 raises the traceback).
Limitations#
See Supported technologies for what is and is not detected.