copilot-path-instructions

copilot-path-instructions is an agent for coding agents from yzhao062/agent-style. It costs 0 tokens per session (1,067 once invoked), scanned C, original, no licence file.

A path-scoped GitHub Copilot instruction set based on agent-style v0.4.2. Path-scoped instructions apply to selected files or folders, and this set includes compact rules, loading, self-check, and exception instructions.

In plain words
What is it for?
It is for applying agent-style rules to matching paths when working with GitHub Copilot.
Why use it?
It lets Copilot use different shared guidance for particular parts of a repository.

Agent

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 agents/yzhao062/agent-style/copilot-path-instructions
Clone the repo
git clone --depth 1 https://github.com/yzhao062/agent-style

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 copilot-path-instructions

README.md
[![agentmods](https://agentmods.dev/badge/agents/yzhao062/agent-style/copilot-path-instructions.svg)](https://agentmods.dev/agents/yzhao062/agent-style/copilot-path-instructions)
Your own site
<a href="https://agentmods.dev/agents/yzhao062/agent-style/copilot-path-instructions"><img src="https://agentmods.dev/badge/agents/yzhao062/agent-style/copilot-path-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,067 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin unknown 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.00000 $0.01067
Opus 5 $0.00000 $0.00534
Sonnet 5 $0.00000 $0.00213
Haiku 4.5 $0.00000 $0.00107

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

Security

Grade C, and why

copilot-path-instructions scanned grade C with 1 finding 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 3d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Adapter: GitHub Copilot (path-scoped instructions) -->
agents/copilot-path-instructions.md · 58 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 3d ago First seen · 58 lines · 0 tokens per session scan C 2f8abacf6b8e

Subscribe to this mod's changes

copilot-path-instructions is an agent published in the GitHub repository yzhao062/agent-style (661 stars, last pushed 17d ago), with no licence file. It costs nothing until one of its globs matches a file; then it loads 1,067 tokens. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

code-reviewer

Use this agent when the user wants code reviewed, asks for feedback on changes, or before creating a PR. Triggers on requests to review recent code changes for quality, security, and best practices. Context: User finished implementing a feature user: "Review my changes" assistant: "I'll use the code-reviewer agent to…

comet-ml/opik · 238 tokens

FREE_MCP_SERVERS

A catalog of real, public MCP servers you can plug straight into the Swarms Agent class — most require no authentication, a few use a free-tier API key. Runnable examples live in this folder.

kyegomez/swarms · 0 tokens

cdo

APM Chief Documentation Officer. Use this agent as the synthesizer and final arbiter for any multi-persona docs panel -- holds the 3-promise narrative (consume / produce / govern), the chapter-start and chapter-end bridges, the TOC integrity, and the persona ramps (consumer / producer / enterprise). Activate to…

microsoft/apm · 95 tokens

apm-primitives-architect

Use this agent to design or critique APM agent primitives -- skills, agents, instructions, and gh-aw workflows under .apm/ and .github/. Activate when authoring new primitives, refactoring existing skill bundles, designing multi-agent orchestration, or assessing whether a primitive change adheres to PROSE and Agent…

microsoft/apm · 74 tokens

council-meadows

Council member. Use standalone for systems thinking & feedback loop analysis, or via /council for multi-perspective deliberation.

0xNyk/council-of-high-intelligence · 32 tokens

council-musashi

Council member. Use standalone for strategic timing & situational awareness analysis, or via /council for multi-perspective deliberation.

0xNyk/council-of-high-intelligence · 33 tokens