agentloop-profiler 0.2.5__tar.gz → 0.2.6__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 (338) hide show
  1. {agentloop_profiler-0.2.5/agentloop_profiler.egg-info → agentloop_profiler-0.2.6}/PKG-INFO +10 -4
  2. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/README.md +9 -3
  3. agentloop_profiler-0.2.6/agentloop/runners/__init__.py +8 -0
  4. agentloop_profiler-0.2.6/agentloop/runners/_common.py +35 -0
  5. agentloop_profiler-0.2.6/agentloop/runners/claude_code.py +269 -0
  6. agentloop_profiler-0.2.6/agentloop/runners/codex.py +256 -0
  7. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/version.py +1 -1
  8. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6/agentloop_profiler.egg-info}/PKG-INFO +10 -4
  9. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop_profiler.egg-info/SOURCES.txt +4 -0
  10. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/pyproject.toml +1 -1
  11. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_claude_code_runner.py +20 -2
  12. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_codex_exec_runner.py +1 -1
  13. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/LICENSE +0 -0
  14. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/THIRD_PARTY_LICENSES.md +0 -0
  15. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/__init__.py +0 -0
  16. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/ablation_protocol.py +0 -0
  17. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/ablations.py +0 -0
  18. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/aggregate_cli.py +0 -0
  19. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/aggregate_stats.py +0 -0
  20. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/aggregates.py +0 -0
  21. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/audit.py +0 -0
  22. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/autoinstrument.py +0 -0
  23. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/batch_experiments.py +0 -0
  24. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/batching.py +0 -0
  25. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/budget_types.py +0 -0
  26. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/budgets.py +0 -0
  27. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/calibration.py +0 -0
  28. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/checkpoint_state.py +0 -0
  29. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/checkpoint_store.py +0 -0
  30. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/ci.py +0 -0
  31. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/cli.py +0 -0
  32. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/cli_paths.py +0 -0
  33. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/client.py +0 -0
  34. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/completion.py +0 -0
  35. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/completion_types.py +0 -0
  36. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/config.py +0 -0
  37. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/context_controls.py +0 -0
  38. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/context_experiments.py +0 -0
  39. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/context_types.py +0 -0
  40. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/costs.py +0 -0
  41. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/cursor_validation.py +0 -0
  42. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/decorators.py +0 -0
  43. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/demo.py +0 -0
  44. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/doctor.py +0 -0
  45. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/drift.py +0 -0
  46. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/drift_cli.py +0 -0
  47. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/drift_types.py +0 -0
  48. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/drift_windows.py +0 -0
  49. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/entrypoint.py +0 -0
  50. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/estimates.py +0 -0
  51. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/events.py +0 -0
  52. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/experiment_artifacts.py +0 -0
  53. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/experiment_observations.py +0 -0
  54. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/experiment_reports.py +0 -0
  55. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/experiment_types.py +0 -0
  56. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/experiments.py +0 -0
  57. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/exporters.py +0 -0
  58. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/finding_benchmark_types.py +0 -0
  59. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/finding_benchmarks.py +0 -0
  60. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/findings.py +0 -0
  61. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/graph.py +0 -0
  62. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/harness.py +0 -0
  63. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/harness_bench/__init__.py +0 -0
  64. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/harness_bench/cli.py +0 -0
  65. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/harness_bench/drivers.py +0 -0
  66. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/harness_bench/offline.py +0 -0
  67. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/harness_evidence.py +0 -0
  68. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/harness_usage.py +0 -0
  69. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/html_report.py +0 -0
  70. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/improvement.py +0 -0
  71. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/improvement_cli.py +0 -0
  72. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/improvement_init.py +0 -0
  73. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/improvement_report.py +0 -0
  74. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/improvement_verifier.py +0 -0
  75. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/__init__.py +0 -0
  76. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/crewai.py +0 -0
  77. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/harbor/__init__.py +0 -0
  78. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/harbor/atif.py +0 -0
  79. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/harbor/atif_validation.py +0 -0
  80. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/harbor/cli.py +0 -0
  81. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/harbor/manifest.py +0 -0
  82. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/harbor/trial_evidence.py +0 -0
  83. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/harbor/trials.py +0 -0
  84. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/harbor/verifier.py +0 -0
  85. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/hermes.py +0 -0
  86. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/hermes_cli.py +0 -0
  87. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/hermes_recorder.py +0 -0
  88. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/langgraph.py +0 -0
  89. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/langgraph_harness.py +0 -0
  90. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/langgraph_recovery.py +0 -0
  91. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/omnigent/__init__.py +0 -0
  92. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/omnigent/cli.py +0 -0
  93. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/omnigent/evidence.py +0 -0
  94. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/omnigent/telemetry.py +0 -0
  95. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/openai.py +0 -0
  96. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/openai_agents.py +0 -0
  97. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/sdk.py +0 -0
  98. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/integrations/vercel_ai.py +0 -0
  99. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/__init__.py +0 -0
  100. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/artifacts.py +0 -0
  101. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/cli.py +0 -0
  102. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/cohort_evidence.py +0 -0
  103. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/cohorts.py +0 -0
  104. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/contracts.py +0 -0
  105. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/coordination.py +0 -0
  106. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/evidence.py +0 -0
  107. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/otlp_jsonl.py +0 -0
  108. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/otlp_validation.py +0 -0
  109. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/registry.py +0 -0
  110. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interoperability/validation.py +0 -0
  111. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/intervention_service.py +0 -0
  112. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/intervention_store.py +0 -0
  113. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/interventions.py +0 -0
  114. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/issues.py +0 -0
  115. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/judgment_adapters.py +0 -0
  116. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/judgment_benchmark_types.py +0 -0
  117. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/judgment_benchmarks.py +0 -0
  118. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/judgment_types.py +0 -0
  119. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/judgment_views.py +0 -0
  120. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/judgments.py +0 -0
  121. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/loop_guards.py +0 -0
  122. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/loop_types.py +0 -0
  123. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/markdown.py +0 -0
  124. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/metrics.py +0 -0
  125. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/migrations.py +0 -0
  126. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/model_routing.py +0 -0
  127. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/onboarding.py +0 -0
  128. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/operations.py +0 -0
  129. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/optimizer.py +0 -0
  130. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/otel.py +0 -0
  131. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/otel_ids.py +0 -0
  132. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/otel_semantics.py +0 -0
  133. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/parallelism.py +0 -0
  134. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/patches.py +0 -0
  135. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/plan_export.py +0 -0
  136. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/policy_promotion.py +0 -0
  137. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/promotion_evidence.py +0 -0
  138. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/promotion_types.py +0 -0
  139. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/quality.py +0 -0
  140. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/ranking.py +0 -0
  141. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/recovery_evidence.py +0 -0
  142. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/repetitions.py +0 -0
  143. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/replay.py +0 -0
  144. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/retention.py +0 -0
  145. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/retention_types.py +0 -0
  146. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/reuse_experiments.py +0 -0
  147. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/routing_checks.py +0 -0
  148. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/routing_types.py +0 -0
  149. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/rules.py +0 -0
  150. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/runtime.py +0 -0
  151. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/savings.py +0 -0
  152. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/scheduling_plan.py +0 -0
  153. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/scheduling_types.py +0 -0
  154. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/schema.py +0 -0
  155. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/semantic_rules.py +0 -0
  156. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/semantic_waste.py +0 -0
  157. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/semantic_waste_types.py +0 -0
  158. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/server.py +0 -0
  159. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/store.py +0 -0
  160. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/structural_experiments.py +0 -0
  161. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/structural_types.py +0 -0
  162. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/structured_quality.py +0 -0
  163. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/studies.py +0 -0
  164. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/study_statistics.py +0 -0
  165. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/substitution_evidence.py +0 -0
  166. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/substitution_export.py +0 -0
  167. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/substitution_reports.py +0 -0
  168. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/substitution_types.py +0 -0
  169. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/substitutions.py +0 -0
  170. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/timing.py +0 -0
  171. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/tokens.py +0 -0
  172. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/tool_scheduling.py +0 -0
  173. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/trace_sources.py +0 -0
  174. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/tracer.py +0 -0
  175. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/value.py +0 -0
  176. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/workflow_types.py +0 -0
  177. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop/workflows.py +0 -0
  178. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop_profiler.egg-info/dependency_links.txt +0 -0
  179. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop_profiler.egg-info/entry_points.txt +0 -0
  180. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop_profiler.egg-info/requires.txt +0 -0
  181. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/agentloop_profiler.egg-info/top_level.txt +0 -0
  182. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/dashboard/__init__.py +0 -0
  183. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/dashboard/app.py +0 -0
  184. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/dashboard/streamlit_compat.py +0 -0
  185. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/dashboard/trace_upload.py +0 -0
  186. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/dashboard/value_view.py +0 -0
  187. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/setup.cfg +0 -0
  188. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_ablations.py +0 -0
  189. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_aggregates.py +0 -0
  190. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_api_versioning.py +0 -0
  191. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_batch_data_pipeline.py +0 -0
  192. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_budgets.py +0 -0
  193. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_bump_version.py +0 -0
  194. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_calibration.py +0 -0
  195. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_capability_registry.py +0 -0
  196. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_checkpoint_recovery.py +0 -0
  197. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_ci_command.py +0 -0
  198. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_ci_evidence.py +0 -0
  199. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_cli_output_paths.py +0 -0
  200. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_cli_store_commands.py +0 -0
  201. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_cli_trace_inputs.py +0 -0
  202. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_client.py +0 -0
  203. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_client_transport.py +0 -0
  204. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_completion.py +0 -0
  205. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_context_controls.py +0 -0
  206. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_context_reuse_experiments.py +0 -0
  207. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_context_study.py +0 -0
  208. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_costs.py +0 -0
  209. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_crewai_integration.py +0 -0
  210. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_cursor_server.py +0 -0
  211. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_cursor_shape_validation.py +0 -0
  212. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_dashboard_input_validation.py +0 -0
  213. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_dashboard_quality.py +0 -0
  214. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_dashboard_semantic_waste.py +0 -0
  215. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_dashboard_structured_quality.py +0 -0
  216. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_dashboard_trace_upload.py +0 -0
  217. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_dashboard_value_view.py +0 -0
  218. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_dashboard_workflows.py +0 -0
  219. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_decorators.py +0 -0
  220. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_demo_cli.py +0 -0
  221. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_dependabot_config.py +0 -0
  222. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_diagnosis_api.py +0 -0
  223. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_distribution_metadata.py +0 -0
  224. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_docs_site.py +0 -0
  225. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_doctor_autoinstrument.py +0 -0
  226. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_drift.py +0 -0
  227. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_email_workflow.py +0 -0
  228. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_empirical_calibration.py +0 -0
  229. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_enforcement_conformance.py +0 -0
  230. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_estimates.py +0 -0
  231. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_evidence_workflow.py +0 -0
  232. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_experiments.py +0 -0
  233. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_exporters.py +0 -0
  234. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_external_cohorts.py +0 -0
  235. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_finding_benchmarks.py +0 -0
  236. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_finding_identity.py +0 -0
  237. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_finding_rules.py +0 -0
  238. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_first_use_cli.py +0 -0
  239. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_graph.py +0 -0
  240. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_guided_validation.py +0 -0
  241. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_guided_verifier.py +0 -0
  242. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_harbor_atif.py +0 -0
  243. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_harbor_trials.py +0 -0
  244. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_harness.py +0 -0
  245. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_harness_bench.py +0 -0
  246. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_harness_error_usage.py +0 -0
  247. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_harness_evidence.py +0 -0
  248. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_hermes_integration.py +0 -0
  249. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_hermes_replay_capture.py +0 -0
  250. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_hermes_repository_example.py +0 -0
  251. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_hermes_runtime_evidence.py +0 -0
  252. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_html_report.py +0 -0
  253. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_improvement.py +0 -0
  254. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_improvement_init.py +0 -0
  255. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_incident_triage.py +0 -0
  256. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_instrumentation_measurement.py +0 -0
  257. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_integration_conformance.py +0 -0
  258. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_interoperability_contracts.py +0 -0
  259. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_interventions.py +0 -0
  260. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_issues.py +0 -0
  261. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_judgment_adapters.py +0 -0
  262. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_judgment_benchmarks.py +0 -0
  263. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_judgment_evidence.py +0 -0
  264. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_judgment_provider_optional.py +0 -0
  265. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_judgments.py +0 -0
  266. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_langgraph_conformance.py +0 -0
  267. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_langgraph_harness.py +0 -0
  268. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_langgraph_integration.py +0 -0
  269. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_langgraph_recovery.py +0 -0
  270. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_loop_guards.py +0 -0
  271. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_markdown.py +0 -0
  272. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_markdown_exporters.py +0 -0
  273. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_marketplace_workflow.py +0 -0
  274. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_metrics.py +0 -0
  275. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_migrations.py +0 -0
  276. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_model_batching.py +0 -0
  277. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_model_routing.py +0 -0
  278. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_multiagent_coordination.py +0 -0
  279. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_non_agent_study.py +0 -0
  280. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_omnigent_telemetry.py +0 -0
  281. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_onboarding.py +0 -0
  282. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_openai_agents_integration.py +0 -0
  283. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_openai_integration.py +0 -0
  284. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_operations.py +0 -0
  285. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_optimizer.py +0 -0
  286. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_otel_ids.py +0 -0
  287. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_otel_interop.py +0 -0
  288. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_otlp_jsonl.py +0 -0
  289. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_parallelization_evidence.py +0 -0
  290. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_patch_plan.py +0 -0
  291. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_patch_source_scope.py +0 -0
  292. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_payment_review.py +0 -0
  293. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_policy_promotion.py +0 -0
  294. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_published_readme.py +0 -0
  295. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_python_support.py +0 -0
  296. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_quality.py +0 -0
  297. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_ranking.py +0 -0
  298. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_real_agent_study.py +0 -0
  299. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_real_calibration_study.py +0 -0
  300. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_real_harness_study.py +0 -0
  301. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_release_workflows.py +0 -0
  302. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_remote_cli_credentials.py +0 -0
  303. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_repetitions.py +0 -0
  304. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_replay.py +0 -0
  305. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_repository_policy_traversal.py +0 -0
  306. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_research_example.py +0 -0
  307. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_retention.py +0 -0
  308. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_retry_recommendations.py +0 -0
  309. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_routing_study.py +0 -0
  310. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_rule_error_privacy.py +0 -0
  311. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_runtime.py +0 -0
  312. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_savings_aggregation.py +0 -0
  313. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_scheduling_study.py +0 -0
  314. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_semantic_findings.py +0 -0
  315. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_semantic_waste.py +0 -0
  316. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_server.py +0 -0
  317. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_standalone_notices.py +0 -0
  318. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_store.py +0 -0
  319. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_store_contract.py +0 -0
  320. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_streaming_inventory.py +0 -0
  321. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_streamlit_compat.py +0 -0
  322. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_structural_experiments.py +0 -0
  323. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_structured_quality.py +0 -0
  324. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_structured_quality_evidence.py +0 -0
  325. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_studies.py +0 -0
  326. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_substitutions.py +0 -0
  327. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_telemetry_conformance.py +0 -0
  328. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_timing.py +0 -0
  329. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_token_provenance.py +0 -0
  330. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_tool_scheduling.py +0 -0
  331. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_trace_context.py +0 -0
  332. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_trace_failure_recording.py +0 -0
  333. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_trace_schema.py +0 -0
  334. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_usefulness_benchmark.py +0 -0
  335. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_value.py +0 -0
  336. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_vercel_ai_integration.py +0 -0
  337. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_workflow_storage.py +0 -0
  338. {agentloop_profiler-0.2.5 → agentloop_profiler-0.2.6}/tests/test_workflows.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentloop-profiler
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: Profiler and optimization layer for AI agent execution graphs
5
5
  Author: Dipesh Tharu Mahato
