Skip to main content

Graph control for AI-agent workflows.

Project description

AgentProp

AgentProp logo

Graph control for agent workflows.

CI PyPI skills.sh MCP Security Version License Status

AgentProp models AI-agent workflows as directed weighted graphs—agents, tools, context, verifiers, and failures become nodes and edges you can analyze, simulate, and supervise.

It is a control layer, not an orchestrator. Your harness emits one ExecutionEvent per step; AgentProp returns whether to continue, verify, switch strategy, or finalize. See the overview for the core ideas (metric-dimension verifiers, quality cascade, RZF scaling, runtime control).

Get started — pick your path

Path A: you use a coding agent (Claude Code / Codex)

Install the package and register the plugin or MCP server so your agent can analyze its own workflow and run under budget control:

python -m pip install "agentprop[mcp]"
agentprop doctor --tier graph

codex mcp add agentprop -- agentprop-mcp   # or the plugin bundle below

Then follow the beta quickstart. No API keys are needed for graph analysis.

Path B: you build multi-agent systems (LangGraph and friends)

python -m pip install agentprop

Analyze a LangGraph workflow in a few lines:

from agentprop import analyze

report = analyze(my_langgraph_workflow)
print(report.to_markdown())

Wrap it with runtime control:

from agentprop import wrap

controlled = wrap(my_langgraph_workflow, budget={"tokens": 100_000, "cost": 0.50})
result = controlled.run({"task": "ship the workflow"})
print(result.decision_trace)

Start with the tutorial and the framework status matrix (LangGraph, CrewAI, and OpenAI Agents have native builders; AutoGen and LlamaIndex are dict-interchange only).

Try it without any framework

agentprop analyze planner_coder_tester_reviewer
agentprop control-demo --demo terminal --out-dir reports/control-demo
agentprop view planner_coder_tester_reviewer --out reports/view.html

More: docs/index.md · troubleshooting · contributing

Development checkout:

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

Early signal

On one Terminal-Bench 2.1 task (regex-log, Codex + gpt-5.5), AgentProp control preserved pass while reducing tokens and cost versus the raw agent:

Arm Result Tokens Cost
A0 raw Codex pass 123,731 $0.33
A2 AgentProp control pass 81,949 $0.20

That is a single-task early signal, not a benchmark claim. Multi-task replication is documented in Terminal-Bench multi-task protocol.

Coding-agent integration

AgentProp ships a same-repo plugin bundle at plugins/agentprop (Codex + Claude Code manifests, packaged skill, MCP config). Install the Python package, then register the plugin:

python -m pip install "agentprop[mcp]"

codex plugin marketplace add aryan5v/AgentProp --sparse .agents --sparse plugins
codex plugin add agentprop@agentprop

Portable skill-only install:

npx skills add aryan5v/AgentProp --skill agentprop-workflow-optimizer

Full setup, MCP registration, and troubleshooting: coding agents · plugin distribution.

Examples

python examples/coding_agent_full_suite.py --out-dir reports/full-suite
python examples/minimal_control_loop.py

More: examples/README.md.

Repository map

Path Contents
src/agentprop/ Library and CLI
docs/ Guides, reference, and public artifacts
experiments/ Repro scripts — catalog
examples/ Integration templates
plugins/agentprop/ Editor-agent plugin bundle
skills/ Canonical skills.sh skill source

Details: repository layout.

Status

Public alpha research software. Graph analysis, propagation, runtime control, and key-free demos work without API keys. Treat live-agent numbers as directional until larger studies with saved artifacts are published under docs/results/.

License

Apache 2.0. See SECURITY.md and CHANGELOG.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentprop-0.1.0b1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentprop-0.1.0b1-py3-none-any.whl (233.1 kB view details)

Uploaded Python 3

File details

Details for the file agentprop-0.1.0b1.tar.gz.

File metadata

  • Download URL: agentprop-0.1.0b1.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentprop-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 aeae7943f01b87b95a7f599d3c243657e1ccb7c14684764b4454dc5476492be5
MD5 cb0e43ea1dc1d1df0da65bb63fe1d73b
BLAKE2b-256 aa664c81a90bebb87e765640c8f19fb4c870e912bfb04236c4f010c14556e02d

See more details on using hashes here.

File details

Details for the file agentprop-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: agentprop-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 233.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentprop-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd741244573ae590499f994019c11e4177d90d44d0008d22f93aba4eab24b601
MD5 8d4ffc971b371f08d9a9f0589062db98
BLAKE2b-256 0a6a4e438b5920c3e7ec0ee00fa9c21335c4828ab1e902d779b3c58f552afd4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page