agentloop-profiler 0.1.1__tar.gz → 0.2.0__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.
Files changed (327) hide show
  1. {agentloop_profiler-0.1.1/agentloop_profiler.egg-info → agentloop_profiler-0.2.0}/PKG-INFO +71 -7
  2. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/README.md +68 -4
  3. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/THIRD_PARTY_LICENSES.md +12 -0
  4. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/cli.py +2 -0
  5. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/entrypoint.py +1 -0
  6. agentloop_profiler-0.2.0/agentloop/improvement.py +642 -0
  7. agentloop_profiler-0.2.0/agentloop/improvement_cli.py +141 -0
  8. agentloop_profiler-0.2.0/agentloop/improvement_init.py +243 -0
  9. agentloop_profiler-0.2.0/agentloop/improvement_report.py +317 -0
  10. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/hermes.py +1 -1
  11. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/hermes_recorder.py +2 -1
  12. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/patches.py +14 -1
  13. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/replay.py +20 -0
  14. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/rules.py +11 -4
  15. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/version.py +1 -1
  16. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0/agentloop_profiler.egg-info}/PKG-INFO +71 -7
  17. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop_profiler.egg-info/SOURCES.txt +14 -0
  18. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/pyproject.toml +7 -3
  19. agentloop_profiler-0.2.0/tests/test_docs_site.py +61 -0
  20. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_estimates.py +1 -0
  21. agentloop_profiler-0.2.0/tests/test_guided_validation.py +97 -0
  22. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_hermes_integration.py +11 -0
  23. agentloop_profiler-0.2.0/tests/test_hermes_replay_capture.py +45 -0
  24. agentloop_profiler-0.2.0/tests/test_hermes_repository_example.py +48 -0
  25. agentloop_profiler-0.2.0/tests/test_hermes_runtime_evidence.py +98 -0
  26. agentloop_profiler-0.2.0/tests/test_improvement.py +343 -0
  27. agentloop_profiler-0.2.0/tests/test_improvement_init.py +266 -0
  28. agentloop_profiler-0.2.0/tests/test_instrumentation_measurement.py +87 -0
  29. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_patch_plan.py +1 -1
  30. agentloop_profiler-0.2.0/tests/test_patch_source_scope.py +26 -0
  31. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_release_workflows.py +3 -1
  32. agentloop_profiler-0.2.0/tests/test_retry_recommendations.py +76 -0
  33. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/LICENSE +0 -0
  34. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/__init__.py +0 -0
  35. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/ablation_protocol.py +0 -0
  36. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/ablations.py +0 -0
  37. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/aggregate_cli.py +0 -0
  38. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/aggregate_stats.py +0 -0
  39. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/aggregates.py +0 -0
  40. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/audit.py +0 -0
  41. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/autoinstrument.py +0 -0
  42. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/batch_experiments.py +0 -0
  43. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/batching.py +0 -0
  44. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/budget_types.py +0 -0
  45. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/budgets.py +0 -0
  46. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/calibration.py +0 -0
  47. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/checkpoint_state.py +0 -0
  48. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/checkpoint_store.py +0 -0
  49. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/ci.py +0 -0
  50. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/cli_paths.py +0 -0
  51. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/client.py +0 -0
  52. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/completion.py +0 -0
  53. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/completion_types.py +0 -0
  54. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/config.py +0 -0
  55. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/context_controls.py +0 -0
  56. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/context_experiments.py +0 -0
  57. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/context_types.py +0 -0
  58. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/costs.py +0 -0
  59. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/cursor_validation.py +0 -0
  60. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/decorators.py +0 -0
  61. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/demo.py +0 -0
  62. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/doctor.py +0 -0
  63. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/drift.py +0 -0
  64. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/drift_cli.py +0 -0
  65. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/drift_types.py +0 -0
  66. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/drift_windows.py +0 -0
  67. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/estimates.py +0 -0
  68. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/events.py +0 -0
  69. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/experiment_artifacts.py +0 -0
  70. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/experiment_observations.py +0 -0
  71. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/experiment_reports.py +0 -0
  72. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/experiment_types.py +0 -0
  73. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/experiments.py +0 -0
  74. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/exporters.py +0 -0
  75. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/finding_benchmark_types.py +0 -0
  76. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/finding_benchmarks.py +0 -0
  77. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/findings.py +0 -0
  78. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/graph.py +0 -0
  79. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/harness.py +0 -0
  80. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/harness_bench/__init__.py +0 -0
  81. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/harness_bench/cli.py +0 -0
  82. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/harness_bench/drivers.py +0 -0
  83. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/harness_bench/offline.py +0 -0
  84. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/harness_evidence.py +0 -0
  85. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/harness_usage.py +0 -0
  86. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/html_report.py +0 -0
  87. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/__init__.py +0 -0
  88. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/crewai.py +0 -0
  89. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/harbor/__init__.py +0 -0
  90. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/harbor/atif.py +0 -0
  91. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/harbor/atif_validation.py +0 -0
  92. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/harbor/cli.py +0 -0
  93. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/harbor/manifest.py +0 -0
  94. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/harbor/trial_evidence.py +0 -0
  95. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/harbor/trials.py +0 -0
  96. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/harbor/verifier.py +0 -0
  97. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/hermes_cli.py +0 -0
  98. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/langgraph.py +0 -0
  99. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/langgraph_harness.py +0 -0
  100. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/langgraph_recovery.py +0 -0
  101. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/omnigent/__init__.py +0 -0
  102. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/omnigent/cli.py +0 -0
  103. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/omnigent/evidence.py +0 -0
  104. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/omnigent/telemetry.py +0 -0
  105. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/openai.py +0 -0
  106. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/openai_agents.py +0 -0
  107. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/sdk.py +0 -0
  108. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/integrations/vercel_ai.py +0 -0
  109. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/__init__.py +0 -0
  110. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/artifacts.py +0 -0
  111. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/cli.py +0 -0
  112. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/cohort_evidence.py +0 -0
  113. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/cohorts.py +0 -0
  114. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/contracts.py +0 -0
  115. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/coordination.py +0 -0
  116. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/evidence.py +0 -0
  117. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/otlp_jsonl.py +0 -0
  118. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/otlp_validation.py +0 -0
  119. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/registry.py +0 -0
  120. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interoperability/validation.py +0 -0
  121. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/intervention_service.py +0 -0
  122. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/intervention_store.py +0 -0
  123. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/interventions.py +0 -0
  124. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/issues.py +0 -0
  125. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/judgment_adapters.py +0 -0
  126. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/judgment_benchmark_types.py +0 -0
  127. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/judgment_benchmarks.py +0 -0
  128. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/judgment_types.py +0 -0
  129. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/judgment_views.py +0 -0
  130. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/judgments.py +0 -0
  131. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/loop_guards.py +0 -0
  132. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/loop_types.py +0 -0
  133. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/markdown.py +0 -0
  134. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/metrics.py +0 -0
  135. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/migrations.py +0 -0
  136. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/model_routing.py +0 -0
  137. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/onboarding.py +0 -0
  138. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/operations.py +0 -0
  139. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/optimizer.py +0 -0
  140. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/otel.py +0 -0
  141. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/otel_ids.py +0 -0
  142. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/otel_semantics.py +0 -0
  143. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/parallelism.py +0 -0
  144. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/plan_export.py +0 -0
  145. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/policy_promotion.py +0 -0
  146. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/promotion_evidence.py +0 -0
  147. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/promotion_types.py +0 -0
  148. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/quality.py +0 -0
  149. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/ranking.py +0 -0
  150. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/recovery_evidence.py +0 -0
  151. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/retention.py +0 -0
  152. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/retention_types.py +0 -0
  153. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/reuse_experiments.py +0 -0
  154. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/routing_checks.py +0 -0
  155. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/routing_types.py +0 -0
  156. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/runtime.py +0 -0
  157. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/savings.py +0 -0
  158. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/scheduling_plan.py +0 -0
  159. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/scheduling_types.py +0 -0
  160. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/schema.py +0 -0
  161. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/semantic_rules.py +0 -0
  162. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/semantic_waste.py +0 -0
  163. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/semantic_waste_types.py +0 -0
  164. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/server.py +0 -0
  165. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/store.py +0 -0
  166. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/structural_experiments.py +0 -0
  167. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/structural_types.py +0 -0
  168. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/structured_quality.py +0 -0
  169. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/studies.py +0 -0
  170. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/study_statistics.py +0 -0
  171. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/substitution_evidence.py +0 -0
  172. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/substitution_export.py +0 -0
  173. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/substitution_reports.py +0 -0
  174. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/substitution_types.py +0 -0
  175. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/substitutions.py +0 -0
  176. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/timing.py +0 -0
  177. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/tokens.py +0 -0
  178. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/tool_scheduling.py +0 -0
  179. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/trace_sources.py +0 -0
  180. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/tracer.py +0 -0
  181. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/value.py +0 -0
  182. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/workflow_types.py +0 -0
  183. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop/workflows.py +0 -0
  184. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop_profiler.egg-info/dependency_links.txt +0 -0
  185. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop_profiler.egg-info/entry_points.txt +0 -0
  186. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop_profiler.egg-info/requires.txt +0 -0
  187. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/agentloop_profiler.egg-info/top_level.txt +0 -0
  188. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/dashboard/__init__.py +0 -0
  189. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/dashboard/app.py +0 -0
  190. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/dashboard/streamlit_compat.py +0 -0
  191. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/dashboard/trace_upload.py +0 -0
  192. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/dashboard/value_view.py +0 -0
  193. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/setup.cfg +0 -0
  194. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_ablations.py +0 -0
  195. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_aggregates.py +0 -0
  196. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_api_versioning.py +0 -0
  197. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_batch_data_pipeline.py +0 -0
  198. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_budgets.py +0 -0
  199. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_bump_version.py +0 -0
  200. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_calibration.py +0 -0
  201. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_capability_registry.py +0 -0
  202. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_checkpoint_recovery.py +0 -0
  203. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_ci_command.py +0 -0
  204. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_ci_evidence.py +0 -0
  205. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_cli_output_paths.py +0 -0
  206. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_cli_store_commands.py +0 -0
  207. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_cli_trace_inputs.py +0 -0
  208. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_client.py +0 -0
  209. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_client_transport.py +0 -0
  210. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_completion.py +0 -0
  211. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_context_controls.py +0 -0
  212. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_context_reuse_experiments.py +0 -0
  213. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_context_study.py +0 -0
  214. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_costs.py +0 -0
  215. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_crewai_integration.py +0 -0
  216. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_cursor_server.py +0 -0
  217. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_cursor_shape_validation.py +0 -0
  218. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_dashboard_input_validation.py +0 -0
  219. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_dashboard_quality.py +0 -0
  220. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_dashboard_semantic_waste.py +0 -0
  221. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_dashboard_structured_quality.py +0 -0
  222. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_dashboard_trace_upload.py +0 -0
  223. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_dashboard_value_view.py +0 -0
  224. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_dashboard_workflows.py +0 -0
  225. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_decorators.py +0 -0
  226. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_demo_cli.py +0 -0
  227. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_dependabot_config.py +0 -0
  228. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_diagnosis_api.py +0 -0
  229. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_distribution_metadata.py +0 -0
  230. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_doctor_autoinstrument.py +0 -0
  231. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_drift.py +0 -0
  232. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_email_workflow.py +0 -0
  233. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_empirical_calibration.py +0 -0
  234. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_enforcement_conformance.py +0 -0
  235. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_evidence_workflow.py +0 -0
  236. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_experiments.py +0 -0
  237. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_exporters.py +0 -0
  238. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_external_cohorts.py +0 -0
  239. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_finding_benchmarks.py +0 -0
  240. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_finding_identity.py +0 -0
  241. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_finding_rules.py +0 -0
  242. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_first_use_cli.py +0 -0
  243. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_graph.py +0 -0
  244. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_harbor_atif.py +0 -0
  245. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_harbor_trials.py +0 -0
  246. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_harness.py +0 -0
  247. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_harness_bench.py +0 -0
  248. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_harness_error_usage.py +0 -0
  249. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_harness_evidence.py +0 -0
  250. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_html_report.py +0 -0
  251. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_incident_triage.py +0 -0
  252. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_integration_conformance.py +0 -0
  253. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_interoperability_contracts.py +0 -0
  254. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_interventions.py +0 -0
  255. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_issues.py +0 -0
  256. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_judgment_adapters.py +0 -0
  257. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_judgment_benchmarks.py +0 -0
  258. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_judgment_evidence.py +0 -0
  259. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_judgment_provider_optional.py +0 -0
  260. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_judgments.py +0 -0
  261. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_langgraph_conformance.py +0 -0
  262. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_langgraph_harness.py +0 -0
  263. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_langgraph_integration.py +0 -0
  264. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_langgraph_recovery.py +0 -0
  265. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_loop_guards.py +0 -0
  266. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_markdown.py +0 -0
  267. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_markdown_exporters.py +0 -0
  268. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_marketplace_workflow.py +0 -0
  269. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_metrics.py +0 -0
  270. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_migrations.py +0 -0
  271. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_model_batching.py +0 -0
  272. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_model_routing.py +0 -0
  273. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_multiagent_coordination.py +0 -0
  274. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_non_agent_study.py +0 -0
  275. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_omnigent_telemetry.py +0 -0
  276. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_onboarding.py +0 -0
  277. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_openai_agents_integration.py +0 -0
  278. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_openai_integration.py +0 -0
  279. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_operations.py +0 -0
  280. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_optimizer.py +0 -0
  281. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_otel_ids.py +0 -0
  282. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_otel_interop.py +0 -0
  283. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_otlp_jsonl.py +0 -0
  284. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_parallelization_evidence.py +0 -0
  285. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_payment_review.py +0 -0
  286. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_policy_promotion.py +0 -0
  287. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_python_support.py +0 -0
  288. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_quality.py +0 -0
  289. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_ranking.py +0 -0
  290. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_real_agent_study.py +0 -0
  291. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_real_calibration_study.py +0 -0
  292. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_real_harness_study.py +0 -0
  293. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_remote_cli_credentials.py +0 -0
  294. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_replay.py +0 -0
  295. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_repository_policy_traversal.py +0 -0
  296. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_research_example.py +0 -0
  297. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_retention.py +0 -0
  298. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_routing_study.py +0 -0
  299. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_rule_error_privacy.py +0 -0
  300. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_runtime.py +0 -0
  301. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_savings_aggregation.py +0 -0
  302. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_scheduling_study.py +0 -0
  303. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_semantic_findings.py +0 -0
  304. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_semantic_waste.py +0 -0
  305. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_server.py +0 -0
  306. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_standalone_notices.py +0 -0
  307. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_store.py +0 -0
  308. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_store_contract.py +0 -0
  309. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_streaming_inventory.py +0 -0
  310. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_streamlit_compat.py +0 -0
  311. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_structural_experiments.py +0 -0
  312. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_structured_quality.py +0 -0
  313. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_structured_quality_evidence.py +0 -0
  314. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_studies.py +0 -0
  315. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_substitutions.py +0 -0
  316. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_telemetry_conformance.py +0 -0
  317. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_timing.py +0 -0
  318. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_token_provenance.py +0 -0
  319. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_tool_scheduling.py +0 -0
  320. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_trace_context.py +0 -0
  321. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_trace_failure_recording.py +0 -0
  322. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_trace_schema.py +0 -0
  323. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_usefulness_benchmark.py +0 -0
  324. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_value.py +0 -0
  325. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_vercel_ai_integration.py +0 -0
  326. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_workflow_storage.py +0 -0
  327. {agentloop_profiler-0.1.1 → agentloop_profiler-0.2.0}/tests/test_workflows.py +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentloop-profiler
