kungfu-systems/kungfu
A project-local task layer that preserves work across coding agents and failed attempts.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Kungfu is a durable task layer beside the agent console, not a replacement for it. A Project groups related tasks; a Work holds one objective, evidence, progress, next action, and completion state; an Attempt records a single execution, including failure. Agent consoles, the CLI, APIs, and optional TUI and GUI expose the same Work state. If a live agent already owns a Work, Kungfu blocks a second writer rather than merging competing updates.
The repository combines native components with a pnpm 11.7.0 workspace spanning framework/, developer/, extensions/, examples/, and product/. The root install script routes through Shifu, and Kungfu embeds the same Shifu crate source in-process that is also shipped as standalone binaries. The .kungfu/ directory holds project-local Work and runtime state. The available material does not establish its storage format or an MCP transport; neither should be assumed from the workspace layout or category label.
Key Capabilities & Differentiators
Run kungfu run codex to use the native console with Kungfu tracking the task, or substitute claude, opencode, or amp. An agent already in use can enter through kungfu agent brief. Handoff is task-level, not transcript replay: a new session can pick up the objective, evidence, and next action without copied chat. Declared sources, omissions, conflicts, and uncertainty remain visible, and the executing agent can submit a result but cannot approve its own Work. Independent review and Kungfu settlement are distinct from process exit.
Two deterministic Mock Agent scenarios give evaluators concrete tests. recovery-story keeps one Work intact across three Attempts: disconnect, crash, and recovered delivery. multi-step exercises a question, an approval, and a ready-for-review result in one Attempt. Neither is a model benchmark or evidence that every backend handles failure identically. Standard onboarding still needs a supported real agent for independent review.
Trade-offs & Limitations
Native session resume is simpler when one agent can finish the task and its conversation history is sufficient. Kungfu adds value when work outlives a session or changes hands and the next agent needs the current objective and evidence rather than a transcript. That comes with a project-local state directory to manage and a separate review step. The single-writer rule prevents competing updates to one Work, but is not a fit for simultaneous multi-agent editing of that same Work.
Treat v4 as an Alpha pilot, not a production durability guarantee. Before adoption, test the handoff and review path with your actual agent pair, and check the project's known limits and version compatibility policy before relying on upgrades. Kungfu does not stage, commit, or push files for you; follow workspaceGit rather than putting all of .kungfu/ under version control. The Apache-2.0 license covers Kungfu; connected providers have separate terms and data-handling policies.
Hardware & Deployment Guide
The CLI is self-hosted at the project level. The macOS and Linux quickstart uses a per-user installer that does not invoke sudo or modify shell profiles; apply the PATH step it prints. Use docs/guides/installing-cli.md for Windows, version pinning, and higher-assurance installation. First validate local recovery with the credential-free Mock Agent, then test execution and independent review with the agents you intend to use. Local state does not imply that those agents run offline.
v4.0.0-alpha.5 ships Buildchain Release Passport assets; the separate shifu-v4.0.0-alpha.5 release ships native Shifu binaries for macOS arm64, Linux x64 static/musl, and Windows x64. Check SHA256SUMS and GitHub build attestations for those artifacts. For source builds, use the Shifu-managed entry point and check toolchain.contract.json; the pnpm pin is a source-workspace detail, not proof that end users need Node or pnpm for the packaged CLI.
kungfu run supports Codex, Claude, OpenCode, and Amp in their native consoles; kungfu agent brief is the entry point for an existing agent.recovery-story scenario exercises disconnect, crash, and recovered delivery across three Attempts.shifu-v4.0.0-alpha.5 provides native binaries for macOS arm64, Linux x64 static/musl, and Windows x64, with checksums and GitHub build attestations.Teams piloting multi-day work that may change agents or resume after a crash, where the next session needs evidence and a clear next action, and completion needs independent review.
Native session resume is enough, multiple agents must write the same task at once, or you require a stable, entirely offline execution and review stack out of the box.
Quick Start & Installation
curl -fsSL https://kungfu.tech/install.sh | sh
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| kungfu ★ | 4.5k | +2 | C++ | Apache-2.0 | A project-local task layer that preserves work across coding agents and failed a |
| Codewhale | 41.2k | +38 | Rust | MIT | Rust coding agent with swappable models, sandboxed execution, and turn receipts |
| opencode | 230.9k | +1.3k | TypeScript | MIT | Terminal-first coding agent with separate planning and editing modes |
| claude-code | 158k | +709 | TypeScript | — | A terminal coding agent for navigating codebases, running tasks, and handling Gi |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/kungfu-systems/kungfu.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about kungfu
How do I integrate Kungfu without replacing my existing agent console?
kungfu run codex to launch Codex in its native console, or run kungfu agent brief from an agent that can execute local commands. Keep the project’s .kungfu/ workspace intact. Before staging anything from it, check the workspaceGit policy returned by kungfu agent map --json rather than committing the entire directory.Do I need a GPU, and how should I size a pilot?
Can a commercial team self-host it, and does that keep all data local?
THIRD_PARTY_NOTICES.md. Connected agent services have separate terms; running Kungfu locally does not establish that model requests or review data stay on the machine.When is Kungfu a better fit than an agent’s built-in session resume?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy