Decision Workspace
llm-trim vs codeshrink-core vs diffctx
Side-by-side comparison of Rust crates
45
llm-trim
experimentalv0.1.1
Zero-config semantic context minimizer: reduce a codebase to a high-density LLM prompt payload
44
codeshrink-core
experimentalv0.1.0
Query-aware AST code compression for LLMs. Tree-sitter powered, not embeddings.
57
diffctx
experimentalv1.18.4
Selects the minimum code an LLM needs to review a git diff: walks the dependency graph outward from changed lines and stops when extra context stops paying for itself
Core Metrics
| llm-trim | codeshrink-core | diffctx | |
|---|---|---|---|
| Health Score | 45 | 44 | 57 |
| Total Downloads | 12 | 28 | 251 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1 | 0 |
| Releases | 1 | 1 | 15 |
| Last Updated | 52d ago | 32d ago | 3d ago |
| Age | 1m | 1m | 4m |
Health Breakdown
llm-trim
Maintenance
10
Quality
15
Community
6
Popularity
1
Documentation
13
codeshrink-core
Maintenance
11
Quality
12
Community
7
Popularity
2
Documentation
12
diffctx
Maintenance
19
Quality
14
Community
6
Popularity
3
Documentation
15
Technical Details
| llm-trim | codeshrink-core | diffctx | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.0 | 1.18.4 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | Apache-2.0 |
| Dependencies | 7 | 12 | 63 |
| Crate Size | 31KB | 17KB | 491KB |
| Features | 2 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.75 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •diffctx leads with a health score of 57/100, but none of the options score above 80.
- •llm-trim, codeshrink-core are pre-1.0 — API may change.