fledge-plugin-stats
Example plugin demonstrating the fledge-v1 protocol. Shows project statistics including file counts, lines of code, git history, and change tracking between runs.
Protocol features used
logโ status messages during analysisprogressโ 5-step progress barexecโ runs shell commands (find, git, wc)metadataโ fetches git_status and git_tagsstore/loadโ persists stats between runs for delta trackingoutputโ renders a formatted stats card
Install
# Install from GitHub:
fledge plugin install CorvidLabs/fledge-plugin-stats
# Or clone and install locally:
git clone https://github.com/CorvidLabs/fledge-plugin-stats.git
fledge plugin install ./fledge-plugin-stats
Usage
fledge stats
Example output
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ fledge stats โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Language rust โ
โ Files 142 (+3) โ
โ LOC 12847 (+215) โ
โ Commits 287 โ
โ Test files 12 (8%) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Rust 38 โ
โ Markdown 22 โ
โ TOML 8 โ
โ Other 74 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Top contributors โ
โ 42 Corvid Agent โ
โ 18 Leif โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Recent commits โ
โ abc1234 fix: plugin protocol test โ
โ def5678 feat: add lanes pipeline โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Development
cargo build --release
cargo clippy -- -D warnings
cargo fmt --check
CI runs on every push and PR via GitHub Actions (.github/workflows/ci.yml).
Zero dependencies
This plugin uses only the Rust standard library โ no external crates. JSON is handled via simple string helpers, making it a minimal reference implementation of the fledge-v1 protocol.