Catalog PyPI
PACKAGE EXPLORERView in registry

agentlint-trace

PyPI

A CI linter for AI agent execution traces.

agentsaicilintpolicytraces
Versions collected1
Direct dependencies10From release 0.1.0a2
Last observed20 Oct, 22:35 UTC

README

Version 0.1.0a2 documentation

AgentLint

CI Python 3.12+ PyPI

AgentLint checks recorded agent runs for unsafe tool use, missing approvals, sensitive-data flows, and unsupported claims.

Integrations

IntegrationWorkflow
OpenAI Agents SDKAutomatic pytest capture or instrument() in any Python runner
OpenTelemetryImport existing OTLP-style JSON

Install

python -m pip install "agentlint-trace[openai-agents]==0.1.0a2"

AgentLint requires Python 3.12 or newer.

Define a policy

Create agentlint.yaml:

version: 1
policy_id: customer_support

tools:
  lookup_status:
    permission: allowed
    approval: not_required

  issue_refund:
    permission: allowed
    approval: required

rules:
  unknown_tool: error
  denied_tool_call: error
  missing_approval: error

Run

Pytest is optional. Choose the workflow that fits the project.

Pytest

pytest --agentlint --agentlint-policy agentlint.yaml

The command runs the tests, captures their agent traces, and checks the saved run. Artifacts are written to .agentlint/runs/.

agentlint check-run .agentlint/runs/latest.json

Use a test marker or routing file when tests require different policies.

Any Python runner

from agentlint.integrations.openai_agents import instrument

session = instrument(".agentlint/openai-agents")

# Run the agent.

snapshot_paths = session.close()

Check the capture directory:

agentlint check-capture .agentlint/openai-agents --policy agentlint.yaml

check-capture also accepts one JSON file and detects OpenAI Agents, OpenTelemetry, and native AgentLint formats.

Sample output

AgentLint Report
traces: 0 passed, 1 failed, 0 not verifiable, 0 invalid
diagnostics: 1 error, 0 warning, 0 info

error[DENIED_TOOL_CALL]: tool call "evt_delete_account" uses tool
"delete_account" denied by trace policy
  related events: evt_delete_account
  remediation: Remove the call or update the trace policy when this tool
  should be permitted.

Documentation

License

MIT

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.1.0a214 Jul 202610

Package advisories

0
No matching advisories collected

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

Repository

PENDING
darrelfw321/agentlint

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:35 UTC

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

Record identity

package:21166886f76a959c3662ed94b2f053d038b4ac946370a5de6e06a64ea3103a6c