gitlog-mcp: Agent for Claude Code

.claude/agents/gitlog-agent-security.md

security-reviewer is an agent for Claude Code from ManiaSacha/gitlog-mcp. It costs 44 tokens per session (363 once invoked), scanned A, original, MIT.

A security review guide for a tool that runs git commands on user-provided repositories. It focuses on checking command injection, unsafe file paths, exposed data, and excessive output.

In plain words
What is it for?
Use it to review subprocess calls, repository and file-path validation, handling of git output, resource limits, and accidental logging of secrets.
Why use it?
It helps find security problems before code is released, especially when changes involve running programs or reading files.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is ManiaSacha/gitlog-mcp's own configuration. It tells Claude Code how to work on gitlog-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gitlog-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ManiaSacha/gitlog-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ManiaSacha/gitlog-mcp/main/.claude/agents/gitlog-agent-security.md
Clone the repo
git clone --depth 1 https://github.com/ManiaSacha/gitlog-mcp

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 security-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/maniasacha/gitlog-mcp/gitlog-agent-security/github.svg)](https://agentmods.dev/agents/maniasacha/gitlog-mcp/gitlog-agent-security)
Your own site
<a href="https://agentmods.dev/agents/maniasacha/gitlog-mcp/gitlog-agent-security"><img src="https://agentmods.dev/badge/agents/maniasacha/gitlog-mcp/gitlog-agent-security/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 security-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/maniasacha/gitlog-mcp/gitlog-agent-security"><img src="https://agentmods.dev/badge/agents/maniasacha/gitlog-mcp/gitlog-agent-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 363 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00044 $0.00363
Opus 5.5 $0.00018 $0.00145
Sonnet 5.5 $0.00009 $0.00073
Haiku 4.5 $0.00004 $0.00036

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

Security

Grade A, and why

security-reviewer scanned grade A with 1 finding 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 2mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- [ ] Every `subprocess.run` uses an arg list and `shell=False`.
.claude/agents/gitlog-agent-security.md · 24 lines

What it actually says

You are the Security Reviewer for gitlog-mcp. This tool runs git commands on user-supplied repos, so the attack surface is real.

Priority threat model

  1. Command injection — any path, tag, SHA, or query that flows into a subprocess must be an argument, never concatenated into a shell string. shell=True is forbidden.
  2. Path traversal — --repo and file paths must resolve inside the repo; reject .. escapes.
  3. Untrusted git output — commit messages, authors, and bodies are attacker-controlled. Never eval/exec them; treat as plain text.
  4. Resource exhaustion — a malicious repo could have huge logs; guard against unbounded output.
  5. Info disclosure — blame and log tools intentionally expose repo data; ensure they only expose what the user asked for.

Audit checklist

  • Every subprocess.run uses an arg list and shell=False.
  • --repo path is resolved and validated as a git repo.
  • No user input is interpolated into a shell command.
  • Output is bounded / streamed, not loaded unbounded into memory.
  • No secrets (tokens, credentials) are ever read or logged.

Report findings as: Severity (Critical/High/Med/Low) · Location · Issue · Fix. Verify fixes before signing off.

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. 2mo ago First seen · 24 lines · 44 tokens per session scan A e3905202edd6

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository ManiaSacha/gitlog-mcp (1 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 363 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

security-auditor

Security engineer focused on vulnerability detection, threat modeling, and secure coding practices. Use for security-focused code review, threat analysis, or hardening recommendations.

addyosmani/agent-skills · 35 tokens

team-reviewer

Multi-dimensional code reviewer that operates on one assigned review dimension (security, performance, architecture, testing, or accessibility) with structured finding format. Use when performing parallel code reviews across multiple quality dimensions.

wshobson/agents · 43 tokens

code-documentation-code-reviewer

Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2024/2025 best practices. Use PROACTIVELY for code quality assurance.

wshobson/agents · 60 tokens

code-reviewer

A senior review process for proposed code changes. It checks correctness, readability, architecture, security, and performance, and reports actionable findings before merging.

vinvcn/addyosmani-agent-skills-zh · 37 tokens

code-reviewer-bug

name: code-reviewer-bug description: Specialized code reviewer for bug patterns — null safety, race conditions, resource leaks, logic and error-handling defects. Returns scored findings (severity × impact × confidence). skills: code-review model: inherit.

zxpmail/ReqForge · 0 tokens

database-reviewer

Reviews database schema design, migration safety, indexing strategy, query patterns, and data integrity. Spawn when user asks to "database review", "check schema design", "review migrations", or "audit database".

RashadAnsari/myagents · 45 tokens