# baton: Never Lose a Claude Code Task to Usage Limits

> Claude hits its limit mid-task? baton hands the work to Codex or OpenCode, resumes when the limit resets, and pings you on Telegram.

baton: Never Lose a Claude Code Task to Usage Limits is a paid AI agent skill on Agensi by Selman Özdemir, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Selman Özdemir](https://www.agensi.io/creators/selman-zdemir)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.5
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/baton-never-lose-a-claude-code-task-to-usage-limits
- Tags: ai-agents, automation, devops, cli, python, telegram, claude-code, multi-agent

## About this skill

### Never lose a coding task to a usage limit

Claude hits its 5-hour limit at 2 a.m. and your refactor dies half-done. **baton** notices, hands the task to Codex CLI or OpenCode, and resumes the original session when the limit resets. It sends new work to the agent with the most quota left, restarts crashed or hung sessions, and pings you on Telegram only when a human is needed. Everything runs on your own machine, and none of your code leaves it.

Queue tasks, go to sleep, and wake up to finished work.

#### What baton handles on its own

- **Usage limit:** moves the task to the next agent with quota. If every agent is limited, it waits for the first reset and resumes the same session.
- **Crash or hang:** resumes the agent's own session (a hang is 15 minutes with no screen or token change).
- **Quota-aware scheduling:** `/budget` shows what each agent has left (Claude's 5-hour and weekly windows included); new tasks go where there is room, keeping a reserve.
- **Permission policy:** read-only commands go through; deletes, pushes, downloads and sudo ask you first.
- **Append-only event log** of every decision, with its reason.

#### From Telegram you can

- start a project with `/new a one-page site for my cafe`, read the agent's plan and press **Start**
- see what is running with `/status` and what each agent has left with `/budget`
- approve or deny an agent's permission prompt with one button, or answer its question by replying
- cancel a task (`/cancel t-…`) or move it to the cheaper model (`/tier t-… economy`)
- stop everything at once by writing `stop`
- write in plain words ("cancel the cafe task") with the optional local assistant (Ollama); each request comes back as a card to confirm

#### What you get by buying

The packaged agent skill. Your coding agent installs baton with SHA-256-checked downloads (one command per system, no sudo), runs `baton doctor`, fixes what it finds with the bundled troubleshooting guide, and queues, cancels and retargets tasks for you. Updates are included. It never asks for or touches your tokens: you type the bot token into `baton setup` yourself.

#### You bring

- at least one of Claude Code, Codex CLI or OpenCode, installed and signed in with your own account (two or more for hand-offs)
- a Telegram bot token from @BotFather
- git

#### Privacy

baton runs locally and uploads none of your code. Your agents talk to their providers as they always do; Telegram only receives baton's notices. Publishing finished pages to Vercel is off unless you turn it on. The computer baton runs on has to stay on and awake.

#### Platform support

"Supported" = run end to end on a real machine. "Beta" = built and tested automatically, not yet on a real machine or with a real agent.

| System | Status |
|---|---|
| Ubuntu (x86_64) | Supported |
| Windows 10/11 with WSL1 | Supported |
| Debian 12, Fedora 42, Arch | Beta (clean install passes in containers) |
| Windows 10/11 with WSL2 | Beta |
| Windows 10/11, native | Beta |
| macOS (Apple Silicon and Intel) | Beta |
| Linux ARM64 | Beta |

**Requires:** baton 1.4.0 and herdr 0.9.1–0.9.5. The install script sets up both.

## Requires

- Claude Code or Codex CLI or OpenCode (signed in)
- Telegram bot token (from @BotFather)
- Git
- Python

Runs on your own computer, which must stay on and awake. You sign in to your agents and type the Telegram bot token yourself; the skill never handles them.

## Known limitations

Runs on your own computer, which must stay on and awake. Supported end to end on Ubuntu and Windows with WSL1; Debian, Fedora, Arch, WSL2, native Windows, macOS and Linux ARM64 are beta (built and tested automatically, not yet on a real machine). You sign in to your agents and type the Telegram bot token yourself.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the baton: Never Lose a Claude Code Task to Usage Limits skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does Baton prevent coding agents from stalling during long tasks?

baton keeps a queue and hands each task to an agent that still has quota. When an agent hits its usage limit, baton waits for the reset and resumes the task, so long work doesn't die half-done while you're away.

### Which coding agents are compatible with this skill?

baton drives Claude Code, Codex CLI and OpenCode, each signed in with your own account. You need at least one. The skill itself follows the SKILL.md standard, so any compatible coding agent can use it to install and operate baton.

### Can I monitor or control my coding agents when I am away from my computer?

Yes, that's the point. From Telegram you can start a project (/new), check progress (/status) and quota (/budget), approve or deny permission prompts with one button, answer agent questions, cancel or retarget tasks, and stop everything by writing "stop".

### How do I know if my environment is set up correctly for Baton to work?

Run baton doctor. It checks the config, herdr, each agent, baton-detect, the policy, the timezone and Telegram, and for anything that fails it tells you exactly how to fix it. The bundled TROUBLESHOOTING.md covers common problems per operating system.

### Are there any manual steps required during the setup process?

Two, on purpose: you sign in to your coding agents yourself, and you type your Telegram bot token into baton setup yourself. The skill never asks for or touches your tokens. Everything else is one install command (SHA-256 verified, no sudo) plus baton setup.

### What components are included in this skill package?

SKILL.md, which teaches your agent to install, check and drive baton, and TROUBLESHOOTING.md, a symptom → cause → fix guide per operating system. baton itself is open source (Apache-2.0); the install script pulls baton 1.4.0 and herdr from their official releases and verifies them.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
