Working With AI: A Concrete Example
A regression in hyperscript 0.9.91 caused `fetch <url> as JSON` to bind `as` as a conversion expression on the URL. A refactor had made `fetch` and `go` share `parseURLOrExpression()`, which widened the grammar to accept a general expression. Claude found the root cause quickly and wrote good focused tests, but its fixes were a string-literal hack, a new `noConversions` parser flag, and then an overly broad change that also broke `as` in `go`. The final fix reused the parser's existing "follows" mechanism, pushing `as` as a follow token only inside `FetchCommand#parse()`. The story illustrates why a human who knows the codebase's architecture should stay in the loop to keep AI-proposed fixes from piling up technical debt.
Related posts
- Prompt Engineering as a Developer Discipline
Neon mediumAdept
Developers should treat prompts as modular, testable software components rather than guesswork, applying the same rigor they bring to code. Five prompting patterns are shown with before-and-after LLM outputs for coding tasks. Few-shot examples make the model mirror your docstring and type-hint style. Chain-of-thought instructions yield clearer logic and comments, and self-consistency prompts generate several approaches with complexity analysis before recommending one. Skeleton prompts constrain code structure, and explicit output schemas such as JSON make generated code easier to integrate with other systems.
- @clickhouse/rowbinary: when your library is also a parser compiler
ClickHouse mediumAdept
@clickhouse/rowbinary is a Node.js reader/writer for ClickHouse's RowBinary formats that also ships as an Agent Skill: a coding agent reads its densely commented, monomorphizable primitives plus SKILL.md and generates a parser specialized to a query's exact column types, replacing a traditional codegen compiler. Generated parsers ran 1.5–3.4x faster than composing the library API (e.g. one bounds check and constant-offset reads for fixed-width rows, avoiding V8 megamorphic dispatch), and RowBinary itself beat the correct BigInt-safe JSON path by 2.1–3.3x on numeric schemas, though JSONCompactEachRow wins on string-heavy data. Each parser costs about $0.20 to generate with Claude Sonnet 4.6, and grounding the agent in tested primitives avoids silent bugs such as byte-order-wrong UUID decoding that models produced from memory in 3 of 5 runs.
- How to Fix ESLint Violations with AI Assistance
Docker mediumAdeptAn LLM can produce correct fixes for ESLint violations once it has tools that supply minimal, precise context. ESLint's JSON output for even 100 violations exceeds 10,000 characters, so the full report is written to an ephemeral Docker volume and read through condensed or per-file parse tools rather than passed through the model's context. A Dockerized Tree-sitter tool then fetches the AST node and surrounding code for a given line. Violations are grouped by whether they need source context and human supervision. The agent fixed individual violations such as floating promises and unused vars, but it would not loop through multiple violations unless each prompt named a specific rule.
- Testing AI coding agents (2025): Cursor vs. Claude, OpenAI, and Gemini
Render mediumAdept
Four AI coding agents (Cursor with Claude Sonnet 4, Claude Code, Gemini CLI and OpenAI Codex) were compared on a one-prompt Next.js URL-shortener build with Postgres, Docker and Render MCP deployment, plus real tasks in a large Go API monorepo (Kubernetes pod leader election with go-quartz, NATS retry logic) and an Astro/Keystatic website. Cursor scored highest overall (8/10 average), producing the most complete app, including Docker Compose and a SQL migration, and following codebase-specific patterns. Gemini CLI excelled at large-context refactors but struggled on the greenfield build. Codex's model produced accurate, idiomatic code but was held back by setup friction and a weaker CLI UX. All tools faltered on novel or obscure libraries without targeted guidance, so experienced engineers still need to audit the output.
- Giving V8 a Heads-Up: Faster JavaScript Startup with Explicit Compile Hints
V8 mediumAdeptChrome 136 ships Explicit Compile Hints, which let developers mark a JavaScript file for eager compilation by placing the magic comment `//# allFunctionsCalledOnLoad` at the top. Eager compilation avoids a duplicate lightweight-then-full parse and moves compile work onto a background thread interleaved with network loading, instead of blocking the main thread on first call. In V8's experiment, 17 of 20 popular pages improved, with an average 630 ms reduction in foreground parse and compile time. Apply it sparingly to a core file because over-compiling costs time and memory, and verify the effect with `--log-function_events`. Per-function hints are planned.