agent-sandbox AGENTS.md

agent-sandbox AGENTS.md is an instructions file for Codex, OpenCode from kubernetes-sigs/agent-sandbox. It costs 4,327 tokens per session, scanned A, original, Apache-2.0.

A repository guide for AI coding agents working on agent-sandbox, a Kubernetes project that runs stateful, pod-backed development environments and agent workloads. It explains the project layout, APIs, and development checks.

In plain words
What is it for?
Use it when changing the Kubernetes controller, its custom resources, repository code, build setup, tests, or linting.
Why use it?
It gives an agent the project-specific rules and structure needed to make changes without guessing how the repository is organized or tested.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

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 · agent-sandbox.sigs.k8s.io

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

Made for: Codex, OpenCode.

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 AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kubernetes-sigs/agent-sandbox/agents-md.svg)](https://agentmods.dev/instructions/kubernetes-sigs/agent-sandbox/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kubernetes-sigs/agent-sandbox/agents-md"><img src="https://agentmods.dev/badge/instructions/kubernetes-sigs/agent-sandbox/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,327 This file is loaded in full into every session.
When invoked 4,327 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.1 $0.04327 $0.04327
Opus 5 $0.02164 $0.02164
Sonnet 5 $0.00865 $0.00865
Haiku 4.5 $0.00433 $0.00433

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

Security

Grade A, and why

agent-sandbox AGENTS.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 2d 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.

AGENTS.md · 143 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working in this repository. Human contributors should also read CONTRIBUTING.md, docs/development.md, and docs/testing.md, which are the source of truth.

Project summary

agent-sandbox is a Kubernetes controller that provides the Sandbox CRD: a stateful, singleton, pod-backed workload with a stable identity, intended for AI agent runtimes, dev environments, notebooks, and similar use cases. It is a SIG Apps subproject (sigs.k8s.io/agent-sandbox) and follows Kubernetes / controller-runtime conventions.

  • API group agents.x-k8s.io/v1beta1: Sandbox (core).
  • API group extensions.agents.x-k8s.io/v1beta1: SandboxClaim, SandboxTemplate, SandboxWarmPool (opt-in extensions).
  • Go module: sigs.k8s.io/agent-sandbox (Go 1.26.x, see go.mod).

Repository layout

Path What lives there
.agents/skills/ Specialized instructions for you (AI agents). See "Agent Skills" section below.
api/v1beta1/ Core Sandbox types and kubebuilder markers.
extensions/api/v1beta1/ SandboxClaim, SandboxTemplate, SandboxWarmPool types.
controllers/ Core Sandbox reconciler + tests.
extensions/controllers/ Reconcilers for the extension CRDs.
cmd/agent-sandbox-controller/ Controller manager entrypoint.
internal/ Shared internals: lifecycle, metrics, version. Not importable by external consumers.
k8s/ Generated CRDs (k8s/crds/), RBAC, controller manifests.
clients/k8s/ Generated Kubernetes-style clientset, listers, informers (output of dev/tools/client-gen-go.sh). Do not hand-edit.
clients/go/ Hand-written high-level Go SDK that wraps the SandboxClaim lifecycle and exposes Gateway / port-forward / direct connectivity. Editable.
clients/python/agentic-sandbox-client/ Hand-written Python SDK. Directory is named agentic-sandbox-client but the package publishes to PyPI as k8s-agent-sandbox — that's the name to import in docs and examples.
examples/ Runnable sample manifests and demo apps.
test/e2e/, test/benchmarks/ End-to-end and benchmark suites (Go-driven; some scenarios shell out via the Python SDK).
dev/tools/ Repo tooling (lint, generate, deploy-kind, release scripts). Most make targets shell out here.
dev/ci/ Prow presubmit/periodic scripts.
docs/ Development, testing, configuration docs and KEPs (docs/keps/).
site/ Hugo + Docsy source for https://agent-sandbox.sigs.k8s.io. Many pages are thin wrappers that include-file from the repo via mounts in site/hugo.yaml — see "Docs site mounts" below. Native page sources (lifecycle, snapshots, use-cases, runtime-templates, getting started, etc.) live only here.

Read the full file on GitHub · 143 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. 2d ago Changed · +1 lines · +109 tokens per session 2e5cf471e8b7
  2. 6d ago First seen · 142 lines · 4,218 tokens per session scan A 55364c5c4b8f

Subscribe to this mod's changes

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