Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/FreePeak/LeanKGWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/plugins/freepeak/leankg/gemini-extension)<a href="https://agentmods.dev/plugins/freepeak/leankg/gemini-extension"><img src="https://agentmods.dev/badge/plugins/freepeak/leankg/gemini-extension/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/plugins/freepeak/leankg/gemini-extension"><img src="https://agentmods.dev/badge/plugins/freepeak/leankg/gemini-extension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>Grade A, and why
leankg scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
{
"name": "leankg",
"description": "Lightweight knowledge graph for AI-assisted development. Impact analysis, code search, dependency tracking, and context generation.",
"version": "0.1.0",
"contextFileName": "GEMINI.md"
}What ships with it
60 files beside gemini-extension.json in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/banner.svg 5.3 KB
- assets/icon.svg 1.1 KB
- examples/c-api/include/calc.h 60 B
- examples/c-api/src/calc.c 240 B
- examples/cpp/utils_test.cpp 134 B
- examples/cpp/utils.cpp 113 B
- examples/crystal-api/user.cr 177 B
- examples/csharp/Calculator.cs 200 B
- examples/csharp/CalculatorTests.cs 298 B
- examples/cuda-api/kernel.cu 340 B
- examples/cypher-api/graph.cyp 344 B
- examples/elixir-api/greeter.ex 100 B
- examples/elm-api/Counter.elm 455 B
- examples/erlang-api/math.erl 153 B
- examples/fsharp-api/Math.fs 239 B
- examples/glsl-api/shader.vert 178 B
- examples/go-api-service/benchmark_results.json 659 B
- examples/go-api-service/benchmark.py 11 KB runs code
- examples/go-api-service/cmd/server/main.go 1.9 KB
- examples/go-api-service/docs/AGENTS.md 6.8 KB
- examples/go-api-service/go.mod 31 B
- examples/go-api-service/internal/api/handler.go 6.1 KB
- examples/go-api-service/internal/middleware/middleware.go 3.0 KB
- examples/go-api-service/internal/models/models_test.go 2.8 KB
- examples/go-api-service/internal/models/order.go 2.1 KB
- examples/go-api-service/internal/models/user.go 1.2 KB
- examples/go-api-service/internal/repository/order_repository.go 3.6 KB
- examples/go-api-service/internal/repository/user_repository.go 2.7 KB
- examples/go-api-service/internal/services/order_service.go 3.6 KB
- examples/go-api-service/internal/services/services_test.go 5.3 KB
- examples/go-api-service/internal/services/user_service.go 3.3 KB
- examples/go-api-service/pkg/logger/logger.go 1.8 KB
- examples/go-api-service/README.md 4.0 KB
- examples/haskell-api/Geometry.hs 285 B
- examples/hlsl-api/shader.hlsl 260 B
- examples/hooks/leankg-memory 5.7 KB
- examples/java-api-service/README.md 1.7 KB
- examples/java-api-service/src/main/java/com/example/Application.java 798 B
- examples/java-api-service/src/main/java/com/example/controller/ApiController.java 1.4 KB
- examples/java-api-service/src/main/java/com/example/model/Order.java 1.4 KB
- examples/java-api-service/src/main/java/com/example/model/OrderStatus.java 189 B
- examples/java-api-service/src/main/java/com/example/model/User.java 1001 B
- examples/java-api-service/src/main/java/com/example/service/OrderService.java 1.6 KB
- examples/java-api-service/src/main/java/com/example/service/UserService.java 1.2 KB
- examples/java-api-service/src/main/java/com/example/util/Validator.java 975 B
- examples/java-api-service/src/test/java/com/example/service/UserServiceTest.java 1.8 KB
- examples/kotlin-api-service/README.md 1.7 KB
- examples/kotlin-api-service/src/main/kotlin/com/example/Application.kt 211 B
- examples/kotlin-api-service/src/main/kotlin/com/example/controller/ApiController.kt 758 B
- examples/kotlin-api-service/src/main/kotlin/com/example/model/Order.kt 597 B
- examples/kotlin-api-service/src/main/kotlin/com/example/model/OrderStatus.kt 185 B
- examples/kotlin-api-service/src/main/kotlin/com/example/model/User.kt 276 B
- examples/kotlin-api-service/src/main/kotlin/com/example/service/OrderService.kt 943 B
- examples/kotlin-api-service/src/main/kotlin/com/example/service/UserService.kt 634 B
- examples/kotlin-api-service/src/main/kotlin/com/example/util/Validator.kt 452 B
- examples/kotlin-api-service/src/test/kotlin/com/example/service/UserServiceTest.kt 794 B
- examples/lua-api/math.lua 127 B
- examples/nim-api/math.nim 210 B
- examples/ocaml-api/math.ml 223 B
- examples/pgsql-api/fn.sql 356 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 6 lines scan A fb1d96ec5181
leankg is a plugin published in the GitHub repository FreePeak/LeanKG (222 stars, last pushed yesterday), licensed Apache-2.0. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.
leankg compared with plugins from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| leankgFreePeak/LeanKG | Plugin | 222 | yesterday | Apache-2.0 | A | — | Gemini CLI |
| codebase-memoryDeusData/codebase-memory-mcp | Plugin | 49k | yesterday | MIT | A | — | Claude Code |
| neural-memorynhadaututtheky/neural-memory | Plugin | 246 | 2d ago | MIT | A | — | Claude Code |
| engraphis-memoryCoding-Dev-Tools/engraphis | Plugin | 184 | yesterday | Apache-2.0 | A | — | Claude Code |
| pensyvemajor7apps/pensyve | Plugin | 101 | 4d ago | Apache-2.0 | A | — | Claude Code |
| umodelalibaba/UnifiedModel | Plugin | 472 | 4d ago | none | A | — | Claude Code |
| hebbrixHebbrix/hebbrix-mcp | Plugin | 2 | 4d ago | MIT | A | — | Claude Code |