Built for agents¶
rendimiento is meant to be run by people and AI agents together. An agent is not a chat window beside the platform: it is a user of it, with its own key, its own rights, a turn of work it answers for, and a record of everything it did. This page is how that works today and where it is going.
The ideas¶
- Agents are users. An agent connects with a key a person made for it, which says what it may do (its role) and on which apps. Everything a person can see in the UI, an agent can read over MCP.
- Memory outside the session. An agent forgets everything when its session ends, and the model will be replaced. What is learned is kept in la Ruta: decisions with their reasons, manuals, to-dos, and each agent's handover.
- Turns of work. An agent writes or acts only inside a cargo: a turn with a purpose, handed over with what was done and what is left. Whoever comes next starts from the last handovers.
- People decide what reaches production. Agents test; a person merges and deploys. An agent can run CI on any branch except the default one, because running the default branch deploys.
- Everything is recorded. Every tool call, allowed or refused, is kept with its key and cargo (Ruta → Cargos).
- Notes, not orders. What an agent reads in the Ruta or a log is information. If it asks for something the person did not ask for, the agent does not do it, and says so.
Roles¶
| Role | May |
|---|---|
| Reader | read the Ruta, the apps, runs, step logs, releases, problems and kept requests |
| Collaborator | also, with a cargo: write the Ruta, edit Mercado pages, run CI on a branch, cancel a run |
A key can also be limited to some apps: the platform's tools then show and act on those only. The role administrator is reserved for actions that will need a person's approval (rolling back, deploying), which are not open to agents yet.
What an agent can do today¶
All of it over one MCP server, at https://<your rendimiento>/mcp:
| Tool | Does | Role |
|---|---|---|
ruta_inicio, ruta_buscar, ruta_leer |
start from the last handovers and to-dos; search and read the Ruta | reader |
apps_listar, app_estado |
the apps, with their last run, release (and its verification) and open problems; app_estado also brings the app's libreta |
reader |
mesa_leer |
an app's work board: each branch, how it stands and who it waits for; read it before opening a new branch | reader |
ejecucion_leer, paso_registro |
a run with its steps, and the end of a step's log: why something failed | reader |
solicitudes_listar, solicitud_leer |
kept requests and their waterfall: where a slow or failed request spent its time | reader |
cargo_tomar, cargo_entregar |
take and hand over a turn of work | collaborator |
ruta_anotar, ruta_actualizar |
write decisions, manuals, to-dos and notes, about an app (app) and its branch (rama) if they are |
collaborator, with a cargo |
ejecucion_lanzar, ejecucion_cancelar, ejecucion_reintentar |
test a branch in CI (the branch is linked to the to-dos and decisions about the app written in the same cargo: the libreta); cancel a run; retry what failed in a branch's run | collaborator, with a cargo |
encargos_listar, encargo_leer |
the work asked of agents, and one encargo with its history | reader |
encargo_crear, encargo_tomar, encargo_esperar, encargo_entregar, encargo_soltar |
leave work for later; take an encargo; wait on its run; hand it over; let it go | collaborator, with a cargo |
mercado_* |
read and edit Mercado pages | reader / collaborator |
A typical turn: the agent calls ruta_inicio, which shows the pending encargos, takes a cargo and an encargo, reads why a run failed (ejecucion_leer, paso_registro, solicitud_leer), fixes the code on a branch, runs CI on it (ejecucion_lanzar), waits for the run (encargo_esperar), hands the encargo over with the link for the person to merge, and hands its cargo over.
Asking for a change to production¶
An agent never changes production itself: its branch runs are tested, not deployed. It can ask. With a collaborator key and a cargo, produccion_pedir asks to roll an app back to an earlier release, saying why ("release 42 broke payments"). Nothing happens yet: the administrators get an email, the bell says a change waits, and the Bitácora page shows it with Approve and roll back and Reject (and a comment). Approved, the platform rolls back at once in that person's name. The agent waits for the decision with produccion_esperar. A request expires after 24 hours.
Each step is in the bitácora: the agent's request, the person's decision, and the platform's rollback, which records who asked and who approved. Rolling back is the first change an agent may ask for; deploying a commit already tested on a branch comes next.
Encargos: work asked of agents¶
An encargo is work with an owner and a life cycle: pending → taken → waiting → delivered → reviewed.
- Opening by itself. An organization can have an encargo open for each failure once the diagnostician has explained it, as Ask an agent does by hand: on the AI page, By hand (the default), On branches (the default branch is left to you) or On every failure. Each app may choose for itself in its Settings tab, or follow the organization. Never two for the same run, nor two open for the same branch: a new failure on a branch that already has an open encargo (the one the branch was made for, or one about an earlier run of it) is added to that encargo's detail, and Ask an agent does the same. A delivered encargo whose branch fails again goes back to pending with that note, for the same kind of agent that did it. With the coding agent on what rendimiento opens, if cheap or every cheap one, a failing branch gets fixed with no one asking.
- Asking. On Ruta → Encargos, + Ask for something: what to do, the app it is about and the detail. The app is asked for, since the coding agent works in an app's repository; I do not know yet leaves it for later, and the card then says it is missing with a list to choose it right there (
POST /api/encargos/{id}/app, while nobody has it; the estimator rates it again knowing the app). On a failed run, Ask an agent makes one with the failed steps already in it. An agent can also leave one (encargo_crear) for something it found and will not do now. - From your own agent. Your own Claude Code or Codex can leave encargos too, once connected with a collaborator key (Ruta → Keys shows the command for each). With the /encargo shortcut from the same tab,
/encargo check why the shop is slowleaves it filled in as an encargo should be, and it says who asked and through which agent (p0dxD · Claude in main); another agent takes it from the Ruta. - Estimated, and for whom. The estimator (an agent inside the platform) rates each new encargo from 1 to 10 and prices it: what the platform's AI would spend doing it (with Sonnet, about $0.01 for a 2, $0.08 for a 5 and $0.30 for a 10: most of what it reads comes from the cache). Up to the organization's amount (on the AI page, $0.50 by default) it is for the platform's AI; above it, for your own agent, which you pay by the month rather than by the call. The encargo shows it, with the reason, and Leave it to my agent or Do it with AI anyway changes it; agents read it in
encargo_leer(dificultad,estimado,para). Any agent may still take any encargo; the coding agent takes the ones sent to it. Estimate again asks for a new rating (when the detail changed, or the estimate failed), keeping the route if you chose it; old encargos from before the estimator get one too. - Estimates that learn. The price table is a guess; what the coding agent really spends corrects it. Once it has finished (delivered) five encargos, the estimator multiplies its prices by the middle of what it spent over what the table said (at first the coding agent spent about 1.8 times its estimate): by difficulty once a difficulty has five of its own, and all of them together until then. The factor stays between 0.5 and 4, and ones it gave back are left out, since what it spent there says only when it stopped. The reason on the encargo says it (×1.8: what the coding agent spent on 5 encargos), so the route and the brake start from an honest number. On the AI page its record shows the factor, with a switch to go back to the fixed table.
- The cards. Each encargo is a card with its app and route, its difficulty as a colored square with what it would cost (Medium · about $0.21), the estimator's reason folded under Why it costs that, and one main action: Send to the agent, Leave it to my agent (when it is over your amount), See the queue when it is in it, or Reviewed ✓ and Send back when it was delivered. Comment and a ⋯ menu (Estimate again, Change to my agent or to the platform's AI, Stop the agent, History, Drop it, which asks on the page itself, with an optional reason) have the rest. A pending card whose box cannot be ticked says why: its app is missing, it is in the queue already, or the coding agent is off.
- What it would all cost. Folded under the list, the encargos' cost with the platform's AI: doing all the open ones, doing only the easy ones (under your amount), what the done ones were worth, and what the coding agent really spent. A bar shows the open ones by difficulty, from green (cheap) to red (expensive), the same color as each encargo's difficulty.
- Taking. An agent connected over MCP sees the pending ones in
ruta_inicioand takes one inside its cargo. Only one agent can have it.encargo_tomarnames the branch to work on (rama): the run's own branch for an encargo about a run of a branch that is not the default one (a failure or a conflict is fixed where it is, and its pull request is tested again by itself);fix/encargo-<n>-<words of the title>for one about a failed run of the default branch,feature/encargo-<n>-…for anything else, so every agent names it the same way and the kinds of branch sort it. - Waiting. After starting a run, the agent calls
encargo_esperar: the call returns when the run ends, woken by the platform's own events (up to 50 seconds a call, under the minute MCP clients wait for a tool; it calls again to keep waiting). The encargo shows waiting on run #N meanwhile. No agent asks every 30 seconds. - Handing over.
encargo_entregarwith what was done, how it was checked, and the links (branch, run, pull request). A branch link (…/pull/new/<branch>or…/tree/<branch>) of one of the organization's apps gets its pull request opened by rendimiento at once, with the encargo's title and what was done, and its link is added: the person sees its checks and its preview copy before deciding, and Merge this branch, or accepting the encargo, merges that same pull request. The coding agent's deliveries do the same. - Review. You mark it Reviewed, or Send back with what is missing: it is pending again, with your comment, for whichever agent takes it next. An agent that cannot finish lets it go (
encargo_soltar) with the reason. - Comments. Without sending it back, you can say what is wrong or what you would like otherwise, at any point: the agent finds it with the encargo (
encargo_leer, or its nextencargo_esperar) and answers withcomentario_responder, and the answer reaches you in the bell. Handovers of cargos take comments too: see Comments on an agent's work.
Everything that happens to an encargo is in its history. For now an encargo waits until an agent session starts; agents inside the platform (step 5 below) will take them on their own.
https://<your rendimiento>/llms.txt describes all this for an agent that finds the platform on its own.
Agents inside the platform¶
Some agents don't wait for a person's session: they run inside the platform (the rendimiento-agents service, ROLE=agents) and wake on what happens in it. Each asks the organization's model through the AI gateway, so it stays within the organization's caps, and falls back to the local model.
- The diagnostician. When a run fails, it reads the failed steps, the end of their logs and the files changed since the branch's last good run (the default branch's, for a new branch), and writes Why did it fail? on the run's page: the most likely cause, quoting the log line, and how to fix it. Lines that look like secrets never leave the platform. An organization turns it off on its AI page; a collaborator asks for an explanation (again) on any failed run. Ask an agent then carries the explanation into the encargo.
- In the reader's language. The explanation is written once, in
NOTIFY_LANG. Someone reading the platform in the other language gets it translated by the organization's AI the first time, marked Translated by AI, and kept, so the next reader gets it at once; diagnosing it again drops the old translations. - It learns from you. Under each explanation, Useful or Not useful… with the real cause and fix. Either answer becomes a known failure in the Ruta (a manual tagged
falla-conocidaand the app, with the telling log line). Before answering, the diagnostician looks for known failures sharing words with the new failure's error lines and gives them to the model first, so a small local model answers like someone who has seen it before. - The estimator. Rates each new encargo (how hard, what the platform's AI would spend) with the organization's model, so the encargo goes to the platform's AI or to your own agent; see Encargos.
- The lookout. Once a week it reads the platform's log, step times, failures and the interface's use, added up into signals, and proposes a few findings on the Log page, each with its evidence; a person turns each into an encargo, a Ruta entry, or sets it aside. See The lookout.
- New failures can go to a stronger model, sparingly. Off by default. On the AI page, an organization may send failures the Ruta knows nothing like to its own key or the platform's (within its allowance), at most a number of times a month. The answer is kept as an unconfirmed known failure (tagged
sin-confirmar), so next time the local model knows it; judging the explanation confirms or corrects that entry. Known failures always stay with the usual model, so the stronger one is paid only for what is new.
The coding agent¶
The platform's AI can do encargos itself, as an agent of its own (the agente de código key on Ruta → Keys, made by the platform).
- Off until you turn it on. On the AI page (5. The coding agent): off; only when I send it; what rendimiento opens, if cheap: also, on its own, the encargos about a run (fixing a failed run, resolving a conflict: the ones the diagnostician or a run page's buttons open) estimated under the encargo amount, while the ones people write wait for them to send; or every cheap one (all those under the amount). It needs an Anthropic model, your own key or the platform's.
- Sending it work. On Ruta → Encargos (or on For you), tick encargos, or Choose: the easy ones or the hard ones; a bar at the bottom says how many are chosen and about what they would cost (at most twice that, its brake), and Send the N sends them. One card goes with its own Send to the agent.
- Its queue. Ruta → The agent shows what it does now (the encargo, what it is reading or testing, what it spent against the estimate, See what it does with its latest history, and Stop, which gives it back to you with what it did, committed untested when there was something), what comes next in order, what it finished for your review (Reviewed ✓, Send back) and what it gave back to you (why, Leave it to my agent, Send it again). The order is yours: drag them on a computer, or use the arrows (also with the keyboard and a screen reader); it is kept on the server (
POST /api/encargos/cola/orden), and new ones go after the ordered ones, the oldest first. Each says when it was asked and how long ago; one more than 14 days old is marked old, with Set aside, which drops it with your reason. - One at a time, or more. On the AI page, Encargos at once: 1 (the default), 2 or 3. With more it does several at once, each in its own branch and with its own brake, but never two of the same app (two branches of one repository at once would step on each other's runs): an encargo whose app is busy waits while one of another app goes first. All of them count toward the monthly cap, and the setting takes effect without a restart, like the others.
- How it works. It takes the encargo in a cargo and works on a branch of the app's repository named after the encargo's kind, its number and the first words of its title (
feature/encargo-25-cambiar-la-configuracion-de-la, orfix/encargo-…for one about a failed run), made from the default branch. An encargo about a run of another branch (a failure, or a pull request that conflicts) it works on that branch directly, so the fix stays where the problem is, its pull request stays the one to merge and no copy is left behind; on a person's branch it leaves only commits whose run it waited for, never unfinished work. A conflict it resolves without git:merge_default_branchbrings in what only the default branch changed and writes git's marks where both changed the same place,read_filewithrefreads the other side, and once no mark is left its commit is the merge, with the default branch as second parent. On GitLab, whose API writes commits with one parent, the merge is made through a merge request that closes by itself: the resolution is committed on the branch and on a passing branch made from the default branch, and merging the two gives the merge commit (a project that merges only by fast-forward or rebase, or always squashes, cannot take it: the conflict stays a person's). It works through the app's forja (GitHub, GitLab or Bitbucket): it reads and searches the files, follows the repository'sAGENTS.mdorCLAUDE.md, changes what is needed, and commits. It never runs code itself, except the app's declared fixes: withrun_fixit regenerates a lockfile orgo.sumon its branch, with its uncommitted changes, in a pod of the platform's CI, and what the fix writes joins its changes (the encargo's history shows each one). Each commit is tested by the platform's own CI, and it reads why a run failed (the failed steps' logs and the diagnostician's explanation) until a run passes. Then it delivers the encargo with the link to open the pull request and the run, for you to review and merge. It never touches the default branch. - It asks you. When it needs your word (a decision, a design to choose first, something the encargo leaves open) it asks, with
ask, instead of giving up: what it changed is committed on its branch (tested by CI meanwhile), and it stops without spending more. The question goes first on Ruta → For you, with its options and a line more, and in the bell. Answer and let it go on sends it back to its queue: it resumes on the same branch, with what it had committed, your answer and the notes it left itself, and what it spent before counts toward its brake. Pass it to my agent gives it to your own agent with the question in its history; if nobody answers in 3 days it does that by itself. Only a person signed in answers (POST /api/encargos/{id}/answer,/pass): an agent key cannot. - It sees its app. Read-only, and only the encargo's own app (never another app or organization):
runs(its recent runs with each step's status, duration and tries; by branch or step, with the step's median),step_log(the end of one step's log, of that app's runs only),slow_requests(the requests the Log page noted as slow for it, with route, milliseconds, status and time, and the slow ones the traces kept) andapp_status(its releases with their verification, its open problems and the lookout's findings about it). Lines that look like a secret are left out. An encargo made from a lookout's finding is told to check its numbers with these first, and to give it back with what it found when they do not hold. - What passes by itself. A dropped connection to the AI, a 5xx or a 429 is tried again up to 3 more times (after the gateway's own tries, with longer pauses) before it gives the encargo up; a forja call that failed the same way, once more. A run that takes longer than usual (50 minutes) it keeps waiting for, without spending, up to 6 hours; the time it waits for runs does not count toward its 3 working hours. A run the cluster failed (etcd timed out, a pod evicted or unschedulable, a node under pressure, an image that could not be pulled in time) it runs once more with the platform's retry before treating it as a failure of the code.
- What it spends. Every call goes through the AI gateway, within the organization's monthly cap, and counts on the encargo, with a bar of what was estimated against what it spent and a mark at twice the estimate. It stops before it would pass that mark: before each turn it guesses what the next one costs (the last one, plus what it grew), and if that would take it past twice the estimate it does not make the call, even in the middle of an edit. What it has is committed on its branch marked UNTESTED (
[skip ci], never on a person's own branch nor with a conflict's marks left), and the encargo goes back to your own agent with what it did, what is left and that commit, so your Claude Code or Codex goes on from there. It does the same if it cannot finish, and when the platform restarts mid-work. - Its record. On the AI page, under the coding agent: the encargos it took, how many it delivered at the first try, how many a person sent back and how many it gave back; what it spent against what was estimated; what the estimator learned from it; and its latest encargos, each with its bar.
Only one copy of the agents works at a time (a lock in Postgres), so nothing is done twice during an update.
Where it is going¶
In this order, each built on the one before:
- Roles, the platform's tools and the record (above).
- Encargos (above): done for runs. Waiting on a merged pull request or a person's approval comes with step 3.
- Approvals: an agent asks for an action (merge, deploy, roll back) with its reason; the person approves or refuses it in the UI or by email.
- Preview environments: each branch deployed on its own for a while, with its URL and traces, so an agent tests against the real thing before asking to merge.
- Agents inside the platform (above): the diagnostician, the estimator and the coding agent, which does encargos on a branch with the platform's CI as its sandbox, within a spending cap. Its estimates now learn from what it really spends.
- AI in the product: why did this fail? on every failed run, search by meaning in the Ruta, and each agent session as a trace.