Catalog PyPI
PACKAGE EXPLORERView in registry

agentsec-agentwatch

PyPI

Execution traces for agent behavior - OpenTelemetry-style observability for AI agent workflows

agent-securityai-agentsllmmonitoringobservabilityopentelemetrytracing
Versions collected1
Direct dependencies15From release 0.3.0
Last observed20 Oct, 23:18 UTC

README

Version 0.3.0 documentation

agentwatch

PyPI version Python versions License: Apache-2.0 Status: v0.1.0

Instrumentation SDK for AI agents — turn agent behavior into OpenTelemetry GenAI spans and validated, redacted execution records. Part of agentwatch.

Installation

pip install agentsec-agentwatch

Optional extras:

pip install "agentsec-agentwatch[langgraph]"   # LangGraph adapter
pip install "agentsec-agentwatch[otlp]"        # OTLP export
pip install "agentsec-agentwatch[signing]"     # cryptographic signing helpers

Requires Python 3.10+.

Quickstart

Trace a plain Python agent — no framework required:

from agentwatch.raw import trace_agent
from agentwatch.spans import plan_span, execute_tool_span

@trace_agent("support-bot", agent_version="v0.1.0", model="gpt-4o", provider="openai")
def answer(request: str) -> str:
    with plan_span("decide next action"):
        ...
    with execute_tool_span("search", arguments={"q": request}):
        ...
    return "done"

Or drive the run context explicitly:

from agentwatch.config import default_config
from agentwatch.tracer import configure_tracing
from agentwatch.context import RunContext
from agentwatch.instrument import invoke_agent

configure_tracing(default_config())          # once at startup
with invoke_agent(RunContext(agent_name="request-triage")):
    ...

LangGraph:

from agentwatch.langgraph import trace_graph

graph = trace_graph(compiled_graph, agent_name="planner")

Privacy

Records are redacted by default. Four privacy modes are available per span/tool call:

ModeWhat is stored
truncated (default)Content-safe truncated values
metadata-onlyNames, timings, and counts; no content
hashedOne-way digests of content
fullRaw content (opt-in)

Record, replay, verify

The same package installs the CLI:

agentsec-agentwatch init            # install Claude Code hooks + start the local daemon
agentsec-agentwatch sessions        # list recorded sessions
agentsec-agentwatch replay <id>     # reconstruct a session's action timeline
agentsec-agentwatch verify-store    # verify the hash chain

Records are written to a local-first, hash-chained JSONL store; OTLP export is opt-in and gated on a redaction self-test.

Documentation

License

Apache-2.0 — see LICENSE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.012 Oct 202615

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
agentic-suite/agentsec-agentwatch

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1b405f31df874056f277c8c09ddafa6cab5694edb1ea388bb9619fa5e15061d2