Artificial intelligence

Agentic AI

An agent that does one job inside your systems and records each step it takes.

How we do it

Overview

An agent is a model that chooses its next step and calls a tool to carry it out, such as looking up an order, updating a record or sending a message. This makes agents useful for work that a fixed workflow handles poorly, where each case needs a slightly different sequence of steps. It also changes the kind of risk involved, because a chatbot that gets something wrong produces a bad paragraph, whereas an agent that gets something wrong issues the refund, closes the ticket or emails the customer.

Most of the engineering effort goes into what surrounds the model. Tools have to work against real systems, with their rate limits, partial failures and records that someone else has locked, and an action that is retried must not take effect twice. Access has to be narrow enough that a manipulated agent can do little harm. When something does go wrong, a person needs to be able to read what the agent saw, what it decided and why, without asking a specialist to interpret the logs.

We keep the agents we build narrow by design. Each one has a single job, a short list of tools with the minimum permissions for each, and a defined point at which it stops and passes the case to a person. Prompt injection has no complete fix, so we do not count on the model to resist it and make sure instead that the agent cannot reach anything its job does not need.

Challenges we address

The failures we are usually called in to fix
  1. An agent with a broad brief and access

    To make it helpful, the agent was given a general brief and a broad service account. As a result nobody can list what it is able to change, the security team will not approve it, and each round of testing turns up a new way for it to drift outside its task.

  2. Tools tested only on the happy path

    The tool call works when the record exists and the API responds. In production the API times out, returns a partial result or rejects the request, and the agent then either stops altogether or reports a success that did not actually happen.

  3. The same action taken twice

    When a call times out, the agent cannot tell whether the write went through, so it retries and the customer ends up with two refunds or two orders. Unless every write operation carries an idempotency key, each retry risks repeating an action that has already been completed.

  4. Instructions hidden in the data

    The agent reads an email, a web page or a document field that contains text written to redirect it. Models cannot reliably tell content apart from commands, and the agent is holding live credentials while it reads, which is what makes the injected text dangerous.

  5. No readable record of what happened

    When a case goes wrong, the only evidence is raw model output spread across many log lines. Support staff cannot explain the decision to the customer and engineers cannot reproduce it, so the same fault tends to come back a week later.

Our approach

How the work runs, in order
  1. Define the one job

    We write down the job, the conditions under which it starts and ends, and the cases that fall outside its scope. Any part of the process that always follows the same steps is built as ordinary code or a workflow, which leaves the agent with only the part that calls for judgment.

  2. Build tools before prompts

    Each tool is a small typed function that wraps one operation in one system, with input validation, timeouts, clear error messages and an idempotency key on every write. We test each tool by itself against the real systems, including how it handles failure responses, before any model is allowed to call it.

  3. Grant the minimum access

    The agent runs under its own identity, and its permissions extend only as far as its tools require, with read and write access kept separate. High-impact actions carry limits that are enforced outside the model, such as a ceiling on refund amounts, and any action above that limit waits for a person to approve it.

  4. Trace every decision

    Each run records the input, every model step, every tool call with its arguments and result, and the final outcome, written so that a support lead can follow it. The same traces feed the test suite, which checks the path the agent took as well as the place where it ended up.

  5. Design the handoff

    We define the conditions under which the agent stops, which include a missing fact, a tool failure, a request outside its scope and a case it cannot classify. The case then goes to a named queue along with a summary of what has been done so far, so that the person who picks it up does not have to start from the beginning.

Technical capabilities

What we design, build and operate
  • Single-purpose agents

    We build agents for one defined job, for example resolving one class of service request or reconciling one type of record, and the limits of that job are enforced in code.

  • Tool engineering

    Typed and validated tools over your APIs and databases, with timeouts, retries with backoff and idempotent writes, and with error messages written so that the model can act on them.

  • MCP servers and clients

    Where a shared standard is useful, we expose tools through the Model Context Protocol and add the permission checks, rate limiting and protection against duplicate writes that the protocol leaves to whoever implements it.

  • Least-privilege identity

    Each agent gets its own identity, credentials scoped to each tool, short-lived tokens where the platform supports them, and policy checks that run in a separate layer outside the model.

  • Approval steps

    We add points at which the agent pauses so that a person can approve, edit or reject the action it proposes, and we build them into the queue or tool that person already works in.

  • Durable execution

    Agent work that runs for a long time is held in a workflow engine, which keeps its state through restarts and while the agent waits for an approval, so the state does not depend on the model's context.

  • Decision traces

    A step-by-step record of every run that can be searched by case and read without help from engineering, and that is kept for audit for as long as your policy requires.

  • Injection containment

    We keep untrusted content separate from instructions, restrict what the agent is allowed to do once it has read external text, and block it from sending data to destinations that have not been approved.

Where it applies

Business applications
  • Service request resolution

    Handling one defined class of request from start to finish, such as an address change or the rebooking of a delivery, and passing every other request to staff.

  • Back-office reconciliation

    Matching invoices, payments or shipments across systems, correcting the simple mismatches and preparing the remaining ones for a person with the supporting evidence attached.

  • IT and access requests

    Fulfilling routine requests within policy, such as adding someone to a group or assigning a software license, and asking for approval wherever the policy says it is needed.

  • Case preparation

    Collecting the documents, records and history for a claim, a dispute or an application, so that the reviewer begins work with a complete file.

  • Record upkeep in core systems

    Finding and fixing duplicate, incomplete or out-of-date records under strict rules about which fields may be changed, with each change written to a log.

