Hua Shi Lei

Autofix, a pipeline that files and fixes its own tickets

About: Portfolio website

Problems on the live site now turn into work without anyone typing a ticket. A watcher tails the production Worker, probes the site every five minutes and records anything that looks wrong in a local queue.

Running /autofix in Claude Code files each finding as a ticket in the HSLD Jira project with a plan, fixes it on its own branch and checks it with the type checker, the linter, the tests and a build.

A deterministic risk classifier then decides how the change ships. Low-risk changes merge and deploy automatically. Anything that touches API routes, auth code, migrations, configuration or dependencies, or that is simply large, opens a pull request for review instead. After an automatic deploy the live checks run again, and a regression opens a revert pull request rather than reverting on its own.

The watcher costs nothing while it runs. Tokens are spent only when a person runs the command.

All build log entries