pgagentos
pgagentos · SQL schemas and functions for agent state, jobs and retrieval.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102077 | pgagentos | pgagentos | 1.0 | RAG | GPL-3.0-only | SQL |
PostgreSQL · 14, 15, 16, 17, 18
Usage
Sources:
- pgagentos.control
- README.md
- Makefile
- sql/schemas/00_extensions.sql
- sql/schemas/02_aos_auth.sql
- sql/rls/rls_policies.sql
pgagentos installs relational agent infrastructure: model/event records, tenants, personas, skills, conversations, memory and retrieval schemas. It is a SQL-only extension, not an autonomous model runtime.
Core Workflow
Operational Boundaries
Requires PostgreSQL 14 or later, vector, pgcrypto and PL/pgSQL. Install as a superuser; no preload is required. Use the SQL functions to record work, while an external application handles model execution and credentials. Row policies depend on aos_auth.current_tenant() and a session tenant setting; callers able to change that setting are not an independent authentication boundary. Review grants, ownership and RLS bypass before exposing database sessions to tenants. Schema creation alone does not establish secure multi-tenant operation.