How pref0 learns code style preferences

Code style is deeply personal — language, framework, naming conventions, file structure. pref0 extracts these preferences from corrections and compounds them into a reliable profile.

What pref0 extracts

Examples of code style preferences that pref0 detects and scores from conversations.

"Use TypeScript, not JavaScript"

language: typescript0.70
Explicit correction

"camelCase for variables, PascalCase for components"

naming: camelCase_vars_PascalCase_components0.70
Explicit instruction

"Keep functions under 20 lines"

code_style: short_functions0.40
Explicit instruction

User consistently writes arrow functions in code blocks

function_style: arrow_functions0.30
Behavioral pattern

"Use Tailwind, not styled-components"

css_framework: tailwind0.70
Explicit correction

"Always add error handling"

best_practice: error_handling0.40
Explicit instruction

Confidence progression

See how a single preference compounds in confidence across multiple conversations.

Session 1

"Use TypeScript, not JavaScript"

0.70
Session 3

"Write this in TS"

0.85
Session 5

User writes TypeScript in code blocks

0.95
Session 7

Consistent TypeScript usage observed

1.00

Related preference types

See preference learning in action

Your users are already teaching your agent what they want. pref0 makes sure the lesson sticks.