A backend per AI agent: the killer use case
The most compelling use case for Trubase DB is giving every AI agent invocation its own isolated backend. Not a connection to a shared database. Not a schema within a multi-tenant cluster. A complete, physical Postgres backend — its own tasks, its own timeline, its own slice of the log.
Today, AI agent platforms face a fundamental state management problem. When an agent needs to store intermediate results, explore hypotheses, or simulate database operations, it typically writes to a shared database with careful namespacing — prefixed table names, session-scoped schemas, or row-level isolation. This creates contention, cleanup complexity, and subtle bugs when concurrent agents interfere.
With Trubase DB, the workflow is: branch from a template backend in milliseconds. The agent gets a complete Postgres backend with the template's full schema and data (copy-on-write — zero bytes actually copied). The agent reads, writes, creates tables, runs DDL, mutates freely. No shared state. No conflicts. No cleanup scripts.
When the agent completes, the backend is disposed. The tasks drop, the memory returns, the divergent pages get garbage-collected. Total cost for a 30-second agent invocation branched from a 10GB template: the storage cost of the modified pages (likely kilobytes) plus 30 seconds of task compute — essentially nothing.
Scale this to millions of concurrent agents. Each is a lightweight set of tasks over its own timeline. The infrastructure cost is dominated by storage of divergent pages, not by compute.
This is architecturally impossible with legacy PostgreSQL. You cannot fork 10,000 OS processes per second — the OS scheduler collapses. Poolers share a database — no isolation. The only way here is an engine built on tasks and timelines.