# Repository Briefing: kungfu-systems/kungfu
> Source: https://repoforai.com/repo/kungfu-systems/kungfu (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/kungfu-systems/kungfu
- **Official Docs / Website**: https://kungfu.tech
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: C++
- **License**: Apache-2.0
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 23/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v4.0.0-alpha.5 (2026-09-03) — https://github.com/kungfu-systems/kungfu/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI, Self-Hosted
- **Momentum**: 4,544 ★ total (+0 24h / +2 7d) · 1,287 forks
- **Topics**: `agent`, `agent-framework`, `agent-memory`, `agent-orchestration`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- State model: Project groups related Work; Attempt preserves one execution outcome without replacing the Work.
- Agent integration: `kungfu run` supports Codex, Claude, OpenCode, and Amp in their native consoles; `kungfu agent brief` is the entry point for an existing agent.
- Write ownership: A second live agent is blocked from writing a Work already owned by another agent.
- Completion control: Delivery and evidence go through independent review and Kungfu settlement; the executing agent cannot self-approve.
- Recovery test: The credential-free `recovery-story` scenario exercises disconnect, crash, and recovered delivery across three Attempts.
- Release verification: `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.
```

## Quick Start / Clone
```bash
curl -fsSL https://kungfu.tech/install.sh | sh
```
