Skip to content

Add language-agnostic StaticAnalysisAgent#16

Open
HuiyunPeng wants to merge 1 commit into
mainfrom
feature/static-analysis-agent
Open

Add language-agnostic StaticAnalysisAgent#16
HuiyunPeng wants to merge 1 commit into
mainfrom
feature/static-analysis-agent

Conversation

@HuiyunPeng
Copy link
Copy Markdown
Collaborator

Replaces benchmark-specific hardcoded CodeQL tooling with a generic agent driven by a fingerprint + performance anti-pattern taxonomy.

  • New tools/codeql/ package: fingerprint, taxonomy, render, runner, report, pipeline, @tool wrappers
  • 21 vetted query templates across Java / C++ / Python (structural backbone + 6-category anti-pattern taxonomy)
  • Per-language adapters expose placeholders (PACKAGE_LIKE / PATH_LIKE / RULE_PREFIX) so a single template adapts to any benchmark
  • Framework gates skip irrelevant probes automatically (e.g. db_access_sites is gated on jdbc/jpa/hibernate)
  • New StaticAnalysisAgent inserted as Phase 2 of complete_pipeline.py between summarisation and analysis
  • AnalyzerAgent prompt updated to read static_analysis_source

See docs/STATIC_ANALYSIS.md for the workflow and extension guide.

Replaces benchmark-specific hardcoded CodeQL tooling with a generic
agent driven by a fingerprint + performance anti-pattern taxonomy.

- New tools/codeql/ package: fingerprint, taxonomy, render, runner,
  report, pipeline, @tool wrappers
- 21 vetted query templates across Java / C++ / Python (structural
  backbone + 6-category anti-pattern taxonomy)
- Per-language adapters expose placeholders (PACKAGE_LIKE / PATH_LIKE
  / RULE_PREFIX) so a single template adapts to any benchmark
- Framework gates skip irrelevant probes automatically
  (e.g. db_access_sites is gated on jdbc/jpa/hibernate)
- New StaticAnalysisAgent inserted as Phase 2 of complete_pipeline.py
  between summarisation and analysis
- AnalyzerAgent prompt updated to read static_analysis_source

See docs/STATIC_ANALYSIS.md for the workflow and extension guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant