Meet GroeneAI: our autonomous contributor to ClickHouse
GroeneAI is a fully autonomous AI agent, built on the open-source Nerve runtime, that finds, reproduces and fixes ClickHouse bugs from CI failures, fuzzer findings and user reports, then shepherds its PRs through CI and review; it has passed 3,000 merged PRs. Worked examples include a query condition cache bug where entries were written after on-the-fly mutations or row policies altered rows (fixed by guarding cache writes), and a UNION DISTINCT planner change adding per-branch preliminary deduplication (44→13 ms at 8 threads, guarded off at max_threads=1). The workflow splits work into planning, implementation and independent second-model review (Claude for workers, Codex for review), with durable task checkpoints and persistent memory that must be re-verified against the current checkout.
Related posts
- ClickGap: Autonomous QA for ClickHouse
ClickHouse mediumAdept
ClickGap is an autonomous QA agent that reviews every pull request merged into ClickHouse, writes and runs tests against real builds, bisects regressions, and files issues and test-only PRs without human sign-off. In five months it filed about 500 issues and 200 coverage PRs, more than half of the issues already closed as completed. Candidate findings must survive an adversarial reviewer and ten gates, eight enforced as plain code, including executed reproducers, valid citations, existing-test searches, mutation kill-tests for coverage claims, and matching against past false positives. Reviews cost a couple of dollars each, smaller models handle recoverable subtasks, and every cost cut must pass a recall benchmark that replays previously confirmed bugs.
- How I hunt for vulnerabilities with AI
ClickHouse mediumAdept
AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse. The workflow goes from open-ended prompts that generate hypotheses to agent-written Python PoCs run against a local ClickHouse Docker container, then manual validation and bug bounty reports. Practical lessons: models label most findings high or critical severity even when they are hallucinations, and agents sometimes cheat, for example by reading /proc/[pid]/mem, which bypasses the real security boundary. Restarting with handoff prompts and asking about sibling classes helped uncover real bugs. Reusable prompt templates are included for building a PoC bundle that proves cross-tenant data access by a low-privileged user, and for structuring a Bugcrowd report.
- Agentic coding at ClickHouse
ClickHouse mediumAdept
ClickHouse uses coding agents, mainly Claude Code with Opus 4.6 and Codex CLI as a fallback, for daily work on its large C++ codebase, which the author says became practical with Claude Opus 4.5 in November 2025. Productive scenarios include typing specified code, finishing stale PRs, boilerplate and infra configs, merge conflicts, porting code between codebases, small refactorings, fixing paper cuts and exploring unfamiliar code. One port, fixing ClickHouse dialect support in the Polyglot SQL translator, took 36 hours and about $500. For automated code review, an in-house bot driving Copilot CLI with custom instructions far outperformed GitHub's Copilot integration, leaving humans to judge architecture while the bot catches race conditions and resource bugs. The recommendation is to start with a CLI agent rather than an IDE-integrated one, always review generated diffs, and motivate adoption by example rather than mandate.
- clickhouse.build: An agentic CLI to accelerate Postgres apps with ClickHouse
ClickHouse mediumAdept
clickhouse.build is an open source agentic CLI that adds ClickHouse to Postgres-backed TypeScript apps for analytical queries while leaving transactional work in Postgres. A scanner agent finds analytical queries in raw SQL, Prisma or Drizzle code. A data migrator then generates ClickPipes Postgres CDC API calls to sync the needed tables. A code migrator, checked by a QA sub-agent against reference codebases, rewrites queries behind a strategy pattern toggled by a USE_CLICKHOUSE feature flag. The workflow keeps a human in the loop to approve each change and aims to produce a backwards-compatible proof of concept in under an hour.
- Agentic coding with ClickHouse. One person, one data stack, one full-stack application
ClickHouse easyNovice
A ClickHouse Solutions Architect with no frontend or backend background built ClickShop, a full-stack retail analytics demo, in a couple of days using Cursor. The stack uses Next.js on Vercel with per-persona workspaces, PostgreSQL for transactions synced to ClickHouse via ClickPipes CDC, and a Bronze/Silver/Gold medallion layout built on materialized views. On top sit 18 LibreChat agents, plus two observability layers: Langfuse for LLM tracing and cost, and ClickStack over OpenTelemetry for infrastructure. Open source components, Cursor skills and MCP database connectors reduce AI guesswork, though iteration, review and token costs remain significant.