ipybox AGENTS.md

ipybox AGENTS.md is an instructions file for Codex, OpenCode from gradion-ai/ipybox. It costs 515 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for ipybox, a Python project that runs code through managed kernels and exposes an MCP server. They describe its folders, development commands, testing commands, and documentation rules.

In plain words
What is it for?
Use them when changing code execution, kernel management, utilities, the MCP server, documentation, unit tests, or integration tests in ipybox.
Why use it?
They show an agent where the main code and tests live and how to check changes with the project's tools. This makes work more consistent with the repository's structure.

Instructions file for CodexOpenCode

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/gradion-ai/ipybox/agents-md
Clone the repo
git clone --depth 1 https://github.com/gradion-ai/ipybox

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gradion-ai/ipybox/agents-md.svg)](https://agentmods.dev/instructions/gradion-ai/ipybox/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gradion-ai/ipybox/agents-md"><img src="https://agentmods.dev/badge/instructions/gradion-ai/ipybox/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 515 This file is loaded in full into every session.
When invoked 515 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.00515 $0.00515
Opus 5 $0.00258 $0.00258
Sonnet 5 $0.00103 $0.00103
Haiku 4.5 $0.00052 $0.00052

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

Security

Grade A, and why

ipybox 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 4d 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 · 54 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

  • Documentation: docs/
  • Project description: docs/index.md
  • Internal documentation:
    • Architecture: docs/internal/architecture.md
    • Testing: docs/internal/testing.md
  • Source modules:
    • ipybox/code_exec.py: CodeExecutor, main API
    • ipybox/kernel_mgr/: KernelGateway and KernelClient
    • ipybox/mcp_server.py: MCPServer
    • ipybox/utils.py: shared utilities
  • Tests:
    • tests/unit/: unit tests
    • tests/integration/: integration tests

Directory-specific Guidelines

  • docs/AGENTS.md: documentation authoring
  • tests/AGENTS.md: testing conventions and utilities

Development Commands

uv sync                      # Install/sync dependencies
uv add [--dev] [-U] <dep>    # Add a dependency (--dev for dev-only, -U to upgrade)
uv run <command>             # Run <command> in project's venv
uv run invoke cc             # Run code checks (auto-fixes formatting, mypy errors need manual fix)
uv run invoke test           # Run all tests
uv run invoke ut             # Run unit tests only
uv run invoke it             # Run integration tests only
uv run invoke test --cov     # Run tests with coverage
uv run invoke build-docs     # Build docs
uv run invoke serve-docs     # Serve docs at localhost:8000
uv run pytest -xsv tests/integration/test_[name].py             # Single test file
uv run pytest -xsv tests/integration/test_[name].py::test_name  # Single test
  • invoke cc only checks files under version control. Run git add on new files first.

Docstring Guidelines

  • Use mkdocs-formatter and mkdocs-docstrings skills for docstrings
  • Use Markdown formatting, not reST
  • Do not add module-level docstrings

Coding Guidelines

  • All function parameters and return types must have type hints
  • Modern union syntax: str | None instead of Optional[str]
  • Prefer match/case over isinstance() for type dispatch
  • Package __init__.py files are re-exports only; do not define functions or classes in them

Read the full file on GitHub · 54 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. 4d ago First seen · 54 lines · 515 tokens per session scan A 167e4c6849a3

Subscribe to this mod's changes

ipybox AGENTS.md is an instructions file published in the GitHub repository gradion-ai/ipybox (73 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 515 tokens to every session, about $0.0026 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.