Skip to content

Instantly share code, notes, and snippets.

View CodyBontecou's full-sized avatar
💭
is enjoying life

Cody Bontecou CodyBontecou

💭
is enjoying life
View GitHub Profile
@CodyBontecou
CodyBontecou / tdd.sh
Created March 3, 2025 06:02 — forked from codeinthehole/tdd.sh
A Bash script for running an iterative TDD loop using an LLM to make a set of tests pass
#!/usr/bin/env bash
#
# A Bash script to run a TDD loop for building a Python module to pass tests.
set -euo pipefail
# How many times to loop.
ATTEMPTS=4
# The system prompt to use when creating the initial version.
<!DOCTYPE HTML>
<!--
Industrious by TEMPLATED
templated.co @templatedco
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
-->
<html>
<head>
<title>GearCrunch</title>
<meta charset="utf-8"/>