llm-sandbox copilot-instructions.md

Project instructions for vndee/llm-sandbox, a tool that runs AI-generated programs in isolated environments. They describe supported languages, execution backends, security controls, integrations, and Python coding standards.

In plain words
What is it for?
They are for guiding work on the project’s Python code, including formatting, type hints, documentation, supported runtimes, and organization.
Why use it?
They give contributors consistent rules for changing the sandbox project and help keep its code organized and compatible with the stated Python versions.

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

Made for: GitHub Copilot.

Per session 2,205 This file is loaded in full into every session.
When invoked 2,205 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.02205 $0.02205
Opus 5 $0.01103 $0.01103
Sonnet 5 $0.00441 $0.00441
Haiku 4.5 $0.00220 $0.00220

Measured yesterday against content hash 78b622304e4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

llm-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 yesterday.

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 · 349 lines

How it starts

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

GitHub Copilot Instructions for LLM Sandbox

Project Overview

LLM Sandbox is a lightweight and portable sandbox environment designed to run Large Language Model (LLM) generated code in a safe and isolated mode. The project provides secure execution environments for AI-generated code with:

  • Multi-language support: Python, JavaScript/Node.js, Java, C++, Go, R, and Ruby
  • Flexible backends: Docker, Kubernetes, Podman, and Micromamba
  • Security-first design: Isolated execution, security policies, resource limits, and network isolation
  • LLM framework integration: Works with LangChain, LangGraph, LlamaIndex, OpenAI, and more
  • Model Context Protocol (MCP): Server implementation for MCP clients like Claude Desktop

Code Style and Formatting

Python Code Standards

  • Python version: Support Python 3.10, 3.11, 3.12, and 3.13
  • Style guide: Follow PEP 8 with Ruff enforced rules (see pyproject.toml)
  • Line length: Maximum 120 characters
  • Type hints: Always use type hints for function signatures and class attributes
  • Docstrings: Use Google-style docstrings for all public functions, classes, and modules

Example:

def execute_code(code: str, timeout: int = 30) -> ExecutionResult:
    """Execute code in the sandbox environment.

    Args:
        code: The code to execute
        timeout: Maximum execution time in seconds

    Returns:
        ExecutionResult containing stdout, stderr, and exit code

    Raises:
        TimeoutError: If execution exceeds timeout
        SecurityError: If code violates security policy
    """
    pass

Code Organization

  • Use Pydantic models for data structures and configuration
  • Follow existing module structure:
    • llm_sandbox/core/: Core functionality and base classes
    • llm_sandbox/language_handlers/: Language-specific handlers
    • llm_sandbox/mcp_server/: MCP server implementation
    • Backend implementations: docker.py, kubernetes.py, podman.py, micromamba.py

Read the full file on GitHub · 349 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. yesterday First seen · 349 lines · 2,205 tokens per session scan A 78b622304e4b

Subscribe to this mod's changes

llm-sandbox copilot-instructions.md is an instructions file published in the GitHub repository vndee/llm-sandbox (1,115 stars, last pushed 8d ago), licensed MIT. It adds 2,205 tokens to every session, about $0.0110 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.