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

agex

Latest version: v0.13.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: ashenfad
44 Stars
5 Forks
2 Versions
306 Downloads
Python Repo language

Scan summary

agex was last scanned on 23 Nov 2026 at version 0.13.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 23 Nov 2026.
  • Findings: No rules fired in version 0.13.1.
  • Downloads: 306 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.13.1 LATEST 23 Nov 2026 No rules fired
0.13.0 12 Oct 2026 No rules fired

No rules fired in 0.13.1

Findings

Findings for v0.13.1. 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.13.1; other versions have their own rules, not their own score.

README

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

agex

Agents that work in a versioned world.

agex is an agent loop over nontainer workspaces: a filesystem, a shell and sandboxed Python, with history. It has two front doors:

  • A session drives a workspace turn by turn. Its conversation is stored in the workspace's branch, so checking out a commit rewinds the agent's memory with its files, and a fork carries both.
  • A task is a typed function an agent runs on a world of its own and answers with a value of the declared type.
pip install "agex[anthropic]"   # or [openai], [openrouter], [google], [all]

A session

from agex import Agent
from nontainer import Store

agent = Agent("anthropic:claude-sonnet-5-5")
store = Store(memory=True)
ws = store.open("demo")

chat = agent.session(ws)
out = chat.say("Write fib.py printing the first ten Fibonacci numbers, and run it.")
print(out.status, out.text)          # completed, and the model's reply
print(ws.files.read("fib.py").decode())   # the file it wrote
out = chat.say("Make it print twenty.")   # it remembers the last turn

Tool calls that change the workspace commit as they land, and a turn's end lands one more commit, stamped with how the run ended: completed, cancelled, failed or interrupted. None of them raise.

A task

from dataclasses import dataclass

@dataclass
class Recipe:
    name: str
    steps: list[str]
    minutes: int

@agent.task
def plan_dinner(ingredients: list[str]) -> Recipe:
    """A dinner recipe using only these ingredients, plus salt and oil."""
    ...

recipe = plan_dinner(["eggs", "spinach", "feta"])   # a Recipe

The docstring is the job, and the body holds no code (... is for a type checker). The agent works in a scratch world (or a fork of world=), and its code hands back the value with task.success(...). The value is checked against the return type, so the caller gets a Recipe or a TaskFailed.

Your code

An agent works with your libraries and your live objects, not copies. They are granted to the workspace, so a fork or a delegate holds them too:

from nontainer import Profile, PythonConfig
from nontainer.presets import dataframes

profile = Profile(python=PythonConfig(
    modules=[dataframes()],          # pandas, numpy, pyarrow
    host_objects={"db": my_pool},    # your real connection pool
))
ws = store.open("analyst", profile=profile)
agent.session(ws).say("Which customers churned last month? db has the tables.")

A task can take a live object as an input too. Its agent calls it where it is, guided by the class's methods and docstrings:

@agent.task
def churned(month: str, db: Customers) -> list[str]:
    """The customers who left in the month (YYYY-MM)."""
    ...

names = churned("2026-09", db=customers)

Agent-defined tasks

A session's agent can define tasks of its own, for the judgment work in a script: classify, extract, summarize. Grant agex to its workspace:

from agex import agent_tasks
from nontainer import Profile, PythonConfig

profile = Profile(python=PythonConfig(host_objects={"agex": agent_tasks(agent)}))
ws = store.open("reviews", profile=profile)

and the agent's code can write

@agex.task
def sentiment(review: str) -> str:
    """positive, negative or mixed"""

labels = sentiment.map(reviews)   # helpers run them at once

More

  • Quick start: install, the first session and task, reading an outcome
  • Examples: runnable scripts for each of the above
  • Design notes: the shape, and why
  • Plan: what is done and what is next

agex 0.13 is a new API. The 0.12 API is at the v0.12.4 tag and on PyPI as agex==0.12.4.

Development

uv sync
uv run pre-commit install --hook-type pre-commit --hook-type pre-push
uv run pytest

See CONTRIBUTING.md.

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 agex

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229