Routing coding agent sessions across Claude Code, Codex, and Ollama in one harness — model picked per session

Reddit r/AI_Agents Tools

Summary

A developer describes building a multi-engine agentic coding harness that routes sessions across Claude Code, Codex, and Ollama, selecting from twelve models per session based on task value.

Spent the last few months building an agentic coding setup for my team. The design decision I'd defend hardest is refusing to marry a single provider, mostly because every model I've committed to has been obsoleted roughly six weeks later. Everything runs through one session abstraction. Underneath, three execution engines: Claude Code CLI — Opus/Sonnet, does the heavy lifting on real refactors Codex CLI — GPT-5.6 variants Ollama — minimax-m3 and glm-5.2 via cloud, same path works fully local Twelve models, picked per session from a dropdown. The session, its history, and its working directory don't know or care which engine is behind it. Why it was worth it: routing by task value. Renaming a variable does not require a frontier model, no matter how much the frontier model would enjoy it. Cheap model for config tweaks, frontier for the multi-file refactors, local for anything that can't leave the box. New model drops, it's a config entry instead of a weekend. The genuinely annoying part is that the three CLIs agree on nothing. Session resumption, streaming format, approval prompts, token reporting — all different, all confidently so. Roughly 80% of the work was normalizing that into one interface. The other 20% was the fun part I originally started this for. 1,851 sessions through it so far, 15-person team. Anyone else running multi-engine? Still picking models by hand like an animal — curious if anyone's automated the routing.
Original Article

Similar Articles

Harness design for long-running application development

Anthropic Engineering

Anthropic engineers detail a multi-agent harness design using generator and evaluator agents to improve Claude's ability to build complete, high-quality frontend applications autonomously over long durations.

favorite Agentic Coding Harness

Reddit r/LocalLLaMA

The author compares several agentic coding harnesses (Codex CLI, Claude Code, Gemini CLI, OpenCode, Pi) and finds Pi the leanest and best for local models, praising its simplicity and compatibility with Qwen 27B-MXFP8.

@shao__meng: Why do Claude Code, Cursor, Codex, Aider, and Cline exhibit different agent behaviors despite potentially sharing the same underlying models? @addyosmani argues: It's due to the "shell" above the model — the Harness, which includes "prompts, ...

X AI KOLs Timeline

The article discusses how Addy Osmani argues that the performance difference between AI coding agents like Claude Code, Cursor, and Cline stems from their 'Harness'—the layer of prompts, tools, and constraints around the model—rather than the underlying model itself. It details best practices for harness engineering, including hooks, sandboxing, and context management, to bridge the gap between model capability and actual agent performance.

@unicodef1wn: https://x.com/unicodef1wn/status/2070179071548395916

X AI KOLs Timeline

A thread explaining how Anthropic's dynamic workflows in Claude Code allow Claude to build custom harnesses for complex tasks, preventing failure modes like agentic laziness, self-preferential bias, and goal drift by splitting work across separate agents. It includes practical examples and patterns for users to implement.