kungfu logo
kungfu
★ 4.5k
vs
Graft logo
Graft
★ 10.7k

kungfu vs Graft

kungfu: Kungfu keeps a unit of Work outside any single agent session, recording its objective, progress, evidence, next action and completion state, so the same Work can move between Codex, Claude, OpenCode, Amp or your own agent without re-explaining context. Each Agent attempt is recorded under the Work, a second live writer is blocked, and an Agent cannot approve its own result: completion goes through independent review. It is in Alpha.; 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

kungfu logo
kungfuDev Tooling · ★ 4.5k

Switching between a premium and a cheaper coding agent on the same task

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
kungfu logokungfu
Graft logoGraft
Category
Dev Tooling
Code Assistant
Stars
★ 4.5k
★ 10.7k
License
Apache-2.0
MIT
Install Command
curl -fsSL https://kungfu.tech/install.sh | sh
npm install -g @nanonets/graft && graft init
Updated
1d ago
1d ago
Open Source
Yes
Yes
Tags
agent-handoff, durable-work, codex
ai-agents, anthropic, claude-code
03

Features

kungfu logokungfu
01Project, Work and Attempt model that keeps durable state outside the chat
02kungfu run codex|claude|opencode|amp starts an agent with its native console while Kungfu tracks the Work
03Recovers the same Work after disconnects and crashes, with a deterministic mock-agent demo
04Blocks a second live agent from writing to a Work it does not own
05Completion requires independent review and settlement, not the agent's own claim
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

kungfu logokungfu
↳Switching between a premium and a cheaper coding agent on the same task
↳Keeping long-running work resumable across context loss and restarts
↳Making agent work auditable with evidence and a reviewed completion step
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

kungfu logokungfu
—
Graft logoGraft
Most PopularEssentialTrending
FAQ

FAQ

What is the difference between kungfu and Graft?
Both kungfu and Graft are in the Dev Tooling category. kungfu has 4.5k stars, while Graft has 10.7k stars.
Which is better, kungfu or Graft?
The best choice depends on your use case. Choose kungfu if Switching between a premium and a cheaper coding agent on the same task, and Graft if Accelerating coding agents for faster and cheaper code understanding and generation..
Is kungfu free or open source?
Yes, kungfu 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