Skip to content

Equality-Machine/claude-marathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿƒโ€โ™‚๏ธ Claude Marathon

AI-powered progress tracking for epic, multi-session tasks in Claude Code. Never lose context. Auto-summarize with Claude Haiku. Continue seamlessly across sessions.

License: MIT Claude Code Haiku Powered

Languages: English | ไธญๆ–‡ | ๆ—ฅๆœฌ่ชž | ํ•œ๊ตญ์–ด | ะ ัƒััะบะธะน | Espaรฑol


โšก Quick Start

# Add the marketplace
/plugin marketplace add Equality-Machine/claude-marathon

# Install the plugin
/plugin install marathon@marathon

# Done! ๐ŸŽ‰

๐ŸŽฏ What is Marathon?

Marathon solves one problem: Long tasks lose context when sessions end.

The Problem

When working on complex tasks that span multiple Claude Code sessions, you lose valuable context:

  • What did I do last session?
  • What was I about to implement?
  • What decisions did I make and why?

The Solution

Marathon automatically tracks and intelligently summarizes every operation using Claude Haiku:

Before Marathon:

Session 1: Edit 20 files for auth feature โœ…
[Context compression happens]
Session 2: "What did I implement yesterday?" โ“
          Read through all 20 files manually... ๐Ÿ˜“

With Marathon:

Session 1: Edit 20 files โœ…
          โ†’ Auto checkpoint triggers
          โ†’ Claude Haiku summarizes: "๐ŸŽฏ Implemented JWT auth system"
[Context compression happens]
Session 2: /marathon-review
          โ†’ "Last session: JWT auth 75% complete. Next: Add refresh tokens" โœ…
          Resume immediately! ๐Ÿš€

๐ŸŽฎ Complete Workflow

Marathon provides a complete task lifecycle management:

Session Start
  โ†“
๐Ÿ“– /marathon-review        โ† Restore context from previous sessions
  โ†“
โš™๏ธ /marathon-config        โ† (Optional) Configure auto-checkpoint threshold
  โ†“
๐Ÿ’ป Work on your task...
  โ”œโ”€ ๐Ÿค– Auto Checkpoint    โ† Background: AI summarizes every 20 operations
  โ”œโ”€ ๐Ÿ’พ /marathon-checkpoint  โ† Manual: Save detailed progress at key moments
  โ””โ”€ ๐Ÿ /marathon-milestone   โ† Manual: Mark major achievements
  โ†“
โœ… /marathon-end           โ† Complete and archive when task is done

๐Ÿค– Auto Checkpoint (Automatic)

Runs in background automatically - no command needed!

  • What: AI batch summarizes recent operations using Claude Haiku
  • When: Every N tool calls (default: 20, configurable)
  • Cost: < $0.10/month
  • Example:
    ## ๐Ÿ“Š Auto Summary (11:03)
    - [11:02] ๐Ÿ“ Edit: test_manual.txt
    - [11:03] ๐Ÿ”ง Refactor: auth module (login.js, token.js)

๐Ÿ“‹ All Commands

Session Lifecycle

Command Purpose When to Use Type
/marathon-review Restore context from previous sessions Session start - Load past work Manual
/marathon-config Configure auto-checkpoint threshold Anytime - Adjust frequency (10-50 calls) Manual
Auto Checkpoint AI batch summary via Claude Haiku During work - Every N operations Automatic
/marathon-checkpoint Save detailed progress report During work - After key milestones Manual
/marathon-milestone Mark major achievement During work - Celebrate important wins Manual
/marathon-end Complete and archive task Session end - Final summary & archive Manual

Key Distinctions

Auto vs Manual:

  • Auto Checkpoint: Background AI summary, runs automatically every N operations
  • Manual Checkpoint (/marathon-checkpoint): Detailed progress save with your analysis
  • Milestone (/marathon-milestone): Celebration marker for major achievements

๐Ÿ—๏ธ How It Works

Day 1: You start task
โ”œโ”€ Marathon creates workspace/session_20260222_*/
โ”œโ”€ Auto-tracks every file edit, git command
โ””โ”€ After 20 operations โ†’ AI summary โœ…

Day 3: You continue
โ”œโ”€ /marathon-review โ†’ Loads all previous sessions
โ”œโ”€ Shows: What's done? What's next?
โ””โ”€ You continue with full context โœ…

Workspace Structure:

workspace/session_YYYYMMDD_HHMMSS/
โ”œโ”€โ”€ progress.md          # Auto + manual tracking
โ”œโ”€โ”€ learnings.md         # Technical insights
โ”œโ”€โ”€ session.json         # Metadata
โ””โ”€โ”€ logs/                # Auto-checkpoint logs

๐Ÿ’ก Example Workflow

# Working on JWT auth feature...

# (After 20 edits, auto checkpoint triggers)
## ๐Ÿ“Š Auto Summary
- [14:10] ๐ŸŽฏ Implement JWT login + token generation
- [14:25] ๐Ÿงช Add integration tests

# After major milestone
/marathon-checkpoint
โœ… Checkpoint: Login endpoint complete

# When MVP done
/marathon-milestone
๐Ÿ Milestone: JWT Authentication MVP Complete!

# Next session
/marathon-review
๐Ÿ” Loaded 3 sessions, 75% complete
๐ŸŽฏ Next: Add token refresh mechanism

โš™๏ธ Configuration

Adjust auto-checkpoint frequency:

/marathon-config

Recommended thresholds:

  • 10-15 โ†’ Fast-paced work
  • 20-30 โ†’ Balanced (default)
  • 30-50 โ†’ Deep work

๐Ÿ“Š Why Marathon?

โœ… Auto-tracking - Set it and forget it โœ… AI-powered - Claude Haiku intelligently summarizes โœ… Cost-effective - <$0.10/month โœ… Zero interruption - Background execution โœ… Multi-project - Directory-aware session filtering โœ… Seamless continuity - Resume exactly where you left off


๐ŸŽฏ Perfect For

  • Multi-day feature implementations
  • Bug investigations spanning sessions
  • Research and learning projects
  • Team handoffs and context sharing
  • Any task longer than one session

๐Ÿ“– Documentation


๐Ÿค Contributing

PRs welcome! See CONTRIBUTING.md


๐Ÿ“„ License

MIT License - see LICENSE


๐Ÿ™ Inspired By


Run your marathon with confidence! ๐Ÿƒโ€โ™‚๏ธ๐Ÿ’จ

About

A Claude Code plugin for running epic tasks across multiple sessions without losing context.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages