cartomancer-0.3.1 is not a library.
cartomancer
PR review tool with blast radius awareness — Semgrep + cartog + LLM deepening.
Cartomancer bridges static analysis with code graph intelligence to produce structurally-aware, severity-escalated review comments on GitHub pull requests.
Install
Requires Semgrep in PATH.
Usage
# Scan a local directory
# Review a GitHub PR (requires GITHUB_TOKEN)
# Dry run — output review JSON without posting
# Reuse an existing checkout
How it works
- Fetch PR diff from GitHub
- Run Semgrep with
--baseline-commit(only new findings) - Enrich with cartog blast radius and caller analysis
- Escalate severity for findings in auth/payment flows or with large blast radius
- Optionally deepen high-severity findings with LLM (Ollama or Anthropic)
- Post PR review with inline comments + summary
Configuration
Create .cartomancer.toml in your project root:
[]
= ["auto"]
= 120
[]
= "ollama"
= "gemma4"
[]
= 5
= "error"
License
MIT