A TDD Development Flow Using AI Agents for Website Projects

✍️ OpenClawRadar📅 Published: April 16, 2026🔗 Source
A TDD Development Flow Using AI Agents for Website Projects
Ad

Development Workflow with AI Agents

A developer outlines their approach to website development using AI coding agents with a test-driven development methodology. They use both Claude Code for work projects and local models for private projects, specifically Qwen Code on top of Qwen3.5-27B running on llama.cpp with 2xRTX 3090 GPUs.

Initial Project Setup

At the beginning of a project, they implement basic modules:

  • Basic DB schema
  • Basic auth API
  • UI routing
  • UI basic layout
  • Basic API (admins and users)
  • Basic API/E2E tests (written manually or by AI)
  • Context files for coding agents (AGENTS.md, CLAUDE.md)

Iterative Development Process

After setup, the iterative process begins:

  1. Write detailed specs of API/E2E tests in markdown for a feature
  2. Generate API/E2E tests from the markdown test descriptions
  3. Start coding agent session with ability to run tests
  4. Ask agent to implement functionality until tests pass

Model Capabilities and Trade-offs

The developer notes that more capable models like Claude allow skipping markdown files entirely for simple websites, while Qwen3.5-27B has different thresholds. Less capable models require more specific instructions to mitigate failure modes, including locking logic by instructing not to touch certain files or using only specific wrappers.

They hypothesize that developers shouldn't be obsessed with code patterns and quality if code is covered by tests and works, comparing AI agents to managing 10-100 junior/middle developers at the cost of an AI subscription.

Ad

Local Model Specifics

For local models running on 2xRTX3090, they use Qwen3.5-27B-GGUF-Q8_0 with parallel = 1 and full context, believing this is important for agentic sessions not to be autocompressed early. They note that dumber models force clearer articulation of E2E tests and desired implementation, while Claude fills in design choices automatically but can lead to loss of control.

Coding TDD Loop Implementation

The developer provides a draft of their coding TDD loop:

outer loop begins: run all pytest tests using command `pytest tests/ -x` and will exit there aren't any failures; the default loglevel will be warning, so not much output there
if everything passes; exit the outer loop; if something failed, extracts failed test name
runs the failed test name with full logs, like `pytest tests/../test_first_failing_test.py --log-level DEBUG` and collects the output of the tests into the file
extracts lines near the 'error'/'fail' strings with `egrep -i -C 10 '(error|fail)' <fail

This approach represents a practical implementation of TDD with AI agents, balancing automation with necessary oversight to maintain codebase control.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also

Reddit User Runs 25+ Scheduled AI Agents as Personal Personas on Mac: Is This Useful or Just Complexity?
Use Cases

Reddit User Runs 25+ Scheduled AI Agents as Personal Personas on Mac: Is This Useful or Just Complexity?

A developer shares his personal AI setup with 25+ scheduled agents on a Mac, organized into four personas (Wife, Daughter, Son, and a monitor) that automate work, open-source projects, hobby builds, and GitHub PRs — and asks the community whether it's genuinely useful or complexity for its own sake.

OpenClawRadar
OpenClaw AI agent autonomously identifies bug, creates and submits GitHub PR
Use Cases

OpenClaw AI agent autonomously identifies bug, creates and submits GitHub PR

A developer reports their OpenClaw AI agent diagnosed a recurring issue, traced it to a third-party package, then autonomously created a GitHub branch, made multiple commits, reviewed its own code, and submitted a pull request to the package repository.

OpenClawRadar
Running OpenClaw locally with Jetson Nano and gaming laptop using Ollama
Use Cases

Running OpenClaw locally with Jetson Nano and gaming laptop using Ollama

A developer set up OpenClaw to run locally using a Jetson Nano and a 2022 MSI gaming laptop with Qwen 3.5 9B via Ollama, implementing wake-on-LAN for power efficiency and hybrid routing to OpenAI for complex tasks.

OpenClawRadar
Agensi: A SKILL.md Marketplace Built with Claude in 3 Weeks
Use Cases

Agensi: A SKILL.md Marketplace Built with Claude in 3 Weeks

Agensi is a marketplace for SKILL.md skills built using Claude Code, Lovable, and Supabase. The platform includes 37 skills across 8 categories, with features like automated security scanning, download fingerprinting, and a bounty request system.

OpenClawRadar