Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Agent observability, tracing, and evaluation toolkit for agentic AI systems
Observe how agents behave, not what they think.
AgentZen is a toolkit for observing and understanding how AI agents act.
It helps developers see what an agent did, why it made certain decisions, how confident it was, and how its actions change from run to run—without recording prompts, chain-of-thought, or internal model details.
AgentZen focuses on actions and outcomes, not generated text.
AgentZen focuses on behavior, not text.
Modern AI agents often fail silently.
Small changes such as:
can subtly alter agent behavior in ways that are difficult to detect.
Traditional logging shows outputs but not intent.
Logging chain-of-thought introduces privacy, safety, and policy risks.
AgentZen solves this by recording structured decision events instead of reasoning text, making agent behavior observable and safe for production.
AgentZen is intentionally not:
A trace represents a single execution of an agent.
Each trace:
A span represents a unit of agent behavior.
Examples:
Spans may be nested to reflect execution structure.
A decision span captures a single agent choice.
Each decision span records:
Decision spans explicitly do not capture:
This ensures safety, determinism, and production readiness.
pip install agentzen
agentzen --help
Expected output:
AgentZen CLI
Usage:
agentzen trace <trace.jsonl> [--analyze] [--fail]
agentzen trace diff <old.jsonl> <new.jsonl>
from agentzen.tracing.tracer import Tracer
from agentzen.exporters.jsonl import JSONLExporter
tracer = Tracer(JSONLExporter("trace.jsonl"))
with tracer.trace("request"):
...
All spans created inside this block belong to the same execution.
with tracer.decision(
name="choose_tool",
options=["search", "calculate"],
chosen="search",
confidence=0.72,
):
pass
Guidelines:
Each run produces a structured JSONL trace describing agent behavior.
All CLI commands operate on JSONL trace files.
agentzen trace trace.jsonl
Example output:
Trace: request
└── Decision: choose_tool
├── Options: [search, calculate]
├── Chosen: search
└── Confidence: 0.72
agentzen trace trace.jsonl --analyze
Healthy trace output:
Behavioral Analysis Summary
---------------------------
✔ No critical issues detected
Observations:
- All decisions exceeded confidence threshold (0.60)
- No oscillation detected
- No repeated decision loops
Problematic trace output:
Behavioral Analysis Summary
---------------------------
⚠ Issues Detected: 2
1. Decision Loop Detected
- Decision: choose_tool
- Repeated 4 times
- Recommendation: Add stopping condition
2. Low Confidence Decisions
- Decision: select_action
- Confidence below 0.40
- Recommendation: Improve context or constrain options
agentzen trace trace.jsonl --analyze --fail
Example output:
Behavioral Analysis Summary
---------------------------
✖ Blocking Issues Detected
- Decision loop detected
- Confidence regression detected
Exiting with status code 1
Exit codes:
agentzen trace diff run_v1.jsonl run_v2.jsonl
Example output:
Behavioral Diff Summary
-----------------------
⚠ Behavior Changes Detected
Decision: choose_tool
- Previous: search (0.81)
- New: calculate (0.62)
Decision: plan_steps
- Confidence dropped by 0.27
Overall Assessment:
- Behavior materially changed
agentzen trace <trace.jsonl>
agentzen trace <trace.jsonl> --analyze
agentzen trace <trace.jsonl> --analyze --fail
agentzen trace diff <old.jsonl> <new.jsonl>
AgentZen is typically:
When disabled, overhead is near zero.
SDK authors typically:
Traces contain:
They are safe to store, share, and retain.
AgentZen does not:
MIT License.
AgentZen is built for:
Just tell me.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 2 Jan 2026 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:69ad776821440a2274bccac7bdaa72ed65623737b6a4433b8008d9ebb0598e9e