Pgclaw
A "Clawdbot" in every row with 400 lines of Postgres SQL
Details
- External ID
- 46992136
- Source
- HN
- Company
- —
- Product
- Pgclaw
- Website domain
- github.com
- Launched
- Feb. 12, 2026
- Cohort
- —
- Upvotes
- 48
- Upvotes percentile
- 0.8106469002695418
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
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.
Enrichment
- Theme
- database infrastructure and developer tools
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- AI feature
- Project type
- Hobby / open-source project
- Normalized one-liner
- postgres agent in sql
- Manually corrected
- False
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 — 132 launches clear the similarity bar, closest 8 shown.
Attention rank: #29 of 133 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 104 days after the earliest competitor.
- I'm not a PostgREST fan this is why I'm building an alternative · hn · 2026-09-09 · 5 upvotes · similarity 0.46
- PostgreSQL performance and cost across 23 EC2 instance types · hn · 2026-07-07 · 97 upvotes · similarity 0.46
- Ardent - Clone any postgres DB of any size in <6s · yc · 2026-05-05 · 16 upvotes · similarity 0.44
- NanoClaw · hn · 2026-02-01 · 533 upvotes · similarity 0.44
- PgDog · hn · 2026-02-23 · 326 upvotes · similarity 0.43
- justPostgres · github · 2026-09-09 · 46 upvotes · similarity 0.43
- DeepSQL · hn · 2026-07-20 · 52 upvotes · similarity 0.43
- PostgreSQL Migrator · ph · 2026-09-17 · 2 upvotes · similarity 0.43
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.