code2prompt vs LLMLingua
code2prompt is a developer tool from code2prompt (MIT licence, 7.8k GitHub stars, last push 2026-11-06); LLMLingua is a library from microsoft (MIT licence, 6.8k GitHub stars, last push 2026-11-09). They share 1 of 3 capabilities and integrations identified for either (overlap 0.60); only code2prompt covers Prompt Optimization; only LLMLingua covers Context Compression. Figures as of 2026-11-21. DER
code2prompt profileLLMLingua profileOpen in the compare tool
Side-by-side facts
6 of 16 rows differ (marked). Unknown means no source we track states it.
| Field | code2prompt | LLMLingua |
|---|---|---|
| Type · differs | Developer tool · hosted CUR | Library · library CUR |
| Publisher · differs | code2prompt CUR | microsoft CUR |
| Licence | MIT CUR | MIT CUR |
| Open source | Yes CUR | Yes CUR |
| Pricing model | open-source CUR | open-source CUR |
| Hosting | Unknown | Unknown |
| Latest version | Unknown | Unknown |
| Languages · differs | rust CUR | python CUR |
| GitHub stars · differs | 7.8k (7,771) SRC | 6.8k (6,846) SRC |
| Forks · differs | 459 SRC | 456 SRC |
| Last push · differs | 2026-11-06 SRC | 2026-11-09 SRC |
| Archived | No SRC | No SRC |
| First published | Unknown | Unknown |
| Versions recorded | Unknown | Unknown |
| Verification | Checked by AgentSidekick against official sources CUR | Checked by AgentSidekick against official sources CUR |
| Last verified | 2026-11-21 CUR | 2026-11-21 CUR |
Shared and unique capabilitiesDER
Capabilities are assigned by keyword rules from each description unless a researcher set them; integrations are services named in the description or package metadata.
Both (1)
Only code2prompt (1)
Only LLMLingua (1)
Platform compatibility
Status per platform from the evidence we hold. No pairing has been tested by AgentSidekick.
No compatibility evidence
For all 47 platforms on record the status is Unknown or Platform discontinued for both: neither product type implements a standard we can check (MCP, Agent Skills, Claude plugins) and neither publisher names a platform.
Maintenance
Repository activity read from the GitHub API. Activity is not quality.
| Measure | code2prompt | LLMLingua |
|---|---|---|
| Status | Active DER | Active DER |
| Days since last push | 15 DER | 12 DER |
| Open issues | 6 SRC | 101 SRC |
| Latest GitHub release | v4.2.0 · 2025-12-11 SRC | v0.2.2 · 2024-04-09 SRC |
| Newest registry version | Unknown | Unknown |
Evaluation dimensions
Separate signals with their evidence; there is no overall score. Hover or focus a status for its evidence.
| Dimension | code2prompt | LLMLingua |
|---|---|---|
| Source authority | Checked against official sources | Checked against official sources |
| Publisher verification | Organisation account | Organisation account |
| Maintenance activity | Active | Active |
| Licence clarity | MIT | MIT |
| Installation clarity | Unknown | Unknown |
| Documentation | Repository / website only | Repository / website only |
| Compatibility evidence | Unknown | Unknown |
| Security review | Not reviewed | Not reviewed |
Which fits which requirementDER
Derived from the differences above, one rule per line. Nothing here says either product is better; check the requirement against your own needs.
Choose code2prompt if…
- you need Prompt Optimization (classified for code2prompt only)
Choose LLMLingua if…
- you need Context Compression (classified for LLMLingua only)
Sources
- code2prompt · Curated research: github.com (external)checked
- code2prompt · Researcher checked: github.com (external)checked
- LLMLingua · Curated research: llmlingua.com (external)checked
- LLMLingua · Researcher checked: llmlingua.com (external)checked
- LLMLingua · Researcher checked: github.com (external)checked
Page data last updated .