cartomancer-0.6.0 is not a library.
cartomancer
PR review tool with blast radius awareness — opengrep + 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 opengrep 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 opengrep 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), generating suggested fixes and AI agent prompts
- Classify findings as Actionable or Nitpick
- Post PR review with categorized inline comments (collapsible fixes + agent prompts), off-diff caution banners, and summary with actionable counts
Configuration
Create .cartomancer.toml in your project root:
[]
= ["auto"]
= 120
# taint_intrafile = false # cross-function taint analysis
# enclosing_context = false # surrounding function in findings (improves LLM deepening)
# ignore_pattern = "nosec" # custom inline ignore annotation
# dynamic_timeout = false # file-size-scaled timeouts
[]
= "ollama"
= "gemma4"
[]
= 5
= "error"
License
MIT