3
- Version: 0.1.1
3
+ Version: 0.2.0
4
4
  Summary: Profiler and optimization layer for AI agent execution graphs
5
- Author: Dipesh Babu
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.com/dipeshbabu/agentloop#readme
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
@@ -77,7 +77,9 @@ Dynamic: license-file
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> ·
@@ -121,6 +123,62 @@ 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 `agentloop --version`.
130
+ The example runs locally.
131
+
132
+ ```bash
133
+ agentloop improve init --out agentloop-demo
134
+ cd agentloop-demo
135
+ python agentloop_runner.py --check
136
+ agentloop improve capture --out baseline -- python agentloop_runner.py
137
+ agentloop improve start --baseline baseline/capture.json --out optimization
138
+ ```
139
+
140
+ Read `optimization/plan.md`. It ranks findings using the existing evidence,
141
+ quality-risk and estimated-benefit inputs, and separates observations from
142
+ assumptions and missing evidence. In `agentloop_example.py`, replace the repeated
143
+ lookup in `answer()` with:
144
+
145
+ ```python
146
+ value = lookup_note(key)
147
+ return {"notes": [value] * 3}
148
+ ```
149
+
150
+ Then capture the same tasks and check the actual result:
151
+
152
+ ```bash
153
+ agentloop improve capture --out candidate -- python agentloop_runner.py
154
+ agentloop improve finish --session optimization/session.json --candidate candidate/capture.json --change "Reuse one lookup per request" --out results
155
+ ```
156
+
157
+ Open `results/report.html`. The generated example runs real local CPU work on
158
+ fictional notes; it is labeled synthetic. Its timings describe this example only.
159
+ A faster answer that fails the frozen correctness checks is rejected with exit
160
+ code 1. Failed attempts and unknown costs remain in the report.
161
+
162
+ To connect your application, run `agentloop improve init --agent my_agent:answer`
163
+ in its project directory. The generated adapter supports synchronous and async
164
+ Python callables. Replace the example task inputs and expected outputs with
165
+ independent checks for your agent, and keep your model and tool instrumentation.
166
+ Initialization refuses to overwrite existing files. Read the generated
167
+ `AGENTLOOP.md` and [onboarding guide](docs/GUIDED_OPTIMIZATION.md).
168
+
169
+ A small [Hermes case study](docs/HERMES_OPTIMIZATION_CASE.md) retained six passing
170
+ matched comparisons: model calls fell from 12 to 6 and mean task latency from
171
+ 14.52s to 7.41s. An earlier faster JSON-only candidate failed an independent answer
172
+ check and was rejected. These controlled repository questions establish example
173
+ behavior; they do not establish production savings or general agent performance.
174
+
175
+ The [validation guide](docs/GUIDED_VALIDATION.md) runs repository, retrieval and
176
+ tool-heavy pilot/held-out comparisons with offline fixtures or a pinned local
177
+ model. It retains incorrect controls, negative outcomes and tracing overhead
178
+ observations. See [remaining adoption and measurement gaps](docs/ADOPTION_GAPS.md).
179
+ Its [first real local-model run](docs/GUIDED_LOCAL_MODEL_CASE.md) rejected the
180
+ candidate: only 3 of 12 held-out comparisons passed every required gate.
181
+
124
182
  ## Record your own run
