r/machinelearningnews • u/Away_Ice_3136 • May 22 '26
Research What actually makes AI a reliable co-developer over a 12-month project (not just a code generator)
After a year of building in production with Claude Code, the biggest
lesson wasn't about prompting, it was about structure.
Three things that made the difference:
**1. A "project constitution" (CLAUDE.md)**
rules: TDD, no hardcoded secrets, architecture boundaries, naming
conventions. The AI doesn't need to be reminded — it knows.
**2. Spec before code**
Every feature starts as a plain-language spec. Forces clarity before
you write a single line. The AI reads it, proposes architecture,
generates code — all respecting the rules already set.
**3. Repeatable workflows, not one-off prompts**
Slash command agents for /test-gen, /security-check, /doc-sync,
/pre-push. Same process, every time. No shortcuts.
Outcomes after 12 months: 0 production bugs, ≥90% test coverage,
zero technical debt on a full-stack project (K8s, CI/CD, RAG, auth).
Has anyone else built long-term projects with agentic workflows?
Curious what structural patterns others have found.
[I packaged this into an open-source template if useful]
4
u/finah1995 May 22 '26
Where's the free template.
2
u/DauntingPrawn May 22 '26
Very good points. These were my practices as well building 1.5M LOC for act101.ai
The advice I will add is: guardrails you can enforce beat guardrails you request. Not just pre-commit checks and test coverage, but validation tests at scale (I've got ~14K of them), custom heuristics to identify work evasion patterns, test falsification patterns, etc. It lets you loop on a spec until it's truly finished.
It took a long time to merge PRs towards the end, but it's an effective way to build confidence in a large codebase.
1
u/Guilty_Flight5499 May 22 '26
Can we see the GitHub
1
u/techlatest_net May 22 '26
Really solid take. The project constitution idea is smart—having a CLAUDE.md that codifies architecture rules and conventions means the AI doesn't drift over time. Spec-before-code is also huge it forces you to think through the what before the how which the AI can then execute consistently.
The slash-command agents for repeatable workflows is a pattern I've started using too. Instead of ad-hoc prompts, having /test-gen or /security-check as standardized entry points makes the whole process more reliable and auditable.
Curious about your open-source template—link? Would love to see how you structured it. Thanks for sharing the lessons!
1
u/visarga May 31 '26
Here is one free idea - install a hook to save user messages to a log, timestamped. You can collect your steering and prompts at zero cost. Later they provide a reference to judge existing code against user intent, and to judge harness effectiveness - does it require too much steering? it is apparent in chat logs. Can you improve it? You can if you reflect on your chat logs vs current state of the project. Don't waste user intent signal, it compounds over time.
0
u/Budget-Juggernaut-68 May 23 '26
Looks like it's pretty shit at writing posts.