relayBrain: Instructions file for GitHub Copilot

.github/copilot-instructions.md

relayBrain copilot-instructions.md is an instructions file for GitHub Copilot from prakrititz/relayBrain. It costs 751 tokens per session, scanned A, original, MIT.

Project instructions for Relay, a tool that keeps shared notes and handoffs between coding agents, including its chat-like project commands.

In plain words
What is it for?
Use them when working in the relayBrain repository, synchronizing agent memory, following Relay commands, or updating project handoff files.
Why use it?
They tell agents what context to read at the start and where to record durable lessons, reducing repeated work and missed project knowledge.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions Claude Code; mentions Codex.

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

Reuse

Borrowing it

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

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 relayBrain copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/prakrititz/relaybrain/copilot-instructions/github.svg)](https://agentmods.dev/instructions/prakrititz/relaybrain/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/prakrititz/relaybrain/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/prakrititz/relaybrain/copilot-instructions/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 relayBrain copilot-instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/prakrititz/relaybrain/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/prakrititz/relaybrain/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 751 This file is loaded in full into every session.
When invoked 751 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.00751 $0.00751
Opus 5.5 $0.00300 $0.00300
Sonnet 5.5 $0.00150 $0.00150
Haiku 4.5 $0.00075 $0.00075

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

Security

Grade A, and why

relayBrain copilot-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 19d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.github/copilot-instructions.md · 54 lines

How it starts

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

Relay (auto-installed)

This project uses Relay for cross-agent memory. Do not ask the user to configure agent files manually.

Every session — read first: .relay/AGENT_BOOTSTRAP.md

Phase Action
Session start Read .relay/relay_context.md (handoff). Never paste raw transcripts.
After agent work You update .relay/*.md from compile_brief.md (stop hook triggers this)
Background sync relay watch . keeps memory.json + compile_brief.md fresh
Not installed? Run relay add . or relay init in project root

Stop hooks: Cursor, Claude Code, Codex, Copilot CLI, Antigravity — installed by relay add / relay init. Relay MCP: relay_room_brief, locks, chat history — installed into each agent's MCP config by relay add.

Shared memory graph (Relay MCP)

  • Before editing files you have not touched in this session, call relay_session_brief with their paths. It tells you who is editing them right now and why, past collisions, decisions, and the prompts behind recent changes from every agent and teammate. Respect what it says.
  • When you make an architectural or design decision, call relay_report_decision with decision and the files it affects.
  • When a claim is denied, the reason says what the holder is working on. Pick other work, or ask the user.
  • To explain why code looks the way it does, call relay_graph_query with query: "file_story" and the path.

Relay pseudo-commands (user chat)

These are not built-in slash commands. They are a project convention — phrases the user types so agents recognize Relay intent.

When the user sends any of these phrases (with or without a leading /), treat them as Relay instructions — not casual chat:

User says You do
/relay update or relay update relay sync . → relay compile . → read .relay/compile_brief.md → update .relay/project.md, current_task.md, decisions.md, failures.md → relay context . → confirm "Relay updated."
/relay context or relay context Read .relay/relay_context.md (run relay context . first if stale). Summarize handoff briefly.
/relay ask or relay ask Call Relay MCP tool relay_room_brief (MCP server relay). Required on Cursor, Claude Code, Codex, Copilot CLI, and Antigravity — not a terminal command for the human. Summarize teammate chat, code edits, locks, and file-sync notes. Tell the user before you edit shared files. If relay MCP is missing, say so and suggest relay add . + agent restart (do not ask the user to run relay ask).
/relay init or relay init Run relay init in project root if .relay/ missing; else confirm already installed.

Read the full file on GitHub · 54 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. 19d ago Changed · +17 lines · +153 tokens per session ee47ba02060c
  2. 2mo ago First seen · 37 lines · 598 tokens per session scan A 9b0701ca2e16

Subscribe to this mod's changes

relayBrain copilot-instructions.md is an instructions file published in the GitHub repository prakrititz/relayBrain (32 stars, last pushed 19d ago), licensed MIT. It adds 751 tokens to every session, about $0.0030 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

relayBrain copilot-instructions.md compared with instructions from other repositories

relayBrain copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
relayBrain copilot-instructions.mdprakrititz/relayBrainInstructions file3219d agoMITA751GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode