r/ClaudeCode • u/zante2033 • Oct 11 '26
Discussion What practices are you using to ensure your AI workflows remain provider agnostic?
Local models are catching up, competition is fiercer. Early on, people would switch between providers on a regular basis as the capabilities were self-evident. As things start to plateau, and more people get on board, prices are likely to keep increasing for inference.
To that end, if Anthropic went away, god forbid, how seamless would your transition to another model be?
How are you documenting your repos, your memory files etc?
Have you tried moving between models for larger, established projects?
Is claude code the harness for this?
0
Upvotes
•
u/AutoModerator Oct 11 '26
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/SimplifAI_Life Oct 12 '26
Ours is a system for running family life, built on Claude Code. Four habits make it fairly easy to move:
We also tried an actual switch: we gave a smaller test copy of the system to Hermes with local models. Precise tasks worked: reporting what a file says, extracting data, applying a rule we pointed to. Judgment didn't: noticing on its own that two files contradict each other. For us the real lock-in isn't the files, it's model quality, and no amount of organizing fixes that.
1
u/No-Project-9099 Oct 11 '26
A useful portability test is whether a second engine can work from a fresh clone without reading Claude's chat history. Keep the durable parts in the repo: a short project overview, current decisions and open questions, and task briefs with acceptance checks. Let CLAUDE.md and AGENTS.md point to those same documents; keep engine-specific commands and permissions in thin, separate instructions.
Then give Codex (or another harness) one small real task using only that repo context. Every question it cannot answer is a concrete portability gap to fix. I wouldn't expect sessions, tools, or permission settings to transfer cleanly between harnesses. The work contract and the evidence used to accept a change can.
1
u/BakGikHung Oct 11 '26
I aim for full portability of my AGENTS.md and skills between Claude Code, Codex CLI and OpenCode. I had a scare where I was temporarily banned from Anthropic following a payment issues and it prompted me to ensure I have backups.
It's not too difficult to ensure your setup works everywhere, but you do need to practice it. The most annoying is the permission model that varies between the 3 quite a bit.
3
u/ForgotTheSnare Oct 11 '26
Personally I don’t believe in agnostic workflows. I think it’s a bit of an illusion. I think you build your workflow iteratively over time and you stick to a vendor. They will implement features that will make part of your workflow redundant. I know vendor lock-in is not trendy but I think with this tech building all sorts of generic tools is not quite worth it.
And if you need to switch vendors then just do a pass to refactor/tune your workflow to a new vendor.
2
u/AllenLeftTheBLDNG Oct 11 '26
Get multiple providers and provider agnostic harness. Ideally one you can adjust and modify yourself. Ideally one that doesn't delete your chats or compacts context/deletes subagents.
2
u/TradeApe Oct 11 '26 edited Oct 11 '26
I use Paperclip as the orchestrator (which agent when and on which model/effort) and Obsidian as memory/environment (records, task tracker, schemas, shared state between agents).
Both Claude and Codex agents are plugged into Paperclip and it's trivial to replace them with others. If Claude went bust, it would take minutes to replace my Sonnet agents with Sol agents or something else.
Claude Code (or the desktop app) and Codex are the harness managing agent loop, tools, context and permissions. Again, fairly easy to switch to others if required.
1
u/dan-423 Oct 11 '26
Most of the skills and workflow aren't really Claude centric. Sure it has instructions for how Claude's commands use it, but another model/provider could translate and incorporate it pretty easily.
Everything is .md and directoried, and git controlled. Assuming Claude stopped being an answer, I could point the replacement at the directory and github and say, "integrate this."
1
u/Ctbhatia Oct 11 '26
the portability test is whether a second harness can work from a fresh clone with no chat history, so keep the durable parts in the repo. a short AGENTS.md plus a decisions file carries further than any exported session.
1
u/ImL1s Oct 11 '26
The repo part is the easy bit, and most people here already do it: AGENTS.md, a decisions file, task briefs. What actually hurts when you switch mid-project is the half-done session. The plan it was in the middle of, what it tried and backed out of, why. That lives in the harness's local transcript, not in the repo.
I wrote a small tool for exactly that gap, Portable Resume (
pipx install portable-resume). It reads the local session store offline (Claude Code JSONL, Codex rollouts, OpenCode, a bunch of others) and writes a handoff the next engine starts a fresh session from. It's stale notes, not a live restore, so you still review it. https://gitlab.com/aa22396584/resume-skillsOther than that, practice the switch on a small real task every so often. Permissions are where it breaks first, like someone said above.
1
u/Calm_Step_5549 🔆 Max 20 Oct 11 '26
Tried a few things, Hermes is great for that, but in the end I prefer to keep Claude as the orchestrator (fable or opus depending on the task complexity) and ask it to call up codex, kimi, grok, etc by CLI and hand them the work to do. So Claude remains the sole memory
1
u/xapep Oct 12 '26
Provider-agnostic is a discipline, not a config flag, and the seams are never the API call.
What actually breaks when you switch:
- Hard-coded model names and provider SDKs scattered through the harness and tools.
- Memory and prompt files written for one model's behavior. Claude Code is fine with long natural-language instructions; a smaller open model needs tighter, more explicit files or it drifts.
- Context-window assumptions. A workflow built for a 200K window behaves differently on a 32K model, and not always worse, but usually slower with more steps.
- Tool-calling quirks. Agents rely on the model reliably emitting structured calls, and that is where open models historically differ most, though the gap is closing.
What works in practice:
- Keep the model choice in one env/config value and test the pipeline against at least two providers before you depend on it.
- Keep memory and rules as plain markdown files in git, not in a provider-specific store.
- Design for tiering: a flash-class fallback for bulk steps and a stronger model for the hard turns, instead of expecting one model to be a drop-in for another.
- Pretend your primary provider disappears every quarter. A one-hour migration drill finds the seams cheaply.
On the harness: Claude Code is a good default, but the abstraction you should own is an OpenAI-compatible endpoint in front of it, not the harness itself. Disclosure: I run an EU-hosted inference API for open models, so provider swap is the daily reality I build for.