Skip to content
dnanatihorPublic

About

Tollgate reviews pull requests for security (OWASP/CWE), LLM app security, architecture rules, and performance. The model proposes findings; verification, ranking, and the verdict are ordinary code. Configuration always comes from the base branch. Tollgate never approves a PR.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

Tollgate — Enterprise-architect-level AI pull request reviewer

CI PyPI Licence

demo

Why

Security, architecture, and performance issues land in pull requests faster than a human review queue can cover them, and style bots do not cite the standards an organisation actually uses. Platform, security, and architecture teams on GitHub and Bitbucket need a reviewer that checks each change against OWASP, the organisation's own rules, and performance checks, and that publishes a finding only when the code can be anchored to a real line.

Quickstart

From this repository:

uv sync --frozen
uv run tollgate standards list
uv run tollgate review --local --base main --dry-run

After a PyPI release (package name tollgate-review; the CLI stays tollgate):

pip install tollgate-review
tollgate review --local --base main --dry-run

See docs/publishing.md for tagging a release.

How it works

flowchart LR
  diff[Diff] --> plan[Plan units]
  plan --> llm[Lens review]
  llm --> verify[Verify anchors]
  verify --> report[Verdict and comments]
Loading

The model proposes findings. Verification, ranking, and the verdict are ordinary code. Tollgate never approves a pull request.

Results

Scripted eval report from uv run python eval/harness.py (eval/reports/latest.json):

Lens Recall Precision
architecture 1.0 0.909
llm_security 1.0 1.0
performance 1.0 1.0
security 1.0 1.0

41 seeded cases (Python, TypeScript, Java, Go, and C#), 10 clean cases, 0 clean-case false positives at medium or above, 0 inline comments per PR in the scripted run, and 0 USD because the scripted model is unpriced. The critic stays on for high and above; a rejection dismisses the finding so it cannot block.

Design decisions

Roadmap

tollgate serve queues signed GitHub and Bitbucket webhooks. A live GitHub App review still needs credentials this checkout does not have.

Licence

Apache-2.0. See LICENSE.

About

Tollgate reviews pull requests for security (OWASP/CWE), LLM app security, architecture rules, and performance. The model proposes findings; verification, ranking, and the verdict are ordinary code. Configuration always comes from the base branch. Tollgate never approves a PR.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages