gitee-mcp: Instructions file for Codex

AGENTS.md

gitee-mcp AGENTS.md is an instructions file for Codex, OpenCode from sandraschi/gitee-mcp. It costs 857 tokens per session, scanned A, original, MIT.

A set of project instructions for gitee-mcp, an MCP server that connects an AI assistant to Gitee, a Chinese open-source code-hosting platform. It documents the project structure, reading order, tools, APIs, and operating rules.

In plain words
What is it for?
Use it when modifying, reviewing, or navigating the gitee-mcp project, including its backend, web app, search, translation, cache, radar, and integration code.
Why use it?
It gives the assistant the project context needed to work on gitee-mcp without guessing where code, documentation, or entry points are located.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is sandraschi/gitee-mcp's own configuration. It tells Codex and OpenCode how to work on gitee-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 gitee-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sandraschi/gitee-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/sandraschi/gitee-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/sandraschi/gitee-mcp

Made for: Codex, OpenCode.

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 gitee-mcp AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sandraschi/gitee-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/sandraschi/gitee-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 857 This file is loaded in full into every session.
When invoked 857 The same file — it is already loaded in full.
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.00857 $0.00857
Opus 5.5 $0.00343 $0.00343
Sonnet 5.5 $0.00171 $0.00171
Haiku 4.5 $0.00086 $0.00086

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

Security

Grade A, and why

gitee-mcp AGENTS.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 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.

AGENTS.md · 73 lines

How it starts

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

gitee-mcp

MCP server bridging Gitee (gitee.com), China's largest open-source platform: humming radar, momentum, repo intel, user/repo search, zh->en translation via local LLM, webhook feed, watchlist, ecosystem graph, GitHub mirror, README corpus. Backend FastMCP 3.4.4 + FastAPI on 11161, React webapp on 11162. Anonymous tier works out of the box (60 req/hr, cached); GITEE_TOKEN unlocks search.

Reading order

  1. docs/ARCHITECTURE.md - design, radar methodology, ecosystem layer, tiers
  2. docs/TOOLS.md - full tool + REST reference
  3. SPEC.md - v0.2 ecosystem-intelligence feature spec (what/why/deferred)
  4. src/gitee_mcp/ - source map below

Directory map

src/gitee_mcp/
├── server.py        FastMCP + FastAPI app, REST routes, dual transport entry
├── server_state.py  shared FastMCP instance
├── config.py        env config, seed repos (one .env source of truth)
├── client.py        Gitee v5 client, anonymous/token tiers, activity_score
├── radar.py         humming radar (live commit/star/forks ranking)
├── cache.py         JSON TTL cache (data/cache)
├── translate.py     zh->en via Ollama + glossary fallback
├── llm.py           provider probe + chat completion proxy
├── history.py       radar snapshot history: momentum/star series/digest data (v0.2)
├── watchlist.py     persistent watchlist + change detection (v0.2)
├── stack.py         Chinese-OSS tech-stack fingerprint (v0.2)
├── release_notes.py latest-release summarizer (v0.2)
├── ecosystem.py     graph / GitHub mirror / weekly digest (v0.2)
├── corpus.py        README BM25 index (SQLite FTS5, RAG-lite) (v0.2)
├── feed.py          RSS 2.0 radar feed (v0.2)
├── search_expand.py cross-lingual query expansion (v0.2)
├── culture.py       "why it matters in CN OSS" explainer (v0.2)
├── errors.py        shared error_response() + tool annotations
├── skills/          gitee-expert SKILL.md
└── tools/           portmanteaus: explore, repo, search, translate_tool,
                     webhook_tool, watchlist_tool, ecosystem_tool,
                     corpus_tool, prefab, help_tool, shutdown_tool

Read the full file on GitHub · 73 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 · 73 lines · 857 tokens per session scan A 3962294ad173

Subscribe to this mod's changes

gitee-mcp AGENTS.md is an instructions file published in the GitHub repository sandraschi/gitee-mcp (2 stars, last pushed 4d ago), licensed MIT. It adds 857 tokens to every session, about $0.0034 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.

Related

Other instructions, from other repositories