Nonstop Agent
English | 한국어
Long-running autonomous agent harness for Claude - A framework for building autonomous agents that work continuously across multiple sessions.

Overview
Nonstop Agent is a production-ready framework for running Claude-powered autonomous agents that can work continuously on complex projects. It implements best practices from Anthropic's engineering guidelines, including:
- 2-Agent Pattern: Initializer agent sets up the project, Coding agents continue the work
- State Persistence: Progress survives across sessions via git + progress files
- Defense-in-Depth Security: Multi-layered security with sandbox, permissions, and command allowlists
- Session Resumption: Seamlessly continue work from previous sessions
Inspiration & References
This project is inspired by and built upon:
Official Anthropic Resources
-
Anthropic Engineering: Effective Harnesses for Long-Running Agents
- 2-Agent pattern (Initializer + Coding)
- Defense-in-depth security model
- State persistence via git + progress files
-
Anthropic Claude Quickstarts - Autonomous Coding
- Reference implementation for autonomous coding agents
feature_list.json pattern for tracking progress
-
Claude Agent SDK
- Official SDK for building Claude-powered agents
- Hooks, permissions, and session management
Community Resources
-
AI 에이전트가 며칠 걸리는 작업을 혼자 완수하는 법 (AI Spark Up)
- Korean explanation of Anthropic's 2-agent solution
- Practical insights on context window management
-
YouTube: Claude Code Autonomous Agent Tutorial
- Video walkthrough of autonomous agent concepts
-
YouTube: Long-Running Agent Implementation
- Practical demonstration of multi-session agents
Installation
Option 1: As a Python Package
# Using uv (recommended)
uv add nonstop-agent
# Or using pip
pip install nonstop-agent
Option 2: As a Claude Code Plugin (Recommended)
Install directly from the marketplace in Claude Code:
# Add the marketplace
/plugin marketplace add seolcoding/nonstop-agent
# Install the plugin
/plugin install nonstop-agent@seolcoding/nonstop-agent
Or install manually:
# Clone the repository
git clone https://github.com/seolcoding/nonstop-agent.git
# Copy to Claude Code skills directory
cp -r nonstop-agent/skills ~/.claude/skills/nonstop-agent
After installation, invoke the skill in Claude Code:
- "롱 러닝 에이전트 만들어줘"
- "Create an autonomous coding agent"
- "Build a long-running agent harness"
- "nonstop agent 만들어줘"
Quick Start
1. Authentication
The agent requires an OAuth token for Claude Code CLI:
# Generate OAuth token
claude setup-token
# Add the token to your environment
export CLAUDE_CODE_OAUTH_TOKEN="your-token-here"
# For permanent setup, add to your shell profile
echo 'export CLAUDE_CODE_OAUTH_TOKEN="your-token-here"' >> ~/.zshrc
2. Run the Agent
New Project:
# Create a new project with app_spec.txt
uv run nonstop-agent --project-dir ./my_project
Existing Project:
# Analyze existing codebase first
uv run nonstop-agent --project-dir ./existing_project --analyze-first
Resume Previous Session:
# Continue from where you left off
uv run nonstop-agent --project-dir ./my_project --resume
3. Command Line Options
--project-dir PATH Directory for the project (default: ./project)
--model MODEL Claude model to use (default: claude-opus-4-5-20251101)
--max-iterations N Maximum number of iterations (default: unlimited)
--analyze-first Analyze existing project before starting
--resume Resume from the last session
--system-prompt TEXT Custom system prompt for the agent
How It Works
Session Flow