Canonical: https://redgold.ai/learn/database-for-ai-agents

[Home](<https://redgold.ai/>)[Learn](<https://redgold.ai/learn>)[Database for AI agents](<https://redgold.ai/learn/database-for-ai-agents>)

 

AI-NATIVE DATABASE · ONE ENGINE FOR AGENTS AND APPS



# The database your agents and your app can share.



Coding agents need somewhere to keep what they learn, what they did, and the application they are building. Redgold keeps agent memory, conversation history, app records, and the pipelines over them in one append-only engine, so the next task starts from evidence instead of a blank context window.



[Design your agent data layer](<https://redgold.ai/splash?starter=agent-database>)[Read how the data engine works](<https://docs.redgold.ai/infrastructure/data>)

 

## What an agent needs from its database.



### History that stays put



Records are appended and content-addressed. An agent can show which version of a record it read, and a later correction sits beside the original instead of overwriting it.



### Typed records



Each dataset has a checked-in schema. Agents read field names and types before writing, which catches malformed records before they reach your app.



### Derived results



Pipelines recompute summaries, matches, and indexes when their inputs change, so an agent queries a current result instead of rebuilding it in a prompt.



### Owner-scoped access



Reads are checked against the caller’s identity and grants on every request. An agent sees the records its credential allows, and nothing else.



## Why a general-purpose database is not enough on its own.

 

A coding agent working on a real project produces a lot of state: conversations, tool output, decisions, review findings, and the app’s own data. In a typical stack those end up in five places — a vector store for memory, a log bucket for transcripts, Postgres for the app, a warehouse for analytics, and a queue for background work. Each one needs its own credentials, schema, and backup, and the agent has to be told about all of them.



Redgold puts them behind one addressing model. Recent rows live in Postgres for fast reads; older data moves to columnar Lance and Parquet storage for scans and analysis. The agent uses the same catalog and the same tools whichever tier a record is in.



## How agents use it.

 

- Discover datasets: the data\_catalog tool lists the datasets, recipes, and installed actions the credential can reach.

- Inspect before writing: data\_describe returns the schema and the exact parameters of an action.

- Read and write over MCP or HTTP: the same tools are available from Claude Code, Codex, or any Streamable HTTP MCP client.

- Run reviewed pipelines: transforms are declared in checked-in TOML, so a change to how data is processed goes through code review like any other change.

 

- [Hosted MCP server for agent data](<https://redgold.ai/integrations/mcp>)

- [Read: Postgres for hot rows, Lance for the rest](<https://blog.redgold.ai/postgres-for-hot-rows-lance-for-the-rest>)

- [Read: storing every LLM request from a coding-agent fleet](<https://blog.redgold.ai/storing-every-llm-request-from-a-coding-agent-fleet>)



## Where it fits, and where it does not.

 

It fits applications that are data-and-pipeline shaped: records arrive from crawlers, users, or agents; transforms run over them; people and agents query the result. Our own agent fleet stores its conversations, memory, tickets, and model requests this way.



It is not a drop-in replacement for an existing Postgres application, and it does not ship generated client SDKs or a hosted sign-in product the way a backend-as-a-service does. Redgold is in managed preview, with schemas defined in Rust; we help set up new datasets during onboarding.

 

Where agent state usually lives, and where it lives in Redgold

| State | Typical stack | Redgold |
| --- | --- | --- |
| Agent memory | Vector database | Memory dataset with search |
| Conversation transcripts | Log files or object storage | Conversation dataset, queryable by session |
| Application records | Postgres or a document store | Typed datasets, hot tier in Postgres |
| Analytics | Separate warehouse | Columnar cold tier in the same engine |
| Background processing | Queue and workers | Pipelines that run on write or on a schedule |

 

- [Redgold and backend-as-a-service platforms](<https://redgold.ai/alternatives/supabase>)

- [Data and pipelines documentation](<https://docs.redgold.ai/infrastructure/data>)

 

Redgold is in managed preview. Hosted MCP data access requires an API key, workspace grants, and prepaid credit for paid operations. New datasets are set up with you during onboarding.

 

[Hosted MCP server](<https://redgold.ai/integrations/mcp>)[Supabase alternative](<https://redgold.ai/alternatives/supabase>)[Persistent coding agents](<https://redgold.ai/learn/persistent-coding-agents>)

<!-- redgold-ui-revision:2f2c9105adec0acae0c60e611ba9db7a1d33794c -->
