agent-sandbox copilot-instructions.md

agent-sandbox copilot-instructions.md is an instructions file for GitHub Copilot from kubernetes-sigs/agent-sandbox. It costs 293 tokens per session, scanned A, original, Apache-2.0.

Repository guidance and review rules for Agent Sandbox, a Kubernetes project for running agents in controlled environments.

In plain words
What is it for?
Use it to review pull requests for logic, concurrency, security, controller, API, and test problems in the modified lines.
Why use it?
It tells the reviewer which changed-code problems matter, which toolchain rules are authoritative, and which pre-existing style issues to ignore.

Instructions file for GitHub Copilot

About the project

Agent Sandbox is a Kubernetes extension for managing isolated, stateful workloads that run as single long-lived containers with stable identities and persistent storage. It is intended for AI agent runtimes, reinforcement-learning workloads, and other applications that do not fit ordinary stateless deployments. Its catalogue skills and instructions support operating these sandbox workloads.

kubernetes-sigs/agent-sandbox · 3,745 stars · on GitHub

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/kubernetes-sigs/agent-sandbox/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/kubernetes-sigs/agent-sandbox

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kubernetes-sigs/agent-sandbox/copilot-instructions.svg)](https://agentmods.dev/instructions/kubernetes-sigs/agent-sandbox/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/kubernetes-sigs/agent-sandbox/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/kubernetes-sigs/agent-sandbox/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 293 This file is loaded in full into every session.
When invoked 293 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.00293 $0.00293
Opus 5 $0.00147 $0.00147
Sonnet 5 $0.00059 $0.00059
Haiku 4.5 $0.00029 $0.00029

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

Security

Grade A, and why

agent-sandbox 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 5d 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 · 21 lines

What it actually says

AI Code Review Guidelines

Project Context & Architecture: Refer to AGENTS.md for full project background, module layout, toolchain versions, and core conventions.

Scope of Review: Focus strictly on substantive findings tied to lines the PR actually modifies — logic bugs, concurrency issues, security vulnerabilities, controller-runtime misuse, API contract breaks, and missing tests for new behavior.

  • Do NOT flag style issues in pre-existing code that the PR touches mechanically.
  • When in doubt between flagging a marginal nit and staying silent: stay silent. Do not introduce review fatigue.

Toolchain & Lint Policy:

  • Defer to the go directive in go.mod at the base branch head as the authoritative target. Do not suggest lowering the Go version or adding compatibility shims for older toolchains.
  • The binding style and correctness gate is the repo's lint configuration (make lint-go, make lint-api). If existing linters and tests pass without flagging a line, treat residual style as author preference.

CLA Safety Reminder: When offering code suggestions, always remind contributors not to click "Commit suggestion" in the GitHub UI (which adds the AI bot as co-author and breaks the CNCF/Kubernetes CLA check), and to apply the change locally instead.

Tone: Succinct, constructive, and direct. Explain technical rationale clearly without conversational filler.

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. 5d ago First seen · 21 lines · 293 tokens per session scan A e95aaeb5da51

Subscribe to this mod's changes

agent-sandbox copilot-instructions.md is an instructions file published in the GitHub repository kubernetes-sigs/agent-sandbox (3,745 stars, last pushed today), licensed Apache-2.0. It adds 293 tokens to every session, about $0.0015 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.