Kaizen Integration

Optional

Kaizen is an optional companion tool that learns from review failures and builds a project-specific knowledge base over time. When pokayokay encounters repeated review patterns, kaizen captures them as rules to prevent future occurrences.

Installation

Terminal
$ go install github.com/srstomp/kaizen@latest

Confidence Thresholds

Kaizen assigns a confidence score to each learned rule based on how many times the pattern has been observed. The score determines how the rule is applied:

5+
AUTO

Rule is applied automatically without prompting. High confidence from repeated observations.

2-4
SUGGEST

Rule is suggested to the developer for approval before applying. Medium confidence.

0-1
LOGGED

Rule is logged but not applied or suggested. Still building confidence from observations.

Configuration

Kaizen is configured through your project settings. When installed, it hooks into the review pipeline automatically:

.claude/settings.json
{
  "kaizen": {
    "enabled": true,
    "autoApplyThreshold": 5,
    "suggestThreshold": 2,
    "rulesPath": ".kaizen/rules.json"
  }
}