jarvis-registry: Instructions file for GitHub Copilot

.github/instructions/registry-gateway.instructions.md

jarvis-registry registry-gateway.instructions.md is an instructions file for GitHub Copilot from ascending-llc/jarvis-registry. It costs 2,931 tokens per session, scanned C, original, Apache-2.0.

Instructions for a gateway that discovers tools, shared resources, prompts, and task-focused agents registered with a central registry. It can then construct requests to run those tools or delegate work to other agents.

In plain words
What is it for?
Use it to find registered MCP servers and agents, inspect available capabilities, and build correctly formatted execution requests for delegated tasks.
Why use it?
It prevents the agent from guessing what connected services are available before responding. The discovery and execution steps help route each request to an appropriate registered capability.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

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

About the project

Jarvis Registry is a gateway that connects AI copilots and autonomous agents to enterprise tools through the Model Context Protocol and agent-to-agent communication. Organizations use it to manage identity, permissions, tool discovery, orchestration, logging, and observability, while the catalogue entries support agent workflows with it.

ascending-llc/jarvis-registry · 2,812 stars · on GitHub · jarvisregistry.com

Reuse

Borrowing it

Nothing to install: this file belongs to ascending-llc/jarvis-registry. 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/ascending-llc/jarvis-registry/main/.github/instructions/registry-gateway.instructions.md
Clone the repo
git clone --depth 1 https://github.com/ascending-llc/jarvis-registry

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 jarvis-registry registry-gateway.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ascending-llc/jarvis-registry/registry-gateway/github.svg)](https://agentmods.dev/instructions/ascending-llc/jarvis-registry/registry-gateway)
Your own site
<a href="https://agentmods.dev/instructions/ascending-llc/jarvis-registry/registry-gateway"><img src="https://agentmods.dev/badge/instructions/ascending-llc/jarvis-registry/registry-gateway/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 jarvis-registry registry-gateway.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ascending-llc/jarvis-registry/registry-gateway"><img src="https://agentmods.dev/badge/instructions/ascending-llc/jarvis-registry/registry-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,931 This file is loaded in full into every session.
When invoked 2,931 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02931 $0.02931
Opus 5 $0.01465 $0.01465
Sonnet 5 $0.00586 $0.00586
Haiku 4.5 $0.00293 $0.00293

Measured 11d ago against content hash 6719ed4773fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

jarvis-registry registry-gateway.instructions.md 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 11d 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

→ Do NOT decline immediately. Discover first.
.github/instructions/registry-gateway.instructions.md · 253 lines

How it starts

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

Jarvis Registry Agent/MCP Gateway

Discover and execute tools, resources, and prompts from registered MCP servers, and delegate complex tasks to A2A agents.

DISCOVER FIRST — NO EXCEPTIONS. Before responding to any user request — including requests that appear outside your built-in capabilities — always run discovery first. Route to discover_servers, discover_agents, or both based on intent. Never assume you lack the capability without checking.

FORBIDDEN before running discovery (discover_servers and/or discover_agents):

  • ❌ "I'm a coding assistant and can't help with that."
  • ❌ "I'm not able to browse the web."
  • ❌ "I can only help with software development tasks."
  • ❌ Any sentence that declines, redirects, or scopes your capabilities.

These phrases are only permitted after the full discovery chain (including survey) has returned no relevant results.


Discovery Chain

  1. Formulate a concise keyword query from the user's intent — core nouns/verbs + domain terms. Drop filler words, pronouns, articles, and tense. Do NOT pass the user's raw sentence.

  2. Classify intent—simple approach:

    Is user asking for an AGENT? (analysis, reasoning, investigation, decision-making, multi-step domain work)

    • Action: call discover_agents(query, top_n=3) → execute the agent with full context
    • Examples: "analyze spending", "review code", "generate report", "handle this ticket", "investigate trends"

    Is user asking for MCP Server tools/resources/prompts? (fetch, get, search, list, send, create operations)

    • Action: call discover_servers(query, top_n=3) → execute the tool/resource/prompt directly
    • Examples: "list GitHub issues", "search the web", "create event", "get Slack messages"
    • Note: Tools, resources, and prompts are all provided by MCP servers

    AMBIGUOUS (cannot clearly determine which collection to search)

    • Signals: User is not explicit about wanting an agent vs. a tool/resource/prompt
    • Action: call both discover_servers(query, top_n=3) AND discover_agents(query, top_n=3) in parallel
    • Then rank results by description semantic fit, NOT score magnitude:
      • If top agent result is clearly a better match → execute the agent
      • If top server result (tool/resource/prompt) is clearly a better match → execute the tool
      • If both are equally plausible → ask the user which they need
  3. Discovery call defaults and when to narrow:

  • discover_servers(query, top_n=3) default type_list=["tool"].
  • Add type_list=["resource"] only when the user explicitly needs data files or feeds.
  • Add type_list=["prompt"] only when the user explicitly needs a prompt template.
  • discover_agents(query, top_n=3) default type_list=["agent"].
  • Switch to type_list=["skill"] and include agent_name in the query only after choosing an agent and targeting a specific capability.
  1. Evaluate results by semantic fit, not score alone:
  • Relevance is relative within one result set, not absolute.
  • Do not compare discover_servers scores directly against discover_agents scores.
  • Always verify description matches the user's intent.
  • Clustered server results: same server_name means operation ambiguity; different server_name means provider ambiguity.
  1. Execute with identifiers returned by discovery, verbatim.

Read the full file on GitHub · 253 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. 11d ago First seen · 253 lines · 2,931 tokens per session scan C 6719ed4773fd

Subscribe to this mod's changes

jarvis-registry registry-gateway.instructions.md is an instructions file published in the GitHub repository ascending-llc/jarvis-registry (2,812 stars, last pushed today), licensed Apache-2.0. It adds 2,931 tokens to every session, about $0.0147 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens