# My $20 Claude plan hit its limit mid-task, so I built a handoff tool for AI coding agents

> Source: <https://dev.to/mhrabea/my-20-claude-plan-hit-its-limit-mid-task-so-i-built-a-handoff-tool-for-ai-coding-agents-f9f>
> Published: 2026-11-29 09:03:56+00:00

**Key takeaway:** tagteam saves a git-stamped handoff (branch, HEAD, dirty files, diff hash) at session end and feeds it as the next agent's first prompt, while path-scoped constraints enforced through a PreToolUse hook block edits to protected files before they happen.

If you code with AI on a $20 plan, you know the moment: the agent finally understands your codebase, you're halfway through a task, and then "You've hit your usage limit."

What usually happens next:

I got tired of that, so I built **[tagteam](https://github.com/MHRabea/tagteam)**: a free, open-source CLI and MCP server that hands one coding task from one agent to the next without losing the thread.

*A live run on one task: real Claude Code → real Codex → real Claude Code, through tagteam.*

When a session ends (usage limit, crash, closed window), tagteam always saves a **handoff**:

Then it starts your next agent with that handoff as its first prompt.

```
npm i -g tagteam-ai
tagteam profile add claude
tagteam profile add deepseek --key   # or any provider you already pay for
tagteam --auto-switch                # on a usage limit, continue on the next profile by itself
```

You don't need a $200 plan. You need the tools you already have to work as a team.

A summary written against an old commit is worse than no summary, because the next agent trusts it. Every tagteam handoff is stamped with the git state (branch, HEAD, dirty files, a diff hash). If the code changed in between, the next agent is told *"2 commits since this handoff touched billing.js, verify first"* instead of acting on it blindly.

Telling an agent "don't touch this file" in a prompt is a suggestion. tagteam makes it a rule:

```
tagteam install claude
tagteam constraint "Don't change the payment gateway" --paths "src/payments/**"
```

In Claude Code, an Edit or Write to `src/payments/**` is now refused **before it happens** (a PreToolUse hook), and the agent is told which rule blocked it. Add `--shared` to commit the rule for your team, and the included GitHub Action fails pull requests that break it.

```
tagteam verify
```

runs your test command itself and compares the result with what the agent claimed in the handoff.

`.env` values, private keys) are redacted before anything is written to disk.
It works with Claude Code, Codex, Cursor and any MCP client, and it's listed in the official MCP Registry.

**Try it:** `npm i -g tagteam-ai` · [GitHub](https://github.com/MHRabea/tagteam)

I'm the author, and I'd genuinely like to hear what annoyed you when you tried it. That feedback shapes what I build next. 🙏
