Kaizen Integration
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
$ 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:
Rule is applied automatically without prompting. High confidence from repeated observations.
Rule is suggested to the developer for approval before applying. Medium confidence.
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:
{
"kaizen": {
"enabled": true,
"autoApplyThreshold": 5,
"suggestThreshold": 2,
"rulesPath": ".kaizen/rules.json"
}
}