Back to browse
GitHub Repository

A "Clawdbot" in every row with 400 lines of Postgres SQL

210 starsRust

Pgclaw – A "Clawdbot" in every row with 400 lines of Postgres SQL

by calebhwin·Feb 12, 2026·48 points·33 comments

AI Analysis

●●●BangerBig BrainNiche GemZero to One

Agent-per-row inside Postgres beats separate orchestration infrastructure entirely.

Strengths
  • Storing agents as native Postgres data type eliminates separate agent infrastructure and enables JOINs, ACID, point-in-time recovery.
  • Supports stateful agents with memory that self-updates via JSON response, avoiding external state management.
  • Multiple LLM providers via Rig SDK plus Claude Code execution with filesystem access in single extension.
Weaknesses
  • Requires Postgres 17 + Rust toolchain setup; unclear upgrade path or production stability claims.
  • Missing benchmarks comparing latency/cost vs external orchestrators like LangGraph or Anthropic Agents.
Target Audience

Backend developers, Postgres users, AI application builders

Similar To

LangGraph · Anthropic Agents SDK · Temporal

Post 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.

Similar Projects

Developer Tools●●●Banger

PgCortex – AI enrichment per Postgres row, zero transaction blocking

Outbox + external worker architecture solves a real production pain: LLM calls in Postgres triggers without blocking transactions.

Big BrainSolve My Problem
supreeth_ravi
103mo ago