AI_Agent_Guidelines

AI_Agent_Guidelines 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/rezaho/marsys/ai_agent_guidelines
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 AI_Agent_Guidelines

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rezaho/marsys/ai_agent_guidelines.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.01706 $0.01706
Opus 5 $0.00853 $0.00853
Sonnet 5 $0.00341 $0.00341
Haiku 4.5 $0.00171 $0.00171

Measured 4d ago against content hash 1930a2341e7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

AI_Agent_Guidelines 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 4d 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. 4d ago First seen · 94 lines · 1,706 tokens per session scan A 1930a2341e7d

Subscribe to this mod's changes

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