Development workflow toolkit for AI coding-agent CLIs (Claude Code, Codex, Gemini, Kimi Code) with issue management, code quality commands, and automated processing
pip install little-loops==1.165.0 Copy PIP instructions
The toolkit for long-horizon, eval-gated AI software development.
Today's coding agents do small tasks well and ship features poorly. The model isn't the ceiling — the session is. little-loops removes it with the three things raw agents are missing: durability (the run outlives the chat), consistency (the toolbelt is the process), and verification (the harness is the spec).
Stop babysitting chats. Start shipping features.
pip install little-loops ll-init # detects your stack, writes config ll-loop run general-task "fix the lint warnings" # your first self-verifying loop Built for Claude Code, with host adapters for Codex, Kimi Code, and Qwen Code; OpenCode and Pi adapters are not yet available. MIT-licensed.
The unit of work is the feature, the sprint, or the overnight optimization — not a single chat. Every loop is a finite-state machine whose state is checkpointed to disk after every transition, so runs survive terminal close, context exhaustion, and laptop sleep — ll-loop resume picks up mid-trajectory, exactly where it stopped. When one context window fills, session handoff carries the thread into a fresh one. And ll-parallel fans a sprint out across isolated git worktrees that converge without you.
Raw agents re-derive the same structural moves differently on every run. The ll- CLI removes that improvisation surface: context gathering, issue lifecycle, sprint moves, worktree setup, and branch naming all run as typed commands, and harnessed skills like /ll:manage-issue compose them into a fixed plan → implement → verify → complete sequence. The agent reasons inside steps, not about which steps to take — so two runs of the same feature land in the same shape, by construction rather than by prompting.
Harness-driven development is TDD's analog for agent-built software: define what "working" looks like first, then loop until it passes. Layered gates — exit codes, output patterns, numeric metrics, LLM judges, full agentic simulation — grade every iteration cheapest-first, and failures route back into execution instead of forward into your codebase. The engineering tax that makes teams skip evals is automated away: /ll:create-eval-from-issues turns acceptance criteria into a runnable harness, /ll:create-loop derives one from a description, and ll-loop run harness-optimize hill-climbs the harness itself against a benchmark, accepting each mutation only when the score rises.
Prerequisites: Python 3.11+ and Claude Code (the default host CLI).
pip install little-loops ll-init ll-init auto-detects your project type — Python, JS/TS, Go, Rust, Java, .NET, or generic — reads the test/lint/type-check/format commands your repo already declares (manifests, Makefile/justfile targets, tool config files), scaffolds .issues/, and writes .ll/ll-config.json. Run it bare for the express-first wizard (a Detected setup panel with the evidence for every value, then Accept or Customize), or ll-init --yes to accept the detected defaults. It also offers to build the codegraph index that powers ll-code's structural queries (ll-init --code-graph install does the npm install for you). Sanity-check the host integration any time with ll-doctor.
Inside Claude Code, ll-init installs the plugin for you automatically when claude-code is a selected/detected host and it's not already installed — no manual step needed. To do it yourself instead:
/plugin marketplace add BrennonTWilliams/little-loops /plugin install ll@little-loops Using Codex CLI? Run ll-init --hosts codex and ll-adapt --host codex --apply — see docs/codex/getting-started.md. OpenCode and Pi adapters aren't wired yet — ll-init --hosts opencode/--hosts pi currently install nothing. For which hosts are adapter-wired, recognized-but-pending, or orchestration-only, see the canonical host tier table.
Using Kimi Code CLI? Run ll-init --hosts kimi-code — it installs the hook adapter and mirrors skills/agents into .kimi-code/ automatically, then install the plugin for the /ll:* slash-command surface and lifecycle hooks (/plugins install https://github.com/BrennonTWilliams/little-loops in the kimi TUI — installs are per-user, not per-project). Set LL_HOST_CLI=kimi-code to drive ll-auto/ll-loop with kimi. See docs/kimi/getting-started.md.
Using Qwen Code? Run ll-init --hosts qwen (installs managed hook entries into project .qwen/settings.json — fires in interactive and qwen -p headless sessions) — it also mirrors skills, /ll:* commands, and agents into .qwen/ automatically. Optional native extension: qwen extensions link . (repo-root qwen-extension.json) or the marketplace path qwen extensions install BrennonTWilliams/little-loops:ll. Set LL_HOST_CLI=qwen to drive ll-auto/ll-loop with qwen — the second host after Claude Code with structured-output FSM evaluator verdicts. See docs/qwen/getting-started.md.
Registering the ll-mcp server for Claude Code? Run ll-adapt --host claude-code --apply to merge an ll-mcp entry into .mcp.json at the project root, without clobbering any existing mcpServers content.
Local development install: see CONTRIBUTING.md.
Manual configuration — add to .claude/settings.local.json:
{ "extraKnownMarketplaces": { "local": { "source": { "source": "directory", "path": "/path/to/little-loops" } } }, "enabledPlugins": { "ll@local": true } } Your first loop See what ships in the box:
ll-loop list Built-in loops come with the package, grouped by category — issue management, code quality, planning, deep research, prompt optimization, generative harnesses, and more. Every one is plain YAML you can read in scripts/little_loops/loops/, and every one is documented in the Built-in Loops Reference.
Start with the universal one — hand it any goal:
ll-loop run general-task "fix the lint warnings" general-task derives a definition of done from your goal, works the task, and grades itself against its gates before it's allowed to stop. You'll watch state transitions stream past; when the run completes, a per-state token/cost table shows exactly what each step spent.
ll-loop run brainstorm "ways to reduce flaky tests" # multi-lens ideation → ranked brainstorm.md ll-loop run fix-quality-and-tests # lint + format + types must pass before tests run ll-loop run loop-router "describe your goal" # not sure which loop? the router classifies and dispatches Long runs belong in the background:
ll-loop run docs-sync --background # detached; survives closing the terminal ll-loop status docs-sync # alive? which state? where's the log? ll-loop resume docs-sync # interrupted? continue mid-trajectory Bounded by design. Every run carries a step cap, per-edge cycle detection, and a repeated-failure stall detector that catches the "already done" no-op before it burns your iteration budget. Cost ceilings (per-state cost_ceiling:) and a host memory guard keep spend and RAM honest. And you can rehearse before paying: ll-loop validate checks the YAML, --dry-run --show-diagrams prints the FSM and execution plan without running anything, --worktree isolates a run on its own branch.
When a built-in is almost right, ll-loop install copies it into .loops/ for local editing; /ll:create-loop writes a new one from a plain-language description; and any loop can invoke another as a sub-loop state, so pipelines compose instead of duplicating.
/ll:scan-codebase # Find issues (technical) /ll:prioritize-issues # Auto-assign P0–P5 priorities /ll:map-dependencies # Cross-issue dependency graph Ship an issue end-to-end /ll:manage-issue bug fix BUG-001 # Plan → implement → verify → complete Fan out a parallel sprint ll-sprint create v2-launch --issues FEAT-001,FEAT-002,FEAT-003 ll-parallel --workers 3 # Three isolated worktrees, three features, zero babysitting Eval-driven development /ll:create-eval-from-issues FEAT-001 # Turn acceptance criteria into a runnable harness ll-loop validate harness-optimize # Dry-run the FSM before paying for a real run ll-loop run harness-optimize -b # Score-gated hill climbing in the background What's in the box 29 slash commands — issue discovery, refinement, planning, code quality, git, automation 9 specialized agents — codebase analysis, quality assurance, automation, and research 41 skills — deterministic harnesses for common workflows (confidence checks, issue wiring, loop creation) 52 typed CLI tools — ll-auto, ll-parallel, ll-sprint, ll-loop, ll-action, and more ~107 FSM loops — recurring automation workflows (backlog triage, sprint building, eval harnesses) Configuration system — project-type templates for Python, JS/TS, Go, Rust, Java, .NET, and generic Design tokens — WCAG AA palette template set with FSM context injection for artifact-generating loops Observability — every run logged, archived, and queryable: ll-loop history, ll-history, and a per-project .ll/history.db Learn the system Every user-facing guide lives in docs/guides/. Start with Getting Started, then go where your work takes you:
Runbooks document operational procedures run on a cadence (with a checklist and a recorded baseline) — distinct from the feature-oriented guides above.
The ceiling on agent-built software isn't the model — it's the session. Remove it:
pip install little-loops && ll-init License MIT
automation claude-code codex development gemini issue-management kimi-code workflow
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




