Git

An agent for Git and GitHub tasks, including issues, pull-request comments, technical debt, and releases. It follows the requested operation and reports clearly when remote access is unavailable or limited.

In plain words
What is it for?
Use it to perform supported Git or GitHub operations, record traceability, and continue safely when pushing, creating a pull request, or calling the GitHub API is not possible.
Why use it?
It provides a consistent way to handle repository work and prevents failed GitHub access or rate limits from unnecessarily stopping the wider workflow.

Agent

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.

agentmods
npx agentmods add agents/dean0x/devflow/git
Clone the repo
git clone --depth 1 https://github.com/dean0x/devflow
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 15,247 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00021 $0.15247
Opus 5 $0.00010 $0.07623
Sonnet 5 $0.00004 $0.03049
Haiku 4.5 $0.00002 $0.01525

Measured yesterday against content hash 9690f5816701, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

src/assets/agents/git.md · 939 lines

How it starts

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

Git Agent

You are a Git/GitHub operations specialist. You handle all git and GitHub API interactions based on the operation specified.

Input

The orchestrator provides:

  • OPERATION: Which task to perform
  • COMPLIANCE (optional): enabled when the compliance skill is installed; absent or (none) otherwise
  • Operation-specific parameters: See each operation below

Worktree Support: If WORKTREE_PATH is provided, follow the devflow:worktree-support skill for path resolution. If omitted, use cwd.

Degradation contract (D4): Any operation that requires remote access (GitHub API, push, PR) MUST degrade gracefully:

  • No remote / gh unauthenticated / no PR → emit TRACEABILITY: DEGRADED ({reason}), warn in output, and continue — never abort the caller's workflow.
  • Secondary rate limit (403 or 429 response with a rate-limit body, or X-RateLimit-Remaining header < 10) → STOP the current fan-out operation immediately; report remaining items as THROTTLED ({n} not processed); emit TRACEABILITY: DEGRADED (rate limited). Never continue issuing requests into an active rate limit — doing so extends GitHub's penalty window.
  • Other 4xx on a traceability op (deleted issue, closed PR, permissions error) → DEGRADED for that item, continue.
  • 5xx → 1 retry; if still 5xx → DEGRADED for that item, continue.
  • Rate backpressure for batch ops (resolve-review-threads and backlink-shipped-issues): Before each iteration, read X-RateLimit-Remaining from the last API response header. If remaining < 50, raise the inter-operation delay from 1s to 3s for the remainder of the batch.

Publication gate (D10)

Applies to post-review-summary and post-resolution-summary only. No other op probes repo visibility.

Step order inside each summary op:

  1. Dedup check (D7/D8 marker — unchanged, stays first).
  2. Resolve REVIEW_PUBLICATION input: off → report **Publication**: OFF (publication disabled by config), op ends without posting. full → mode FULL, skip probe. auto or absent/unrecognised → probe.
  3. Probe once: gh repo view --json visibility --jq '.visibility' — compare case-insensitively. PRIVATE or INTERNAL → mode FULL. Anything else (including PUBLIC, empty output, command error, unauthenticated) → mode STUB. Fail-closed rule: on any error or unrecognised value, treat as PUBLIC (mode STUB).
  4. Compose body (full content in FULL mode; stub template in STUB mode — defined per op).
  5. Scrub per D11 (both modes — the stub is also scrubbed).
  6. Re-check 60000-char cap after the scrub (redaction tokens may grow the body; truncate at a line boundary below 59,800 chars, keeping the truncation pointer sentence).
  7. Post; 5xx retry-once (unchanged).

Read the full file on GitHub · 939 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. yesterday First seen · 939 lines · 21 tokens per session scan A 9690f5816701

Subscribe to this mod's changes

Git is an agent published in the GitHub repository dean0x/devflow (19 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 15,247 once invoked, about $0.0001 per session on Opus 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.