macOS
brew install wegglilocal Homebrew formula metadata
brew / Rang 11975
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für weggli in AI-Agent-Workflows.
Installation
brew install wegglilocal Homebrew formula metadata
sudo apk add weggliAlpine Linux edge package indexes · weggli · Quelle: dl-cdn.alpinelinux.org
nix profile install nixpkgs#wegglinixpkgs package indexes · pkgs/by-name/we/weggli/package.nix · Quelle: api.github.com
sudo zypper install weggliopenSUSE Tumbleweed package metadata · weggli · Quelle: download.opensuse.org
Überblick
Fast and robust semantic search tool for C and C++ codebases
Verlauf
weggli is a Rust semantic-search tool for C and C++ codebases, designed for security researchers who want fast, code-shaped queries over large or incomplete source trees. Its README says it matches user-provided patterns on abstract syntax trees and uses a query language that resembles C and C++.
The current GitHub repository was created in September 2021, and crates.io metadata shows package publication beginning in October 2021. The README states that weggli is inspired by Semgrep, Coccinelle, joern, and CodeQL, but intentionally makes different tradeoffs for C/C++ review.
Those tradeoffs define the project: first-class support for modern C++ constructs, minimal setup without requiring a successful build, interactive performance, and greedy matching that finds useful variants even at the cost of false positives. The implementation is built on tree-sitter C and C++ grammars, with queries translated into tree-sitter query machinery plus weggli-specific behavior.
weggli's adoption is strongest in vulnerability research and manual code-review circles rather than general developer search. A 2024 HN Security article described converting C/C++ vulnerability patterns from Semgrep into weggli queries and using the tool to identify hotspots such as buffer overflows, integer issues, format strings, memory-management mistakes, and command-injection patterns.
By July 2026, the repository had about 2.5 thousand GitHub stars, which is sizable for a specialized security CLI. Its package-manager niche is clear: it gives reviewers a fast semantic grep for C and C++ without requiring a full CodeQL database, compiler build, or heavyweight SAST workflow.
A typical invocation is `weggli <PATTERN> <PATH>`, where the pattern is written in a C/C++-like language with metavariables and wildcards. For example, patterns can look for a stack buffer followed by a `memcpy` call, suspicious arithmetic before allocation, or API-specific call sequences.
In practice, users run weggli interactively while reading source: write a pattern, inspect matches, refine the query, and then manually audit nearby code. It is especially useful for variant analysis after one bug is found and for quickly mapping attack-surface idioms in unfamiliar C/C++ projects.
weggli is package-nerd significant because it is the small, installable middle ground between `grep` and heavyweight static-analysis platforms. It makes AST-aware C/C++ searching feel like a fast CLI habit rather than an infrastructure project.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
weggli | Executable | indexiertes Executable | Aus dem lokalen Executable-Index erkannt. |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
Installationsmetadaten
| Paketschlüssel | brew:weggli |
|---|---|
| Version | 0.2.4 |
| Paketmanager | Homebrew |
| Homepage | https://github.com/weggli-rs/weggli |
| Repository | https://github.com/weggli-rs/weggli |
| Bottle | nicht erfasst |
| Dienst | keiner deklariert |
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
weggli
nix profile install nixpkgs#weggliweggli 0.2.4-r1
Semantic search tool for C and C++ codebases
https://github.com/googleprojectzero/weggli
sudo apk add weggliweggli 0.2.4-2.13
A semantic search tool for C and C++ codebases
https://github.com/googleprojectzero/weggli
sudo zypper install weggliQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.