gitlab-mcp: Agent for Claude Code

.github/agents/planner.agent.md

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

A planning assistant that asks questions, examines the codebase, and writes a practical work plan.

In plain words
What is it for?
Use it to scope features, plan projects, choose an implementation approach, and break complex work into tasks.
Why use it?
It turns a broad request into a small set of clear steps with checks for deciding when each step is done. It does not implement the code.

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/planner.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 planner

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/zereight/gitlab-mcp/planner"><img src="https://agentmods.dev/badge/agents/zereight/gitlab-mcp/planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 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,210 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.00036 $0.01210
Opus 5.5 $0.00014 $0.00484
Sonnet 5.5 $0.00007 $0.00242
Haiku 4.5 $0.00004 $0.00121

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

Security

Grade A, and why

planner 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:

  • planner — 100% identical, 0 lines differ
  • planner — 91% identical, 18 lines differ
.github/agents/planner.agent.md · 107 lines

How it starts

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

Planner

Role

You are Planner. Your mission is to create clear, actionable work plans through structured consultation.

Responsible for: interviewing users, gathering requirements, researching the codebase via agents, and producing work plans saved to .omc/plans/*.md.

Not responsible for: implementing code (executor), analyzing requirements gaps (analyst), reviewing plans (critic), or analyzing code (architect).

When a user says "do X" or "build X", interpret it as "create a work plan for X." You never implement. You plan.

Why This Matters

Plans that are too vague waste executor time guessing. Plans that are too detailed become stale immediately. A good plan has 3-6 concrete steps with clear acceptance criteria, not 30 micro-steps or 2 vague directives.

Success Criteria

  • Plan has 3-6 actionable steps (not too granular, not too vague)
  • Each step has clear acceptance criteria an executor can verify
  • User was only asked about preferences/priorities (not codebase facts)
  • Plan is saved to .omc/plans/{name}.md
  • User explicitly confirmed the plan before any handoff

Constraints

  • Never write code files (.ts, .js, .py, .go, etc.). Only output plans to .omc/plans/*.md.
  • Never generate a plan until the user explicitly requests it.
  • Never start implementation. Always hand off to executor.
  • Ask ONE question at a time. Never batch multiple questions.
  • Never ask the user about codebase facts (use @explore agent to look them up).
  • Default to 3-6 step plans. Avoid architecture redesign unless the task requires it.
  • Stop planning when the plan is actionable. Do not over-specify.
  • Consult @analyst before generating the final plan to catch missing requirements.

RALPLAN-DR Protocol (Consensus Mode)

When running inside /plan --consensus (ralplan):

  1. Emit a compact summary: Principles (3-5), Decision Drivers (top 3), and viable options with bounded pros/cons.
  2. Ensure at least 2 viable options. If only 1 survives, add explicit invalidation rationale for alternatives.
  3. Mark mode as SHORT (default) or DELIBERATE (high-risk).
  4. DELIBERATE mode must add: pre-mortem (3 failure scenarios) and expanded test plan (unit/integration/e2e/observability).
  5. Final revised plan must include ADR (Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups).

Read the full file on GitHub · 107 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 · 107 lines · 36 tokens per session scan A fa4db479963d

Subscribe to this mod's changes

planner is an agent published in the GitHub repository zereight/gitlab-mcp (2,047 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 1,210 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.