In practice

Two situations this service is built for, and what we would do in each.

Logistics and supply chain

Rebooking failed deliveries at a parcel operator

The situation
A parcel operator's service team spends a large part of each day dealing with failed deliveries. For every case someone has to read the driver's note, check the customer's preferences, find a new slot and update the booking, and the order of these steps changes from case to case. A scripted bot already handles the simplest cases and passes everything else to staff.
What we would build
We would build an agent with four tools, which read the delivery record, read the customer's preferences, query available slots and create a rebooking. The rebooking tool would be idempotent and restricted to the customer's original address. Address changes, damaged parcels and repeated failures would go to a person with a summary of the case, and every run would be traced, with a sample reviewed against a test set built from past cases.
What it is designed to change
Routine rebookings would be completed without a person, which leaves the team's time for cases that need judgment. We would track the share of cases the agent closes, how often it hands off, and how many of its rebookings are later reversed because they were wrong.
Financial services

Preparing card dispute files at a bank

The situation
A bank's disputes team builds a file for each contested card transaction, made up of the transaction record, the merchant details, any earlier disputes and the customer's statement, and collecting all of it takes longer than making the decision. The bank's risk function will not accept an AI system that is able to move money or decide outcomes.
What we would build
We would build an agent with read-only access to the transaction, merchant and case systems and a single write tool, which attaches a prepared file to the dispute case, so it has no way to issue credits or close cases. Text supplied by the customer would be treated as untrusted content. Each file would list its sources, and the trace of every run would be stored with the case for the bank's audit and model risk reviews.
What it is designed to change
When analysts open a dispute, the evidence would already be assembled and the decision would still be theirs to make. Success would be judged on the analyst time spent gathering evidence for each dispute and on how often analysts send a file back as incomplete or wrong.

Technologies

We work in your stack and recommend on fit. We resell nothing.
Agent frameworks
LangGraph · OpenAI Agents SDK · Claude Agent SDK · Pydantic AI · Google Agent Development Kit · plain code on provider SDKs
Tool protocols and interfaces
Model Context Protocol · function calling · OpenAPI · REST and GraphQL APIs · message queues
Durable workflow engines
Temporal · AWS Step Functions · Azure Durable Functions · Camunda
Identity and policy
OAuth 2.0 · OpenID Connect · Open Policy Agent · cloud IAM roles · secrets managers
Tracing
OpenTelemetry · Langfuse · LangSmith · Arize Phoenix

Business outcomes

What changes for the organization
  • Routine cases closed inside your systems

    One defined class of case is completed from start to finish in the systems of record, while staff deal with the cases that need a decision only a person can make.

  • A documented limit on agent access

    Your security and risk teams receive a written list of everything the agent can read and change, and the limits on it are enforced in code that runs outside the model.

  • Every action can be explained

    If a customer or an auditor asks why something happened, the trace shows in plain language what the agent saw and what it did in response.

  • Failures that stop safely

    When a call times out, an input looks wrong or an instruction has been injected, the run ends with a handoff to a person, which prevents a duplicate payment or an incorrect update that goes unnoticed.

What you hold at the end

  • An agent in production for one defined job
  • A tool library with validation, timeouts and idempotent writes
  • A permissions document that lists each system and operation the agent can reach
  • Readable traces for every run, stored for audit
  • A handoff queue with case summaries for staff
  • A test set scoring the agent's path and outcome
  • A runbook covering pausing, rollback and tool changes

Questions buyers ask

A workflow is the better choice when the steps are known in advance, because it is cheaper, faster and easier to test. An agent makes sense when the order of steps depends on what each case contains and writing out every branch would be impractical. Many good designs are mostly workflow, with a model making one or two bounded decisions inside it, and we will tell you when a use case proposed as an agent would be better built as ordinary automation.

Not completely, because a model reads instructions and data through the same channel and no current technique separates them reliably. Filters and careful prompting make attacks harder without closing the gap, so we design for containment, which means the agent has narrow permissions, cannot send data to arbitrary destinations and needs approval for high-impact actions. When assessing any agent, it helps to ask what the worst outcome would be if it were completely manipulated.

Using MCP does not by itself make an agent safe to connect. The protocol standardizes how an agent discovers and calls tools, which saves integration work and lets tools be reused across applications, but it does not decide what a given agent may do, throttle its calls, stop a retried write from taking effect twice or prevent a tool result from carrying injected instructions. Those controls have to be built into each server and the systems behind it, so we use MCP where the standard helps and build the controls in every case.

That depends on whether the action can be undone and what a mistake would cost. Reading and preparing can usually run unattended, and reversible, low-value writes can run within limits with a sample checked, while irreversible or high-value actions should wait for approval, at least to begin with. We start with more approval steps than the final design needs and take them out one at a time as the traces and test results show the agent handling those cases correctly.

We recommend starting with one. When several agents pass work between them, the cost, the latency and the number of places a mistake can enter all go up, and the traces become harder to follow. A single agent with well-made tools can handle most bounded jobs. Splitting it becomes worthwhile when two parts of the job need different permissions or different models, and in that case the boundary between them should be an explicit, typed handoff.

Discuss agentic AI with the people who would do the work.

Tell us what you are trying to do and where it is stuck. A principal reads every message and replies within one working day.

How we engage

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy