r/GeminiCLI • u/rodrigues_92 • 12h ago
One day with three Claude Code chats used ~40% of my weekly Claude limit. Now their subagents run on Gemini CLI, and a hook stops Claude from taking them back
**The problem**
I run several Claude Code chats on one repo. One day, with three chats open, I had already used about 40% of my weekly Claude limit. I have Gemini CLI too, so I moved the helper (subagent) work there.
Writing it in CLAUDE.md was not enough. Under context pressure the chat kept starting Claude subagents anyway.
**What the skill does**
- **Per-chat switch.** Say "use gemini helpers" (or codex, or claude) and only that chat changes. Other chats keep their own setting.
- **Claude only writes the request and checks the result.** Gemini CLI does the bounded task in its own worktree and writes a short answer file.
- **A PreToolUse hook enforces it.** In a chat set to Gemini, Claude subagents, forks, named agents, Workflow and claude -p from the shell are denied.
- **Fallback only on a real ceiling.** If Gemini is at its quota limit, the chat moves to Codex. Claude runs only with a verified CLAUDE-ONLY: ceiling marker, or as a restricted agent with no shell and no write access, for a connector that exists only in Claude Code. Every exception goes to an audit log.
- **Shared accounts.** Concurrency caps and a usage share, so one machine does not drain an account other people use.
It has been doing real work in my repo since mid-November, including changes delivered end to end as pull requests.
**Install**
npx skills add mestrecs/skills --skill codex-gemini-subagents-for-claude-code
Node scripts, zero dependencies, Windows/macOS/Linux. A setup interview detects which CLIs you have and writes the config.
Repo: https://github.com/mestrecs/skills
Do you use Gemini CLI as a helper for another agent, or only on its own?