agent-safe-pipeline: Instructions file for GitHub Copilot

.github/instructions/AgentSafeImplementation.instructions.md

agent-safe-pipeline AgentSafeImplementation.instructions.md is an instructions file for GitHub Copilot from decionis/agent-safe-pipeline. It costs 1,114 tokens per session, scanned A, original, Apache-2.0.

Instructions for putting AgentSafe in front of an AI agent's write actions. The gateway sends each action for a decision, then runs it once, holds it for a person, or refuses it.

In plain words
What is it for?
Use it as an API gateway, as an executor for named action handlers, or as a library inside a service that performs agent-requested writes.
Why use it?
It stops agents from making unapproved changes directly and avoids giving them credentials or approval grants. Shadow mode lets you observe the process before enforcement.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

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

Reuse

Borrowing it

Nothing to install: this file belongs to decionis/agent-safe-pipeline. 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/decionis/agent-safe-pipeline/master/.github/instructions/AgentSafeImplementation.instructions.md
Clone the repo
git clone --depth 1 https://github.com/decionis/agent-safe-pipeline

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 agent-safe-pipeline AgentSafeImplementation.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/decionis/agent-safe-pipeline/agentsafeimplementation/github.svg)](https://agentmods.dev/instructions/decionis/agent-safe-pipeline/agentsafeimplementation)
Your own site
<a href="https://agentmods.dev/instructions/decionis/agent-safe-pipeline/agentsafeimplementation"><img src="https://agentmods.dev/badge/instructions/decionis/agent-safe-pipeline/agentsafeimplementation/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 agent-safe-pipeline AgentSafeImplementation.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/decionis/agent-safe-pipeline/agentsafeimplementation"><img src="https://agentmods.dev/badge/instructions/decionis/agent-safe-pipeline/agentsafeimplementation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,114 This file is loaded in full into every session.
When invoked 1,114 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.01114 $0.01114
Opus 5.5 $0.00446 $0.00446
Sonnet 5.5 $0.00223 $0.00223
Haiku 4.5 $0.00111 $0.00111

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

Security

Grade A, and why

agent-safe-pipeline AgentSafeImplementation.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 15d 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/instructions/AgentSafeImplementation.instructions.md · 90 lines

How it starts

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

AgentSafe Implementation

AgentSafe puts authorization in front of every write an agent makes. The agent sends its action to AgentSafe instead of the target. Decionis decides the exact action, and AgentSafe runs it once, holds it for a person, or refuses it. AgentSafe decides nothing itself, and the agent never receives a grant or a credential.

Source and full docs: https://github.com/decionis/agent-safe-pipeline.

Pick the shape

  • HTTP interception (agentsafe proxy). Put the gateway in front of an API. Every POST, PUT, PATCH and DELETE becomes an intent. On ALLOW it is forwarded byte for byte, once, under a single-use grant. BLOCK is refused, ESCALATE is held. Only GET, HEAD and OPTIONS pass without a decision.
  • Proposal executor (agentsafe serve). Register a handler per action. The handler does the provider call and nothing else.
  • Library (@decionis/agent-safe-pipeline). SafeExecutor, ActionRegistry, IntentCapture, DecionisGate, DecionisGrantVerifier, ShadowPipeline and AuditRecorder inside your own service.
npm install -g @decionis/agentsafe
agentsafe proxy --upstream http://localhost:3000 --port 8080
agentsafe doctor

Without a Decionis key the proxy runs a local demo authority with a synthetic policy and says so on every line. With DECIONIS_API_KEY and DECIONIS_TENANT_ID (or agentsafe login) it asks Decionis.

Register an action

registry.register("create_payout", {
  parametersSchema: JsonObjectSchema,
  execute: ({ intent, parameters, authorization, dispatch }) =>
    dispatch.run(async (idempotencyKey) => {
      // The provider call, and nothing else. Send idempotencyKey to the provider.
    }),
  reconcile: async ({ idempotencyKey }) => {
    // Read-only: ask the provider what happened to this key. Never send again.
  },
});
  • Validate parameters with a schema. Never trust fields the agent sends for policy selection.
  • Always pass the idempotency key to the provider, and implement reconcile as a read-only lookup.
  • Credentials come from the runtime per request. Handlers never hold their own.

Read the full file on GitHub · 90 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. 15d ago First seen · 90 lines · 1,114 tokens per session scan A 6008f874c484

Subscribe to this mod's changes

agent-safe-pipeline AgentSafeImplementation.instructions.md is an instructions file published in the GitHub repository decionis/agent-safe-pipeline (651 stars, last pushed 7d ago), licensed Apache-2.0. It adds 1,114 tokens to every session, about $0.0045 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-15.

Related

agent-safe-pipeline AgentSafeImplementation.instructions.md compared with instructions from other repositories

agent-safe-pipeline AgentSafeImplementation.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-safe-pipeline AgentSafeImplementation.instructions.mddecionis/agent-safe-pipelineInstructions file6517d agoApache-2.0A1,114GitHub 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