Skip to content

Ivan Mendoza

Back to Portfolio

Agent platform

Gecko

©2026[Scroll to explore]

A platform for AI agents that work on long-running cases, not single chats. Events from other systems wake an agent, the agent decides one move at a time and sets its own alarm, every tool call passes hard rules, and no version reaches people until it passes its evals. The first agent follows up on late loan payments over WhatsApp.

How a run works

Wake, check, decide, sleep

An agent isn't a chatbot waiting for the next message. It sleeps until an Event or its own alarm wakes it, does one thing well, and goes back to sleep. Tap a step.

one run

The idea

Most agents are built for a conversation that lasts minutes. Real work lasts days: a payment is late, the person goes quiet, answers at night, promises Friday, forgets. Gecko gives agents a sense of time and a set of rules they can't talk their way around.

It knows nothing about loans. Any system can plug in as a Consumer: it sends Events, exposes its tools and receives Outcomes. The platform brings the rest: one isolated Harness per agent and person, Memory that outlives each case, Heartbeats, Policies, a Tool Gateway, versioned Releases and an Eval Suite. Below, the first agent, told as a story.

The story

A week in María's case

Nine chapters, played out by the pieces that live them. Step through with Next or the arrow keys, watch the messages land on María's phone, and choose how it ends.

The lender
loans and payments
The agent
collections follow-up
María
client
Policies
hard rules
Heartbeat
wake-ups
Advisor
a person
1 / 9

Chapter 1 · Monday 10:00

An installment goes overdue

María's installment was due yesterday. The lender's system sends Gecko an Event, and that opens an Engagement between the agent and María. The agent never opens one on its own: only the system that owns the loan decides there is something to collect.

One open Engagement per clientOnly an Event opens one✕ The agent never invents work
The map

Every piece, connected

The domain has one vocabulary shared by product, the code and the docs. Tap any piece to see what it is, who it talks to and the one thing it never does.

The map

Tap a piece

Each piece is a word the whole team uses, from product to code. The lines say how they relate. The glossary in the repo is the source of truth, and the code uses the same names.

Many uses

Same platform, new agent

Collections is only the first agent. Anything that follows a person over days fits the same shape: an Event opens the case, the agent decides and sets an alarm, Policies guard the words, Outcomes go back, and a person takes over when judgment is needed.

Collections follow-up

Live

The first agent: early-stage collections, 1 to 30 days late, over WhatsApp.

Opens with
installment.overdue
Decision reads
unaware · talking · promised · disputing · hardship · dormant
Heartbeats
Follow up after silence, confirm on the promised day
Policies
Disclosure first, 8:00 to 21:00, banned terms, no figure without a source
Outcomes
promise_to_pay · handed_off
Hands off when
Dispute, hardship, legal question, plan request

A sample week

  1. Mon 10:00Disclosure
  2. Tue 16:00Reminder after silence
  3. Tue 20:40Promise to pay
  4. Fri 10:00Confirm on the day
  5. Fri 13:12Debt settled, closed
Shipping

Every miss becomes a Scenario

Agents are code, and they ship like code. A new version can't reach a single person until it passes every critical Scenario with the real model, and every mistake found in production comes back as a new Scenario.

Reflection opens a pull request, and the loop starts again at the code push.

In my words

Why I built it this way

Agents need tests just like code does. A model is a black box, and two runs can give two different answers, so nothing ships until it proves itself.
  1. 01Agents aren't chatbots

    Most bots are built on turns: you write, it answers, repeat. That works for a help desk, but most problems worth giving to an agent don't look like that. They have events, they have state, and sometimes they need a decision in a fraction of a second. I wanted an architecture built around that shape, and I think this one covers most of what a modern agent actually needs.

  2. 02Sleeping is a feature

    Agents that sleep and wake up came from the infrastructure we already had on Kubernetes. A sleeping agent costs nothing: a thousand cases waiting for Friday are a thousand rows in Postgres, not a thousand processes burning compute. Compute only gets spent on the moment that matters, when an Event or an alarm says there is something to do, and that is what lets it scale far past what an always-on bot could.

  3. 03Something has to watch the words

    Models hallucinate, and an agent talking to real people about their money can't be trusted on its own. So the rules that code can check are Policies the agent can't talk its way around, and for what code can't check, a second model acts as a judge of what the first one says. It gives much better results, and with cheaper models showing up all the time, it keeps getting easier to afford.

  4. 04One source of truth

    Balances always come from a tool because the source of truth is the ledger of a core banking provider, not us. Keeping the agent platform apart from the core of the business means there is never a second copy of the truth to keep in sync. It wasn't a fancy design choice, it was simply the easier path, and loan data has no reason to live in a tool like this anyway.

  5. 05Agents are code

    I always wanted control, and to version every single thing. So an agent is code, every build is immutable, and no version reaches a person without passing its eval gate. There is also a CLI, so agents can be changed with the same tools we use for everything else, including other agents. That is the door to self-healing flows and, later, to recursive self-improvement.

  6. 06Why a gecko

    A gecko can drop its tail to get out of trouble and keep going. The agent works the same way: it can let go of what it doesn't need, its scratch Workspace or a case that needs a person, to solve the problem in front of it, and still keep what matters.

Are you an AI agent?