Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

tox

$ tox Community Low Risk
tox-dev · Code & DevOps · MIT · macos / linux / windows

tox automates isolated Python virtual environment creation, dependency installation, and test execution across interpreter matrices from tox.ini or pyproject.toml. Supports tox list for environment discovery and tox run --result-json for structured reporting.

FCRS-1.0 Score
79 /100
Good
Medium Confidence
Zero-Friction Install
brew install tox
CLI vs MCP Decision CLI Only

Local Python environment and matrix test runner; MCP servers cannot manage local .tox/ virtualenvs.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Supports tox run --result-json, --colored no, and NO_COLOR=1, though --result-json is incompatible with parallel mode (-p) and writes to a file rather than stdout.

  • tox run --result-json <path> emits structured JSON report
  • --colored no disables ANSI escape sequences
Trust & Safety 20 / 25

Isolates dependencies inside .tox/ directories and runs locally, though installing packages from PyPI triggers network writes.

  • Environment isolation under .tox/
Setup & Portability 13 / 15

Cross-platform across macOS, Linux, and Windows via brew, pip, pipx, or uvx, requiring Python interpreters for target matrix entries.

  • Available via brew install tox, pip install tox, and uvx tox
Utility & Efficiency 12 / 15

Standardizes multi-Python version and tool matrix testing in one config, though virtualenv creation can be slower than uv without tox-uv.

  • Unified runner for pytest, linters, and type checkers
Maintenance & Lineage 8 / 10

Long-standing PyPA-adjacent tox-dev/tox project under the MIT license.

  • Maintained by tox-dev team
Docs & Verifiability 7 / 10

Comprehensive v4 documentation on tox.wiki and detailed --help output.

  • Official CLI reference at tox.wiki

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No built-in credentials; inherits local pip / PyPI index credentials if configured in the environment.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source Python tool; free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# tox Agent Rules
- Run `tox list --colored no` first and target specific environments with `-e <env>` rather than the full matrix.
- Note that `--result-json` cannot be combined with `--parallel` (`-p`) or `--no-capture` (`-i`).
- Avoid `tox run -r` (recreate) unless dependencies actually changed.

Agent-Ready Command Recipes

Safe Read-Only Queries

List configured tox environments
tox list --colored no

Displays configured test, lint, and type-check environments without creating virtualenvs.

Controlled Writes & Previews

Run a specific environment with JSON result output
tox run -e py312 --result-json .tox/result.json --colored no

Provisions .tox/py312, runs configured commands, and writes structured execution metadata to .tox/result.json.

Strengths for Agents

  • + Standard tox.ini / pyproject.toml support across thousands of Python repositories.
  • + --result-json captures per-environment commands, exit codes, and durations.
  • + Clean --colored no and tox list inspection.

Caveats & Pitfalls

  • ! --result-json is mutually exclusive with parallel execution (-p) and -i (--no-capture).
  • ! Creating virtualenvs for multiple Python versions can take time unless tox-uv is installed.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI