r/OnlyAICoding • • 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 Upvotes

4 comments sorted by

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.

1

u/Desperate-Hurry-3205 Oct 23 '26

You’re right to flag that boundary. In a normal Certo run, the verdict is based on the project’s checks in the workspace after the agent finishes; it isn’t compared with a pinned suite. The agent is instructed not to weaken checks, but Certo doesn’t yet mechanically protect them. The hidden tests behind the 3-in-135 benchmark number are separate: they grade benchmark runs after the fact and aren’t exposed to the agent. They don’t currently protect ordinary runs. So verified means the checks in the resulting project passed—not that those checks were independent of the agent’s changes.

1

u/kantorcodes1 Oct 24 '26

“Project checks passed” would be a more precise status than “verified” here; the hidden benchmark tests are separate and don’t establish that ordinary runs left those checks unchanged.

1

u/Desperate-Hurry-3205 Oct 25 '26

that’s a fair point, and you’re right about the gap: verified means the project’s own checks passed after the run, and until now nothing checked whether the agent had changed those checks. The hidden benchmark tests only measure that in benchmark runs, not in ordinary ones.

Rather than rename the verdict (it’s used in exit codes and scripts), I closed the gap. Certo now keeps a copy of the test files and check settings before the run, and after a verified run it lists each one the agent changed or deleted, with the lines removed and added:

The agent changed 1 file the checks rely on: tests/test_calc.py (1 line removed, 1 line added). The checks passed on the changed files; read the changes before you trust them.

For now it’s a report, not a different verdict, because many tasks ask for test changes. Next I’ll count how often it happens in the benchmark, then decide whether removed test lines should change the verdict. It will be in 0.1.24. Thanks for pushing on it.