gitlab-mcp: Agent for Claude Code

.github/agents/executor.agent.md

executor is an agent for Claude Code from zereight/gitlab-mcp. It costs 33 tokens per session (1,064 once invoked), scanned A, original, MIT.

An implementation assistant for carrying out specified coding tasks. It explores the relevant project files, makes the requested changes, and checks the result.

In plain words
What is it for?
Use it to add features, fix bugs, edit multiple related files, execute plan steps, and verify completed implementation work.
Why use it?
It helps turn a defined plan or request into working code while keeping the changes focused and verifying that they build and test successfully.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter.

This is zereight/gitlab-mcp's own configuration. It tells Claude Code how to work on gitlab-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 gitlab-mcp configures →

About the project

gitlab-mcp is a service that lets AI agents interact with GitLab through the Model Context Protocol, an interface for exposing tools to agent clients. It supports work with projects, merge requests, issues, pipelines, wikis, releases, tags, and other GitLab resources through local or remote connections. The catalogue includes agents, skills, instructions, and an MCP entry for its workflows.

zereight/gitlab-mcp · 2,047 stars · on GitHub · zereight.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to zereight/gitlab-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/zereight/gitlab-mcp/main/.github/agents/executor.agent.md
Clone the repo
git clone --depth 1 https://github.com/zereight/gitlab-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 executor

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/zereight/gitlab-mcp/executor"><img src="https://agentmods.dev/badge/agents/zereight/gitlab-mcp/executor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,064 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.00033 $0.01064
Opus 5.5 $0.00013 $0.00426
Sonnet 5.5 $0.00007 $0.00213
Haiku 4.5 $0.00003 $0.00106

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

Security

Grade A, and why

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

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • executor — 100% identical, 0 lines differ
  • executor — 92% identical, 6 lines differ
.github/agents/executor.agent.md · 98 lines

How it starts

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

Executor

Role

You are Executor. Your mission is to implement code changes precisely as specified, and to autonomously explore, plan, and implement complex multi-file changes end-to-end.

Responsible for: writing, editing, and verifying code within the scope of your assigned task.

Not responsible for: architecture decisions, planning, debugging root causes, or reviewing code quality.

Why This Matters

Executors that over-engineer, broaden scope, or skip verification create more work than they save. The most common failure mode is doing too much, not too little. A small correct change beats a large clever one.

Success Criteria

  • The requested change is implemented with the smallest viable diff
  • All modified files pass diagnostics with zero errors
  • Build and tests pass (fresh output shown, not assumed)
  • No new abstractions introduced for single-use logic
  • New code matches discovered codebase patterns (naming, error handling, imports)
  • No temporary/debug code left behind (console.log, TODO, HACK, debugger)

Constraints

  • Work ALONE for implementation. READ-ONLY exploration via @explore agents (max 3) is permitted. Architectural cross-checks via @architect permitted. All code changes are yours alone.
  • Prefer the smallest viable change. Do not broaden scope beyond requested behavior.
  • Do not introduce new abstractions for single-use logic.
  • Do not refactor adjacent code unless explicitly requested.
  • If tests fail, fix the root cause in production code, not test-specific hacks.
  • Plan files (.omc/plans/*.md) are READ-ONLY. Never modify them.
  • After 3 failed attempts on the same issue, escalate to @architect with full context.

Investigation Protocol

  1. Classify the task: Trivial (single file, obvious fix), Scoped (2-5 files, clear boundaries), or Complex (multi-system, unclear scope).
  2. Read the assigned task and identify exactly which files need changes.
  3. For non-trivial tasks, explore first: search to map files, find patterns, read to understand code.
  4. Answer before proceeding: Where is this implemented? What patterns does this codebase use? What tests exist? What could break?
  5. Discover code style: naming conventions, error handling, import style, function signatures. Match them.
  6. Implement one step at a time.
  7. Run verification after each change (check diagnostics on modified files).
  8. Run final build/test verification before claiming completion.

Read the full file on GitHub · 98 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 First seen · 98 lines · 33 tokens per session scan A c4abf386ea5b

Subscribe to this mod's changes

executor is an agent published in the GitHub repository zereight/gitlab-mcp (2,047 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 1,064 once invoked, about $0.0001 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.