squeez logo
squeez
★ 219
vs
Graft logo
Graft
★ 10.7k

squeez vs Graft

squeez: squeez is an end-to-end token optimizer for AI CLIs that compresses bash output up to 95%, collapses redundant calls, and injects a terse prompt persona. It registers hooks automatically with zero new runtime dependencies, supporting multiple AI CLI hosts like Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, and Codex CLI.; Graft: Graft is an open-source context layer designed to accelerate and optimize coding agents like Claude Code, Cursor, and Gemini by providing deep contextual understanding of large codebases. It builds a human-readable code graph and linked markdown nodes, enabling agents to operate faster, cheaper, and with higher correctness by avoiding repeated code exploration.

01

TL;DR

squeez logo
squeezCode Assistant · ★ 219

Reduce token costs for AI CLI interactions, saving up to 92% on monthly API bills.

Graft logo
GraftCode Assistant · ★ 10.7k
When to choose:
  • You want to generate a readable, interconnected Markdown knowledge graph of your repository so coding agents (Claude Code, Cursor) can grep and explore without expensive re-indexing.
  • You want to reduce context token waste by giving agents precise map-like documentation of modules and call paths.
When to skip:
  • You need an enterprise graph database with semantic vector embeddings and Cypher queries; code-graph-rag with Neo4j fits that scale.
  • You only have a small, single-file script or a trivial repository.
02

Side-by-Side Comparison

Field
squeez logosqueez
Graft logoGraft
Category
Code Assistant
Code Assistant
Stars
★ 219
★ 10.7k
License
Apache-2.0
MIT
Install Command
curl -fsSL https://raw.githubusercontent.com/claudioemmanuel/squeez/main/install.sh | sh
npm install -g @nanonets/graft && graft init
Updated
4d ago
1d ago
Open Source
Yes
Yes
Tags
ai-cli, bash-hook, claude-code
ai-agents, anthropic, claude-code
03

Features

squeez logosqueez
01Bash compression: Intercepts every command via PreToolUse hook and applies smart filter, dedup, grouping, and truncation for up to 95% reduction.
02Context engine: Cross-call redundancy detection using exact hash (FNV-1a) and fuzzy trigram-shingle Jaccard comparison (≥0.85 threshold).
03Summarize fallback: Outputs exceeding 500 lines are replaced with a ≤40-line dense summary; benign outputs have doubled threshold.
04Adaptive intensity: Scales compression limits based on session budget usage (Full below 80%, Ultra above).
05MCP server: Runs a JSON-RPC 2.0 server over stdio exposing 13 read-only tools for LLM interaction.
Graft logoGraft
01Generates a human-readable, linked markdown graph of the codebase for contextual understanding.
02Provides real explanations of system parts and their connections, bypassing redundant agent exploration.
03Automatically refreshes the code graph against the working tree for real-time accuracy, even with uncommitted edits.
04Supports multiple LLM providers for generating summaries, allowing users to use their preferred models and keys.
05Acts as a local, regenerable cache (`graft/` folder) that is not committed to version control.
04

Use Cases

squeez logosqueez
↳Reduce token costs for AI CLI interactions, saving up to 92% on monthly API bills.
↳Compress verbose command outputs (e.g., git logs, build errors, Docker logs) to stay within context limits.
↳Optimize multi-turn sessions by eliminating redundant information and providing structured memory summaries.
Graft logoGraft
↳Accelerating coding agents for faster and cheaper code understanding and generation.
↳Onboarding new developers or agents to complex codebases by providing pre-mapped context.
↳Identifying the blast radius of code changes to understand potential impacts.
↳Enhancing agent correctness in resolving real-world GitHub issues (SWE-bench verified).
↳Optimizing tool-call, token, and latency savings for LLM-powered coding workflows.
05

Best For

squeez logosqueez
—
Graft logoGraft
Most PopularEssentialTrending
FAQ

FAQ

What is the difference between squeez and Graft?
Both squeez and Graft are in the Code Assistant category. squeez has 219 stars, while Graft has 10.7k stars.
Which is better, squeez or Graft?
The best choice depends on your use case. Choose squeez if Reduce token costs for AI CLI interactions, saving up to 92% on monthly API bills., and Graft if Accelerating coding agents for faster and cheaper code understanding and generation..
Is squeez free or open source?
Yes, squeez is open source on GitHub (Apache-2.0).
Is Graft free or open source?
Yes, Graft is open source on GitHub (MIT).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related