Decision Workspace
codeshrink-core vs llm-trim vs diffctx
Side-by-side comparison of Rust crates
44
codeshrink-core
experimentalv0.1.0
Query-aware AST code compression for LLMs. Tree-sitter powered, not embeddings.
45
llm-trim
experimentalv0.1.1
Zero-config semantic context minimizer: reduce a codebase to a high-density LLM prompt payload
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
| codeshrink-core | llm-trim | diffctx | |
|---|---|---|---|
| Health Score | 44 | 45 | 57 |
| Total Downloads | 28 | 12 | 251 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 0 | 0 |
| Releases | 1 | 1 | 15 |
| Last Updated | 32d ago | 52d ago | 3d ago |
| Age | 1m | 1m | 4m |
Health Breakdown
codeshrink-core
Maintenance
11
Quality
12
Community
7
Popularity
2
Documentation
12
llm-trim
Maintenance
10
Quality
15
Community
6
Popularity
1
Documentation
13
diffctx
Maintenance
19
Quality
14
Community
6
Popularity
3
Documentation
15
Technical Details
| codeshrink-core | llm-trim | diffctx | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.1 | 1.18.4 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | Apache-2.0 |
| Dependencies | 12 | 7 | 63 |
| Crate Size | 17KB | 31KB | 491KB |
| Features | 0 | 2 | 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.
- •codeshrink-core, llm-trim are pre-1.0 — API may change.