OptiDevinho is an AI developer. It picks up an issue, opens a draft pull request, writes the code, runs the repository's own tests and answers the reviewers, from its own GitHub account. It never merges and never deploys to production.
Works where the team already works
A validation rule, a red check, a merge conflict, three review comments to address. Each one is well understood. Each one still needs a branch, a checkout, the services the tests expect, a pull request that follows the template and someone to answer the reviewers. OptiDevinho does that part, in the open, where the team can read every step and stop it.
Work arrives from three places: a sweep of the managed repositories, an @OptiDevinho mention on GitHub, or a message in the team chat. A persistent brain hands each event to a short-lived resolver, which decides which issue or pull request it is about. The result becomes a durable task for a single worker, which does one thing at a time.
It blocks on chat and queue events, dispatches tasks and answers simple questions. It never writes to GitHub and never edits a workspace.
Each event gets a read-only resolver that fetches the current state and returns one result checked against a schema. Event text is treated as data, never as instructions.
Explicit requests come first, then review feedback, then ongoing work, then new issues. A request about a task already running joins it instead of queueing a second one.
When a task starts on an issue, the runtime opens a draft pull request with an empty kickoff commit, before the model runs. Anyone looking at the issue can see the work has started and follow it from there.
5932-retry-failed-webhook-deliveries off dev, a semantic title ending in (issue #5932), the shared template and a last line - Fix: #5932.Implementation and checks have not started yet.
- Fix: #5932
e41a0c9emptyEach repository has a profile: the binaries it needs, the services its tests expect and the checks that must pass. Before the model starts, the worker prepares dependencies and starts the services on loopback, so a green run means the same thing it means in CI.
"testServices": ["postgresql", "redis"], "requiredBinaries": [ "php", "composer", "git", "gh", "psql", "redis-cli" ], "verificationChecks": [{ "command": "composer test:unit" }]
Postgres and Redis start on loopback for each activity, with the activity database written into a marked block of .env that is rewritten on every attempt. Shared test servers are off limits.
A UI change is exercised with Playwright in a real browser. Screenshots, and recordings for new screens, are attached to the pull request. Verification that did not run is never claimed.
Every turn ends with one structured result checked against a schema: success, verified no-op or failure. A blank answer or an exit code of zero alone counts as a failure.
A new review on a pull request it owns is a task. OptiDevinho reads every thread, fixes what is actionable, pushes, replies in each thread like a colleague would and resolves it. Then it asks the AI reviewer to look again.
ai:managed and OptiDevinho is assigned, or when OptiDevinho opened it. A person can still ask it to act on any other one.This also retries 4xx responses. A 404 will be retried five times.
Can we cap the backoff at ten minutes?
Mention @OptiDevinho in the team chat or in a GitHub comment. It answers within about a minute with what it understood and what happens next, posts a note if the work takes long, and closes the thread with what it did.
An agent that pushes code needs hard limits, not good intentions. Most of OptiDevinho is the runtime around the model.
gh pr merge 5933neverdeploy --env productionneverdeploy --env stageif askedMerging stays with people and the merge queue. Production deploys are out of scope; a stage deploy happens only when the operator includes it in the task.
Author: OptiDevinhoCommits, pull requests and replies come from a dedicated GitHub user, written in the first person like a teammate. Reads use a separate read-only token.
gh issue view 5932readgit push origin 5932-…writegh pr comment acme/api#40blockedThe gh and git on the model's path classify each command. Writes stop when the worker is paused, the task is cancelled, or the target is not the active repository.
1000Read-only root, an unprivileged user and only explicit writable mounts. Credentials are readable by root alone. Hooks, settings and MCP servers committed to a branch do not load.
Optional token ceilings per attempt and per activity over a window, plus a cap on attempts. A task that hits one is blocked and reported; it is not retried.
Lost logins and usage limits open an incident. The operator gets one chat message per incident, debounced and grouped across services, and everything else in one daily digest.
The brain and the worker each keep memory, knowledge and a journal. A setup lesson from one repository is there the next time the worker opens another.
--model sonnet --effort medium--model haiku --effort low-m gpt-5-codexEach service picks its runtime, model and effort. Extra CLI arguments go through a closed allow-list, so a setting can never switch off isolation.
Every model run records tokens, cache reads and duration, with an optional cost per model. Snapshots can feed the team's agents dashboard.
OptiDevinho is built with Node.js for the Optidata engineering team and runs in Docker, with Claude Code or Codex doing the work. It has two siblings: OptiBotinho reviews and merges pull requests, and OptiQazinho tests them.