Quickstart
This walkthrough runs the three Swax commands end-to-end:
init → discover → plan. By the end you will have a traceability graph and a
Markdown impact report on disk.
0. Prerequisites
- Swax installed.
- A
.envfile with the fourSWAX_LLM_*variables (see Configuration).
1. Initialize the project
swax --env-file .env init
init interactively prompts for:
- Repository URL — git source of the specifications.
- Path to specs inside the repo — the subdirectory to copy.
- Local download path — where the specs land in the project.
It writes .swax/config.yml, shallow-clones the repository (depth=1), and
copies the specs into the local download path.
2. Discover the traceability graph
swax --env-file .env discover
discover rebuilds .swax/traceability.yml from scratch. It:
- Parses the local specs.
- Runs a two-pass LLM analysis:
- First pass — initial dependency hypotheses.
- Refine pass — schema-informed re-analysis of uncertain pairs.
- Merges confident edges with resolved uncertain pairs.
- Guarantees every discovered endpoint appears as a graph node.
- Deduplicates and writes deterministic YAML.
The graph stores paths only — no HTTP methods, no resource abstraction.
3. Generate an Impact Report
swax --env-file .env plan
plan analyzes spec changes since the last discover and prints a Markdown
Impact Report to stdout. It:
- Parses the local baseline specs.
- Shallow-clones the spec repository fresh.
- Classifies the endpoint diff (added / removed / modified).
- Maps changed endpoints onto the traceability graph to find transitively affected endpoints.
- Runs a single-turn LLM analysis.
With no changes, it skips the LLM and prints a LOW-risk
"No changes detected" report.
The report contains Summary, Risk (HIGH / MEDIUM / LOW), Modified
Endpoints, Affected Endpoints, Requirements, and Checklist sections.
Result
After this walkthrough your project contains:
.swax/
config.yml # written by init
traceability.yml # written by discover
<download_path>/ # the copied specifications
Next steps
- Commands reference — full CLI surface, options, exit codes.
- Traceability graph — graph model and file format.
- Impact Report — report shape and usage.