AgentEval m365-demo.instructions.md

AgentEval m365-demo.instructions.md is an instructions file for GitHub Copilot from AgentEvalHQ/AgentEval. It costs 563 tokens per session, scanned A, original, MIT.

A set of coding rules for the AgentEval Microsoft 365 demo and its tests. AgentEval is a tool for checking how an AI agent behaves; these rules describe conventions and behaviours that changes must preserve.

In plain words
What is it for?
Guiding changes to C# files in the demo and its tests, including error handling, test stand-ins, and measurement results.
Why use it?
It gives contributors shared rules for code style, asynchronous code, provider APIs, and honest test results. This reduces inconsistent changes and tests that hide incomplete or unmeasured results.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

Good fit Guiding changes to C# files in the demo and its tests, including error handling, test stand-ins, and measurement results.

Compare 6 instructions from other repositories ↓
Install with agentmods
npx agentmods add instructions/agentevalhq/agenteval/m365-demo
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.

Clone the repo
git clone --depth 1 https://github.com/AgentEvalHQ/AgentEval

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 AgentEval m365-demo.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/agentevalhq/agenteval/m365-demo/github.svg)](https://agentmods.dev/instructions/agentevalhq/agenteval/m365-demo)
Your own site
<a href="https://agentmods.dev/instructions/agentevalhq/agenteval/m365-demo"><img src="https://agentmods.dev/badge/instructions/agentevalhq/agenteval/m365-demo/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 AgentEval m365-demo.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agentevalhq/agenteval/m365-demo"><img src="https://agentmods.dev/badge/instructions/agentevalhq/agenteval/m365-demo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 563 This file is loaded in full into every session.
When invoked 563 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.00563 $0.00563
Opus 5.5 $0.00225 $0.00225
Sonnet 5.5 $0.00113 $0.00113
Haiku 4.5 $0.00056 $0.00056

Measured 23d ago against content hash dfbc363d95aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

AgentEval m365-demo.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 23d 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.

samples/AgentEval.Microsoft365Demo/.github/instructions/m365-demo.instructions.md · 46 lines

How it starts

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

Microsoft 365 demo: code rules

For every .cs file of the demo and its tests. The rules in .github/copilot-instructions.md apply too.

Conventions

  • The SPDX header comes first:

    // SPDX-License-Identifier: MIT
    // Copyright (c) 2026 AgentEval Contributors
    // Licensed under the MIT License.
    
  • File-scoped namespaces, nullable enabled, XML docs on every public member. Types are sealed and internal unless a host or test needs more; the tests see internals through InternalsVisibleTo.

  • Async all the way, with a CancellationToken passed on.

  • Use the provider's public API only, and read each type before you call it. The project already suppresses AGENTEVAL_M365_PREVIEW001, the provider's experimental diagnostic.

Behaviours every change keeps

  • No mock fallback. A stand-in agent exists only in the tests, through DemoHostOverrides.
  • A non-completed turn is never an answer. WorkIqTurnNotCompletedException becomes an ERROR row with the outcome, the ids and the issue. It is never a FAIL and never partial text.
  • Nothing unmeasured becomes a value. A check whose input is absent is NotMeasured. So is a check that reads the answer when Microsoft365Evidence.IsAnswerMeasured(turn) is false. Read a channel's Availability before its Items.
  • No secret anywhere. Tokens, auth codes and the Authorization header never reach the screen, a file or an exception message. Route new output through the existing writers; they redact.
  • The run folder is always written, on a failure too, at every verbosity. console.log has no colours.
  • Exit codes keep their meaning. ExitPolicy.Decide is the one place that decides them.

Alongside a change

  • A new or changed option, run-folder file, verdict or exit code: update README.md and .github/skills/ in the same change.
  • A new check or behaviour: an offline test in ../AgentEval.Microsoft365Demo.Tests, named Method_State_Expected, that fails without the change. Tests use a fake HttpMessageHandler and a fake IWorkIqTokenProvider, and never a real judge.

Read the full file on GitHub · 46 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. 23d ago First seen · 46 lines · 563 tokens per session scan A dfbc363d95aa

Subscribe to this mod's changes

AgentEval m365-demo.instructions.md is an instructions file published in the GitHub repository AgentEvalHQ/AgentEval (164 stars, last pushed 5d ago), licensed MIT. It adds 563 tokens to every session, about $0.0023 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-11-07.

Related

AgentEval m365-demo.instructions.md compared with instructions from other repositories

AgentEval m365-demo.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
AgentEval m365-demo.instructions.mdAgentEvalHQ/AgentEvalInstructions file1645d agoMITA563GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode