Skip to content

Autonomous AI agent orchestration — task relay, parallel workers, multi-account failover, overnight automation with Claude Code

License

Notifications You must be signed in to change notification settings

Traviseric/teneo-agent

Repository files navigation

Teneo Agent

Run Claude agents overnight to build your projects autonomously.

Built by Travis Eric as part of the Teneo ecosystem. Enhanced with insights from the AI-first development community including Geoffrey Huntley and Steve Yegge.

This is the open-source foundation. My production system runs 40+ specialized agent types with intelligent routing, multi-account failover, production readiness pipelines, and browser QA — across a full project portfolio. Learn more at traviseric.com.

Quick Start

# 1. Clone this repo
git clone https://github.com/Traviseric/teneo-agent.git
cd teneo-agent

# 2. Login to Claude CLI
claude login

# 3. Choose your runner:

Option A: Relay Runner (Task-based)

# Create task file
cp TASKS.md.example TASKS.md
# Edit with your tasks

# Run
python teneo_agent.py start --project /path/to/project --continuous

Option B: Ralph Runner (Geoff Huntley's pattern)

# Create PROMPT.md in your project with intent + tasks
# Then run
python ralph_runner.py --project /path/to/project --max 10

Two Runners, Two Patterns

Runner Pattern Best For
teneo_agent.py Task relay Checkbox tasks, parallel workers
ralph_runner.py Ralph Loop Fresh context, PROMPT.md driven

Relay Runner (my pattern): Workers claim tasks from TASKS.md, execute, mark complete. Good for parallel work.

Ralph Runner (Geoff Huntley's pattern): Each iteration reads PROMPT.md with fresh context. No memory accumulation. while :; do cat PROMPT.md | agent; done

Try both, see what works for your workflow. Feedback welcome!

How It Works

┌─────────────────────────────────────────────────────────┐
│                     TENEO AGENT                         │
│                                                         │
│  TASKS.md ──► Agent reads task                          │
│      │                                                  │
│      ▼                                                  │
│  Spawn Claude worker in terminal                        │
│      │                                                  │
│      ▼                                                  │
│  Worker executes task autonomously                      │
│      │                                                  │
│      ▼                                                  │
│  Worker writes HANDOFF.md when done                     │
│      │                                                  │
│      ▼                                                  │
│  Git checkpoint (commit + push)                         │
│      │                                                  │
│      ▼                                                  │
│  Loop: Next task until done                             │
└─────────────────────────────────────────────────────────┘

Prerequisites

  • Python 3.8+
  • Claude CLI - npm install -g @anthropic-ai/claude-code
  • Git - for checkpoints
  • Windows Terminal (Windows) or Terminal.app (macOS) or gnome-terminal (Linux)

Commands

# Run single round (1 task)
python teneo_agent.py start --project ./my-project

# Run continuously until all tasks done
python teneo_agent.py start --project ./my-project --continuous

# Run with 2 parallel workers
python teneo_agent.py start --project ./my-project --lanes 2 --continuous

# Check status
python teneo_agent.py status

Task File Format

Create TASKS.md with checkbox-format tasks:

# Project Tasks

## Phase 1: Setup
- [ ] Initialize project with Next.js and TypeScript
- [ ] Add Tailwind CSS configuration
- [ ] Create basic folder structure

## Phase 2: Features
- [ ] Create login page with email/password form
- [ ] Add user dashboard page
- [ ] Implement API routes for authentication

## Phase 3: Polish
- [ ] Add loading states to all buttons
- [ ] Write unit tests for auth functions
- [ ] Update README with setup instructions

Workers will:

  1. Pick up the first incomplete task (- [ ])
  2. Execute it in your project
  3. Mark it complete (- [x]) when done
  4. Write a handoff for the next worker

Directory Structure

teneo-agent/
├── teneo_agent.py      # Main script
├── TASKS.md            # Your task list (create this)
├── agent_runs/         # Worker output (auto-created)
│   └── round_1_lane_1/
│       ├── WORKER.md   # Worker instructions
│       ├── LOG.md      # Progress log
│       └── HANDOFF.md  # Completion handoff
└── README.md

Core Patterns

Teneo Agent implements patterns I developed through months of overnight agent runs:

Task Relay Pattern (Original)

  • File-based coordination - TASKS.md is the source of truth
  • Worker isolation - each worker gets a clean context
  • Checkpoint safety - git commits protect your work
  • Handoff continuity - workers pass context to the next

Enhanced With Community Insights

After building the core system, I studied work from Huntley and Yegge:

  • Fresh context principle (Huntley) - reinforced my worker isolation approach
  • Landing the Plane (Yegge) - formalized my checkpoint discipline

Configuration

Environment Variables

# Optional - Claude CLI handles auth, but you can set this
ANTHROPIC_API_KEY=your_key_here

CLI Options

Option Default Description
--project, -p . Path to your project
--lanes, -l 1 Parallel workers
--continuous, -c false Run until tasks done
--max-rounds, -m 50 Max rounds to run

Tips for Better Results

  1. Write clear tasks - "Add login form with email validation" not "do auth stuff"

  2. One thing per task - break big features into smaller tasks

  3. Include acceptance criteria - "Add tests that verify login works"

  4. Order matters - put dependencies first (setup before features)

  5. Run during low-stakes time - overnight, when you can review in the morning

Audit Your Project

Before running overnight agents, optimize your project structure:

# 1. Clone teneo-agent
git clone https://github.com/Traviseric/teneo-agent.git

# 2. Open Claude Code in YOUR project
cd /path/to/your/project
claude

# 3. Run the audit (paste this prompt)
Read the best practices at [path-to-teneo-agent]/BEST_PRACTICES.md
Then audit THIS project against those practices and give me a scorecard.

Claude will analyze your CLAUDE.md, project structure, documentation, and testing setup - then give you specific recommendations.

Full guide: docs/AUDIT_YOUR_PROJECT.md

Documentation

Guide What You'll Learn
Audit Your Project Run Claude to score and improve your project
Best Practices 10 principles for agent success
Doc Organization Structure docs so agents navigate efficiently
MCP Optimization Fix MCP token bloat
Getting Started First-time setup, CLAUDE.md template
Task Template Example task file format

Community

Join 100+ builders running AI agents overnight:

  • Share your overnight run results
  • Get feedback on your TASKS.md
  • Learn from others' workflows
  • Weekly tips and patterns
  • Direct access to Travis

Learn More

Free Resources:

Go Deeper:

License

MIT License - see LICENSE

Author

Travis Eric - traviseric.com


Built by Travis Eric. Enhanced with insights from the AI-first development community.

Join the community - Share your overnight runs, learn from others.

About

Autonomous AI agent orchestration — task relay, parallel workers, multi-account failover, overnight automation with Claude Code

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages