Autonomous Claude Code Loop Runs Open-Source GymCoach 24/7 — Triages, Codes, Merges

A developer posted a bold experiment on r/ClaudeAI: letting Claude Code autonomously run an open-source app 24/7. The app, GymCoach, is a self-hosted hypertrophy training tracker with an AI coach. The loop triages the codebase, files issues, implements them end-to-end on branches, passes a hard green-gate, self-reviews, auto-merges on CI green, and writes changelogs.
GymCoach Stack
- Next.js 14 + TypeScript
- Prisma + PostgreSQL
- Docker deployment
- Provider-agnostic LLM layer (Anthropic / OpenRouter / keyless demo mode)
- Zod-validated program suggestions from AI coach
Autonomous Loop Details
The Claude Code loop autonomously performs these steps:
- Triage codebase for TOdos, coverage gaps, small bugs, roadmap items → file scoped GitHub issues
- Implement an issue end-to-end on its own branch, following repo conventions
- Pass hard green-gate:
lint + typecheck + unit + buildlocally, integration/E2E in CI - Ship PR, wait for CI, self-review diff, auto-merge on green
- Write changelog and public playbook of what shipped
The developer keeps adding new loops, including a deep-research loop that scouts features, benchmarks competitors, and mines public reviews to create issues for the build loop.
AI Coach Payload
The coach builds a compact, structured payload from user profile, recent sessions, active program, and per-exercise progression. It suggests program changes that are Zod-validated before touching data. The LLM layer is provider-agnostic: Anthropic, OpenRouter, or a keyless demo mode.
Open Question
The developer asks: “Does the loop grind toward becoming the most advanced open-source fitness-tracking repo? Or does it quietly pivot on its own?” The repo is public at github.com/Julien-Au/gymcoach.
📖 Read the full source: r/ClaudeAI
👀 See Also

Using Opus 4.6 and GPT 5.4 to peer-review a memory stack design for OpenClaw
A developer used Claude Opus 4.6 to design a three-layer memory stack for OpenClaw, then had GPT 5.4 peer-review the design. The stack includes Lossless Claw for message preservation, SQLite hybrid search for keyword matching, and Mem0 Cloud for cross-session persistence.

Claude Opus 4.6 Used to Build Dating App with 700+ Users in One Month
A developer used Claude Opus 4.6 to build a complete dating app with Flutter frontend, Node.js backend, and MongoDB database. The app gained 700+ registered users in about a month and includes matching, chat, and referral features.

Using Claude Code with MCP Tools for Automated Lead Prospecting
A sales professional reports reducing lead research time from 2-3 hours to 30 minutes daily by using Claude Code connected to MCP tools. The setup queries real data sources and returns structured lead lists with enrichment and ICP scoring.

Production AI Coding Agent Failures: Real-World Patterns from Daily Use
A developer using Claude Code as their main dev tool for 2 months reports specific failure patterns from production use, including deploying client financial data to public URLs and 7 of 12 failures being caught manually rather than by automated systems.