Borrowing it
Nothing to install: this file belongs to surajfale/git-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/surajfale/git-mcp-server/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/surajfale/git-mcp-serverWrote 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.
[](https://agentmods.dev/instructions/surajfale/git-mcp-server/copilot-instructions)<a href="https://agentmods.dev/instructions/surajfale/git-mcp-server/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/surajfale/git-mcp-server/copilot-instructions/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.
<a href="https://agentmods.dev/instructions/surajfale/git-mcp-server/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/surajfale/git-mcp-server/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01125 | $0.01125 |
| Opus 5.5 | $0.00450 | $0.00450 |
| Sonnet 5.5 | $0.00225 | $0.00225 |
| Haiku 4.5 | $0.00112 | $0.00112 |
Grade A, and why
git-mcp-server copilot-instructions.md 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Copilot / AI agent instructions — git-commit-mcp-server
Overview
- This project is an MCP server that automates conventional Git commits. The runtime entry points live in
src/git_commit_mcp/server.pyandsrc/git_commit_mcp/__main__.py. - High-level components:
server.py: MCP tool definitions and orchestration (uses FastMCP). Key functions:git_commit_and_pushandgenerate_commit_message.change_tracker.py: Detects added/modified/deleted/renamed files with GitPython.message_generator.py: Heuristics-based Conventional Commit generator (types, scope, bullets). Look atTYPE_PATTERNSandCOMMIT_TYPE_PRIORITYfor rules.ai_client.py: Thin OpenAI wrapper; readsOPENAI_API_KEYfrom the environment and supportsai_base_urlfor OpenAI-compatible endpoints.git_operations.py: Stages, commits, and pushes using GitPython; follow its error handling for expected failure modes.changelog_manager.py: Writes aCHANGELOG.mdentry before the commit (placeholder hash) then replaces it after commit (amend flow).
Important conventions & behaviors (do not change without updating callers)
- Configuration is read from environment variables via
ServerConfig.from_env()(seesrc/git_commit_mcp/config.py). Examples:ENABLE_AI,OPENAI_API_KEY,AI_PROVIDER,AI_MODEL,WORKSPACE_DIR,FORCE_SSH_ONLY. - AI usage:
- If
ENABLE_AI=truethe code will instantiateAIClientwhich requiresOPENAI_API_KEYin the process environment. If the key is missing, AI calls raise a clear error and the code falls back to the heuristic generator. - To test AI locally, export
$env:OPENAI_API_KEY = "sk-..."in PowerShell before launching the server/process.
- If
- Remote repo handling: remote URLs must use SSH by default when
FORCE_SSH_ONLYis true. When working with remote repos,RepositoryManagerclones intoWORKSPACE_DIR. - Changelog update flow: the server writes a placeholder entry, stages CHANGELOG.md, creates the commit, replaces the placeholder with the real hash, then amends the commit to include the updated CHANGELOG. Changelog errors are non-fatal; commits still succeed.
Developer workflows (commands you can run)
- Run tests:
pytest(project uses standard pytest tests undertests/). - Run the server locally (stdio MCP transport):
- Development:
uv run python -m git_commit_mcp.server(orpython -m git_commit_mcp.__main__) - Production (uvx):
uvx git-commit-mcp-server
- Development:
- Quick environment setup (PowerShell):
# temporary for current shell $env:OPENAI_API_KEY = 'sk-REPLACE' # run server in same shell so it inherits env uvx git-commit-mcp-server
Patterns & heuristics to preserve
- Commit type detection: see
CommitMessageGenerator._detect_commit_type— it usesTYPE_PATTERNS, file extension and path heuristics, and counts to prioritize types. When adding new file categories, updateTYPE_PATTERNSand unit tests. - Scope extraction: the scope is inferred from first-level directories but skips common prefixes like
src/orlib/. Keep this behaviour if you change message structure. - Message generation fallback: AI is preferred but any AI failure must gracefully fall back to
CommitMessageGenerator.
Integration points & dependencies
- FastMCP: MCP server framework; tools are declared with
@mcp.tool()inserver.py. - GitPython: used across change detection and Git operations. Use
Repoobjects passed around — do not re-instantiate unexpectedly. - OpenAI SDK: optional; code expects the
openaipackage and environment key. The config supportsai_base_urlfor alternate endpoints.
Where to look for examples and tests
- End-to-end behavior:
tests/test_integration.py. - Message logic:
tests/test_message_generator.pyandsrc/git_commit_mcp/message_generator.py. - Change detection:
tests/test_change_tracker.pyandsrc/git_commit_mcp/change_tracker.py.
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.
- 2mo ago First seen · 64 lines · 1,125 tokens per session scan A 4cb6bf784997
git-mcp-server copilot-instructions.md is an instructions file published in the GitHub repository surajfale/git-mcp-server (2 stars, last pushed 11mo ago), licensed MIT. It adds 1,125 tokens to every session, about $0.0045 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-31.
git-mcp-server copilot-instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-mcp-server copilot-instructions.mdsurajfale/git-mcp-server | Instructions file | 2 | 11mo ago | MIT | A | 1,125 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |