cd slopless-cli
pip install -e .Verify installation:
slopless --version
slopless --helpslopless login <YOUR_LICENSE_KEY>Verify:
slopless whoamiScan a local directory:
slopless scan .
slopless scan /path/to/repoScan a GitHub repo:
slopless scan owner/repoScan without auto-fix:
slopless scan . --no-fixSave report to file:
slopless scan . -o report.json --format jsonRuns supplementary scan passes using multiple LLMs for better coverage. Findings corroborated by multiple engines get confidence boosts.
slopless scan . --multi-engine
slopless scan . --multi-engine --no-fix
slopless scan owner/repo --multi-engineNote: Multi-engine requires the server to have both
ANTHROPIC_API_KEYandOPENAI_API_KEYconfigured.
First, configure your Notion credentials:
- Create an integration at https://www.notion.so/my-integrations
- Copy the integration token (starts with
ntn_orsecret_) - Share your target Notion page with the integration (click "..." on the page → "Add connections" → select your integration)
- Copy the page ID from the page URL — it's the 32-character hex string after the page name
Then run:
slopless notion-setup
# (prompts for token and page ID interactively)Or provide them directly:
slopless notion-setup --token ntn_YOUR_TOKEN --page-id YOUR_PAGE_IDOr use environment variables (no setup needed):
export NOTION_TOKEN=ntn_YOUR_TOKEN
export NOTION_PAGE_ID=YOUR_PAGE_IDslopless scan . --notion
slopless scan . --notion --notion-page OVERRIDE_PAGE_ID
slopless scan . --multi-engine --notionThis creates a new Notion database under the configured page with columns:
- Unique ID (XORS-H1, XORS-M2, etc.)
- Finding Name, Severity, Description, Type, Status
- Affected Files, Line Number
- Developer Response, Commit, Created Time, Created By
Generates a professional LaTeX audit report that can be compiled to PDF or uploaded to Overleaf.
slopless scan . --latexslopless scan . --latex --latex-output ./audit-report.tex
slopless scan . --latex --latex-output ./reports/If you have a custom kaobook template directory:
slopless scan . --latex --latex-template /path/to/template/dirOr via environment variable:
export SLOPLESS_LATEX_TEMPLATE_DIR=/path/to/template/dir
slopless scan . --latexslopless scan . --multi-engine --latex --notion
slopless scan . --multi-engine --latex --latex-output ./report.tex --notioncd <output-directory>
pdflatex main.tex
# or use latexmk:
latexmk -pdf main.texOr upload the generated .tex directory to Overleaf.
The most complete scan uses all features together:
slopless scan /path/to/repo \
--multi-engine \
--notion \
--latex \
--latex-output ./audit-report/ \
-o report.jsonThis will:
- Upload and scan the repo with SecurityAgent + CodingAgent
- Run supplementary engine passes (Claude + GPT) and merge findings
- Display rich terminal report
- Save JSON report to
report.json - Export findings to Notion database
- Generate LaTeX audit report in
./audit-report/
slopless review-pr https://github.com/owner/repo/pull/42
slopless review-pr owner/repo#42slopless diff-scan
slopless diff-scan --base main
slopless diff-scan --full-reposlopless diff-fix
slopless diff-fix --base main --max-rounds 3| Variable | Purpose |
|---|---|
NOTION_TOKEN |
Notion integration token (alternative to slopless notion-setup) |
NOTION_PAGE_ID |
Notion parent page ID (alternative to slopless notion-setup) |
SLOPLESS_LATEX_TEMPLATE_DIR |
Path to custom LaTeX template directory |
GITHUB_TOKEN |
GitHub token for PR reviews |
SLOPLESS_API_URL |
Override API URL (for development) |
- "Not logged in" — Run
slopless login <LICENSE_KEY> - "License key expired or invalid" — Re-authenticate with
slopless login - "Notion export failed" — Check that your Notion integration has access to the parent page. Run
slopless notion-setupto reconfigure. - "LaTeX export failed" — Check that the output path is writable
- Scan timeout — Large repos may exceed the 5-minute timeout. Try scanning a subdirectory or use
--no-fixto skip fix generation.