agentloop-profiler 0.1.1__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentloop_profiler-0.1.1/agentloop_profiler.egg-info → agentloop_profiler-0.2.1}/PKG-INFO +111 -46
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/README.md +108 -43
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/THIRD_PARTY_LICENSES.md +12 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/cli.py +2 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/entrypoint.py +1 -0
- agentloop_profiler-0.2.1/agentloop/improvement.py +642 -0
- agentloop_profiler-0.2.1/agentloop/improvement_cli.py +141 -0
- agentloop_profiler-0.2.1/agentloop/improvement_init.py +243 -0
- agentloop_profiler-0.2.1/agentloop/improvement_report.py +317 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/hermes.py +1 -1
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/hermes_recorder.py +2 -1
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/patches.py +14 -1
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/replay.py +20 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/rules.py +11 -4
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/version.py +1 -1
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1/agentloop_profiler.egg-info}/PKG-INFO +111 -46
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop_profiler.egg-info/SOURCES.txt +15 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/pyproject.toml +7 -3
- agentloop_profiler-0.2.1/tests/test_docs_site.py +61 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_estimates.py +1 -0
- agentloop_profiler-0.2.1/tests/test_guided_validation.py +97 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_hermes_integration.py +11 -0
- agentloop_profiler-0.2.1/tests/test_hermes_replay_capture.py +45 -0
- agentloop_profiler-0.2.1/tests/test_hermes_repository_example.py +48 -0
- agentloop_profiler-0.2.1/tests/test_hermes_runtime_evidence.py +98 -0
- agentloop_profiler-0.2.1/tests/test_improvement.py +343 -0
- agentloop_profiler-0.2.1/tests/test_improvement_init.py +266 -0
- agentloop_profiler-0.2.1/tests/test_instrumentation_measurement.py +87 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_patch_plan.py +1 -1
- agentloop_profiler-0.2.1/tests/test_patch_source_scope.py +26 -0
- agentloop_profiler-0.2.1/tests/test_published_readme.py +52 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_release_workflows.py +3 -1
- agentloop_profiler-0.2.1/tests/test_retry_recommendations.py +76 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/LICENSE +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/__init__.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/ablation_protocol.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/ablations.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/aggregate_cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/aggregate_stats.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/aggregates.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/audit.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/autoinstrument.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/batch_experiments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/batching.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/budget_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/budgets.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/calibration.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/checkpoint_state.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/checkpoint_store.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/ci.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/cli_paths.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/client.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/completion.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/completion_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/config.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/context_controls.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/context_experiments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/context_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/costs.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/cursor_validation.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/decorators.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/demo.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/doctor.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/drift.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/drift_cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/drift_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/drift_windows.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/estimates.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/events.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/experiment_artifacts.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/experiment_observations.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/experiment_reports.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/experiment_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/experiments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/exporters.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/finding_benchmark_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/finding_benchmarks.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/findings.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/graph.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/harness.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/harness_bench/__init__.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/harness_bench/cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/harness_bench/drivers.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/harness_bench/offline.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/harness_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/harness_usage.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/html_report.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/__init__.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/crewai.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/harbor/__init__.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/harbor/atif.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/harbor/atif_validation.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/harbor/cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/harbor/manifest.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/harbor/trial_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/harbor/trials.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/harbor/verifier.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/hermes_cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/langgraph.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/langgraph_harness.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/langgraph_recovery.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/omnigent/__init__.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/omnigent/cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/omnigent/evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/omnigent/telemetry.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/openai.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/openai_agents.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/sdk.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/integrations/vercel_ai.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/__init__.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/artifacts.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/cohort_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/cohorts.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/contracts.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/coordination.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/otlp_jsonl.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/otlp_validation.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/registry.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interoperability/validation.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/intervention_service.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/intervention_store.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/interventions.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/issues.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/judgment_adapters.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/judgment_benchmark_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/judgment_benchmarks.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/judgment_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/judgment_views.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/judgments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/loop_guards.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/loop_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/markdown.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/metrics.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/migrations.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/model_routing.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/onboarding.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/operations.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/optimizer.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/otel.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/otel_ids.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/otel_semantics.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/parallelism.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/plan_export.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/policy_promotion.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/promotion_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/promotion_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/quality.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/ranking.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/recovery_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/retention.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/retention_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/reuse_experiments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/routing_checks.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/routing_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/runtime.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/savings.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/scheduling_plan.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/scheduling_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/schema.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/semantic_rules.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/semantic_waste.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/semantic_waste_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/server.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/store.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/structural_experiments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/structural_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/structured_quality.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/studies.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/study_statistics.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/substitution_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/substitution_export.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/substitution_reports.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/substitution_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/substitutions.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/timing.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/tokens.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/tool_scheduling.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/trace_sources.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/tracer.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/value.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/workflow_types.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop/workflows.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop_profiler.egg-info/dependency_links.txt +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop_profiler.egg-info/entry_points.txt +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop_profiler.egg-info/requires.txt +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/agentloop_profiler.egg-info/top_level.txt +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/dashboard/__init__.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/dashboard/app.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/dashboard/streamlit_compat.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/dashboard/trace_upload.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/dashboard/value_view.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/setup.cfg +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_ablations.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_aggregates.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_api_versioning.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_batch_data_pipeline.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_budgets.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_bump_version.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_calibration.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_capability_registry.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_checkpoint_recovery.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_ci_command.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_ci_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_cli_output_paths.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_cli_store_commands.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_cli_trace_inputs.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_client.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_client_transport.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_completion.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_context_controls.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_context_reuse_experiments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_context_study.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_costs.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_crewai_integration.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_cursor_server.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_cursor_shape_validation.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_dashboard_input_validation.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_dashboard_quality.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_dashboard_semantic_waste.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_dashboard_structured_quality.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_dashboard_trace_upload.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_dashboard_value_view.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_dashboard_workflows.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_decorators.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_demo_cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_dependabot_config.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_diagnosis_api.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_distribution_metadata.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_doctor_autoinstrument.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_drift.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_email_workflow.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_empirical_calibration.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_enforcement_conformance.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_evidence_workflow.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_experiments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_exporters.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_external_cohorts.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_finding_benchmarks.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_finding_identity.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_finding_rules.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_first_use_cli.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_graph.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_harbor_atif.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_harbor_trials.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_harness.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_harness_bench.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_harness_error_usage.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_harness_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_html_report.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_incident_triage.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_integration_conformance.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_interoperability_contracts.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_interventions.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_issues.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_judgment_adapters.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_judgment_benchmarks.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_judgment_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_judgment_provider_optional.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_judgments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_langgraph_conformance.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_langgraph_harness.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_langgraph_integration.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_langgraph_recovery.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_loop_guards.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_markdown.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_markdown_exporters.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_marketplace_workflow.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_metrics.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_migrations.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_model_batching.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_model_routing.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_multiagent_coordination.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_non_agent_study.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_omnigent_telemetry.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_onboarding.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_openai_agents_integration.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_openai_integration.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_operations.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_optimizer.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_otel_ids.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_otel_interop.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_otlp_jsonl.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_parallelization_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_payment_review.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_policy_promotion.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_python_support.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_quality.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_ranking.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_real_agent_study.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_real_calibration_study.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_real_harness_study.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_remote_cli_credentials.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_replay.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_repository_policy_traversal.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_research_example.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_retention.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_routing_study.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_rule_error_privacy.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_runtime.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_savings_aggregation.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_scheduling_study.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_semantic_findings.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_semantic_waste.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_server.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_standalone_notices.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_store.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_store_contract.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_streaming_inventory.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_streamlit_compat.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_structural_experiments.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_structured_quality.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_structured_quality_evidence.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_studies.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_substitutions.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_telemetry_conformance.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_timing.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_token_provenance.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_tool_scheduling.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_trace_context.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_trace_failure_recording.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_trace_schema.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_usefulness_benchmark.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_value.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_vercel_ai_integration.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_workflow_storage.py +0 -0
- {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.1}/tests/test_workflows.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentloop-profiler
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Profiler and optimization layer for AI agent execution graphs
|
|
5
|
-
Author: Dipesh
|
|
5
|
+
Author: Dipesh Tharu Mahato
|
|
6
6
|
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Homepage, https://github.com/dipeshbabu/agentloop
|
|
8
|
-
Project-URL: Documentation, https://github.
|
|
8
|
+
Project-URL: Documentation, https://dipeshbabu.github.io/agentloop/
|
|
9
9
|
Project-URL: Repository, https://github.com/dipeshbabu/agentloop.git
|
|
10
10
|
Project-URL: Issues, https://github.com/dipeshbabu/agentloop/issues
|
|
11
11
|
Project-URL: Changelog, https://github.com/dipeshbabu/agentloop/blob/main/CHANGELOG.md
|
|
@@ -58,8 +58,8 @@ Dynamic: license-file
|
|
|
58
58
|
|
|
59
59
|
<h1 align="center">
|
|
60
60
|
<picture>
|
|
61
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/agentloop-logo-dark.svg">
|
|
62
|
-
<img src="docs/assets/agentloop-logo-light.svg" alt="AgentLoop" width="440">
|
|
61
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/agentloop-logo-dark.svg">
|
|
62
|
+
<img src="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/agentloop-logo-light.svg" alt="AgentLoop" width="440">
|
|
63
63
|
</picture>
|
|
64
64
|
</h1>
|
|
65
65
|
|
|
@@ -73,15 +73,17 @@ Dynamic: license-file
|
|
|
73
73
|
<a href="https://pypi.org/project/agentloop-profiler/"><img src="https://img.shields.io/pypi/v/agentloop-profiler.svg?cacheSeconds=300" alt="PyPI"></a>
|
|
74
74
|
<a href="https://pepy.tech/projects/agentloop-profiler"><img src="https://static.pepy.tech/badge/agentloop-profiler/month" alt="Downloads/month"></a>
|
|
75
75
|
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11%2B-3776AB.svg" alt="Python 3.11 or newer"></a>
|
|
76
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License: Apache-2.0"></a>
|
|
76
|
+
<a href="https://github.com/dipeshbabu/agentloop/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License: Apache-2.0"></a>
|
|
77
77
|
</p>
|
|
78
78
|
|
|
79
79
|
<p align="center">
|
|
80
|
+
<a href="https://dipeshbabu.github.io/agentloop/">Documentation</a> ·
|
|
80
81
|
<a href="#quickstart">Quickstart</a> ·
|
|
82
|
+
<a href="#guided-optimization">Improve an agent</a> ·
|
|
81
83
|
<a href="#record-your-own-run">Trace your code</a> ·
|
|
82
84
|
<a href="#compare-before-and-after">Compare runs</a> ·
|
|
83
85
|
<a href="#framework-integrations">Integrations</a> ·
|
|
84
|
-
<a href="
|
|
86
|
+
<a href="https://dipeshbabu.github.io/agentloop/FIRST_USE/">Guide</a>
|
|
85
87
|
</p>
|
|
86
88
|
|
|
87
89
|
AgentLoop is a local profiler for AI agents and decision pipelines. It records
|
|
@@ -94,7 +96,7 @@ code without a hosted account or database. A dashboard, HTTP API, and shared
|
|
|
94
96
|
storage are available as optional components.
|
|
95
97
|
|
|
96
98
|
For Node.js and browser applications, the source checkout includes a
|
|
97
|
-
[TypeScript SDK](sdk/typescript/README.md) with native tracing and an API v1 client.
|
|
99
|
+
[TypeScript SDK](https://github.com/dipeshbabu/agentloop/blob/main/sdk/typescript/README.md) with native tracing and an API v1 client.
|
|
98
100
|
It has no runtime dependencies and has not yet been published to npm.
|
|
99
101
|
|
|
100
102
|
## Quickstart
|
|
@@ -121,6 +123,63 @@ For an isolated install, create an environment with `python -m venv .venv`, then
|
|
|
121
123
|
activate it with `source .venv/bin/activate` on Linux/macOS or
|
|
122
124
|
`.\.venv\Scripts\Activate.ps1` in Windows PowerShell before installing the package.
|
|
123
125
|
|
|
126
|
+
## Guided optimization
|
|
127
|
+
|
|
128
|
+
Requires AgentLoop 0.2.0 or newer. Upgrade with
|
|
129
|
+
`python -m pip install --upgrade agentloop-profiler` and check the installed version
|
|
130
|
+
with `python -m pip show agentloop-profiler`.
|
|
131
|
+
The example runs locally.
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
agentloop improve init --out agentloop-demo
|
|
135
|
+
cd agentloop-demo
|
|
136
|
+
python agentloop_runner.py --check
|
|
137
|
+
agentloop improve capture --out baseline -- python agentloop_runner.py
|
|
138
|
+
agentloop improve start --baseline baseline/capture.json --out optimization
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Read `optimization/plan.md`. It ranks findings using the existing evidence,
|
|
142
|
+
quality-risk and estimated-benefit inputs, and separates observations from
|
|
143
|
+
assumptions and missing evidence. In `agentloop_example.py`, replace the repeated
|
|
144
|
+
lookup in `answer()` with:
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
value = lookup_note(key)
|
|
148
|
+
return {"notes": [value] * 3}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Then capture the same tasks and check the actual result:
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
agentloop improve capture --out candidate -- python agentloop_runner.py
|
|
155
|
+
agentloop improve finish --session optimization/session.json --candidate candidate/capture.json --change "Reuse one lookup per request" --out results
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Open `results/report.html`. The generated example runs real local CPU work on
|
|
159
|
+
fictional notes; it is labeled synthetic. Its timings describe this example only.
|
|
160
|
+
A faster answer that fails the frozen correctness checks is rejected with exit
|
|
161
|
+
code 1. Failed attempts and unknown costs remain in the report.
|
|
162
|
+
|
|
163
|
+
To connect your application, run `agentloop improve init --agent my_agent:answer`
|
|
164
|
+
in its project directory. The generated adapter supports synchronous and async
|
|
165
|
+
Python callables. Replace the example task inputs and expected outputs with
|
|
166
|
+
independent checks for your agent, and keep your model and tool instrumentation.
|
|
167
|
+
Initialization refuses to overwrite existing files. Read the generated
|
|
168
|
+
`AGENTLOOP.md` and [onboarding guide](https://dipeshbabu.github.io/agentloop/GUIDED_OPTIMIZATION/).
|
|
169
|
+
|
|
170
|
+
A small [Hermes case study](https://dipeshbabu.github.io/agentloop/HERMES_OPTIMIZATION_CASE/) retained six passing
|
|
171
|
+
matched comparisons: model calls fell from 12 to 6 and mean task latency from
|
|
172
|
+
14.52s to 7.41s. An earlier faster JSON-only candidate failed an independent answer
|
|
173
|
+
check and was rejected. These controlled repository questions establish example
|
|
174
|
+
behavior; they do not establish production savings or general agent performance.
|
|
175
|
+
|
|
176
|
+
The [validation guide](https://dipeshbabu.github.io/agentloop/GUIDED_VALIDATION/) runs repository, retrieval and
|
|
177
|
+
tool-heavy pilot/held-out comparisons with offline fixtures or a pinned local
|
|
178
|
+
model. It retains incorrect controls, negative outcomes and tracing overhead
|
|
179
|
+
observations. See [remaining adoption and measurement gaps](https://dipeshbabu.github.io/agentloop/ADOPTION_GAPS/).
|
|
180
|
+
Its [first real local-model run](https://dipeshbabu.github.io/agentloop/GUIDED_LOCAL_MODEL_CASE/) rejected the
|
|
181
|
+
candidate: only 3 of 12 held-out comparisons passed every required gate.
|
|
182
|
+
|
|
124
183
|
## Record your own run
|
|
125
184
|
|
|
126
185
|
Save this as `example_agent.py`. It traces local functions and saves their output
|
|
@@ -163,10 +222,13 @@ usage from an arbitrary return value.
|
|
|
163
222
|
|
|
164
223
|
Saving `metadata["output"]` is an explicit choice in this example. Review the
|
|
165
224
|
inputs, outputs, errors, and metadata you retain before sharing real traces.
|
|
166
|
-
See [trace retention](
|
|
225
|
+
See [trace retention](https://dipeshbabu.github.io/agentloop/TRACE_RETENTION/) for capture controls.
|
|
167
226
|
|
|
168
227
|
## Inspect findings
|
|
169
228
|
|
|
229
|
+
For a fixed task set, use the [guided workflow](#guided-optimization) to capture
|
|
230
|
+
executions, review a recommendation, apply a change and verify it.
|
|
231
|
+
|
|
170
232
|
Start with `analyze` to see metrics, findings, and suggested changes together.
|
|
171
233
|
Findings link to the affected spans and describe the evidence and assumptions
|
|
172
234
|
behind each suggestion. A repeated tool name, for example, does not prove that
|
|
@@ -180,9 +242,9 @@ its calls are safe to run concurrently.
|
|
|
180
242
|
| `agentloop patch --path runs/research_agent.json --repo .` | Generate a repository patch plan for manual review. |
|
|
181
243
|
|
|
182
244
|
Optimization savings are predictions. Change one thing, record another run, and
|
|
183
|
-
measure the result. See [finding rules](
|
|
184
|
-
[parallelization evidence](
|
|
185
|
-
[estimator provenance](
|
|
245
|
+
measure the result. See [finding rules](https://dipeshbabu.github.io/agentloop/FINDING_RULES/),
|
|
246
|
+
[parallelization evidence](https://dipeshbabu.github.io/agentloop/PARALLELIZATION/), and
|
|
247
|
+
[estimator provenance](https://dipeshbabu.github.io/agentloop/ESTIMATORS/) for how suggestions are derived.
|
|
186
248
|
|
|
187
249
|
## Compare before and after
|
|
188
250
|
|
|
@@ -209,9 +271,9 @@ nonzero when a required gate fails. `replay` evaluates saved evidence; your
|
|
|
209
271
|
application supplies both runs.
|
|
210
272
|
|
|
211
273
|
Use representative tasks and repeated runs before drawing broader conclusions.
|
|
212
|
-
For experiments across tasks and conditions, see [paired studies](
|
|
213
|
-
and the [research guide](
|
|
214
|
-
[intervention ledger](
|
|
274
|
+
For experiments across tasks and conditions, see [paired studies](https://dipeshbabu.github.io/agentloop/STUDIES/)
|
|
275
|
+
and the [research guide](https://dipeshbabu.github.io/agentloop/RESEARCH/). The
|
|
276
|
+
[intervention ledger](https://dipeshbabu.github.io/agentloop/INTERVENTIONS/) links predictions to measured results.
|
|
215
277
|
|
|
216
278
|
### Quality gates
|
|
217
279
|
|
|
@@ -239,10 +301,10 @@ or read `metadata.output`; the last model call's output text is another supporte
|
|
|
239
301
|
source when captured.
|
|
240
302
|
|
|
241
303
|
Built-in scorers include `exact_match`, `contains`, bounded `glob`, `required_fields`,
|
|
242
|
-
and `json_subset`. [Structured quality fixtures](
|
|
304
|
+
and `json_subset`. [Structured quality fixtures](https://dipeshbabu.github.io/agentloop/STRUCTURED_QUALITY/) cover
|
|
243
305
|
classification, routing, extraction, and other decision outputs. A `custom` scorer
|
|
244
306
|
executes a trusted local Python function; the HTTP API rejects custom scorers.
|
|
245
|
-
See [scorer migration notes](
|
|
307
|
+
See [scorer migration notes](https://dipeshbabu.github.io/agentloop/UPGRADING/#quality-scorer-names) for renamed checks.
|
|
246
308
|
|
|
247
309
|
Once you have both runs, use your fixtures in a CI gate:
|
|
248
310
|
|
|
@@ -253,7 +315,7 @@ agentloop ci --baseline runs/baseline.json --candidate runs/candidate.json --qua
|
|
|
253
315
|
Every candidate case must pass. Optional `--min-quality-score` thresholds also
|
|
254
316
|
apply to the average score. Invalid fixture suites fail closed. `ci` writes a
|
|
255
317
|
Markdown report and exits nonzero when a required gate fails. See
|
|
256
|
-
[CI setup](
|
|
318
|
+
[CI setup](https://dipeshbabu.github.io/agentloop/CI/) for comparing your application's artifacts in pull requests.
|
|
257
319
|
|
|
258
320
|
## Understand the results
|
|
259
321
|
|
|
@@ -267,8 +329,8 @@ Markdown report and exits nonzero when a required gate fails. See
|
|
|
267
329
|
|
|
268
330
|
Cost gates can be `indeterminate` when pricing or usable usage is missing. This
|
|
269
331
|
does not fail the default cost gate; a positive `--min-cost-improvement-pct`
|
|
270
|
-
requires verifiable improvement. See [pricing](
|
|
271
|
-
[trace compatibility](
|
|
332
|
+
requires verifiable improvement. See [pricing](https://dipeshbabu.github.io/agentloop/PRICING/) and
|
|
333
|
+
[trace compatibility](https://dipeshbabu.github.io/agentloop/TRACE_SCHEMA/).
|
|
272
334
|
|
|
273
335
|
Rule failures remain visible and mark analysis incomplete. CI requires complete
|
|
274
336
|
analysis before recommending a merge. Keep your Markdown renderer's safe mode or
|
|
@@ -290,7 +352,7 @@ gate. Run `agentloop COMMAND --help` to see its output options and thresholds.
|
|
|
290
352
|
|
|
291
353
|
| Source | Integration path |
|
|
292
354
|
| --- | --- |
|
|
293
|
-
| Custom Python agents and pipelines | Decorators, context managers, and [workflow annotations](
|
|
355
|
+
| Custom Python agents and pipelines | Decorators, context managers, and [workflow annotations](https://dipeshbabu.github.io/agentloop/WORKFLOW_TRACING/). |
|
|
294
356
|
| OpenAI SDK | Wrap a client or callable to capture calls, streams, and reported usage. |
|
|
295
357
|
| OpenAI Agents SDK | Attach an AgentLoop tracing processor. |
|
|
296
358
|
| LangGraph | Instrument the builder before adding nodes, then wrap the compiled runnable. |
|
|
@@ -300,20 +362,23 @@ gate. Run `agentloop COMMAND --help` to see its output options and thresholds.
|
|
|
300
362
|
|
|
301
363
|
Adapters are included in version 0.1.0. Install the framework's own SDK separately
|
|
302
364
|
when needed; `python -m pip install "agentloop-profiler[instrumentation]"` includes
|
|
303
|
-
the OpenAI Python SDK. Follow the [integration guide](
|
|
365
|
+
the OpenAI Python SDK. Follow the [integration guide](https://dipeshbabu.github.io/agentloop/INTEGRATIONS/) for
|
|
304
366
|
setup, supported behavior, and streaming lifecycle requirements.
|
|
305
367
|
|
|
306
|
-
[Hermes Agent tracing](
|
|
368
|
+
[Hermes Agent tracing](https://dipeshbabu.github.io/agentloop/HERMES/) is included in AgentLoop 0.1.1 and newer.
|
|
307
369
|
Export its dependency-free directory plugin with `agentloop hermes export-plugin`,
|
|
308
370
|
enable it in your Hermes profile, and analyze the native turn traces it writes.
|
|
309
|
-
Output capture is off by default
|
|
371
|
+
Output capture is off by default. AgentLoop 0.2.0 supports Hermes
|
|
372
|
+
`>=0.21.6,<0.24`, with 0.21.6 hook-contract coverage and pinned 0.22.7/0.23.1
|
|
373
|
+
host conformance across eight scenarios. Exact pins and validation commands
|
|
374
|
+
appear in the [runtime pilot](https://dipeshbabu.github.io/agentloop/HERMES_RUNTIME_PILOT/).
|
|
310
375
|
|
|
311
|
-
For telemetry you already export, [onboarding](
|
|
312
|
-
before analysis. The [interoperability guide](
|
|
376
|
+
For telemetry you already export, [onboarding](https://dipeshbabu.github.io/agentloop/ONBOARDING/) validates capture
|
|
377
|
+
before analysis. The [interoperability guide](https://dipeshbabu.github.io/agentloop/INTEROPERABILITY_READINESS/)
|
|
313
378
|
covers Harbor ATIF/jobs, Omnigent sessions, bounded OTLP JSONL, offline capability
|
|
314
379
|
probes, and cross-harness comparisons. These imports work without upstream
|
|
315
380
|
runtimes or credentials. For classifiers and decision pipelines, start with
|
|
316
|
-
[AI execution profiling](
|
|
381
|
+
[AI execution profiling](https://dipeshbabu.github.io/agentloop/AI_EXECUTION_PROFILING/).
|
|
317
382
|
|
|
318
383
|
## How AgentLoop fits your stack
|
|
319
384
|
|
|
@@ -326,15 +391,15 @@ code changes.
|
|
|
326
391
|
<summary>View the workflow diagrams</summary>
|
|
327
392
|
|
|
328
393
|
<picture>
|
|
329
|
-
<source media="(max-width: 600px)" srcset="docs/assets/workflow-comparison-mobile.svg">
|
|
330
|
-
<source media="(prefers-reduced-motion: reduce)" srcset="docs/assets/workflow-comparison.svg">
|
|
331
|
-
<img src="docs/assets/workflow-comparison.gif" width="100%" alt="Without AgentLoop, application-specific timers, usage parsing, retry analysis, and output checks produce separate reports. AgentLoop combines captured execution evidence into tracing, analysis, and replay reports.">
|
|
394
|
+
<source media="(max-width: 600px)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/workflow-comparison-mobile.svg">
|
|
395
|
+
<source media="(prefers-reduced-motion: reduce)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/workflow-comparison.svg">
|
|
396
|
+
<img src="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/workflow-comparison.gif" width="100%" alt="Without AgentLoop, application-specific timers, usage parsing, retry analysis, and output checks produce separate reports. AgentLoop combines captured execution evidence into tracing, analysis, and replay reports.">
|
|
332
397
|
</picture>
|
|
333
398
|
|
|
334
399
|
<picture>
|
|
335
|
-
<source media="(max-width: 600px)" srcset="docs/assets/framework-comparison-mobile.svg">
|
|
336
|
-
<source media="(prefers-reduced-motion: reduce)" srcset="docs/assets/framework-comparison.svg">
|
|
337
|
-
<img src="docs/assets/framework-comparison.gif" width="100%" alt="Your application executes models and tools. Decorators and adapters export trace JSON. Analyze produces metrics and findings; replay compares the baseline and candidate with your quality fixtures.">
|
|
400
|
+
<source media="(max-width: 600px)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/framework-comparison-mobile.svg">
|
|
401
|
+
<source media="(prefers-reduced-motion: reduce)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/framework-comparison.svg">
|
|
402
|
+
<img src="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/framework-comparison.gif" width="100%" alt="Your application executes models and tools. Decorators and adapters export trace JSON. Analyze produces metrics and findings; replay compares the baseline and candidate with your quality fixtures.">
|
|
338
403
|
</picture>
|
|
339
404
|
|
|
340
405
|
</details>
|
|
@@ -355,8 +420,8 @@ Use `store-trace` to load your own files. Storage uses SQLite by default and als
|
|
|
355
420
|
supports Postgres. The optional HTTP API serves project-scoped traces and reports
|
|
356
421
|
through `/v1` endpoints.
|
|
357
422
|
|
|
358
|
-
See [dashboard setup](
|
|
359
|
-
and [production deployment](
|
|
423
|
+
See [dashboard setup](https://dipeshbabu.github.io/agentloop/DASHBOARD/), [API versioning](https://dipeshbabu.github.io/agentloop/API_VERSIONING/),
|
|
424
|
+
and [production deployment](https://dipeshbabu.github.io/agentloop/PRODUCTION/) for configuration and authentication.
|
|
360
425
|
|
|
361
426
|
## Other installation options
|
|
362
427
|
|
|
@@ -384,13 +449,13 @@ where the examples show `agentloop`.
|
|
|
384
449
|
<summary>Download and verify a standalone executable</summary>
|
|
385
450
|
|
|
386
451
|
Download the executable and `SHA256SUMS` from the same release. These examples use
|
|
387
|
-
version 0.
|
|
452
|
+
version 0.2.0. Change the version when choosing another release.
|
|
388
453
|
|
|
389
454
|
Linux (Bash):
|
|
390
455
|
|
|
391
456
|
```bash
|
|
392
457
|
set -euo pipefail
|
|
393
|
-
version=0.
|
|
458
|
+
version=0.2.0
|
|
394
459
|
asset="agentloop-v${version}-linux-x86_64"
|
|
395
460
|
curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/${asset}"
|
|
396
461
|
curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/SHA256SUMS"
|
|
@@ -407,7 +472,7 @@ chmod +x "$asset"
|
|
|
407
472
|
Windows PowerShell:
|
|
408
473
|
|
|
409
474
|
```powershell
|
|
410
|
-
$Version = "0.
|
|
475
|
+
$Version = "0.2.0"
|
|
411
476
|
$Asset = "agentloop-v$Version-windows-x86_64.exe"
|
|
412
477
|
Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/$Asset" -OutFile agentloop.exe
|
|
413
478
|
Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/SHA256SUMS" -OutFile SHA256SUMS
|
|
@@ -429,13 +494,13 @@ are ad-hoc signed but not notarized; Gatekeeper may require approval on first la
|
|
|
429
494
|
## Help and contributions
|
|
430
495
|
|
|
431
496
|
Run `agentloop --help` for all commands, or `agentloop COMMAND --help` for one command.
|
|
432
|
-
The [first-use guide](
|
|
497
|
+
The [first-use guide](https://dipeshbabu.github.io/agentloop/FIRST_USE/) walks through the analysis workflow.
|
|
433
498
|
|
|
434
|
-
- [Support](SUPPORT.md) and [issue forms](https://github.com/dipeshbabu/agentloop/issues/new/choose): questions, bugs, and feature requests.
|
|
435
|
-
- [Contributing](CONTRIBUTING.md): development setup and required checks.
|
|
436
|
-
- [Changelog](CHANGELOG.md), [upgrade guide](
|
|
437
|
-
- [Security](SECURITY.md): private vulnerability reports.
|
|
438
|
-
- [Governance](GOVERNANCE.md) and [Code of Conduct](CODE_OF_CONDUCT.md): project decisions and participation.
|
|
499
|
+
- [Support](https://github.com/dipeshbabu/agentloop/blob/main/SUPPORT.md) and [issue forms](https://github.com/dipeshbabu/agentloop/issues/new/choose): questions, bugs, and feature requests.
|
|
500
|
+
- [Contributing](https://github.com/dipeshbabu/agentloop/blob/main/CONTRIBUTING.md): development setup and required checks.
|
|
501
|
+
- [Changelog](https://github.com/dipeshbabu/agentloop/blob/main/CHANGELOG.md), [upgrade guide](https://dipeshbabu.github.io/agentloop/UPGRADING/), and [roadmap](https://dipeshbabu.github.io/agentloop/ROADMAP/): releases, compatibility, and planned work.
|
|
502
|
+
- [Security](https://github.com/dipeshbabu/agentloop/blob/main/SECURITY.md): private vulnerability reports.
|
|
503
|
+
- [Governance](https://github.com/dipeshbabu/agentloop/blob/main/GOVERNANCE.md) and [Code of Conduct](https://github.com/dipeshbabu/agentloop/blob/main/CODE_OF_CONDUCT.md): project decisions and participation.
|
|
439
504
|
|
|
440
505
|
AgentLoop is under active pre-1.0 development. Pin a tagged release when you need
|
|
441
506
|
a fixed version, and check the changelog before upgrading.
|
|
@@ -444,5 +509,5 @@ a fixed version, and check the changelog before upgrading.
|
|
|
444
509
|
|
|
445
510
|
Copyright 2026 Dipesh Tharu Mahato.
|
|
446
511
|
|
|
447
|
-
AgentLoop is licensed under the [Apache License 2.0](LICENSE). Dependencies retain
|
|
448
|
-
their own terms; see [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md).
|
|
512
|
+
AgentLoop is licensed under the [Apache License 2.0](https://github.com/dipeshbabu/agentloop/blob/main/LICENSE). Dependencies retain
|
|
513
|
+
their own terms; see [https://github.com/dipeshbabu/agentloop/blob/main/THIRD_PARTY_LICENSES.md](https://github.com/dipeshbabu/agentloop/blob/main/THIRD_PARTY_LICENSES.md).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<h1 align="center">
|
|
2
2
|
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/agentloop-logo-dark.svg">
|
|
4
|
-
<img src="docs/assets/agentloop-logo-light.svg" alt="AgentLoop" width="440">
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/agentloop-logo-dark.svg">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/agentloop-logo-light.svg" alt="AgentLoop" width="440">
|
|
5
5
|
</picture>
|
|
6
6
|
</h1>
|
|
7
7
|
|
|
@@ -15,15 +15,17 @@
|
|
|
15
15
|
<a href="https://pypi.org/project/agentloop-profiler/"><img src="https://img.shields.io/pypi/v/agentloop-profiler.svg?cacheSeconds=300" alt="PyPI"></a>
|
|
16
16
|
<a href="https://pepy.tech/projects/agentloop-profiler"><img src="https://static.pepy.tech/badge/agentloop-profiler/month" alt="Downloads/month"></a>
|
|
17
17
|
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11%2B-3776AB.svg" alt="Python 3.11 or newer"></a>
|
|
18
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License: Apache-2.0"></a>
|
|
18
|
+
<a href="https://github.com/dipeshbabu/agentloop/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License: Apache-2.0"></a>
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<p align="center">
|
|
22
|
+
<a href="https://dipeshbabu.github.io/agentloop/">Documentation</a> ·
|
|
22
23
|
<a href="#quickstart">Quickstart</a> ·
|
|
24
|
+
<a href="#guided-optimization">Improve an agent</a> ·
|
|
23
25
|
<a href="#record-your-own-run">Trace your code</a> ·
|
|
24
26
|
<a href="#compare-before-and-after">Compare runs</a> ·
|
|
25
27
|
<a href="#framework-integrations">Integrations</a> ·
|
|
26
|
-
<a href="
|
|
28
|
+
<a href="https://dipeshbabu.github.io/agentloop/FIRST_USE/">Guide</a>
|
|
27
29
|
</p>
|
|
28
30
|
|
|
29
31
|
AgentLoop is a local profiler for AI agents and decision pipelines. It records
|
|
@@ -36,7 +38,7 @@ code without a hosted account or database. A dashboard, HTTP API, and shared
|
|
|
36
38
|
storage are available as optional components.
|
|
37
39
|
|
|
38
40
|
For Node.js and browser applications, the source checkout includes a
|
|
39
|
-
[TypeScript SDK](sdk/typescript/README.md) with native tracing and an API v1 client.
|
|
41
|
+
[TypeScript SDK](https://github.com/dipeshbabu/agentloop/blob/main/sdk/typescript/README.md) with native tracing and an API v1 client.
|
|
40
42
|
It has no runtime dependencies and has not yet been published to npm.
|
|
41
43
|
|
|
42
44
|
## Quickstart
|
|
@@ -63,6 +65,63 @@ For an isolated install, create an environment with `python -m venv .venv`, then
|
|
|
63
65
|
activate it with `source .venv/bin/activate` on Linux/macOS or
|
|
64
66
|
`.\.venv\Scripts\Activate.ps1` in Windows PowerShell before installing the package.
|
|
65
67
|
|
|
68
|
+
## Guided optimization
|
|
69
|
+
|
|
70
|
+
Requires AgentLoop 0.2.0 or newer. Upgrade with
|
|
71
|
+
`python -m pip install --upgrade agentloop-profiler` and check the installed version
|
|
72
|
+
with `python -m pip show agentloop-profiler`.
|
|
73
|
+
The example runs locally.
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
agentloop improve init --out agentloop-demo
|
|
77
|
+
cd agentloop-demo
|
|
78
|
+
python agentloop_runner.py --check
|
|
79
|
+
agentloop improve capture --out baseline -- python agentloop_runner.py
|
|
80
|
+
agentloop improve start --baseline baseline/capture.json --out optimization
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Read `optimization/plan.md`. It ranks findings using the existing evidence,
|
|
84
|
+
quality-risk and estimated-benefit inputs, and separates observations from
|
|
85
|
+
assumptions and missing evidence. In `agentloop_example.py`, replace the repeated
|
|
86
|
+
lookup in `answer()` with:
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
value = lookup_note(key)
|
|
90
|
+
return {"notes": [value] * 3}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Then capture the same tasks and check the actual result:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
agentloop improve capture --out candidate -- python agentloop_runner.py
|
|
97
|
+
agentloop improve finish --session optimization/session.json --candidate candidate/capture.json --change "Reuse one lookup per request" --out results
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Open `results/report.html`. The generated example runs real local CPU work on
|
|
101
|
+
fictional notes; it is labeled synthetic. Its timings describe this example only.
|
|
102
|
+
A faster answer that fails the frozen correctness checks is rejected with exit
|
|
103
|
+
code 1. Failed attempts and unknown costs remain in the report.
|
|
104
|
+
|
|
105
|
+
To connect your application, run `agentloop improve init --agent my_agent:answer`
|
|
106
|
+
in its project directory. The generated adapter supports synchronous and async
|
|
107
|
+
Python callables. Replace the example task inputs and expected outputs with
|
|
108
|
+
independent checks for your agent, and keep your model and tool instrumentation.
|
|
109
|
+
Initialization refuses to overwrite existing files. Read the generated
|
|
110
|
+
`AGENTLOOP.md` and [onboarding guide](https://dipeshbabu.github.io/agentloop/GUIDED_OPTIMIZATION/).
|
|
111
|
+
|
|
112
|
+
A small [Hermes case study](https://dipeshbabu.github.io/agentloop/HERMES_OPTIMIZATION_CASE/) retained six passing
|
|
113
|
+
matched comparisons: model calls fell from 12 to 6 and mean task latency from
|
|
114
|
+
14.52s to 7.41s. An earlier faster JSON-only candidate failed an independent answer
|
|
115
|
+
check and was rejected. These controlled repository questions establish example
|
|
116
|
+
behavior; they do not establish production savings or general agent performance.
|
|
117
|
+
|
|
118
|
+
The [validation guide](https://dipeshbabu.github.io/agentloop/GUIDED_VALIDATION/) runs repository, retrieval and
|
|
119
|
+
tool-heavy pilot/held-out comparisons with offline fixtures or a pinned local
|
|
120
|
+
model. It retains incorrect controls, negative outcomes and tracing overhead
|
|
121
|
+
observations. See [remaining adoption and measurement gaps](https://dipeshbabu.github.io/agentloop/ADOPTION_GAPS/).
|
|
122
|
+
Its [first real local-model run](https://dipeshbabu.github.io/agentloop/GUIDED_LOCAL_MODEL_CASE/) rejected the
|
|
123
|
+
candidate: only 3 of 12 held-out comparisons passed every required gate.
|
|
124
|
+
|
|
66
125
|
## Record your own run
|
|
67
126
|
|
|
68
127
|
Save this as `example_agent.py`. It traces local functions and saves their output
|
|
@@ -105,10 +164,13 @@ usage from an arbitrary return value.
|
|
|
105
164
|
|
|
106
165
|
Saving `metadata["output"]` is an explicit choice in this example. Review the
|
|
107
166
|
inputs, outputs, errors, and metadata you retain before sharing real traces.
|
|
108
|
-
See [trace retention](
|
|
167
|
+
See [trace retention](https://dipeshbabu.github.io/agentloop/TRACE_RETENTION/) for capture controls.
|
|
109
168
|
|
|
110
169
|
## Inspect findings
|
|
111
170
|
|
|
171
|
+
For a fixed task set, use the [guided workflow](#guided-optimization) to capture
|
|
172
|
+
executions, review a recommendation, apply a change and verify it.
|
|
173
|
+
|
|
112
174
|
Start with `analyze` to see metrics, findings, and suggested changes together.
|
|
113
175
|
Findings link to the affected spans and describe the evidence and assumptions
|
|
114
176
|
behind each suggestion. A repeated tool name, for example, does not prove that
|
|
@@ -122,9 +184,9 @@ its calls are safe to run concurrently.
|
|
|
122
184
|
| `agentloop patch --path runs/research_agent.json --repo .` | Generate a repository patch plan for manual review. |
|
|
123
185
|
|
|
124
186
|
Optimization savings are predictions. Change one thing, record another run, and
|
|
125
|
-
measure the result. See [finding rules](
|
|
126
|
-
[parallelization evidence](
|
|
127
|
-
[estimator provenance](
|
|
187
|
+
measure the result. See [finding rules](https://dipeshbabu.github.io/agentloop/FINDING_RULES/),
|
|
188
|
+
[parallelization evidence](https://dipeshbabu.github.io/agentloop/PARALLELIZATION/), and
|
|
189
|
+
[estimator provenance](https://dipeshbabu.github.io/agentloop/ESTIMATORS/) for how suggestions are derived.
|
|
128
190
|
|
|
129
191
|
## Compare before and after
|
|
130
192
|
|
|
@@ -151,9 +213,9 @@ nonzero when a required gate fails. `replay` evaluates saved evidence; your
|
|
|
151
213
|
application supplies both runs.
|
|
152
214
|
|
|
153
215
|
Use representative tasks and repeated runs before drawing broader conclusions.
|
|
154
|
-
For experiments across tasks and conditions, see [paired studies](
|
|
155
|
-
and the [research guide](
|
|
156
|
-
[intervention ledger](
|
|
216
|
+
For experiments across tasks and conditions, see [paired studies](https://dipeshbabu.github.io/agentloop/STUDIES/)
|
|
217
|
+
and the [research guide](https://dipeshbabu.github.io/agentloop/RESEARCH/). The
|
|
218
|
+
[intervention ledger](https://dipeshbabu.github.io/agentloop/INTERVENTIONS/) links predictions to measured results.
|
|
157
219
|
|
|
158
220
|
### Quality gates
|
|
159
221
|
|
|
@@ -181,10 +243,10 @@ or read `metadata.output`; the last model call's output text is another supporte
|
|
|
181
243
|
source when captured.
|
|
182
244
|
|
|
183
245
|
Built-in scorers include `exact_match`, `contains`, bounded `glob`, `required_fields`,
|
|
184
|
-
and `json_subset`. [Structured quality fixtures](
|
|
246
|
+
and `json_subset`. [Structured quality fixtures](https://dipeshbabu.github.io/agentloop/STRUCTURED_QUALITY/) cover
|
|
185
247
|
classification, routing, extraction, and other decision outputs. A `custom` scorer
|
|
186
248
|
executes a trusted local Python function; the HTTP API rejects custom scorers.
|
|
187
|
-
See [scorer migration notes](
|
|
249
|
+
See [scorer migration notes](https://dipeshbabu.github.io/agentloop/UPGRADING/#quality-scorer-names) for renamed checks.
|
|
188
250
|
|
|
189
251
|
Once you have both runs, use your fixtures in a CI gate:
|
|
190
252
|
|
|
@@ -195,7 +257,7 @@ agentloop ci --baseline runs/baseline.json --candidate runs/candidate.json --qua
|
|
|
195
257
|
Every candidate case must pass. Optional `--min-quality-score` thresholds also
|
|
196
258
|
apply to the average score. Invalid fixture suites fail closed. `ci` writes a
|
|
197
259
|
Markdown report and exits nonzero when a required gate fails. See
|
|
198
|
-
[CI setup](
|
|
260
|
+
[CI setup](https://dipeshbabu.github.io/agentloop/CI/) for comparing your application's artifacts in pull requests.
|
|
199
261
|
|
|
200
262
|
## Understand the results
|
|
201
263
|
|
|
@@ -209,8 +271,8 @@ Markdown report and exits nonzero when a required gate fails. See
|
|
|
209
271
|
|
|
210
272
|
Cost gates can be `indeterminate` when pricing or usable usage is missing. This
|
|
211
273
|
does not fail the default cost gate; a positive `--min-cost-improvement-pct`
|
|
212
|
-
requires verifiable improvement. See [pricing](
|
|
213
|
-
[trace compatibility](
|
|
274
|
+
requires verifiable improvement. See [pricing](https://dipeshbabu.github.io/agentloop/PRICING/) and
|
|
275
|
+
[trace compatibility](https://dipeshbabu.github.io/agentloop/TRACE_SCHEMA/).
|
|
214
276
|
|
|
215
277
|
Rule failures remain visible and mark analysis incomplete. CI requires complete
|
|
216
278
|
analysis before recommending a merge. Keep your Markdown renderer's safe mode or
|
|
@@ -232,7 +294,7 @@ gate. Run `agentloop COMMAND --help` to see its output options and thresholds.
|
|
|
232
294
|
|
|
233
295
|
| Source | Integration path |
|
|
234
296
|
| --- | --- |
|
|
235
|
-
| Custom Python agents and pipelines | Decorators, context managers, and [workflow annotations](
|
|
297
|
+
| Custom Python agents and pipelines | Decorators, context managers, and [workflow annotations](https://dipeshbabu.github.io/agentloop/WORKFLOW_TRACING/). |
|
|
236
298
|
| OpenAI SDK | Wrap a client or callable to capture calls, streams, and reported usage. |
|
|
237
299
|
| OpenAI Agents SDK | Attach an AgentLoop tracing processor. |
|
|
238
300
|
| LangGraph | Instrument the builder before adding nodes, then wrap the compiled runnable. |
|
|
@@ -242,20 +304,23 @@ gate. Run `agentloop COMMAND --help` to see its output options and thresholds.
|
|
|
242
304
|
|
|
243
305
|
Adapters are included in version 0.1.0. Install the framework's own SDK separately
|
|
244
306
|
when needed; `python -m pip install "agentloop-profiler[instrumentation]"` includes
|
|
245
|
-
the OpenAI Python SDK. Follow the [integration guide](
|
|
307
|
+
the OpenAI Python SDK. Follow the [integration guide](https://dipeshbabu.github.io/agentloop/INTEGRATIONS/) for
|
|
246
308
|
setup, supported behavior, and streaming lifecycle requirements.
|
|
247
309
|
|
|
248
|
-
[Hermes Agent tracing](
|
|
310
|
+
[Hermes Agent tracing](https://dipeshbabu.github.io/agentloop/HERMES/) is included in AgentLoop 0.1.1 and newer.
|
|
249
311
|
Export its dependency-free directory plugin with `agentloop hermes export-plugin`,
|
|
250
312
|
enable it in your Hermes profile, and analyze the native turn traces it writes.
|
|
251
|
-
Output capture is off by default
|
|
313
|
+
Output capture is off by default. AgentLoop 0.2.0 supports Hermes
|
|
314
|
+
`>=0.21.6,<0.24`, with 0.21.6 hook-contract coverage and pinned 0.22.7/0.23.1
|
|
315
|
+
host conformance across eight scenarios. Exact pins and validation commands
|
|
316
|
+
appear in the [runtime pilot](https://dipeshbabu.github.io/agentloop/HERMES_RUNTIME_PILOT/).
|
|
252
317
|
|
|
253
|
-
For telemetry you already export, [onboarding](
|
|
254
|
-
before analysis. The [interoperability guide](
|
|
318
|
+
For telemetry you already export, [onboarding](https://dipeshbabu.github.io/agentloop/ONBOARDING/) validates capture
|
|
319
|
+
before analysis. The [interoperability guide](https://dipeshbabu.github.io/agentloop/INTEROPERABILITY_READINESS/)
|
|
255
320
|
covers Harbor ATIF/jobs, Omnigent sessions, bounded OTLP JSONL, offline capability
|
|
256
321
|
probes, and cross-harness comparisons. These imports work without upstream
|
|
257
322
|
runtimes or credentials. For classifiers and decision pipelines, start with
|
|
258
|
-
[AI execution profiling](
|
|
323
|
+
[AI execution profiling](https://dipeshbabu.github.io/agentloop/AI_EXECUTION_PROFILING/).
|
|
259
324
|
|
|
260
325
|
## How AgentLoop fits your stack
|
|
261
326
|
|
|
@@ -268,15 +333,15 @@ code changes.
|
|
|
268
333
|
<summary>View the workflow diagrams</summary>
|
|
269
334
|
|
|
270
335
|
<picture>
|
|
271
|
-
<source media="(max-width: 600px)" srcset="docs/assets/workflow-comparison-mobile.svg">
|
|
272
|
-
<source media="(prefers-reduced-motion: reduce)" srcset="docs/assets/workflow-comparison.svg">
|
|
273
|
-
<img src="docs/assets/workflow-comparison.gif" width="100%" alt="Without AgentLoop, application-specific timers, usage parsing, retry analysis, and output checks produce separate reports. AgentLoop combines captured execution evidence into tracing, analysis, and replay reports.">
|
|
336
|
+
<source media="(max-width: 600px)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/workflow-comparison-mobile.svg">
|
|
337
|
+
<source media="(prefers-reduced-motion: reduce)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/workflow-comparison.svg">
|
|
338
|
+
<img src="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/workflow-comparison.gif" width="100%" alt="Without AgentLoop, application-specific timers, usage parsing, retry analysis, and output checks produce separate reports. AgentLoop combines captured execution evidence into tracing, analysis, and replay reports.">
|
|
274
339
|
</picture>
|
|
275
340
|
|
|
276
341
|
<picture>
|
|
277
|
-
<source media="(max-width: 600px)" srcset="docs/assets/framework-comparison-mobile.svg">
|
|
278
|
-
<source media="(prefers-reduced-motion: reduce)" srcset="docs/assets/framework-comparison.svg">
|
|
279
|
-
<img src="docs/assets/framework-comparison.gif" width="100%" alt="Your application executes models and tools. Decorators and adapters export trace JSON. Analyze produces metrics and findings; replay compares the baseline and candidate with your quality fixtures.">
|
|
342
|
+
<source media="(max-width: 600px)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/framework-comparison-mobile.svg">
|
|
343
|
+
<source media="(prefers-reduced-motion: reduce)" srcset="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/framework-comparison.svg">
|
|
344
|
+
<img src="https://raw.githubusercontent.com/dipeshbabu/agentloop/main/docs/assets/framework-comparison.gif" width="100%" alt="Your application executes models and tools. Decorators and adapters export trace JSON. Analyze produces metrics and findings; replay compares the baseline and candidate with your quality fixtures.">
|
|
280
345
|
</picture>
|
|
281
346
|
|
|
282
347
|
</details>
|
|
@@ -297,8 +362,8 @@ Use `store-trace` to load your own files. Storage uses SQLite by default and als
|
|
|
297
362
|
supports Postgres. The optional HTTP API serves project-scoped traces and reports
|
|
298
363
|
through `/v1` endpoints.
|
|
299
364
|
|
|
300
|
-
See [dashboard setup](
|
|
301
|
-
and [production deployment](
|
|
365
|
+
See [dashboard setup](https://dipeshbabu.github.io/agentloop/DASHBOARD/), [API versioning](https://dipeshbabu.github.io/agentloop/API_VERSIONING/),
|
|
366
|
+
and [production deployment](https://dipeshbabu.github.io/agentloop/PRODUCTION/) for configuration and authentication.
|
|
302
367
|
|
|
303
368
|
## Other installation options
|
|
304
369
|
|
|
@@ -326,13 +391,13 @@ where the examples show `agentloop`.
|
|
|
326
391
|
<summary>Download and verify a standalone executable</summary>
|
|
327
392
|
|
|
328
393
|
Download the executable and `SHA256SUMS` from the same release. These examples use
|
|
329
|
-
version 0.
|
|
394
|
+
version 0.2.0. Change the version when choosing another release.
|
|
330
395
|
|
|
331
396
|
Linux (Bash):
|
|
332
397
|
|
|
333
398
|
```bash
|
|
334
399
|
set -euo pipefail
|
|
335
|
-
version=0.
|
|
400
|
+
version=0.2.0
|
|
336
401
|
asset="agentloop-v${version}-linux-x86_64"
|
|
337
402
|
curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/${asset}"
|
|
338
403
|
curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/SHA256SUMS"
|
|
@@ -349,7 +414,7 @@ chmod +x "$asset"
|
|
|
349
414
|
Windows PowerShell:
|
|
350
415
|
|
|
351
416
|
```powershell
|
|
352
|
-
$Version = "0.
|
|
417
|
+
$Version = "0.2.0"
|
|
353
418
|
$Asset = "agentloop-v$Version-windows-x86_64.exe"
|
|
354
419
|
Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/$Asset" -OutFile agentloop.exe
|
|
355
420
|
Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/SHA256SUMS" -OutFile SHA256SUMS
|
|
@@ -371,13 +436,13 @@ are ad-hoc signed but not notarized; Gatekeeper may require approval on first la
|
|
|
371
436
|
## Help and contributions
|
|
372
437
|
|
|
373
438
|
Run `agentloop --help` for all commands, or `agentloop COMMAND --help` for one command.
|
|
374
|
-
The [first-use guide](
|
|
439
|
+
The [first-use guide](https://dipeshbabu.github.io/agentloop/FIRST_USE/) walks through the analysis workflow.
|
|
375
440
|
|
|
376
|
-
- [Support](SUPPORT.md) and [issue forms](https://github.com/dipeshbabu/agentloop/issues/new/choose): questions, bugs, and feature requests.
|
|
377
|
-
- [Contributing](CONTRIBUTING.md): development setup and required checks.
|
|
378
|
-
- [Changelog](CHANGELOG.md), [upgrade guide](
|
|
379
|
-
- [Security](SECURITY.md): private vulnerability reports.
|
|
380
|
-
- [Governance](GOVERNANCE.md) and [Code of Conduct](CODE_OF_CONDUCT.md): project decisions and participation.
|
|
441
|
+
- [Support](https://github.com/dipeshbabu/agentloop/blob/main/SUPPORT.md) and [issue forms](https://github.com/dipeshbabu/agentloop/issues/new/choose): questions, bugs, and feature requests.
|
|
442
|
+
- [Contributing](https://github.com/dipeshbabu/agentloop/blob/main/CONTRIBUTING.md): development setup and required checks.
|
|
443
|
+
- [Changelog](https://github.com/dipeshbabu/agentloop/blob/main/CHANGELOG.md), [upgrade guide](https://dipeshbabu.github.io/agentloop/UPGRADING/), and [roadmap](https://dipeshbabu.github.io/agentloop/ROADMAP/): releases, compatibility, and planned work.
|
|
444
|
+
- [Security](https://github.com/dipeshbabu/agentloop/blob/main/SECURITY.md): private vulnerability reports.
|
|
445
|
+
- [Governance](https://github.com/dipeshbabu/agentloop/blob/main/GOVERNANCE.md) and [Code of Conduct](https://github.com/dipeshbabu/agentloop/blob/main/CODE_OF_CONDUCT.md): project decisions and participation.
|
|
381
446
|
|
|
382
447
|
AgentLoop is under active pre-1.0 development. Pin a tagged release when you need
|
|
383
448
|
a fixed version, and check the changelog before upgrading.
|
|
@@ -386,5 +451,5 @@ a fixed version, and check the changelog before upgrading.
|
|
|
386
451
|
|
|
387
452
|
Copyright 2026 Dipesh Tharu Mahato.
|
|
388
453
|
|
|
389
|
-
AgentLoop is licensed under the [Apache License 2.0](LICENSE). Dependencies retain
|
|
390
|
-
their own terms; see [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md).
|
|
454
|
+
AgentLoop is licensed under the [Apache License 2.0](https://github.com/dipeshbabu/agentloop/blob/main/LICENSE). Dependencies retain
|
|
455
|
+
their own terms; see [https://github.com/dipeshbabu/agentloop/blob/main/THIRD_PARTY_LICENSES.md](https://github.com/dipeshbabu/agentloop/blob/main/THIRD_PARTY_LICENSES.md).
|