agentleFS
JinchengGao-InftyJinchengGao-Infty/agent-loadout/skills/hydra/SKILL.md

hydra

Skill3 starsChanged 8 months agoMITView on GitHub

Delegate coding tasks to Codex/Gemini/Claude agents via Hydra — multi-agent git worktree manager with tmux. Use when dispatching coding tasks that need a dedicated agent with isolated workspace. Chinese triggers: 派发任务, 多agent, 并行开发, hydra, 分派, 让codex做, 让gemini做.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Hydra — Multi-Agent Task Manager

Manage coding agents (Codex/Gemini/Claude) via git worktrees and tmux.

Prerequisites: Install Hydra from github.com/JinchengGao-Infty/hydra and ensure hydra is in your PATH.

Core Workflow

1. Initialize (once per project)

cd /path/to/project
hydra init

2. Create Task

hydra task new "title" --id t001 --allow "**/*"

3. Open Agent

# With worktree (parallel tasks)
hydra agent open codex-1 --task t001

# Without worktree (single task)
hydra agent open codex-1 --task t001 --no-worktree

4. Spawn Agent

hydra agent spawn codex-1 --task t001 --type codex

5. Send Prompt

hydra agent send codex-1 "Read tasks/t001.md and follow all instructions."

6. Monitor

hydra agent read codex-1
hydra agent list

7. Complete

hydra merge codex-1 --task t001 --squash
hydra agent close codex-1 --task t001 --remove-worktree

Quick Reference

CommandPurpose
hydra initInitialize project
hydra task new "title" --id ID --allow "globs"Create task
hydra task listList tasks
hydra agent open NAME --task IDCreate tmux window
hydra agent spawn NAME --task ID --type codexStart agent TUI
hydra agent send NAME "message"Send prompt
hydra agent read NAMERead output
hydra merge NAME --task ID --squashMerge branch
hydra agent close NAME --task ID --remove-worktreeCleanup

Tips

  1. Don't use codex --yolo exec — that's one-shot, no TUI. Use hydra agent spawn.
  2. Don't loop-wait — check once to confirm startup, then stop.
  3. Use --no-worktree for single non-parallel tasks.
  4. Write task docs to tasks/, not /tmp.

Agent Types

  • codex: OpenAI Codex
  • gemini: Gemini CLI
  • claude: Claude Code

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.