EGC copilot-instructions.md

EGC copilot-instructions.md is an instructions file for GitHub Copilot from Fmarzochi/EGC. It costs 512 tokens per session, scanned A, original, Apache-2.0.

Instructions for EGC, a local-first system that gives several AI coding tools shared encrypted memory, command safety checks, and shorter shell output.

In plain words
What is it for?
They guide changes to EGC documentation, translations, repository conventions, safety-related propagation files, and validated README content.
Why use it?
They establish repository rules while keeping personal memory on the user's computer and out of the project files.

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/fmarzochi/egc/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/Fmarzochi/EGC

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fmarzochi/egc/copilot-instructions.svg)](https://agentmods.dev/instructions/fmarzochi/egc/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/fmarzochi/egc/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/fmarzochi/egc/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 512 This file is loaded in full into every session.
When invoked 512 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.00512 $0.00512
Opus 5 $0.00256 $0.00256
Sonnet 5 $0.00102 $0.00102
Haiku 4.5 $0.00051 $0.00051

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

Security

Grade A, and why

EGC 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 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/copilot-instructions.md · 50 lines

How it starts

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

Copilot instructions for EGC

EGC is a local-first MCP runtime that gives every AI coding agent a shared persistent memory (egc-memory), a safety layer that validates commands and writes before they run (egc-guardian), and shell-output compression (Token Crusher). It installs into 20 AI coding tools from one npm package (@egchq/egc). Memory lives encrypted in ~/.egc on the user's machine and must never reach the repository.

Repository conventions

  • All repository content is written in English, except the files under translations/.
  • Flag any populated memory content in AGENTS.md, GEMINI.md, .cursor/rules/egc-context.mdc or .trae/rules/egc-context.md: those propagation files must ship with an empty structure only, and CI enforces it.

README and translations

  • README.md must keep the exact catalog sentence matching "access to N agents, N skills, and N commands" and the "Works natively with ..." provider sentence: CI validates both.
  • The 7 translations (ar, es, hi, ja, ko, pt, ru) must mirror the heading levels of README.md in the same order; adding or removing a section in one language only is a defect.
  • The Support EGC section and everything below it (sponsors, backers, OpenSSF footer) changes only when the maintainer edits it deliberately.

Code review priorities

  • Commits need a DCO Signed-off-by line and follow conventional commits.
  • New code never uses Math.random for anything security-adjacent: use crypto.randomInt (SonarCloud S2245 gates the merge).
  • Binaries invoked from scripts are resolved from fixed paths with a PATH fallback, not bare names (S4036 pattern used across scripts/).
  • Any change touching files shared across concurrent EGC processes (~/.egc state, encryption key, install-state, lockfiles) requires a concurrent-access regression test; check for read-merge-write races and lock steal in upserts.
  • Shell-facing features must be fail-open: a broken hook or missing binary must never block the user's command.
  • Version bumps happen only in dedicated release PRs that update the whole release surface (11 files); flag any stray version change elsewhere.

Read the full file on GitHub · 50 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 · 50 lines · 512 tokens per session scan A 884d6314f20e

Subscribe to this mod's changes

EGC copilot-instructions.md is an instructions file published in the GitHub repository Fmarzochi/EGC (48 stars, last pushed today), licensed Apache-2.0. It adds 512 tokens to every session, about $0.0026 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.