explaingit

sinanonur/longrun

Analysis updated 2026-07-26

1Audience · developerComplexity · 2/5Setup · easy

TLDR

A playbook file for Claude Code that helps the AI coding agent work on long, unsupervised tasks by using files on disk as memory to track progress, log decisions, and survive context loss.

Mindmap

mindmap
  root((repo))
    What it does
      Playbook for AI agent
      Disk-based memory files
      Long unsupervised sessions
    Key files
      Task queue
      Feature list
      Decision log
    Model routing
      Cost and intelligence scoring
      Cheaper models for bulk work
      Claude as conductor
    Use cases
      Long autonomous coding
      Multi-model task routing
      Unsupervised feature work
    Audience
      AI coding agent users
      Developers using Claude Code

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run Claude Code on long coding tasks without losing track of progress.

USE CASE 2

Route mechanical coding work to cheaper AI models while Claude supervises.

USE CASE 3

Keep a durable log of AI decisions and progress across extended sessions.

What is it built with?

Claude CodeMarkdown

How does it compare?

sinanonur/longrun0xkinno/neuralvault0xlocker/d17-contracts
Stars111
LanguageTypeScriptSolidity
Setup difficultyeasyhardhard
Complexity2/54/55/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

You must manually create the task, feature, and log files, and edit the playbook to replace personal file paths before starting.

The explanation does not mention a license for this repository.

In plain English

This repository is not a software application but an operating manual for running Claude Code, an AI coding agent, on long and largely unsupervised development sessions. The main artifact is a playbook file that you place into your project. The playbook gives the agent a set of rules and habits so it can keep working productively on tasks for extended periods without losing track of what it has done or what it needs to do next. The approach relies on treating the disk as the agent's memory. The playbook instructs the agent to maintain three files: a working task queue, a frozen list of features and their acceptance criteria, and an append-only log of decisions and progress. By reading and writing to these files, the agent can survive context compaction, which is when earlier parts of a conversation get summarized or dropped. The agent follows a strict per-task loop: implement the work, verify it with tests and linting, commit the change, and log what happened. The rules explicitly forbid skipping verification, silently retrying the same failure, or expanding the scope of work mid-run. The playbook also includes a system for routing work to the right AI model. Instead of always using the most expensive option, it provides a scored table of models based on cost, intelligence, and taste. It defines when to delegate mechanical work to a cheaper model and when to keep judgment calls in the main session. The repository explains how to bridge Claude Code to other model families, specifically GPT from OpenAI and Gemini from Google, using community plugins. This allows bulk work to run on a cheaper model while Claude stays the conductor, verifying and reviewing the results. To use the manual, you clone the repository to a stable location on your computer and import the playbook file into your project's configuration. The author notes that you should edit the playbook before adopting it. The model roster and its scores will go stale as models change, and some file paths in the document are personal references you will need to replace or remove. You also need to create the task, feature, and log files yourself before starting your first session.

Copy-paste prompts

Prompt 1
Help me set up the longrun playbook for my project. I need to create the task queue, feature list, and decision log files. Here is my project structure: [paste details]
Prompt 2
Review this longrun playbook file and help me update the model roster with current pricing and capabilities for GPT, Gemini, and Claude models: [paste playbook section]
Prompt 3
I am using the longrun playbook with Claude Code. My agent keeps failing the same test. Write a rule addition for the playbook that enforces logging the failure and trying a different approach before retrying.
Prompt 4
Help me configure Claude Code to delegate bulk coding tasks to a cheaper model like GPT while keeping Claude as the reviewer, based on the longrun playbook model routing system.

Frequently asked questions

What is longrun?

A playbook file for Claude Code that helps the AI coding agent work on long, unsupervised tasks by using files on disk as memory to track progress, log decisions, and survive context loss.

What license does longrun use?

The explanation does not mention a license for this repository.

How hard is longrun to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is longrun for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.