---
title: "How Edgar Allan Poe found bugs in Turso"
description: "Turso runs LLM coding agents (Claude Code with the Ralph Loop plugin) for days at a time to autonomously find SQL correctness bugs."
url: "https://swe.quest/articles/how-edgar-allan-poe-found-bugs-in-turso-c2af43819364d44c"
canonical: "https://turso.tech/blog/edgar-allan-poe"
source: "Turso"
published: "2026-06-08"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["testing","ai-agents","sqlite","llms","databases"]
---

# How Edgar Allan Poe found bugs in Turso

A post on [Turso](https://swe.quest/sources/turso.md), published 2026-06-08, 7 min read, Case study. Original: [https://turso.tech/blog/edgar-allan-poe](https://turso.tech/blog/edgar-allan-poe)

## Summary

Turso runs LLM coding agents (Claude Code with the Ralph Loop plugin) for days at a time to autonomously find SQL correctness bugs. They use differential testing against SQLite as the oracle and prompts that steer agents toward complex code, unusual query shapes and away from happy paths. When long-running agents start going in circles, injecting entropy restores exploration: priming phrases (after the Recoding-Decoding paper) or arbitrary personas. Telling a stalled agent to act like Edgar Allan Poe produced 3 novel bugs within 5 minutes after an hour with none, so the team now runs parallel agents with different personas.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- SQL joins and queries ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- differential testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- LLM coding agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Turso, SQLite, Claude Code, Ralph Loop, SQLancer, SQLRight, Recoding-Decoding

## Related posts

- [Carl Sverre ruined my day. And it was glorious](https://swe.quest/articles/carl-sverre-ruined-my-day-and-it-was-glorious-66c73969df61e4c5.md): Turso · 2026-04-23 · Easy · 5 min read · Testing, SQLite, JavaScript, AI for coding
  Turso used Antithesis's new property-based testing library Hegel to check that its two TypeScript drivers, the native @tursodatabase/database and the pure-JS @tursodatabase/serverless, expose the same API and return identical results.
- [Using an AI Assistant to Script Tools](https://swe.quest/articles/using-an-ai-assistant-to-script-tools-714a1e238504d1ea.md): Docker · 2024-10-07 · Medium · 5 min read · AI agents, Sandboxing & isolation, Containers, LLMs
  Instead of feeding large datasets like Pylint violation JSON through an LLM to transform them into SQL INSERT statements, the assistant can be prompted to write a JavaScript program that performs the transformation, then run it through a tool call.
- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  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 Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5](https://swe.quest/articles/the-agentic-analytics-benchmark-round-two-gpt-6-claude-opus-5-5-claude-sonnet-5-f67c49a44d812e12.md): ClickHouse · 2026-10-20 · Medium · 9 min read · Evaluation, AI agents, LLMs, Analytics & OLAP, SQL
  Five new models (GPT-6 Astra, Luna, Sol, Claude Opus 5.5 and Claude Sonnet 5.5) were added to a frozen 201-question agentic text-to-SQL benchmark over a synthetic ClickHouse warehouse.
- [How we used Quint to find over 10 bugs in SQLite while hardening Turso](https://swe.quest/articles/how-we-used-quint-to-find-over-10-bugs-in-sqlite-while-hardening-turso-43686794db9fa980.md): Turso · 2026-05-18 · Medium · 5 min read · Formal methods, SQLite, Testing, Databases
  Modeling individual SQLite C API contracts in Quint, generating small traces, and replaying them as C programs against real SQLite uncovered more than 10 SQLite bugs while also validating Turso's compatible C API.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
