plankit / pk

Plan-driven development toolkit

LLMs are open-ended. Development needs determinism. pk bridges that gap.

pk is a CLI for Claude Code that encodes the discipline AI-assisted development needs. Plans commit to an approach before code is written. Rules guide the AI away from common pitfalls. Tests protect what works. Guards block git mutations on protected branches before damage happens.

Designed for small teams and independent developers. Single Go binary, zero dependencies, MIT licensed.

Install

Download the binary for your platform from the releases page, put it on your PATH, and run:

pk setup

Or, if you have Go installed:

go install github.com/markwharton/plankit/cmd/pk@latest
pk setup

Requirements: git and Claude Code. The pk binary has no runtime dependencies — Go is only needed if you install from source. Setup refuses to install outside a git working tree by default; see setup docs for non-git use cases.

What it does

Commands

Hook commands (pk guard, pk pin, pk preserve, pk protect) run automatically — triggered by Claude Code or by other pk commands. You don’t invoke them directly.

Setup modes

pk setup                       # default: block guard, manual preserve
pk setup --guard ask           # prompt instead of blocking
pk setup --preserve auto       # preserve plans on ExitPlanMode

Docs


pk is the toolkit behind plankit. We use it to build everything. Free for you to use too.