Skip to main content

perk

perk is a Pi-native workflow for plan-driven software engineering.

It combines a Python CLI that manages the session exterior, a TypeScript Pi extension that governs the session interior, and an issue backend for durable workflow state, GitHub by default. The workflow is organized around planning, implementation, code review, and learning.

Workflow stages and surfaces can use perk’s built-in defaults or pluggable third-party extensions, such as plannonator for plan review.

perk is built for work that may be interrupted, resumed elsewhere, superseded, or moved across machines. Resumability, human feedback, and remote execution are not special cases; they are part of the core model.

perk is inspired by erk, formerly maintained by the team at Dagster.

What perk is

perk's unit of work is a plan: a reviewed, durable description of a change, written before files are edited and saved as canonical workflow state. The core spine is plan -> save -> implement -> submit -> address -> land -> learn; address only happens when review feedback needs a response. Longer-running objectives can emit bounded plans into the same spine.

The implementation is split across two planes:

  • exterior — the Python perk CLI, which scaffolds repos, manages worktrees, mints run ids, and launches primed pi sessions;
  • interior — a TypeScript Pi extension, which owns in-session stage transitions, tool gates, context, and warm /... commands.

Both planes read the language-neutral shared/ registry and contracts directly. There is no codegen layer to drift.

The operating model is deliberately simple: canonical state lives in GitHub by default (Linear is supported), .perk/workflow/ is a local cache, and session state is throwaway. Cold doors launch fresh context from a shell (perk implement, perk plan resume); warm doors keep context inside a session (/submit, /land, /learn). implement and address can dispatch to CI; review, merge, and learning stay local.

Quickstart

From the git repo you want to wire:

uv tool install perk
perk init
perk doctor
perk plan

perk init is idempotent and safe to re-run. perk doctor reports health; perk doctor --fix repairs managed drift.

You need a git repo plus git, gh, node >= 22, pi, and uv. ast-grep is preferred for structural search and reported when absent, but it is advisory. GitHub auth is verified and reported by init; it becomes required when you drive real plans, PRs, and merges.

For the guided first run, follow Get started with perk.

Documentation

Operator docs live under docs/user-docs/:

  • Tutorials — learn by doing; start with Get started with perk.
  • How-to guides — recipes for specific jobs: resume a plan, address review feedback, switch to Linear, attach a skill, dispatch to CI.
  • Reference — CLI commands, in-session commands and tools, objectives, configuration, providers, backends, and schemas.
  • Explanation — the mental model: plans, planes, state tiers, doors, and remote maturity.

Internal research, design notes, and durable learnings live under docs/.

Layout

  • perk/ — Python CLI, the session exterior.
  • extension/ — TypeScript Pi extension, the session interior.
  • shared/ — stage registry and cross-plane contracts.
  • docs/ — operator docs, research, design notes, and learnings.

Develop

Two pinned toolchains:

  • Pythonuv (3.13, pinned in .python-version), ruff (lint/format), ty (types).
  • TypeScript — npm (Node ≥ 22, .npmrc), Biome (lint/format), tsc (types).

With just:

just setup
just install-cli
just fmt
just lint
just typecheck
just test
just ci

just setup runs uv sync, npm install, just hooks, and just install-cli. The hook is managed by prek and runs ruff check on staged Python. Re-run just hooks after a fresh clone if hooks are missing.

Without just: uv run … for Python (uv run perk init, uv run pytest, uv run ruff check perk tests, uv run ty check) and npm run … for TypeScript (npm run lint, npm run typecheck).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

perk-3.2.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

perk-3.2.0-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file perk-3.2.0.tar.gz.

File metadata

  • Download URL: perk-3.2.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for perk-3.2.0.tar.gz
Algorithm Hash digest
SHA256 5cfe03a3c1e8a872c6c56e2ca8f8be47ae030f3032b7c49948f80220aa790d8d
MD5 28b7e6f0b9fc07973e812d21bf2c67e4
BLAKE2b-256 b64f2c809c41ee5ecd050ba1b395926cd28f769691467de5bfbe7bc484a5984f

See more details on using hashes here.

Provenance

The following attestation bundles were made for perk-3.2.0.tar.gz:

Publisher: release.yml on mattgiles/perk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file perk-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: perk-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for perk-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13b44a4b2e826f3e2c7a3861e6c85887e1d6c20e8d9815ba08d0b540b3679aa0
MD5 9609192a958c11382104af6fe7eae7bd
BLAKE2b-256 7c7918a32fd94dd264aa215311f8f2a7c648aa18f33d8575872fb6e112425f6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for perk-3.2.0-py3-none-any.whl:

Publisher: release.yml on mattgiles/perk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.2.0 This release

2 files

3.1.0

2 files

3.0.0

2 files

2.3.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.1.0

2 files

1.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page