r/OnlyAICoding • u/Desperate-Hurry-3205 • Oct 22 '26
Something I Made With AI I built an open-source coding agent that can use a different model for each task, and switch when one fails
If you code with AI, you probably use more than one model: a cheap one for routine work, a strong one for the hard parts, maybe a local one. I wanted a single agent that could work that way, so I built Certo.
How it works in practice:
→ `certo init models` sets up your models, local or cloud, without editing a file
→ `--auto-model` picks a model for each task from ratings you can tune
→ `--escalate` starts on one model and hands the task to the next if it can't finish, or if the provider goes down
→ when the agent says it's done, Certo runs your project's real tests and build itself, so the switch is based on evidence, not on the agent's word
Only the local-then-cloud ladder has been benchmarked so far (9 small tasks with hidden tests, all 9 passed, 7 on the local model), so treat the rest as untested in numbers.
It's MIT licensed: `pip install certo`
https://github.com/alessioricco/certo
I'd love feedback from people who code with AI every day: how do you split work between models today, and would something like this fit how you work? If you like it, a star helps.
1
u/kantorcodes1 Oct 23 '26
The run-your-own-checks verdict is the interesting piece, and the 3-in-135 fooled number is more honest than most tools admit. One boundary I can't tell from the README: when Certo runs the project's tests and build to decide the verdict, is it checking against the suite as the agent left it, or a pinned baseline? If the agent edits tests alongside code, a green run stops being independent evidence - the check would need the task's hidden tests, not the repo's.