Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

agentplaykit

Latest version: v0.7.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: thetejasmagade
0 Stars
0 Forks
8 Versions
246 Downloads
Python Repo language

Scan summary

agentplaykit was last scanned on 1 Dec 2026 at version 0.7.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest 5 were published on 1 Dec 2026.
  • Findings: No rules fired in version 0.7.0.
  • Downloads: 246 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.0 LATEST 1 Dec 2026 No rules fired
0.6.0 1 Dec 2026 No rules fired
0.5.0 1 Dec 2026 No rules fired
0.4.0 1 Dec 2026 Not shown
0.3.0 1 Dec 2026 Not shown

No rules fired in 0.7.0

Findings

Findings for v0.7.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.7.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

An MIT-licensed Python framework for putting AI agents into worlds, letting them act and talk, and scoring and logging what happens.

Status: released on PyPI as agentplaykit. Docs: https://agentplay.itejas.dev. The specs in specs/ are the source of truth; every requirement has a test.

Install

Python 3.8 or newer. Plain pip works:

pip install agentplaykit
pip install -e ".[dev]"             # from a clone, for development

Try it

pip install agentplaykit
agentplaykit play                                  # built-in demo, no API key needed
agentplaykit play examples/guess/scenario.yaml     # a custom world + agent from plain .py files
agentplaykit play examples/tic-tac-toe-chat/scenario.yaml   # two agents play tic-tac-toe and chat
agentplaykit check examples/guess/scenario.yaml    # validate without running
agentplaykit view runs/tic-tac-toe-demo-7.jsonl      # replay a run in your browser
agentplaykit play examples/tic-tac-toe-chat/scenario.yaml --live   # watch it live
agentplaykit env list                              # available worlds
agentplaykit doctor                                # check your setup

Every move, message and cost lands in a JSONL log under runs/.

A scenario is one YAML file; swap an agent by changing its use line:

agentplay: 1
name: tic-tac-toe-demo
seed: 7
world: {use: tic-tac-toe}
agents:
  - {id: x, use: scripted/minimax}
  - {id: o, use: scripted/random}

A new world (examples/guess/guess_world.py) is under 50 lines and a new agent (bisect_agent.py) under 30, with no framework changes.

Use real AI models

Any model can play, hosted or local. Change the agent's use line:

use Connects to
openai, openrouter, groq, deepseek, gemini, mistral, together That hosted service; only model is needed, the key comes from its usual variable (OPENROUTER_API_KEY, ...)
ollama A local Ollama server: free, no key
chat_api Any other chat API in the OpenAI-compatible format (DigitalOcean, Cloudflare AI Gateway, LM Studio, vLLM, llama.cpp, proxies) via base_url
anthropic Claude via the Anthropic SDK (pip install "agentplaykit[anthropic]")
command Any program, in any language, reading and writing JSON lines
http Any agent behind a URL
mcp A tool on an MCP server (pip install "agentplaykit[mcp]", Python 3.10+)
- {id: x, use: ollama, config: {model: "llama3.2"}}                 # local, free
- {id: y, use: openrouter, config: {model: "<provider>/<model>"}}   # key from OPENROUTER_API_KEY

Keys come from environment variables, never from the scenario. Every call's tokens and cost are logged; runs stop at max_cost_usd (default $1). Set price per model for exact costs (openrouter reports its own). See examples/tic-tac-toe-llm/scenario.yaml and examples/command-agent/.

Score and compare

Add evaluators to a scenario; they read only the finished log, so agents can never touch them:

evaluators:
  - {use: outcome, config: {agent: x}}                 # did x win?
  - {use: judge, config: {rubric: "Did x explain its moves?", agent: {use: openrouter, config: {...}}}}

Run many seeds and get a summary (pass rate, steps, cost, spread):

agentplaykit play examples/treasure/scenario.yaml --runs 20

Rank agents against each other: a tournament plays every pairing on both sides, and a report gives a leaderboard with ratings, ranges, costs and errors:

agentplaykit play examples/arena/scenario.yaml   # tournament + report
agentplaykit report runs/                        # a report from any logs

Give an agent a real task in a locked-down container (no network, non-root, caps), checked afterwards by commands it never sees (needs Docker):

agentplaykit play examples/hello-sandbox/scenario.yaml

Check your own world or agent against the specs before sharing it:

agentplaykit test my_world.py
agentplaykit test my_agent.py --world tic-tac-toe

Develop

python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
pytest

(uv works too: uv venv && uv pip install -e ".[dev]".)

See CONTRIBUTING.md. Licensed under MIT.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases agentplaykit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229