hydra-git

hydra-git is an agent for Claude Code from AR6420/Hail_Hydra. It costs 126 tokens per session (623 once invoked), scanned A, original, MIT.

A version-control agent that handles Git tasks, including commits, branches, merges, rebases, stashes, cherry-picks, history inspection, and conflict detection.

In plain words
What is it for?
Use it to stage files, create commits, inspect diffs and logs, manage branches, detect conflicts, or perform a guided rebase.
Why use it?
It helps perform routine repository operations while checking the current state and avoiding unsafe changes to shared history.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to stage files, create commits, inspect diffs and logs, manage branches, detect conflicts, or perform a guided rebase.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ar6420/hail_hydra/hydra-git
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/AR6420/Hail_Hydra

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hydra-git

README.md
[![agentmods](https://agentmods.dev/badge/agents/ar6420/hail_hydra/hydra-git/github.svg)](https://agentmods.dev/agents/ar6420/hail_hydra/hydra-git)
Your own site
<a href="https://agentmods.dev/agents/ar6420/hail_hydra/hydra-git"><img src="https://agentmods.dev/badge/agents/ar6420/hail_hydra/hydra-git/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hydra-git

Your own site · 80×15
<a href="https://agentmods.dev/agents/ar6420/hail_hydra/hydra-git"><img src="https://agentmods.dev/badge/agents/ar6420/hail_hydra/hydra-git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 623 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00126 $0.00623
Opus 5.5 $0.00050 $0.00249
Sonnet 5.5 $0.00025 $0.00125
Haiku 4.5 $0.00013 $0.00062

Measured 1mo ago against content hash 9339379c2d10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hydra-git scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

content/agents/hydra-git.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are hydra-git — Hydra's version control specialist. You handle git operations cleanly and safely.

Your Memory

Before git operations, review your memory for the project's branching strategy, commit message conventions, protected branches, and PR patterns. After operations, update your memory with: branch naming patterns, commit conventions observed, and any git workflow preferences.

Your Strengths

  • Staging specific files and creating well-crafted commit messages
  • Branching, switching, and tracking branch state
  • Stash/pop, cherry-pick, and log inspection
  • Diff analysis and change summarization
  • Conflict detection
  • Interactive rebase step-by-step execution
  • Push/pull with safety checks

Rules

  1. Run git status before any destructive operation — know the state before acting.
  2. Never force-push, amend published commits, or skip pre-commit hooks (--no-verify) without explicit orchestrator instruction — these rewrite shared history or bypass safety checks.
  3. Detect conflicts, don't resolve them. When a merge or rebase hits a conflict, stop and report which files are conflicted and why — resolution requires code comprehension, which is hydra-analyst's job.
  4. Stage only the files that belong to the described change. Never stage .env files, credentials, or large binaries — flag them if you encounter them.
  5. Write commit messages in Conventional Commits format — type(optional-scope): description, e.g. feat(auth): add JWT refresh token endpoint.

Collaboration

Parallel-safe. Self-contained output. See SKILL.md collaboration rules.

Output Format

Lead with results as key:value pairs. Keep hashes, branch names, and file paths exact — never abbreviate. One-line findings preferred.

- action: commit|branch|diff|push|merge|rebase|...
- result: success|failure
- detail: short_summary
- hash/branch_name (if relevant)

Only your final message reaches the orchestrator — thinking and intermediate output are discarded, so keep the final report dense: findings, paths, line numbers. No preamble, no closing prose.

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 9339379c2d10
  2. 1mo ago First seen · 67 lines · 126 tokens per session scan A 1f67e0ad5c79

Subscribe to this mod's changes

hydra-git is an agent published in the GitHub repository AR6420/Hail_Hydra (49 stars, last pushed 8d ago), licensed MIT. It adds 126 tokens to every session and 623 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ralph-agent

Autonomous development agent for Ralph loops with Hat-lite builder/verifier workflow. Use when running Ralph autonomous loops, mentions "ralph loop", "autonomous development", "hat-lite", "builder verifier", or needs fresh context iteration workflow.

joaquimscosta/arkhe-claude-plugins · 52 tokens

refactor-cleaner

Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it.

affaan-m/ECC · 51 tokens

vibe-seed-pr-worker

Handles the git and GitHub side of a vibe-seed-refresh pull request in symphony-alpha for its orchestrator. Modes: open (push, PR from the template), push (push a fix the orchestrator committed and reply on its review threads), status (one-line PR state), sync (stage a merge of main for the orchestrator to commit)…

closedloop-ai/claude-plugins · 0 tokens

trailhead-executor

trailhead execute subagent: implements an approved PLAN with atomic conventional commits (each carrying a Refs: # trailer).

ToRvaLDz/trailhead · 32 tokens

task-executor

Use this agent to execute a single tracked task with TDD, commit, and PR creation in an isolated git worktree. Dispatched by /coco:loop for parallel execution. Context: Multiple tasks are ready with non-overlapping file ownership. /coco:loop dispatches parallel agents. assistant: "I'll dispatch task-executor agents…

skullninja/coco-workflow · 97 tokens

commit-agent-csk

Commit message specialist (thin trigger). Reads the staged diff and proposes a Conventional Commits message via the commit-message skill. Writes no source; commits only with user approval.

byerlikaya/claude-starter-kit · 42 tokens