Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 5 min read How-to mediumAdept

Using an AI Assistant to Script Tools

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. The tool is defined in YAML and backed by a minimal Docker container with no network, host filesystem, GPU or shell access, only shared volumes and Node.js. Having the model generate tools this way limits how much data goes into the context window and lets repeated tasks run without going back to the LLM.

Related posts

  • Using Docker AI Tools for Devs to Provide Context for Better Code Fixes

    Docker mediumAdept

    LLMs fix lint violations far better when given the surrounding code, so Docker Labs built a prompt-driven pipeline where each step runs in a container: Pylint produces a violation report, violations are loaded into SQLite, and Tree-sitter parses the project into an AST whose top-level statement ranges are indexed alongside the source. The LLM then queries this database (writing its own SQL from the schema) to retrieve the enclosing function for a violation before proposing a fix. This sidesteps context-window limits of reading whole files, and the same pattern generalizes to any tool that maps code locations to issues.

  • Vibe Coding With AI to Generate Synthetic Data: Part 1

    Neon mediumAdept

    Asking Claude to generate synthetic Postgres seed data directly as SQL INSERT statements from a schema-only dump breaks down quickly: claude-3-5-sonnet lost referential integrity somewhere between 20 and 100 rows, and claude-3-7-sonnet often failed with 'model overloaded' errors. A hybrid approach scaled much further. There the model emits JavaScript objects that use faker.js, and the script converts them into INSERTs, which passed at 3,000 rows before foreign-key errors appeared at 5,000. GPT-4.5 showed the same pattern. The pipeline runs in GitHub Actions for Neon dev/test branches, and the open question is whether better prompting costs less effort than maintaining seed scripts by hand.

  • Getting Started with the Labs AI Tools for Devs Docker Desktop Extension

    Docker mediumAdept

    The Labs AI Tools for Devs Docker Desktop extension runs LLM prompts against local projects. Prompts are referenced by git ref or URL, or loaded as local files. A prompt is a markdown file with system and user sections, and project context such as languages and files is injected through mustache templates. Tools the LLM can call are defined as Docker images that get bind-mounted into the project and receive a JSON payload as their first argument. Sample prompts cover Dockerfile generation, runbooks, ESLint and Pylint fixes.

  • How Edgar Allan Poe found bugs in Turso

    Turso mediumAdept

    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.

  • database.build v2: Bring-your-own-LLM

    Supabase mediumAdept

    database.build, Supabase's in-browser Postgres sandbox built on PGlite, now lets users bring any OpenAI-compatible LLM, with no login and no rate limits. Requests go straight from the browser to the provider. This works because most LLM APIs send CORS headers, and a service worker intercepts the Vercel AI SDK's /api/chat route, reading its BYO-LLM config from IndexedDB. Models need reliable tool calling, SQL knowledge and Chart.js knowledge, so gpt-4o is recommended; local Ollama models still struggle with tool calls, and Ollama buffers tool-call streams. The release also adds one-click deploys to Supabase by piping server-side pg_dump over Live Share into pg_restore, and replaces the tar.gz export with a WASM pg_dump. Serverless PGlite was shelved because of its memory use and single-connection limit in multi-tenant setups and unreliable s3fs storage.

The quest for software engineering knowledge.

Look:
Layout: