Decision-PGA Agent Toolkit

This page is the practical companion to the article and demo. It is for developers asking: “How would I actually try this in an agent workflow?”

Imagine an agent that can answer, ask a clarifying question, retrieve more evidence, route to review, abstain, or replan. A confidence score can say that the situation is uncertain. Decision-PGA asks a more workflow-shaped question: what kind of uncertainty is it?

The prototype accepts repeated probability-like observations over a fixed set of candidate actions, then returns a compact decision-state readout. It is local, deterministic, and model-neutral. It is not a production safety layer or a claim that an answer is correct.

Open full toolkit docs View code Try visual demo

Use Decision-PGA in five minutes

git clone https://github.com/zmichels/Decision-PGA.git
cd Decision-PGA
python3 -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[mcp]"
decision-pga diagnose --pretty examples/agent/tool_action_ambiguity.json

Launch the local MCP server:

decision-pga-mcp

Inspect it with MCP Inspector:

npx @modelcontextprotocol/inspector decision-pga-mcp

Each gallery item below mirrors a copy-paste JSON payload in the public repo. The examples are synthetic, but the situations are meant to feel familiar to agent builders. The point is to see how similar-looking uncertainty can call for different next actions.

What to look for

The key comparison is not “certain versus uncertain.” It is the shape of the uncertainty:

For implementation details, see the full agent toolkit docs and the MCP quickstart.