Skip to content
Artwork for Tech Stories Tech Brief By HackerNoon
Tech Stories Tech Brief By HackerNoon · Yesterday · 15 min

A 12-Line Conventions File Fixed Every Claude Coding Failure in My Experiment

This story was originally published on HackerNoon at: https://hackernoon.com/a-12-line-conventions-file-fixed-every-claude-coding-failure-in-my-experiment. I ran Claude 20 times on one task. Missing context made it guess the "average" answer, like fillna(mean). Here's what fixed it. Check more stories related to tech-stories at: https://hackernoon.com/c/tech-stories. You can also check exclusive content about #llms, #machine-learning, #context-engineering, #ai-agents, #claude-code, #ai-coding-assistants, #prompt-engineering, #software-engineering, and more. This story was written by: @turman17. Learn more about this writer by checking @turman17's about page, and for more stories, please visit hackernoon.com. As an ML developer I treat every prompt like a dataset with missing values. I tested it: 20 runs of Claude Sonnet on one coding task. With only the task, it filled every gap with the same "average" guesses. With my data model but no conventions, it stored $12.50 as 12.5 cents, 5 times out of 5. With a 12-line conventions file, every run passed. Burying it in 62k tokens of noise didn't hurt accuracy, only the bill.

0:00-15:14

transcript

No transcript — this publisher did not publish one.

show notes

This story was originally published on HackerNoon at: https://hackernoon.com/a-12-line-conventions-file-fixed-every-claude-coding-failure-in-my-experiment.
I ran Claude 20 times on one task. Missing context made it guess the "average" answer, like fillna(mean). Here's what fixed it.
Check more stories related to tech-stories at: https://hackernoon.com/c/tech-stories. You can also check exclusive content about #llms, #machine-learning, #context-engineering, #ai-agents, #claude-code, #ai-coding-assistants, #prompt-engineering, #software-engineering, and more.

This story was written by: @turman17. Learn more about this writer by checking @turman17's about page, and for more stories, please visit hackernoon.com.

As an ML developer I treat every prompt like a dataset with missing values. I tested it: 20 runs of Claude Sonnet on one coding task. With only the task, it filled every gap with the same "average" guesses. With my data model but no conventions, it stored $12.50 as 12.5 cents, 5 times out of 5. With a 12-line conventions file, every run passed. Burying it in 62k tokens of noise didn't hurt accuracy, only the bill.

links13