6
6
  License-Expression: Apache-2.0
@@ -165,6 +165,12 @@ baseline, the frozen session, an interleaved before/after capture and the
165
165
  verdict in one command. Pass the unchanged runner as repeated `--before-arg`
166
166
  values and the changed runner after `--`. See
167
167
  [comparing two versions in one command](https://dipeshbabu.github.io/agentloop/GUIDED_OPTIMIZATION/#compare-two-versions-in-one-command).
168
+ Built-in runners for [OpenAI Codex CLI](https://dipeshbabu.github.io/agentloop/CODEX/)
169
+ (`python -m agentloop.runners.codex`) and
170
+ [Claude Code](https://dipeshbabu.github.io/agentloop/CLAUDE_CODE/)
171
+ (`python -m agentloop.runners.claude_code`) turn each coding-agent run into a
172
+ native trace, so the same workflow compares models, instructions or settings
173
+ for those agents.
168
174
 
169
175
  To connect your application, run `agentloop improve init --agent my_agent:answer`
170
176
  in its project directory. The generated adapter supports synchronous and async
@@ -455,13 +461,13 @@ where the examples show `agentloop`.
455
461
  <summary>Download and verify a standalone executable</summary>
456
462
 
457
463
  Download the executable and `SHA256SUMS` from the same release. These examples use
458
- version 0.2.0. Change the version when choosing another release.
464
+ version 0.2.6. Change the version when choosing another release.
459
465
 
460
466
  Linux (Bash):
461
467
 
462
468
  ```bash
463
469
  set -euo pipefail
464
- version=0.2.0
470
+ version=0.2.6
465
471
  asset="agentloop-v${version}-linux-x86_64"
466
472
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/${asset}"
467
473
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/SHA256SUMS"
@@ -478,7 +484,7 @@ chmod +x "$asset"
478
484
  Windows PowerShell:
479
485
 
480
486
  ```powershell
481
- $Version = "0.2.0"
487
+ $Version = "0.2.6"
482
488
  $Asset = "agentloop-v$Version-windows-x86_64.exe"
483
489
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/$Asset" -OutFile agentloop.exe
484
490
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/SHA256SUMS" -OutFile SHA256SUMS
@@ -107,6 +107,12 @@ baseline, the frozen session, an interleaved before/after capture and the
107
107
  verdict in one command. Pass the unchanged runner as repeated `--before-arg`
108
108
  values and the changed runner after `--`. See
109
109
  [comparing two versions in one command](https://dipeshbabu.github.io/agentloop/GUIDED_OPTIMIZATION/#compare-two-versions-in-one-command).
110
+ Built-in runners for [OpenAI Codex CLI](https://dipeshbabu.github.io/agentloop/CODEX/)
111
+ (`python -m agentloop.runners.codex`) and
112
+ [Claude Code](https://dipeshbabu.github.io/agentloop/CLAUDE_CODE/)
113
+ (`python -m agentloop.runners.claude_code`) turn each coding-agent run into a
114
+ native trace, so the same workflow compares models, instructions or settings
115
+ for those agents.
110
116
 
111
117
  To connect your application, run `agentloop improve init --agent my_agent:answer`
112
118
  in its project directory. The generated adapter supports synchronous and async
@@ -397,13 +403,13 @@ where the examples show `agentloop`.
397
403
  <summary>Download and verify a standalone executable</summary>
398
404
 
399
405
  Download the executable and `SHA256SUMS` from the same release. These examples use
400
- version 0.2.0. Change the version when choosing another release.
406
+ version 0.2.6. Change the version when choosing another release.
401
407
 
402
408
  Linux (Bash):
403
409
 
404
410
  ```bash
405
411
  set -euo pipefail
406
- version=0.2.0
412
+ version=0.2.6
407
413
  asset="agentloop-v${version}-linux-x86_64"
408
414
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/${asset}"
409
415
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/SHA256SUMS"
@@ -420,7 +426,7 @@ chmod +x "$asset"
420
426
  Windows PowerShell:
421
427
 
422
428
  ```powershell
423
- $Version = "0.2.0"
429
+ $Version = "0.2.6"
424
430
  $Asset = "agentloop-v$Version-windows-x86_64.exe"
425
431
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/$Asset" -OutFile agentloop.exe
426
432
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/SHA256SUMS" -OutFile SHA256SUMS
@@ -0,0 +1,8 @@
1
+ """Command-line runners that turn coding-agent runs into native AgentLoop traces.
2
+
3
+ Each runner reads one ``agentloop improve capture`` request on stdin, runs the
4
+ agent CLI and writes a trace to the requested path:
5
+
6
+ - ``python -m agentloop.runners.codex`` runs OpenAI Codex CLI (``codex exec``);
7
+ - ``python -m agentloop.runners.claude_code`` runs Claude Code (``claude -p``).
8
+ """
@@ -0,0 +1,35 @@
1
+ """Helpers shared by the coding-agent runners."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import time
6
+
7
+ OUTPUT_LIMIT = 4096
8
+
9
+
10
+ def task_prompt(task_input, instructions):
11
+ """Return the prompt for a task input, with optional shared instructions first."""
12
+ if isinstance(task_input, dict):
13
+ task_input = task_input.get("prompt") or task_input.get("question")
14
+ if not isinstance(task_input, str) or not task_input.strip():
15
+ raise ValueError("Task input must be a prompt string or an object with 'prompt'")
16
+ return f"{instructions.strip()}\n\n{task_input}" if instructions else task_input
17
+
18
+
19
+ def clip(value):
20
+ """Bound recorded text so traces stay small."""
21
+ if not isinstance(value, str):
22
+ return None
23
+ return value if len(value) <= OUTPUT_LIMIT else value[:OUTPUT_LIMIT] + "\n[truncated]"
24
+
25
+
26
+ def read_stream(process, lines):
27
+ """Timestamp each output line on arrival; agent events carry no timestamps."""
28
+ for raw in process.stdout:
29
+ lines.append((time.perf_counter(), raw))
30
+
31
+
32
+ def split_passthrough(argv):
33
+ """Split runner options from arguments passed unchanged to the agent CLI."""
34
+ split = argv.index("--") if "--" in argv else len(argv)
35
+ return argv[:split], argv[split + 1 :]
@@ -0,0 +1,269 @@
1
+ """Run Claude Code on guided tasks and record a native AgentLoop trace.
2
+
3
+ The runner receives the standard `agentloop improve capture` JSON request on
4
+ stdin. It runs ``claude -p --output-format stream-json --verbose`` with only
5
+ read-only tools allowed, timestamps each JSON line as it arrives, and converts
6
+ the stream into AgentLoop events:
7
+
8
+ - each Claude API response (one ``message.id``) is one model span. It starts at
9
+ the session start or when the last tool result arrived, and ends when the last
10
+ part of that response arrives, so text and tool requests in one response are
11
+ one model call;
12
+ - each ``tool_use`` block is a tool span that ends when its ``tool_result``
13
+ arrives, keeping errors reported by the tool;
14
+ - Claude reports usage per response. Input tokens include cache reads and cache
15
+ writes, which are also recorded separately, with ``usage_scope = "request"``.
16
+
17
+ The ``result`` event's text is the task answer that the frozen checks score.
18
+ Arguments after ``--`` are passed to ``claude`` unchanged, so a candidate can
19
+ change the model, system prompt or settings without editing this file.
20
+
21
+ Example:
22
+
23
+ agentloop improve capture --tasks examples/codex_repository_tasks.json \
24
+ --out runs/claude-baseline -- python -m agentloop.runners.claude_code --cd .
25
+ """
26
+
27
+ from __future__ import annotations
28
+
29
+ import argparse
30
+ import json
31
+ import shutil
32
+ import subprocess # nosec B404 - runs the operator's Claude Code CLI with explicit argv
33
+ import sys
34
+ import threading
35
+ import time
36
+ import uuid
37
+ from datetime import datetime, timedelta, timezone
38
+ from pathlib import Path
39
+
40
+ from agentloop.events import AgentEvent
41
+ from agentloop.runners._common import clip, read_stream, split_passthrough, task_prompt
42
+ from agentloop.tokens import PROVIDER
43
+ from agentloop.tracer import AgentTrace
44
+
45
+ READ_ONLY_TOOLS = ("Read", "Grep", "Glob")
46
+
47
+
48
+ def result_text(content):
49
+ """Tool results are a string or a list of content blocks."""
50
+ if isinstance(content, str):
51
+ return content
52
+ if isinstance(content, list):
53
+ return "\n".join(
54
+ block.get("text", "")
55
+ for block in content
56
+ if isinstance(block, dict) and block.get("type") == "text"
57
+ )
58
+ return None
59
+
60
+
61
+ def convert(lines, *, run_id, root_id, origin, clock, model):
62
+ def at(moment):
63
+ return (origin + timedelta(seconds=moment - clock)).isoformat()
64
+
65
+ events, responses, open_tools = [], {}, {}
66
+ output, failure, details, boundary = None, None, {}, clock
67
+ for moment, raw in lines:
68
+ try:
69
+ event = json.loads(raw)
70
+ except ValueError:
71
+ continue
72
+ kind = event.get("type")
73
+ if kind == "system" and event.get("subtype") == "init":
74
+ boundary = moment
75
+ model = model or event.get("model")
76
+ details["claude_session_id"] = event.get("session_id")
77
+ elif kind == "assistant":
78
+ message = event.get("message") or {}
79
+ key = message.get("id") or f"anonymous-{len(responses)}"
80
+ span = responses.get(key)
81
+ if span is None:
82
+ span = AgentEvent(
83
+ event_id="evt_" + uuid.uuid4().hex,
84
+ run_id=run_id,
85
+ parent_id=root_id,
86
+ event_type="model_call",
87
+ name="claude_response",
88
+ model=message.get("model") or model,
89
+ started_at=at(boundary),
90
+ ended_at=at(moment),
91
+ duration_ms=(moment - boundary) * 1000,
92
+ metadata={"content_types": [], "start": boundary},
93
+ )
94
+ responses[key] = span
95
+ events.append(span)
96
+ span.ended_at = at(moment)
97
+ span.duration_ms = (moment - span.metadata["start"]) * 1000
98
+ usage = message.get("usage")
99
+ if isinstance(usage, dict):
100
+ # Each part of a response repeats the same usage: set, never add.
101
+ cache_read = int(usage.get("cache_read_input_tokens") or 0)
102
+ cache_write = int(usage.get("cache_creation_input_tokens") or 0)
103
+ span.input_tokens = int(usage.get("input_tokens") or 0) + cache_read + cache_write
104
+ span.output_tokens = int(usage.get("output_tokens") or 0)
105
+ span.token_provenance = PROVIDER
106
+ span.metadata.update(
107
+ usage_scope="request",
108
+ cached_input_tokens=cache_read,
109
+ cache_creation_input_tokens=cache_write,
110
+ )
111
+ for block in message.get("content") or []:
112
+ if not isinstance(block, dict):
113
+ continue
114
+ span.metadata["content_types"].append(block.get("type"))
115
+ if block.get("type") == "text":
116
+ span.output_text = clip(block.get("text"))
117
+ elif block.get("type") == "tool_use":
118
+ open_tools[block.get("id")] = (moment, block)
119
+ elif kind == "user":
120
+ message = event.get("message") or {}
121
+ for block in message.get("content") or []:
122
+ if not isinstance(block, dict) or block.get("type") != "tool_result":
123
+ continue
124
+ started, request = open_tools.pop(block.get("tool_use_id"), (moment, {}))
125
+ failed = block.get("is_error") is True
126
+ text = result_text(block.get("content"))
127
+ events.append(
128
+ AgentEvent(
129
+ event_id="evt_" + uuid.uuid4().hex,
130
+ run_id=run_id,
131
+ parent_id=root_id,
132
+ event_type="tool_call",
133
+ name=request.get("name") or "tool",
134
+ started_at=at(started),
135
+ ended_at=at(moment),
136
+ duration_ms=(moment - started) * 1000,
137
+ input_text=clip(json.dumps(request.get("input"), sort_keys=True))
138
+ if "input" in request
139
+ else None,
140
+ output_text=clip(text),
141
+ status="error" if failed else "ok",
142
+ error=(clip(text) or "tool error") if failed else None,
143
+ metadata={"claude_tool_use_id": block.get("tool_use_id")},
144
+ )
145
+ )
146
+ boundary = max(boundary, moment)
147
+ elif kind == "result":
148
+ if isinstance(event.get("result"), str):
149
+ output = event["result"]
150
+ if event.get("is_error") or event.get("subtype") not in (None, "success"):
151
+ failure = (
152
+ event.get("result")
153
+ if isinstance(event.get("result"), str) and event.get("result")
154
+ else event.get("subtype") or "Claude Code reported an error"
155
+ )
156
+ details.update(
157
+ claude_num_turns=event.get("num_turns"),
158
+ claude_duration_ms=event.get("duration_ms"),
159
+ claude_duration_api_ms=event.get("duration_api_ms"),
160
+ claude_total_cost_usd=event.get("total_cost_usd"),
161
+ )
162
+ for span in responses.values():
163
+ span.metadata.pop("start", None)
164
+ usage_seen = any(span.token_provenance == PROVIDER for span in responses.values())
165
+ return events, output, usage_seen, failure, details
166
+
167
+
168
+ def run(args, claude_args, request):
169
+ claude = shutil.which(args.claude)
170
+ if claude is None:
171
+ raise SystemExit(f"Cannot find the Claude Code CLI executable {args.claude!r}")
172
+ instructions = args.instructions.read_text(encoding="utf-8") if args.instructions else ""
173
+ prompt = task_prompt(request["input"], instructions)
174
+ command = [
175
+ claude,
176
+ "-p",
177
+ "--output-format",
178
+ "stream-json",
179
+ "--verbose",
180
+ "--allowedTools",
181
+ ",".join(READ_ONLY_TOOLS),
182
+ *claude_args,
183
+ ]
184
+ trace = AgentTrace(
185
+ f"claude code: {request['task_id']}",
186
+ metadata={
187
+ "integration": "claude_code",
188
+ "condition": args.condition,
189
+ "task_id": request["task_id"],
190
+ "repetition": request["repetition"],
191
+ "claude_args": claude_args,
192
+ },
193
+ )
194
+ root_id = "evt_" + uuid.uuid4().hex
195
+ origin, clock = datetime.now(timezone.utc), time.perf_counter()
196
+ process = subprocess.Popen( # nosec B603 - explicit Claude Code argv, no shell
197
+ command,
198
+ cwd=args.cd.resolve(),
199
+ stdin=subprocess.PIPE,
200
+ stdout=subprocess.PIPE,
201
+ stderr=subprocess.PIPE,
202
+ text=True,
203
+ encoding="utf-8",
204
+ errors="replace",
205
+ )
206
+ lines = []
207
+ reader = threading.Thread(target=read_stream, args=(process, lines), daemon=True)
208
+ reader.start()
209
+ stderr = threading.Thread(target=lambda: process.stderr.read(), daemon=True)
210
+ stderr.start()
211
+ process.stdin.write(prompt)
212
+ process.stdin.close()
213
+ returncode = process.wait()
214
+ reader.join()
215
+ ended = time.perf_counter()
216
+ events, output, usage_seen, failure, details = convert(
217
+ lines, run_id=trace.run_id, root_id=root_id, origin=origin, clock=clock, model=args.model
218
+ )
219
+ if returncode != 0 and failure is None:
220
+ failure = f"claude exited with code {returncode}"
221
+ trace.add_event(
222
+ AgentEvent(
223
+ event_id=root_id,
224
+ run_id=trace.run_id,
225
+ event_type="agent_step",
226
+ name="claude_code",
227
+ started_at=origin.isoformat(),
228
+ ended_at=(origin + timedelta(seconds=ended - clock)).isoformat(),
229
+ duration_ms=(ended - clock) * 1000,
230
+ input_text=prompt,
231
+ output_text=clip(output),
232
+ status="error" if failure else "ok",
233
+ error=failure,
234
+ metadata={"operation_kind": "agent", "usage_reported": usage_seen, **details},
235
+ )
236
+ )
237
+ for event in events:
238
+ trace.add_event(event)
239
+ trace.metadata.update(
240
+ output=output.strip() if output is not None else None,
241
+ success=failure is None and output is not None,
242
+ )
243
+ trace.finish()
244
+ trace.export_json(request["trace_path"])
245
+ return 1 if failure else 0
246
+
247
+
248
+ def main():
249
+ parser = argparse.ArgumentParser(
250
+ prog="python -m agentloop.runners.claude_code",
251
+ description=__doc__.splitlines()[0],
252
+ )
253
+ parser.add_argument("--cd", type=Path, default=Path("."), help="Directory Claude Code reads.")
254
+ parser.add_argument("--claude", default="claude", help="Claude Code CLI executable.")
255
+ parser.add_argument("--model", default=None, help="Model passed to Claude Code and recorded.")
256
+ parser.add_argument("--condition", default="unlabelled", help="Label recorded in the trace.")
257
+ parser.add_argument(
258
+ "--instructions", type=Path, default=None, help="Text file prepended to each task prompt."
259
+ )
260
+ own, claude_args = split_passthrough(sys.argv[1:])
261
+ args = parser.parse_args(own)
262
+ if args.model:
263
+ claude_args = ["--model", args.model, *claude_args]
264
+ request = json.loads(sys.stdin.readline())
265
+ raise SystemExit(run(args, claude_args, request))
266
+
267
+
268
+ if __name__ == "__main__":
269
+ main()
@@ -0,0 +1,256 @@
1
+ """Run OpenAI Codex CLI on guided tasks and record a native AgentLoop trace.
2
+
3
+ The runner receives the standard `agentloop improve capture` JSON request on
4
+ stdin. It runs `codex exec --json --ephemeral` in a read-only sandbox, timestamps
5
+ each JSONL event as it arrives, and converts the stream into AgentLoop events:
6
+
7
+ - each shell command, file change, MCP tool call or web search is a tool span;
8
+ - each model round is one model span: it starts at the turn start or when the
9
+ last running tool finished, and ends when the model starts a tool or gives
10
+ its final message, so messages within a round do not count as extra calls;
11
+ - Codex reports token usage once per turn, so the turn total is attached to the
12
+ last model span of that turn with ``usage_scope = "turn_total"``.
13
+
14
+ The final agent message is the task answer that the frozen checks score.
15
+ Arguments after ``--`` are passed to ``codex exec`` unchanged, so a candidate can
16
+ change the model, profile or configuration without editing this file.
17
+
18
+ Example:
19
+
20
+ agentloop improve capture --tasks examples/codex_repository_tasks.json \
21
+ --out runs/codex-baseline -- python -m agentloop.runners.codex --cd .
22
+ """
23
+
24
+ from __future__ import annotations
25
+
26
+ import argparse
27
+ import json
28
+ import shutil
29
+ import subprocess # nosec B404 - runs the operator's Codex CLI with explicit argv
30
+ import sys
31
+ import threading
32
+ import time
33
+ import uuid
34
+ from datetime import datetime, timedelta, timezone
35
+ from pathlib import Path
36
+
37
+ from agentloop.events import AgentEvent
38
+ from agentloop.runners._common import clip, read_stream, split_passthrough, task_prompt
39
+ from agentloop.tokens import PROVIDER, UNAVAILABLE
40
+ from agentloop.tracer import AgentTrace
41
+
42
+ TOOL_ITEMS = {"command_execution", "file_change", "mcp_tool_call", "web_search"}
43
+ MODEL_ITEMS = {"agent_message", "reasoning"}
44
+
45
+
46
+ def convert(lines, *, run_id, root_id, origin, clock, model):
47
+ def at(moment):
48
+ return (origin + timedelta(seconds=moment - clock)).isoformat()
49
+
50
+ events, open_tools, output, usage_seen = [], {}, None, False
51
+ failure, boundary, current, current_start = None, clock, None, clock
52
+
53
+ def model_round(moment, item_type=None, text=None):
54
+ """Open or extend the span for the current model round.
55
+
56
+ A round starts at the turn start or when the last running tool finished
57
+ and lasts until the model starts a tool or gives its final message.
58
+ Messages and reasoning inside one round belong to the same model call.
59
+ """
60
+ nonlocal current, current_start
61
+ if current is None:
62
+ current_start = boundary
63
+ current = AgentEvent(
64
+ event_id="evt_" + uuid.uuid4().hex,
65
+ run_id=run_id,
66
+ parent_id=root_id,
67
+ event_type="model_call",
68
+ name="codex_model_round",
69
+ model=model,
70
+ started_at=at(boundary),
71
+ ended_at=at(moment),
72
+ duration_ms=(moment - boundary) * 1000,
73
+ token_provenance=UNAVAILABLE,
74
+ metadata={"codex_items": []},
75
+ )
76
+ events.append(current)
77
+ else:
78
+ current.ended_at = at(moment)
79
+ current.duration_ms = (moment - current_start) * 1000
80
+ if item_type is not None:
81
+ current.metadata["codex_items"].append(item_type)
82
+ if text is not None:
83
+ current.output_text = clip(text)
84
+
85
+ for moment, raw in lines:
86
+ try:
87
+ event = json.loads(raw)
88
+ except ValueError:
89
+ continue
90
+ kind, item = event.get("type"), event.get("item") or {}
91
+ item_type = item.get("type")
92
+ if kind == "turn.started":
93
+ boundary, current = moment, None
94
+ elif kind == "item.started" and item_type in TOOL_ITEMS:
95
+ if not open_tools and (current is not None or moment > boundary):
96
+ model_round(moment, "tool_call")
97
+ # The round ends when its tool calls start running.
98
+ current = None
99
+ open_tools[item.get("id")] = moment
100
+ elif kind == "item.completed" and item_type in TOOL_ITEMS:
101
+ # Some tool items arrive only on completion; either way the model
102
+ # round that requested them has ended.
103
+ current = None
104
+ started = open_tools.pop(item.get("id"), moment)
105
+ exit_code = item.get("exit_code")
106
+ failed = item.get("status") == "failed" or exit_code not in (None, 0)
107
+ events.append(
108
+ AgentEvent(
109
+ event_id="evt_" + uuid.uuid4().hex,
110
+ run_id=run_id,
111
+ parent_id=root_id,
112
+ event_type="tool_call",
113
+ name="shell" if item_type == "command_execution" else item_type,
114
+ started_at=at(started),
115
+ ended_at=at(moment),
116
+ duration_ms=(moment - started) * 1000,
117
+ input_text=clip(item.get("command") or json.dumps(item.get("changes"))),
118
+ output_text=clip(item.get("aggregated_output")),
119
+ status="error" if failed else "ok",
120
+ error=f"exit code {exit_code}" if failed else None,
121
+ metadata={"codex_item_type": item_type, "exit_code": exit_code},
122
+ )
123
+ )
124
+ boundary = max(boundary, moment)
125
+ elif kind == "item.completed" and item_type in MODEL_ITEMS:
126
+ if open_tools:
127
+ # Reported while tools still run: keep the round open after them.
128
+ boundary = max([boundary, *open_tools.values()])
129
+ model_round(moment, item_type, item.get("text"))
130
+ if item_type == "agent_message":
131
+ output = item.get("text")
132
+ elif kind == "turn.completed":
133
+ usage = event.get("usage") or {}
134
+ if current is None and not any(item.event_type == "model_call" for item in events):
135
+ model_round(moment)
136
+ models = [item for item in events if item.event_type == "model_call"]
137
+ last = models[-1]
138
+ last.input_tokens = int(usage.get("input_tokens") or 0)
139
+ last.output_tokens = int(usage.get("output_tokens") or 0)
140
+ last.token_provenance = PROVIDER
141
+ last.metadata.update(
142
+ usage_scope="turn_total",
143
+ cached_input_tokens=int(usage.get("cached_input_tokens") or 0),
144
+ reasoning_output_tokens=int(usage.get("reasoning_output_tokens") or 0),
145
+ )
146
+ usage_seen = True
147
+ elif kind in {"turn.failed", "error"}:
148
+ detail = event.get("error") or event.get("message") or kind
149
+ failure = detail.get("message", str(detail)) if isinstance(detail, dict) else detail
150
+ return events, output, usage_seen, failure
151
+
152
+
153
+ def run(args, codex_args, request):
154
+ codex = shutil.which(args.codex)
155
+ if codex is None:
156
+ raise SystemExit(f"Cannot find the Codex CLI executable {args.codex!r}")
157
+ instructions = args.instructions.read_text(encoding="utf-8") if args.instructions else ""
158
+ prompt = task_prompt(request["input"], instructions)
159
+ command = [
160
+ codex,
161
+ "exec",
162
+ "--json",
163
+ "--ephemeral",
164
+ "--skip-git-repo-check",
165
+ "--sandbox",
166
+ "read-only",
167
+ "--cd",
168
+ str(args.cd.resolve()),
169
+ *codex_args,
170
+ "-",
171
+ ]
172
+ trace = AgentTrace(
173
+ f"codex exec: {request['task_id']}",
174
+ metadata={
175
+ "integration": "codex_exec",
176
+ "condition": args.condition,
177
+ "task_id": request["task_id"],
178
+ "repetition": request["repetition"],
179
+ "codex_args": codex_args,
180
+ },
181
+ )
182
+ root_id = "evt_" + uuid.uuid4().hex
183
+ origin, clock = datetime.now(timezone.utc), time.perf_counter()
184
+ process = subprocess.Popen( # nosec B603 - explicit Codex argv, no shell
185
+ command,
186
+ stdin=subprocess.PIPE,
187
+ stdout=subprocess.PIPE,
188
+ stderr=subprocess.PIPE,
189
+ text=True,
190
+ encoding="utf-8",
191
+ errors="replace",
192
+ )
193
+ lines = []
194
+ reader = threading.Thread(target=read_stream, args=(process, lines), daemon=True)
195
+ reader.start()
196
+ stderr = threading.Thread(target=lambda: process.stderr.read(), daemon=True)
197
+ stderr.start()
198
+ process.stdin.write(prompt)
199
+ process.stdin.close()
200
+ returncode = process.wait()
201
+ reader.join()
202
+ ended = time.perf_counter()
203
+ events, output, usage_seen, failure = convert(
204
+ lines, run_id=trace.run_id, root_id=root_id, origin=origin, clock=clock, model=args.model
205
+ )
206
+ if returncode != 0 and failure is None:
207
+ failure = f"codex exec exited with code {returncode}"
208
+ trace.add_event(
209
+ AgentEvent(
210
+ event_id=root_id,
211
+ run_id=trace.run_id,
212
+ event_type="agent_step",
213
+ name="codex_exec",
214
+ started_at=origin.isoformat(),
215
+ ended_at=(origin + timedelta(seconds=ended - clock)).isoformat(),
216
+ duration_ms=(ended - clock) * 1000,
217
+ input_text=prompt,
218
+ output_text=clip(output),
219
+ status="error" if failure else "ok",
220
+ error=failure,
221
+ metadata={"operation_kind": "agent", "usage_reported": usage_seen},
222
+ )
223
+ )
224
+ for event in events:
225
+ trace.add_event(event)
226
+ trace.metadata.update(
227
+ output=(output or "").strip() if output is not None else None,
228
+ success=failure is None and output is not None,
229
+ )
230
+ trace.finish()
231
+ trace.export_json(request["trace_path"])
232
+ return 1 if failure else 0
233
+
234
+
235
+ def main():
236
+ parser = argparse.ArgumentParser(
237
+ prog="python -m agentloop.runners.codex",
238
+ description=__doc__.splitlines()[0],
239
+ )
240
+ parser.add_argument("--cd", type=Path, default=Path("."), help="Directory Codex reads.")
241
+ parser.add_argument("--codex", default="codex", help="Codex CLI executable.")
242
+ parser.add_argument("--model", default=None, help="Model label recorded in the trace.")
243
+ parser.add_argument("--condition", default="unlabelled", help="Label recorded in the trace.")
244
+ parser.add_argument(
245
+ "--instructions", type=Path, default=None, help="Text file prepended to each task prompt."
246
+ )
247
+ own, codex_args = split_passthrough(sys.argv[1:])
248
+ args = parser.parse_args(own)
249
+ if args.model:
250
+ codex_args = ["--model", args.model, *codex_args]
251
+ request = json.loads(sys.stdin.readline())
252
+ raise SystemExit(run(args, codex_args, request))
253
+
254
+
255
+ if __name__ == "__main__":
256
+ main()
@@ -1,3 +1,3 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "0.2.5"
3
+ __version__ = "0.2.6"