Skip to content

bbkgh/TigerAnalyzer

Repository files navigation

TigerAnalyzer

Using a local LLM as a static analyzer (POC)

Analyzes git diffs of commits, runs rules over changes, and fails in case of errors.

astral-sh/ruff#14085

Usage:

ollama run qwq
pip install -r requirements.txt
# Update config.yaml
python ./analyzer.py COMMIT_ID

Ideas:

  • Modify analyzer.py to work with pre-commit.
  • Add sample rules from ProjectX's git history.
  • Suggest automatic rules for preventing the same kinds of bugs by using an LLM and git diffs of commits (prompt: suggest an analyzer rule if a bug exists).
  • Run a commit suggester that reads the commit before committing and suggests refactors and hints for the current commit (learning)
  • Make this more performant, single prompt with multiple rule
  • Bigger context. Send related files (e.g: fields, ...)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages