Claude Code usage

Claude Loop

Automation toolkit for running iterative Claude Code sessions with cost tracking and monitoring

Install

From source
git clone https://github.com/li0nel/claude-loop.git

From the README

Claude Loop

Automation toolkit for running iterative Claude Code sessions with cost tracking and token monitoring.

Background

This repository is inspired by Dex Horthy's talk on advanced context engineering for coding agents. From the very first time I saw this video, the ideas stuck hard.

After that, about a dozen Spec Driven Development workflows were tried. While they all made sense, many felt a bit too opinionated in ways that didn't add much value. Shifting the core of the work to spec definition, however, clearly made sense.

The real game changer became obvious: write specs by day, let the agent rip through implementation at night.

Then I came across Geoffrey Huntley's technique of running Claude Code in continuous loops, further detailed in this interview with Dex Horthy. The promise? A simple prompt asking the model to pick the highest priority item, implement, test, commit, then quit—run in an endless loop with fresh context every time—actually delivers. Similar conclusions were reached by Dex's team at this YC Agents hackathon.

I then applied the same principles to spec writing, but with a human in the loop this time. Starting from a one-line spec, the model would ultrathink and generate a top 10 list of clarifying questions, repeatedly.

The quality of those questions was staggering. It felt like a mid-level dev firing off exactly what would've come days later, compressed into a fast two-hour session.

Experimentation followed to make analysis recursive across many context windows, saving results to support progressive disclosure—much like how Claude Skills are designed. I later found that the idea of also concurrently running analysis from different perspectives wasn't novel (see here).

Here you have it: a set of unscrupulous prompts, some slash…
Read the full README on GitHub

Details

Language
Shell
Last updated
3 November 2025

FAQ

What is Claude Loop?

Automation toolkit for running iterative Claude Code sessions with cost tracking and monitoring It is a usage for Claude Code, from li0nel/claude-loop on GitHub.

How do I install Claude Loop?

Clone li0nel/claude-loop from GitHub and follow the setup steps in its README.

Is Claude Loop popular?

li0nel/claude-loop has 26 GitHub stars and 0 forks. It was last updated on 3 November 2025.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.