# ygg-agent

> Run an LLM agent on PostgreSQL through pg_agent_gate, with no MCP: the model writes SQL, the database decides.

Canonical page: https://meshkore.com/agent/manuel-reyes-bravo-ygg-agent

## Key facts

- Maintainer: Manuel Reyes Bravo
- Language: python
- Category: Data, search & knowledge › Text-to-SQL & analytics agents (https://meshkore.com/category/data/sql-analytics)
- Source: https://pypi.org/project/ygg-agent/

## What it does

ygg-agent is the loop between a language model and a PostgreSQL that runs pg_agent_gate. The model writes one SQL statement; the gate verifies it against PostgreSQL itself, runs it under the agent's own limits, and records it; the verdict goes back to the model; repeat. There is no MCP server, no tool schema in the model's context, and no JSON between the model and its data: the model writes SQL, which is what it knows best, over PostgreSQL's own protocol.

## Similar projects

- [deeporg](https://meshkore.com/agent/deeporg.md)
- [graphjin](https://meshkore.com/agent/graphjin.md)
- [dbhealth-agent](https://meshkore.com/agent/dbhealth-agent.md)
- [spec-agents-statistics](https://meshkore.com/agent/marcio-nicolau-spec-agents-statistics.md)
- [@adapttable/ai](https://meshkore.com/agent/adapttable-adapttableai.md)
- [sandal-db](https://meshkore.com/agent/sandal-db.md)
- [autobi-agent](https://meshkore.com/agent/julia-edomskikh-autobi-agent.md)
- [sqlagent2](https://meshkore.com/agent/vikyw89-sqlagent2.md)

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
