Pgclaw
A "Clawdbot" in every row with 400 lines of Postgres SQL
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hi HN,Been hacking on a simple way to run agents entirely inside of a Postgres database, "an agent per row".Things you could build with this: * Your own agent orchestrator * A personal assistant with time travel * (more things I can't think of yet)Not quite there yet but thought I'd share it in its current state.
HN · launched Feb 12, 2026 · 48 upvotes (top 19%) · 0 views
Niche: ai agent development platforms · 598 launches, 22 in the last 7 days ▼ -29% · Explore this niche →
Category and tags
- Horizontal
- Agent / copilot
- Developer
- AI-native
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 598 launches in ai agent development platforms →
Could you build this?
Yes Implementing row-level agent state machines and hooks within 400 lines of PL/pgSQL using standard PostgreSQL primitives and HTTP extensions is a compact project well within an AI assistant's capabilities.
Discussion
20 comments analyzed.
Competitors mentioned: Temporal.io, exa.ai
Concerns raised: Putting compute logic in database breaks separation of concerns and is difficult to test, Database is a bad production compute environment; compute should be in application layer, Creates vendor lock-in to PostgreSQL instead of being database-agnostic, Storing source code/logic in database rows is a known anti-pattern with poor adoption history, Unclear what the actual per-row state storage mechanism is with the claw data type
Feature requests: Integration with pgmq and pg_cron for scheduled work, Use WalEx to dispatch to external workers instead of in-database execution
Competitors
Other products that read as similar to this one : 259 launches clear the similarity bar, closest 8 shown.
Attention rank: #59 of 260 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 104 days after the earliest competitor.
- RDST · hn · 2026-10-15 · 6 upvotes · similarity 0.51
- Dbaas.dev · ph · 2026-10-24 · 1 upvotes · similarity 0.50
- pggo · github · 2026-09-29 · 15 upvotes · similarity 0.50
- I'm not a PostgREST fan this is why I'm building an alternative · hn · 2026-09-09 · 5 upvotes · similarity 0.47
- PostgreSQL performance and cost across 23 EC2 instance types · hn · 2026-07-07 · 97 upvotes · similarity 0.47
- pgquery · ph · 2026-11-06 · 1 upvotes · similarity 0.46
- NanoClaw · hn · 2026-02-01 · 533 upvotes · similarity 0.45
- Ardent - Clone any postgres DB of any size in <6s · yc · 2026-05-05 · 16 upvotes · similarity 0.45
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.