125
183
 
126
184
  Save this as `example_agent.py`. It traces local functions and saves their output
@@ -167,6 +225,9 @@ See [trace retention](docs/TRACE_RETENTION.md) for capture controls.
167
225
 
168
226
  ## Inspect findings
169
227
 
228
+ For a fixed task set, use the [guided workflow](#guided-optimization) to capture
229
+ executions, review a recommendation, apply a change and verify it.
230
+
170
231
  Start with `analyze` to see metrics, findings, and suggested changes together.
171
232
  Findings link to the affected spans and describe the evidence and assumptions
172
233
  behind each suggestion. A repeated tool name, for example, does not prove that
@@ -306,7 +367,10 @@ setup, supported behavior, and streaming lifecycle requirements.
306
367
  [Hermes Agent tracing](docs/HERMES.md) is included in AgentLoop 0.1.1 and newer.
307
368
  Export its dependency-free directory plugin with `agentloop hermes export-plugin`,
308
369
  enable it in your Hermes profile, and analyze the native turn traces it writes.
309
- Output capture is off by default; the tested host contract is Hermes 0.21.6.
370
+ Output capture is off by default. AgentLoop 0.2.0 supports Hermes
371
+ `>=0.21.6,<0.24`, with 0.21.6 hook-contract coverage and pinned 0.22.7/0.23.1
372
+ host conformance across eight scenarios. Exact pins and validation commands
373
+ appear in the [runtime pilot](docs/HERMES_RUNTIME_PILOT.md).
310
374
 
311
375
  For telemetry you already export, [onboarding](docs/ONBOARDING.md) validates capture
312
376
  before analysis. The [interoperability guide](docs/INTEROPERABILITY_READINESS.md)
@@ -384,13 +448,13 @@ where the examples show `agentloop`.
384
448
  <summary>Download and verify a standalone executable</summary>
385
449
 
386
450
  Download the executable and `SHA256SUMS` from the same release. These examples use
387
- version 0.1.1; change the version when choosing another release.
451
+ version 0.2.0. Change the version when choosing another release.
388
452
 
389
453
  Linux (Bash):
390
454
 
391
455
  ```bash
392
456
  set -euo pipefail
393
- version=0.1.1
457
+ version=0.2.0
394
458
  asset="agentloop-v${version}-linux-x86_64"
395
459
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/${asset}"
396
460
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/SHA256SUMS"
@@ -407,7 +471,7 @@ chmod +x "$asset"
407
471
  Windows PowerShell:
408
472
 
409
473
  ```powershell
410
- $Version = "0.1.1"
474
+ $Version = "0.2.0"
411
475
  $Asset = "agentloop-v$Version-windows-x86_64.exe"
412
476
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/$Asset" -OutFile agentloop.exe
413
477
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/SHA256SUMS" -OutFile SHA256SUMS
@@ -19,7 +19,9 @@
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> ·
@@ -63,6 +65,62 @@ 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 `agentloop --version`.
72
+ The example runs locally.
73
+
74
+ ```bash
75
+ agentloop improve init --out agentloop-demo
76
+ cd agentloop-demo
77
+ python agentloop_runner.py --check
78
+ agentloop improve capture --out baseline -- python agentloop_runner.py
79
+ agentloop improve start --baseline baseline/capture.json --out optimization
80
+ ```
81
+
82
+ Read `optimization/plan.md`. It ranks findings using the existing evidence,
83
+ quality-risk and estimated-benefit inputs, and separates observations from
84
+ assumptions and missing evidence. In `agentloop_example.py`, replace the repeated
85
+ lookup in `answer()` with:
86
+
87
+ ```python
88
+ value = lookup_note(key)
89
+ return {"notes": [value] * 3}
90
+ ```
91
+
92
+ Then capture the same tasks and check the actual result:
93
+
94
+ ```bash
95
+ agentloop improve capture --out candidate -- python agentloop_runner.py
96
+ agentloop improve finish --session optimization/session.json --candidate candidate/capture.json --change "Reuse one lookup per request" --out results
97
+ ```
98
+
99
+ Open `results/report.html`. The generated example runs real local CPU work on
100
+ fictional notes; it is labeled synthetic. Its timings describe this example only.
101
+ A faster answer that fails the frozen correctness checks is rejected with exit
102
+ code 1. Failed attempts and unknown costs remain in the report.
103
+
104
+ To connect your application, run `agentloop improve init --agent my_agent:answer`
105
+ in its project directory. The generated adapter supports synchronous and async
106
+ Python callables. Replace the example task inputs and expected outputs with
107
+ independent checks for your agent, and keep your model and tool instrumentation.
108
+ Initialization refuses to overwrite existing files. Read the generated
109
+ `AGENTLOOP.md` and [onboarding guide](docs/GUIDED_OPTIMIZATION.md).
110
+
111
+ A small [Hermes case study](docs/HERMES_OPTIMIZATION_CASE.md) retained six passing
112
+ matched comparisons: model calls fell from 12 to 6 and mean task latency from
113
+ 14.52s to 7.41s. An earlier faster JSON-only candidate failed an independent answer
114
+ check and was rejected. These controlled repository questions establish example
115
+ behavior; they do not establish production savings or general agent performance.
116
+
117
+ The [validation guide](docs/GUIDED_VALIDATION.md) runs repository, retrieval and
118
+ tool-heavy pilot/held-out comparisons with offline fixtures or a pinned local
119
+ model. It retains incorrect controls, negative outcomes and tracing overhead
120
+ observations. See [remaining adoption and measurement gaps](docs/ADOPTION_GAPS.md).
121
+ Its [first real local-model run](docs/GUIDED_LOCAL_MODEL_CASE.md) rejected the
122
+ candidate: only 3 of 12 held-out comparisons passed every required gate.
123
+
66
124
  ## Record your own run
67
125
 
68
126
  Save this as `example_agent.py`. It traces local functions and saves their output
@@ -109,6 +167,9 @@ See [trace retention](docs/TRACE_RETENTION.md) for capture controls.
109
167
 
110
168
  ## Inspect findings
111
169
 
170
+ For a fixed task set, use the [guided workflow](#guided-optimization) to capture
171
+ executions, review a recommendation, apply a change and verify it.
172
+
112
173
  Start with `analyze` to see metrics, findings, and suggested changes together.
113
174
  Findings link to the affected spans and describe the evidence and assumptions
114
175
  behind each suggestion. A repeated tool name, for example, does not prove that
@@ -248,7 +309,10 @@ setup, supported behavior, and streaming lifecycle requirements.
248
309
  [Hermes Agent tracing](docs/HERMES.md) is included in AgentLoop 0.1.1 and newer.
249
310
  Export its dependency-free directory plugin with `agentloop hermes export-plugin`,
250
311
  enable it in your Hermes profile, and analyze the native turn traces it writes.
251
- Output capture is off by default; the tested host contract is Hermes 0.21.6.
312
+ Output capture is off by default. AgentLoop 0.2.0 supports Hermes
313
+ `>=0.21.6,<0.24`, with 0.21.6 hook-contract coverage and pinned 0.22.7/0.23.1
314
+ host conformance across eight scenarios. Exact pins and validation commands
315
+ appear in the [runtime pilot](docs/HERMES_RUNTIME_PILOT.md).
252
316
 
253
317
  For telemetry you already export, [onboarding](docs/ONBOARDING.md) validates capture
254
318
  before analysis. The [interoperability guide](docs/INTEROPERABILITY_READINESS.md)
@@ -326,13 +390,13 @@ where the examples show `agentloop`.
326
390
  <summary>Download and verify a standalone executable</summary>
327
391
 
328
392
  Download the executable and `SHA256SUMS` from the same release. These examples use
329
- version 0.1.1; change the version when choosing another release.
393
+ version 0.2.0. Change the version when choosing another release.
330
394
 
331
395
  Linux (Bash):
332
396
 
333
397
  ```bash
334
398
  set -euo pipefail
335
- version=0.1.1
399
+ version=0.2.0
336
400
  asset="agentloop-v${version}-linux-x86_64"
337
401
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/${asset}"
338
402
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/SHA256SUMS"
@@ -349,7 +413,7 @@ chmod +x "$asset"
349
413
  Windows PowerShell:
350
414
 
351
415
  ```powershell
352
- $Version = "0.1.1"
416
+ $Version = "0.2.0"
353
417
  $Asset = "agentloop-v$Version-windows-x86_64.exe"
354
418
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/$Asset" -OutFile agentloop.exe
355
419
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/SHA256SUMS" -OutFile SHA256SUMS
@@ -72,6 +72,18 @@ components under MPL-2.0, including Certifi and tqdm. Consult `uv.lock` and the
72
72
  installed distributions for the complete version-specific dependency graph,
73
73
  license texts, copyright notices, and attribution requirements.
74
74
 
75
+ ## TypeScript development tools
76
+
77
+ The SDK ships with no runtime dependencies. Its development environment pins
78
+ TypeScript 7.0.2 under Apache-2.0, Playwright 1.65.0 under Apache-2.0, and esbuild
79
+ 0.28.2 under MIT. Playwright's downloaded Chromium has its own bundled third-party
80
+ notices. These browser and build tools are used for package validation and are
81
+ excluded from the SDK tarball. The lockfile retains version and integrity pins.
82
+
83
+ See the [TypeScript license](https://github.com/microsoft/TypeScript/blob/main/LICENSE.txt),
84
+ [Playwright license](https://github.com/microsoft/playwright/blob/main/LICENSE), and
85
+ [esbuild license](https://github.com/evanw/esbuild/blob/main/LICENSE.md).
86
+
75
87
  ## Documentation graphics
76
88
 
77
89
  The README diagrams include Python, OpenAI, LangGraph, and CrewAI logos from
@@ -28,6 +28,7 @@ from agentloop.drift_cli import drift_app
28
28
  from agentloop.exporters import export_report_markdown
29
29
  from agentloop.findings import build_diagnosis, diagnosis_to_markdown
30
30
  from agentloop.harness_bench.cli import harness_app
31
+ from agentloop.improvement_cli import improve_app
31
32
  from agentloop.integrations.harbor.cli import harbor_app
32
33
  from agentloop.integrations.hermes_cli import hermes_app
33
34
  from agentloop.integrations.omnigent.cli import omnigent_app
@@ -74,6 +75,7 @@ app.add_typer(hermes_app, name="hermes")
74
75
  app.add_typer(telemetry_app, name="telemetry")
75
76
  app.add_typer(omnigent_app, name="omnigent")
76
77
  app.add_typer(harness_app, name="harness")
78
+ app.add_typer(improve_app, name="improve")
77
79
 
78
80
 
79
81
  @app.command("onboard")
@@ -51,6 +51,7 @@ def _quickstart_trace() -> AgentTrace:
51
51
  trace.add_event(
52
52
  AgentEvent(
53
53
  event_id=f"evt_quickstart_{index:02d}",
54
+ metadata={"retry_reason": "invalid_output_schema"} if event_type == "retry" else {},
54
55
  run_id=run_id,
55
56
  event_type=event_type,
56
57
  name=name,