MARSYS: Instructions file for GitHub Copilot

.github/instructions/AI_Agent_Guidelines.instructions.md

MARSYS AI_Agent_Guidelines.instructions.md is an instructions file for GitHub Copilot from rezaho/MARSYS. It costs 1,706 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for AI agents working on the MARSYS code repository. It describes how to understand existing code, plan changes, follow project conventions, and verify work afterward.

In plain words
What is it for?
Use it when an AI agent must explore related source files, inspect how code is used, plan an implementation, preserve the project’s design, and run verification after changes.
Why use it?
Changes can be incorrect when an agent edits a file without understanding its imports, users, architecture, or repository rules. These instructions define checks intended to reduce that risk.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is rezaho/MARSYS's own configuration. It tells GitHub Copilot how to work on MARSYS 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 MARSYS configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rezaho/MARSYS. 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/rezaho/MARSYS/main/.github/instructions/AI_Agent_Guidelines.instructions.md
Clone the repo
git clone --depth 1 https://github.com/rezaho/MARSYS

Made for: GitHub Copilot.

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 MARSYS AI_Agent_Guidelines.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rezaho/marsys/ai_agent_guidelines/github.svg)](https://agentmods.dev/instructions/rezaho/marsys/ai_agent_guidelines)
Your own site
<a href="https://agentmods.dev/instructions/rezaho/marsys/ai_agent_guidelines"><img src="https://agentmods.dev/badge/instructions/rezaho/marsys/ai_agent_guidelines/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 MARSYS AI_Agent_Guidelines.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rezaho/marsys/ai_agent_guidelines"><img src="https://agentmods.dev/badge/instructions/rezaho/marsys/ai_agent_guidelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,706 This file is loaded in full into every session.
When invoked 1,706 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.01706 $0.01706
Opus 5.5 $0.00682 $0.00682
Sonnet 5.5 $0.00341 $0.00341
Haiku 4.5 $0.00171 $0.00171

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

Security

Grade A, and why

MARSYS AI_Agent_Guidelines.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.

.github/instructions/AI_Agent_Guidelines.instructions.md · 94 lines

How it starts

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

AI Agent Development Guidelines for MARSYS Repository

These guidelines MUST be followed by any AI agent generating or modifying code within this repository. They complement Contributing_Rules.instructions.md and Framework_Development_Guide.instructions.md. Failure to adhere to these guidelines may result in incorrect, incoherent, or structurally unsound code.

1. Mandatory Pre-computation Analysis & Contextual Understanding

1.1. Vigilant Code Exploration: - Before modifying any existing file or writing new code that interacts with other modules, an agent MUST thoroughly examine all directly relevant source files. - If a file A imports a module, class, or function from file B (e.g., from marsys.module_b import MyClass), the agent MUST request to read and understand the relevant sections of file B (e.g., src/module_b.py) before making changes to file A or implementing interactions with MyClass. - For any task involving a specific class or function, the agent MUST locate its definition and analyze its existing usages (e.g., using list_code_usages) to understand its role, expected inputs/outputs, and interaction patterns. - Agents MUST utilize tools like read_file, semantic_search, grep_search, and list_code_usages proactively and extensively to gather this understanding. Do NOT rely solely on provided snippets or prior knowledge without verification against the current codebase.

1.2. Assumption Declaration: - If, after diligent effort, certain aspects of the codebase remain unclear or unverified, the agent MUST explicitly state any assumptions made about that code before proceeding. If critical information is missing, the agent SHOULD request clarification.

2. Structured Planning & Architectural Integrity

2.1. Mandatory Pre-Implementation Plan: - Before generating any code for modifications or new features, an agent MUST formulate and present a concise plan. - This plan MUST include: - A list of all files to be created. - A list of all files to be modified. - A clear justification for the choice of these files, explicitly referencing the project's established directory structure and module responsibilities (e.g., "New data processing utilities should be in src/utils/data_processing.py, not directly within an agent's file unless strictly local and private to that agent."). - A brief description of the intended changes or additions for each affected file.

Read the full file on GitHub · 94 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. 2mo ago First seen · 94 lines · 1,706 tokens per session scan A 1930a2341e7d

Subscribe to this mod's changes

MARSYS AI_Agent_Guidelines.instructions.md is an instructions file published in the GitHub repository rezaho/MARSYS (25 stars, last pushed 14d ago), licensed Apache-2.0. It adds 1,706 tokens to every session, about $0.0068 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.

Related

MARSYS AI_Agent_Guidelines.instructions.md compared with instructions from other repositories

MARSYS AI_Agent_Guidelines.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
MARSYS AI_Agent_Guidelines.instructions.mdrezaho/MARSYSInstructions file2514d agoApache-2.0A1,706GitHub Copilot
agentforge-py copilot-instructions.mdScaffoldic/agentforge-pyInstructions file101mo agoApache-2.0A101GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot