Example plugin demonstrating the fledge-v1 protocol. Shows project statistics including file counts, lines of code, git history, and change tracking between runs.
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 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-statsfledge stats ╭─────────────────────────────────────────╮
│ 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 │
╰─────────────────────────────────────────╯
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.