All articles
Guide

File-naming convention automation: why Claude Code drifts, and how to enforce it

A naming convention only works if it's followed exactly, every time. That's precisely where a regenerating model struggles. Here's how to make it airtight.

A file-naming convention has to be applied byte-for-byte identically every time, and that's exactly where Claude Code struggles, because it regenerates output rather than applying a fixed rule. Caddi encodes your convention as deterministic code so every file matches the pattern exactly.

You can absolutely prototype this with Claude Code. The gap is everything after: connecting your real systems, making it run identically every time, and maintaining it. That's where most of these projects stall.

Why naming conventions drift in a coding agent

  • Regenerated, not templated. The model produces a name each run, so date formats, separators, and abbreviations vary even for the same document type.
  • Conventions are rules, not suggestions. 'YYYY-MM-DD_Client_Matter_DocType' must be enforced exactly; described in a prompt it's only approximated.
  • Filing context gets lost. Naming usually pairs with filing to the right workspace and matter, which needs a real DMS connection, not just a string.

What slows it down in production

Inconsistent names quietly break retrieval, conflict checks, and audits, and a person ends up renaming files by hand to fix it, which is the work you were trying to automate in the first place.

Claude CodeCaddi
Prototype the workflowYes, with promptingYes, show it once
Connect your real toolsCustom code & credentialsConnected for you
Run it identically every timeOutput can varyDeterministic code at runtime
Run unattended at volumeNeeds supervisionHundreds of runs a week
MaintenanceYoursDone for you
Claude Code vs. Caddi on the dimensions that matter for unattended, regulated operational work.

How Caddi runs it end to end

Caddi enforces your naming and filing conventions as deterministic code: it reads each document's key attributes, builds the name to your exact pattern, and files it into the correct iManage, NetDocuments, or SharePoint workspace with the right metadata, identically every time, with an audit trail. You define the convention once by showing Caddi how you do it.

Caddi turns your screenshares into AI automations: show it the workflow once, and it runs as deterministic code across your tools, maintained for you.
Use Claude Code to explore the idea. Use Caddi to run it in production: connected to your tools, identical every time, and maintained for you.

Keep reading

See deterministic automation in action

Caddi builds reliable automations from a screen recording and runs them across 70+ tools as deterministic code. Explore real workflows for law firms and RIAs & financial advisors, or book a demo to see your own workflow built live.

Do more with less

See Caddi in action

Tell us where to reach you and the calendar opens right here. In 30 minutes we'll show you how Caddi automates the back-office work that grows with your clients—built, run, and maintained for you.

Frequently asked questions

Why doesn't Claude Code follow my naming convention exactly?

Because it regenerates the file name each run instead of applying a fixed rule, so separators, date formats, and abbreviations drift. A convention needs deterministic enforcement.

How does Caddi guarantee exact file names?

It compiles your convention into deterministic code that builds every name to the same pattern and files it to the right workspace, identically on every run.

Does it work with my DMS?

Yes, Caddi connects to iManage, NetDocuments, SharePoint, and others to name, profile, and file documents automatically.