Type: url
Original: https://toss.tech/article/52631
Status: generated
Summary
A Toss Bank ML engineer describes why team coding conventions stop being followed as a coding-agent session lengthens — the rules, loaded once at the start, drift into the middle of the context, which is the position the model attends to least — and why writing them into a project-root instruction file does not fix it. The team’s answer is a plugin, pfmls-stylepack, that injects the relevant conventions through hooks at two points inside the agent loop: immediately after each file is written, and again as the agent tries to finish, when it reviews the whole change as a diff. The post also describes instrumenting the plugin against itself, using logs of which rules fired to tighten a trigger that misfired across 21 sessions without changing any code, and to move defects that only appear at runtime out of triggered rules and into always-loaded context.