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.
curl -O https://raw.githubusercontent.com/rezaho/MARSYS/main/.github/instructions/AI_Agent_Guidelines.instructions.mdgit clone --depth 1 https://github.com/rezaho/MARSYSWrote 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/rezaho/marsys/ai_agent_guidelines)<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.
<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>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.01706 | $0.01706 |
| Opus 5.5 | $0.00682 | $0.00682 |
| Sonnet 5.5 | $0.00341 | $0.00341 |
| Haiku 4.5 | $0.00171 | $0.00171 |
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.
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.
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 · 94 lines · 1,706 tokens per session scan A 1930a2341e7d
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.
MARSYS AI_Agent_Guidelines.instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| MARSYS AI_Agent_Guidelines.instructions.mdrezaho/MARSYS | Instructions file | 25 | 14d ago | Apache-2.0 | A | 1,706 | GitHub Copilot |
| agentforge-py copilot-instructions.mdScaffoldic/agentforge-py | Instructions file | 10 | 1mo ago | Apache-2.0 | A | 101 | 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 | yesterday | 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 |