Case study

Virtual employees, built and run for you: Shadow Staff AI, our own runtime for AI agents, from product brief to production in 15 days

Our own product: Shadow Staff AI builds AI agents for one job in a company and runs them 24/7. Underneath sits our own agent runtime in Rust. It deploys each agent in isolation, with schedules, backups, a login, staging and production, and full telemetry out of the box. The customer sees every token and its price, with no margin.

Live at shadowstaff.ai
Industry
AI agents and agent operations for small and medium businesses
Scope
Full product build - agent runtime in Rust, isolation and network security, scheduler, backups, login and edge, staging and production releases, telemetry and cost view, marketing website, and the first agent in production
Engagement type
Own product
Virtual employees, built and run for you: Shadow Staff AI, our own runtime for AI agents, from product brief to production in 15 days

The challenge

We build AI agents for companies. Each agent does one job, for example the collection of market data every night. A working prototype is the easy part. The hard part comes after the prototype: the agent must run every day, on a server, safely, and somebody must look after it.

Our first agent showed the problem clearly. It collects the rates and occupancy of competitor villas for a villa rental company in Costa Rica. As a prototype, it ran on a schedule on a laptop. Its web interface had no access control, and the customer views and the admin views were in one interface. Its telemetry was a set of tables in its own database. There was no trace of the model calls, no cost tracking, and no test environment.

Each new agent repeats these problems. Secrets, schedules, storage, alerts, and hosting are different in each prototype, so we build them again for each agent. And the customer cannot see what the agent costs.

We wanted one answer for every agent: one fast runtime where we deploy each agent in minutes, isolated from all other agents, with telemetry, environments, and cost reports out of the box.

What we built

Shadow Staff AI is a service: we build an AI agent for one job in your company, and we run it for you 24/7. The customer does not build, upload, or operate anything. The customer pays for three things: the build, a monthly hosting fee, and the tokens at the price of the AI provider, with no margin.

Under the service sits our own agent runtime, written in Rust. It does these tasks:

  • Deploy from one manifest. A builder describes an agent in one file: its containers, its web service, its jobs, its schedules, its secrets, and its model settings. One command deploys it.
  • Isolate each agent. Each agent runs in hardened containers on its own internal network. An egress proxy is the only path to the internet, with an allowlist for each agent. An agent cannot reach the host, the cloud metadata service, or another agent.
  • Run work on a schedule. A scheduler starts jobs nightly, weekly, or on request. It retries a failed job, stops a job that runs too long, and sends an alert when a job fails or the data becomes stale.
  • Keep the data safe. Each agent stores its data in its own SQLite database. The runtime backs it up continuously to object storage and restores it to a point in time with one command.
  • Give each agent a front door. Each agent gets its own web address under shadowstaff.ai, with TLS and a login for each person. Builders invite users from the command line.
  • Release safely. Each agent has a staging environment and a production environment. A builder promotes a tested version to production in one step, and goes back to the previous version in one step.
  • Record every step. The runtime collects traces, logs, model calls, tokens, and costs for each agent, without extra code in the agent. Each agent gets its own telemetry database and its own project in the builder interface. Builders and their local coding agents read the telemetry through a web interface and an HTTP API.
  • Show the cost. The customer sees the tokens and the token price of their agent, per day and per month.

Around the runtime we built the marketing website at shadowstaff.ai, with the service, the pricing model, and a form to request a build.

The first agent now runs on the runtime in production. Every night, it reads 365-day calendars and price quotes for each competitor villa. Every week, it finds new competitors, and the owner confirms each one in the dashboard.

How we built it

Three decisions shaped the build.

Measure before you decide. On day one, we wrote the product brief and ran a spike with real measurements. We compared Docker and gVisor for isolation, and three telemetry stacks for traces and cost. The numbers decided the design. For example, gVisor made SQLite reads five times slower, so the databases run under hardened Docker, and gVisor stays an option for each container. One telemetry stack calculated its own model prices, so it could not show the customer the exact price. We chose the stack that shows the provider cost exactly.

A spec, then small release units. A written tech spec defined version 0: only the functions that the first agent needs in production. We split the build into release units: the core, network and egress, secrets, storage and backup, scheduler and alerts, edge and login, environments, and telemetry. Each unit had its own acceptance tests and went through review rounds before the merge.

Automate the boring parts. The runtime creates every resource of an agent when it deploys the agent. That includes the containers, networks, volumes, secrets, the telemetry database, and the telemetry project with its keys. A builder does no manual setup step. That is the difference between a platform for two agents and a platform for fifty.

What this build demonstrates

Shadow Staff AI is our own product, and we built it the way we build for clients. In 15 days we went from a product brief to a Rust runtime with isolation, schedules, backups, a login, safe releases, and full telemetry, plus a marketing website and the first agent in production for a real customer. We bring the same approach to client work: measure first, write the scope down, ship in small tested units, and carry the work all the way to production.

The outcome

What came out of the build

01

From product brief to the first agent in production in 15 days: one runtime written in Rust, around 55,000 lines in 14 crates, built in 92 reviewed commits

02

One manifest and one command deploy an agent. The runtime creates the containers, the private network, the database, the backups, the secrets, the login, and the telemetry project automatically, with no manual setup step

03

Each agent works alone. No agent can see the data, the secrets, the network, or the telemetry of another agent. The customer sees every token and its price per day and per month, at the provider price

Is there a job in your company that an AI agent can do every day?

Shadow Staff AI is our own service, and it follows the same method we bring to client work. Measure first, keep the scope tight, and carry the build all the way to production. Contact us if you want an agent that works for your company 24/7, or a runtime like this for agents of your own.

info@transfactor.dev