agentorch 2.0.0__tar.gz → 2.0.2__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 (227) hide show
  1. {agentorch-2.0.0 → agentorch-2.0.2}/PKG-INFO +99 -4
  2. {agentorch-2.0.0 → agentorch-2.0.2}/README.md +98 -3
  3. {agentorch-2.0.0 → agentorch-2.0.2}/agentorch.egg-info/PKG-INFO +99 -4
  4. {agentorch-2.0.0 → agentorch-2.0.2}/agentorch.egg-info/SOURCES.txt +27 -0
  5. {agentorch-2.0.0 → agentorch-2.0.2}/agentorch.egg-info/top_level.txt +0 -2
  6. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/swe_bench/patch_utils.py +39 -0
  7. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/swe_bench/run_devtorch.py +24 -0
  8. agentorch-2.0.2/devtorch_cli/__main__.py +6 -0
  9. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_cli/main.py +170 -2
  10. agentorch-2.0.2/devtorch_core/cloud/__init__.py +1 -0
  11. agentorch-2.0.2/devtorch_core/cloud/client_config.py +270 -0
  12. agentorch-2.0.2/devtorch_core/cloud/client_configs/.claude-opencode-fallback.json +8 -0
  13. agentorch-2.0.2/devtorch_core/cloud/client_configs/.claude-stdio.json +12 -0
  14. agentorch-2.0.2/devtorch_core/cloud/client_configs/.cursor-mcp.json +10 -0
  15. agentorch-2.0.2/devtorch_core/cloud/client_configs/.opencode-bridge.json +12 -0
  16. agentorch-2.0.2/devtorch_core/cloud/client_configs/.opencode.json +14 -0
  17. agentorch-2.0.2/devtorch_core/cloud/client_configs/.vscode-mcp.json +12 -0
  18. agentorch-2.0.2/devtorch_core/cloud/devtorch-mcp-bridge.js +340 -0
  19. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/gateway/__init__.py +2 -0
  20. agentorch-2.0.2/devtorch_core/gateway/key_manager.py +124 -0
  21. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/gateway/metrics_webhook.py +81 -5
  22. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/gateway/policy.py +68 -4
  23. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/gateway/server.py +96 -11
  24. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/gateway/sso.py +95 -17
  25. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/mcp/server.py +113 -0
  26. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/observability/__init__.py +31 -0
  27. agentorch-2.0.2/devtorch_core/observability/datadog.py +157 -0
  28. agentorch-2.0.2/devtorch_core/observability/servicenow.py +147 -0
  29. agentorch-2.0.2/devtorch_core/observability/splunk.py +218 -0
  30. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning_plus/__init__.py +10 -0
  31. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning_plus/augmenter.py +81 -1
  32. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning_plus/config.py +9 -0
  33. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/__init__.py +39 -0
  34. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/api.py +199 -0
  35. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/composer.py +50 -0
  36. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/extractor.py +80 -0
  37. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/models.py +116 -0
  38. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/recorder.py +81 -0
  39. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/relevance.py +59 -0
  40. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/state.py +86 -0
  41. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/store.py +93 -0
  42. {agentorch-2.0.0 → agentorch-2.0.2}/pyproject.toml +8 -1
  43. agentorch-2.0.2/tests/test_cloud_bridge.py +332 -0
  44. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s17b_observability.py +389 -0
  45. agentorch-2.0.2/tests/test_s17b_sso.py +285 -0
  46. agentorch-2.0.2/tests/test_s24_reasoning_plus_learning.py +509 -0
  47. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s7_mcp_hooks.py +5 -2
  48. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s7ent_gateway.py +420 -1
  49. agentorch-2.0.2/tests/test_s7ent_helm.py +296 -0
  50. {agentorch-2.0.0 → agentorch-2.0.2}/MANIFEST.in +0 -0
  51. {agentorch-2.0.0 → agentorch-2.0.2}/agentorch.egg-info/dependency_links.txt +0 -0
  52. {agentorch-2.0.0 → agentorch-2.0.2}/agentorch.egg-info/entry_points.txt +0 -0
  53. {agentorch-2.0.0 → agentorch-2.0.2}/agentorch.egg-info/requires.txt +0 -0
  54. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/hidden_profile/run_baseline.py +0 -0
  55. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/hidden_profile/run_devtorch.py +0 -0
  56. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/hidden_profile/score.py +0 -0
  57. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/swe_bench/compare.py +0 -0
  58. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/swe_bench/context_utils.py +0 -0
  59. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/swe_bench/evaluate.py +0 -0
  60. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/swe_bench/run_baseline.py +0 -0
  61. {agentorch-2.0.0 → agentorch-2.0.2}/benchmarks/swe_bench/seed_gcc.py +0 -0
  62. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_cli/__init__.py +0 -0
  63. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/__init__.py +0 -0
  64. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/aggphi_textual.py +0 -0
  65. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/__init__.py +0 -0
  66. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/base.py +0 -0
  67. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/config.py +0 -0
  68. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/dispatcher.py +0 -0
  69. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/jira.py +0 -0
  70. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/linear.py +0 -0
  71. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/pagerduty.py +0 -0
  72. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/slack.py +0 -0
  73. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/alerts/teams.py +0 -0
  74. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/broadcast/__init__.py +0 -0
  75. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/broadcast/broadcaster.py +0 -0
  76. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/broadcast/watcher.py +0 -0
  77. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/capability.py +0 -0
  78. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/codex/__init__.py +0 -0
  79. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/codex/__main__.py +0 -0
  80. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/codex/capture.py +0 -0
  81. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/codex/proxy.py +0 -0
  82. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/consolidation/__init__.py +0 -0
  83. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/consolidation/synthesizer.py +0 -0
  84. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/consolidation/workflow.py +0 -0
  85. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/dashboard_api.py +0 -0
  86. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/deltaf.py +0 -0
  87. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/disclosure.py +0 -0
  88. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/divergence/__init__.py +0 -0
  89. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/divergence/detector.py +0 -0
  90. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/gcc.py +0 -0
  91. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/github/__init__.py +0 -0
  92. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/github/app.py +0 -0
  93. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/github/comment_builder.py +0 -0
  94. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/github/pat.py +0 -0
  95. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/github/pr_parser.py +0 -0
  96. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/gitlab/__init__.py +0 -0
  97. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/hitl/__init__.py +0 -0
  98. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/hitl/channels.py +0 -0
  99. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/hitl/orchestrator.py +0 -0
  100. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/hooks/__init__.py +0 -0
  101. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/hooks/claude_code.py +0 -0
  102. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/hooks/git_commit.py +0 -0
  103. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/hooks/installer.py +0 -0
  104. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/hooks/runner.py +0 -0
  105. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/identity/__init__.py +0 -0
  106. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/identity/agent.py +0 -0
  107. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/identity/providers.py +0 -0
  108. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/invariants.py +0 -0
  109. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/mcp/__init__.py +0 -0
  110. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/mcp/auth.py +0 -0
  111. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/__init__.py +0 -0
  112. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/aggregate.py +0 -0
  113. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/calibrate.py +0 -0
  114. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/calibration.py +0 -0
  115. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/credibility.py +0 -0
  116. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/dhs.py +0 -0
  117. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/mcs.py +0 -0
  118. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/roi.py +0 -0
  119. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/session_writer.py +0 -0
  120. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/shadow_ai.py +0 -0
  121. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/metrics/sprint_writer.py +0 -0
  122. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/observability/formatter.py +0 -0
  123. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/observability/report.py +0 -0
  124. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/observability/webhook.py +0 -0
  125. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/parser/__init__.py +0 -0
  126. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/parser/blocks.py +0 -0
  127. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/parser/inference.py +0 -0
  128. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/parser/thinking.py +0 -0
  129. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/projects.py +0 -0
  130. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/prompt_artifact.py +0 -0
  131. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/proxy/__init__.py +0 -0
  132. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/proxy/routes/__init__.py +0 -0
  133. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/proxy/routes/anthropic.py +0 -0
  134. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/proxy/routes/gemini.py +0 -0
  135. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/proxy/routes/openai.py +0 -0
  136. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/proxy/server.py +0 -0
  137. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/rdp.py +0 -0
  138. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning/__init__.py +0 -0
  139. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning/entry.py +0 -0
  140. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning/store.py +0 -0
  141. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning_plus/capture.py +0 -0
  142. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning_plus/context.py +0 -0
  143. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/reasoning_plus/prompt.py +0 -0
  144. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/rep.py +0 -0
  145. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/rep_network/__init__.py +0 -0
  146. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/rep_network/merge.py +0 -0
  147. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/rep_network/node.py +0 -0
  148. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/rep_network/server.py +0 -0
  149. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/rep_network/sync.py +0 -0
  150. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/sensitivity.py +0 -0
  151. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/signing.py +0 -0
  152. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/sis.py +0 -0
  153. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/storage.py +0 -0
  154. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/theta.py +0 -0
  155. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/theta_synthesis.py +0 -0
  156. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/variance.py +0 -0
  157. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/wrapper/__init__.py +0 -0
  158. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/wrapper/anthropic.py +0 -0
  159. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/wrapper/base.py +0 -0
  160. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/wrapper/bedrock.py +0 -0
  161. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/wrapper/gemini.py +0 -0
  162. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/wrapper/ollama.py +0 -0
  163. {agentorch-2.0.0 → agentorch-2.0.2}/devtorch_core/wrapper/openai.py +0 -0
  164. {agentorch-2.0.0 → agentorch-2.0.2}/docs/generate_faq_pdf.py +0 -0
  165. {agentorch-2.0.0 → agentorch-2.0.2}/docs/paper/figures/fig_architecture.py +0 -0
  166. {agentorch-2.0.0 → agentorch-2.0.2}/docs/paper/figures/fig_comparison.py +0 -0
  167. {agentorch-2.0.0 → agentorch-2.0.2}/docs/paper/figures/fig_coordination.py +0 -0
  168. {agentorch-2.0.0 → agentorch-2.0.2}/docs/paper/figures/fig_hashchain.py +0 -0
  169. {agentorch-2.0.0 → agentorch-2.0.2}/docs/paper/figures/fig_racp_flow.py +0 -0
  170. {agentorch-2.0.0 → agentorch-2.0.2}/setup.cfg +0 -0
  171. {agentorch-2.0.0 → agentorch-2.0.2}/tests/conftest.py +0 -0
  172. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_backend_factory.py +0 -0
  173. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_broadcast.py +0 -0
  174. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_cloud_auth.py +0 -0
  175. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_cloud_integration.py +0 -0
  176. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_cloud_sse.py +0 -0
  177. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_cloud_storage.py +0 -0
  178. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_doctor_ci.py +0 -0
  179. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_getting_started.py +0 -0
  180. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_github_app.py +0 -0
  181. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_github_pat.py +0 -0
  182. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_hidden_profile_benchmark.py +0 -0
  183. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_rep_merge.py +0 -0
  184. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s0_gcc.py +0 -0
  185. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s10_jetbrains.py +0 -0
  186. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s10_vscode.py +0 -0
  187. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s11_codex.py +0 -0
  188. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s11_hooks_installer.py +0 -0
  189. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s12_github.py +0 -0
  190. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s12_gitlab.py +0 -0
  191. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s13_dashboard_api.py +0 -0
  192. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s13_forensic.py +0 -0
  193. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s14_audit_export.py +0 -0
  194. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s14_ciso_api.py +0 -0
  195. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s15_rep_network.py +0 -0
  196. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s16_alerts.py +0 -0
  197. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s17a_metrics.py +0 -0
  198. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s18_credibility.py +0 -0
  199. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s18_identity.py +0 -0
  200. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s19_projects.py +0 -0
  201. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s19_reasoning_query.py +0 -0
  202. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s1_branch_merge.py +0 -0
  203. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s20_divergence.py +0 -0
  204. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s20_metrics.py +0 -0
  205. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s20_wrapper_capture.py +0 -0
  206. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s21_hitl.py +0 -0
  207. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s22_swe_bench.py +0 -0
  208. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s22_swe_bench_dry_run.py +0 -0
  209. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s23_reasoning_plus.py +0 -0
  210. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s2_context.py +0 -0
  211. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s3_sensitivity.py +0 -0
  212. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s4_invariants.py +0 -0
  213. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s4_variance_lock.py +0 -0
  214. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s5_privacy_disclosure.py +0 -0
  215. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s5_rep_sis.py +0 -0
  216. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s6_debug.py +0 -0
  217. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s7_ollama_wrapper.py +0 -0
  218. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s7_parser.py +0 -0
  219. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s7_proxy.py +0 -0
  220. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s7_wrappers.py +0 -0
  221. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s8_aggphi.py +0 -0
  222. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s8_theta_synthesis.py +0 -0
  223. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_s9_gaps.py +0 -0
  224. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_setup_command.py +0 -0
  225. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_setup_targets.py +0 -0
  226. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_signing.py +0 -0
  227. {agentorch-2.0.0 → agentorch-2.0.2}/tests/test_storage_azure.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentorch
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: DevTorch — AI reasoning capture, audit trail, and governance for agent-assisted development
5
5
  Author-email: Hemant Joshi <hemant@flotorch.ai>
6
6
  License: Apache-2.0
@@ -52,8 +52,10 @@ Requires-Dist: agentorch[cloud,mcp,proxy,wrapper]; extra == "all"
52
52
 
53
53
  **Local-first AI agent governance.** DevTorch gives multi-agent systems a shared on-disk audit trail, coordination vector, privacy controls, and LLM integration layer — all without a remote service.
54
54
 
55
+ > **Latest release:** `agentorch 2.0.2` — MCP bridge with automatic local fallback, plus upgrade/reinstall docs for all IDE integrations. Install or upgrade with `pip install -U agentorch`.
56
+
55
57
  ```bash
56
- pip install agentorch
58
+ pip install -U agentorch>=2.0.2
57
59
  devtorch init
58
60
  devtorch setup # connects to Claude Code, Cursor, or Antigravity
59
61
  devtorch debug timeline
@@ -76,13 +78,13 @@ devtorch debug timeline
76
78
 
77
79
  ### Reasoning Plus
78
80
 
79
- Reasoning Plus is DevTorch’s default augmentation mode: before every LLM call, it gathers smart context from your workspace and asks the model to produce inline `<thinking>` reasoning before the final answer. The reasoning is captured to `.GCC/` automatically and stripped from the response your tool sees.
81
+ Reasoning Plus is DevTorch’s default augmentation mode: before every LLM call, it gathers smart context from your workspace, asks the model to produce inline `<thinking>` reasoning, and learns from previous calls by re-injecting relevant reasoning into subsequent prompts. The reasoning is captured to `.GCC/` automatically and stripped from the response your tool sees.
80
82
 
81
83
  ```bash
82
84
  devtorch reasoning-plus status # show current settings
83
85
  devtorch reasoning-plus enable # turn on per project
84
86
  devtorch reasoning-plus disable # turn off per project
85
- devtorch reasoning-plus config --smart-top-n 3 --smart-max-lines 150
87
+ devtorch reasoning-plus config --smart-top-n 3 --smart-max-lines 150 --learning-top-n 3
86
88
  ```
87
89
 
88
90
  Set `DEVTORCH_REASONING_PLUS=0` to disable it for a single session. See [REASONING_PLUS.md](REASONING_PLUS.md) for details.
@@ -111,6 +113,35 @@ pip install agentorch[all] # everything
111
113
 
112
114
  ---
113
115
 
116
+ ## Upgrade from an older version
117
+
118
+ DevTorch preserves your `.GCC/` store across upgrades. Newer releases add IDE configs, hooks, or governance instructions, so you should re-run `devtorch setup` after upgrading.
119
+
120
+ **Upgrade any time:**
121
+
122
+ ```bash
123
+ pip install -U agentorch>=2.0.2
124
+ cd /path/to/your/project
125
+ devtorch setup # or: devtorch setup --target <ide>
126
+ devtorch doctor
127
+ ```
128
+
129
+ `devtorch setup` is idempotent:
130
+ - It rewrites `CLAUDE.md` / `AGENTS.md` with the latest governance instructions.
131
+ - It regenerates IDE-specific config files (`.claude/settings.json`, `.cursor/mcp.json`, `opencode.json`, etc.).
132
+ - It leaves existing `.GCC/` data untouched.
133
+
134
+ **If you use the cloud MCP server**, re-run the client config installer after upgrade to get the latest bridge and fallback settings:
135
+
136
+ ```bash
137
+ export DEVTORCH_MCP_DOMAIN=devtorch-mcp.your-domain.com
138
+ devtorch cloud client-config <ide> --org <org> --repo <repo> --api-key <api-key>
139
+ ```
140
+
141
+ Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
142
+
143
+ ---
144
+
114
145
  ## Getting Started
115
146
 
116
147
  DevTorch takes **5 minutes to set up**. Pick your AI coding tool below.
@@ -153,6 +184,8 @@ Open Claude Code in your project. On the first task Claude will call `devtorch_c
153
184
 
154
185
  **What you get:** Full RACP integration — reasoning commits, sensitivity events, coordination vector Θ, divergence detection, HITL conflict resolution.
155
186
 
187
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
188
+
156
189
  ---
157
190
 
158
191
  ### Cursor
@@ -195,6 +228,8 @@ devtorch doctor
195
228
 
196
229
  **What you get:** MCP tools, VS Code sidebar, optional HTTP proxy for passive capture of all LLM calls (`devtorch proxy start`).
197
230
 
231
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
232
+
198
233
  ---
199
234
 
200
235
  ### Google Antigravity
@@ -225,6 +260,46 @@ devtorch doctor
225
260
 
226
261
  **What you get:** Full RACP integration. The multi-agent nature of Antigravity makes Θ accumulation especially valuable — multiple agents share the same reasoning state through `devtorch_context`.
227
262
 
263
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
264
+
265
+ ---
266
+
267
+ ### OpenCode
268
+
269
+ OpenCode connects to DevTorch through the local stdio ↔ SSE bridge. The bridge talks to the cloud MCP server first, and if the cloud is unreachable or slow it automatically falls back to the local `devtorch` CLI so your `.GCC/` audit trail is never lost.
270
+
271
+ **Step 1 — Install DevTorch**
272
+ ```bash
273
+ pip install agentorch
274
+ ```
275
+
276
+ **Step 2 — Create an API key and install the client config**
277
+
278
+ Run from the project you want to govern:
279
+
280
+ ```bash
281
+ devtorch cloud key create --org myorg --repo myrepo
282
+ # Copy the printed API key — it will not be shown again.
283
+
284
+ export DEVTORCH_MCP_DOMAIN=devtorch-mcp.your-domain.com
285
+ devtorch cloud client-config opencode --org myorg --repo myrepo --api-key <api-key>
286
+ ```
287
+
288
+ This creates:
289
+ - `opencode.json` — the OpenCode MCP server config (uses the local bridge)
290
+ - `AGENTS.md` — DevTorch governance instructions for the model
291
+
292
+ **Step 3 — Verify**
293
+ ```bash
294
+ devtorch doctor
295
+ ```
296
+
297
+ Open the project in OpenCode. The DevTorch MCP tools will be listed, and the model will be instructed to call `devtorch_context` at the start of each task and `devtorch_commit` before every file edit.
298
+
299
+ **What you get:** Cloud-hosted MCP server integration with automatic local fallback, automatic reasoning commits via `AGENTS.md` instructions, and a shared Θ state across sessions.
300
+
301
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
302
+
228
303
  ---
229
304
 
230
305
  ### VS Code (with GitHub Copilot)
@@ -255,6 +330,8 @@ devtorch sensitivity add --source you --concept auth --confidence 0.9 --disclosu
255
330
 
256
331
  **What you get:** Sidebar panel (read-only), git-commit-level event capture, manual reasoning commits. Full capture requires switching to Claude Code, Cursor, Kiro, or Antigravity.
257
332
 
333
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will reinstall the git hook and update the governance instructions.
334
+
258
335
  ---
259
336
 
260
337
  ### AWS Kiro
@@ -318,6 +395,8 @@ devtorch doctor
318
395
 
319
396
  **What you get:** Full RACP integration equivalent to Claude Code — MCP tools, steering-document governance, agent action hooks.
320
397
 
398
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
399
+
321
400
  ---
322
401
 
323
402
  ### AWS Bedrock (Python SDK)
@@ -349,6 +428,8 @@ All `invoke_model()` and `converse()` calls are identical. DevTorch injects the
349
428
  devtorch doctor
350
429
  ```
351
430
 
431
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
432
+
352
433
  ---
353
434
 
354
435
  ### Azure AI Foundry (Python SDK)
@@ -381,6 +462,8 @@ client = AzureOpenAI(
381
462
  devtorch doctor
382
463
  ```
383
464
 
465
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
466
+
384
467
  ---
385
468
 
386
469
  ### OpenAI Codex CLI
@@ -405,6 +488,8 @@ codex "Add error handling to the payment service"
405
488
 
406
489
  All Codex calls are intercepted by the proxy, which injects the RACP prefix and captures responses into `.GCC/`.
407
490
 
491
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2`.
492
+
408
493
  ---
409
494
 
410
495
  ### Ollama (local models)
@@ -437,6 +522,8 @@ devtorch doctor
437
522
 
438
523
  No API key required. Fully local — RACP context and captures stay on-device.
439
524
 
525
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
526
+
440
527
  ---
441
528
 
442
529
  ### Cloud MCP server (team-wide shared governance)
@@ -478,6 +565,14 @@ Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
478
565
 
479
566
  **Full walkthrough:** `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
480
567
 
568
+ > **Updating from an older version:** You do **not** need to redeploy the Cloudflare Worker for client-side changes. Just regenerate the IDE config on each machine after upgrading `agentorch`:
569
+ > ```bash
570
+ > pip install -U agentorch>=2.0.2
571
+ > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
572
+ > /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
573
+ > <ide> <org> <repo> <api-key>
574
+ > ```
575
+
481
576
  ---
482
577
 
483
578
  ### Platform comparison
@@ -2,8 +2,10 @@
2
2
 
3
3
  **Local-first AI agent governance.** DevTorch gives multi-agent systems a shared on-disk audit trail, coordination vector, privacy controls, and LLM integration layer — all without a remote service.
4
4
 
5
+ > **Latest release:** `agentorch 2.0.2` — MCP bridge with automatic local fallback, plus upgrade/reinstall docs for all IDE integrations. Install or upgrade with `pip install -U agentorch`.
6
+
5
7
  ```bash
6
- pip install agentorch
8
+ pip install -U agentorch>=2.0.2
7
9
  devtorch init
8
10
  devtorch setup # connects to Claude Code, Cursor, or Antigravity
9
11
  devtorch debug timeline
@@ -26,13 +28,13 @@ devtorch debug timeline
26
28
 
27
29
  ### Reasoning Plus
28
30
 
29
- Reasoning Plus is DevTorch’s default augmentation mode: before every LLM call, it gathers smart context from your workspace and asks the model to produce inline `<thinking>` reasoning before the final answer. The reasoning is captured to `.GCC/` automatically and stripped from the response your tool sees.
31
+ Reasoning Plus is DevTorch’s default augmentation mode: before every LLM call, it gathers smart context from your workspace, asks the model to produce inline `<thinking>` reasoning, and learns from previous calls by re-injecting relevant reasoning into subsequent prompts. The reasoning is captured to `.GCC/` automatically and stripped from the response your tool sees.
30
32
 
31
33
  ```bash
32
34
  devtorch reasoning-plus status # show current settings
33
35
  devtorch reasoning-plus enable # turn on per project
34
36
  devtorch reasoning-plus disable # turn off per project
35
- devtorch reasoning-plus config --smart-top-n 3 --smart-max-lines 150
37
+ devtorch reasoning-plus config --smart-top-n 3 --smart-max-lines 150 --learning-top-n 3
36
38
  ```
37
39
 
38
40
  Set `DEVTORCH_REASONING_PLUS=0` to disable it for a single session. See [REASONING_PLUS.md](REASONING_PLUS.md) for details.
@@ -61,6 +63,35 @@ pip install agentorch[all] # everything
61
63
 
62
64
  ---
63
65
 
66
+ ## Upgrade from an older version
67
+
68
+ DevTorch preserves your `.GCC/` store across upgrades. Newer releases add IDE configs, hooks, or governance instructions, so you should re-run `devtorch setup` after upgrading.
69
+
70
+ **Upgrade any time:**
71
+
72
+ ```bash
73
+ pip install -U agentorch>=2.0.2
74
+ cd /path/to/your/project
75
+ devtorch setup # or: devtorch setup --target <ide>
76
+ devtorch doctor
77
+ ```
78
+
79
+ `devtorch setup` is idempotent:
80
+ - It rewrites `CLAUDE.md` / `AGENTS.md` with the latest governance instructions.
81
+ - It regenerates IDE-specific config files (`.claude/settings.json`, `.cursor/mcp.json`, `opencode.json`, etc.).
82
+ - It leaves existing `.GCC/` data untouched.
83
+
84
+ **If you use the cloud MCP server**, re-run the client config installer after upgrade to get the latest bridge and fallback settings:
85
+
86
+ ```bash
87
+ export DEVTORCH_MCP_DOMAIN=devtorch-mcp.your-domain.com
88
+ devtorch cloud client-config <ide> --org <org> --repo <repo> --api-key <api-key>
89
+ ```
90
+
91
+ Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
92
+
93
+ ---
94
+
64
95
  ## Getting Started
65
96
 
66
97
  DevTorch takes **5 minutes to set up**. Pick your AI coding tool below.
@@ -103,6 +134,8 @@ Open Claude Code in your project. On the first task Claude will call `devtorch_c
103
134
 
104
135
  **What you get:** Full RACP integration — reasoning commits, sensitivity events, coordination vector Θ, divergence detection, HITL conflict resolution.
105
136
 
137
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
138
+
106
139
  ---
107
140
 
108
141
  ### Cursor
@@ -145,6 +178,8 @@ devtorch doctor
145
178
 
146
179
  **What you get:** MCP tools, VS Code sidebar, optional HTTP proxy for passive capture of all LLM calls (`devtorch proxy start`).
147
180
 
181
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
182
+
148
183
  ---
149
184
 
150
185
  ### Google Antigravity
@@ -175,6 +210,46 @@ devtorch doctor
175
210
 
176
211
  **What you get:** Full RACP integration. The multi-agent nature of Antigravity makes Θ accumulation especially valuable — multiple agents share the same reasoning state through `devtorch_context`.
177
212
 
213
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
214
+
215
+ ---
216
+
217
+ ### OpenCode
218
+
219
+ OpenCode connects to DevTorch through the local stdio ↔ SSE bridge. The bridge talks to the cloud MCP server first, and if the cloud is unreachable or slow it automatically falls back to the local `devtorch` CLI so your `.GCC/` audit trail is never lost.
220
+
221
+ **Step 1 — Install DevTorch**
222
+ ```bash
223
+ pip install agentorch
224
+ ```
225
+
226
+ **Step 2 — Create an API key and install the client config**
227
+
228
+ Run from the project you want to govern:
229
+
230
+ ```bash
231
+ devtorch cloud key create --org myorg --repo myrepo
232
+ # Copy the printed API key — it will not be shown again.
233
+
234
+ export DEVTORCH_MCP_DOMAIN=devtorch-mcp.your-domain.com
235
+ devtorch cloud client-config opencode --org myorg --repo myrepo --api-key <api-key>
236
+ ```
237
+
238
+ This creates:
239
+ - `opencode.json` — the OpenCode MCP server config (uses the local bridge)
240
+ - `AGENTS.md` — DevTorch governance instructions for the model
241
+
242
+ **Step 3 — Verify**
243
+ ```bash
244
+ devtorch doctor
245
+ ```
246
+
247
+ Open the project in OpenCode. The DevTorch MCP tools will be listed, and the model will be instructed to call `devtorch_context` at the start of each task and `devtorch_commit` before every file edit.
248
+
249
+ **What you get:** Cloud-hosted MCP server integration with automatic local fallback, automatic reasoning commits via `AGENTS.md` instructions, and a shared Θ state across sessions.
250
+
251
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
252
+
178
253
  ---
179
254
 
180
255
  ### VS Code (with GitHub Copilot)
@@ -205,6 +280,8 @@ devtorch sensitivity add --source you --concept auth --confidence 0.9 --disclosu
205
280
 
206
281
  **What you get:** Sidebar panel (read-only), git-commit-level event capture, manual reasoning commits. Full capture requires switching to Claude Code, Cursor, Kiro, or Antigravity.
207
282
 
283
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will reinstall the git hook and update the governance instructions.
284
+
208
285
  ---
209
286
 
210
287
  ### AWS Kiro
@@ -268,6 +345,8 @@ devtorch doctor
268
345
 
269
346
  **What you get:** Full RACP integration equivalent to Claude Code — MCP tools, steering-document governance, agent action hooks.
270
347
 
348
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
349
+
271
350
  ---
272
351
 
273
352
  ### AWS Bedrock (Python SDK)
@@ -299,6 +378,8 @@ All `invoke_model()` and `converse()` calls are identical. DevTorch injects the
299
378
  devtorch doctor
300
379
  ```
301
380
 
381
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
382
+
302
383
  ---
303
384
 
304
385
  ### Azure AI Foundry (Python SDK)
@@ -331,6 +412,8 @@ client = AzureOpenAI(
331
412
  devtorch doctor
332
413
  ```
333
414
 
415
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
416
+
334
417
  ---
335
418
 
336
419
  ### OpenAI Codex CLI
@@ -355,6 +438,8 @@ codex "Add error handling to the payment service"
355
438
 
356
439
  All Codex calls are intercepted by the proxy, which injects the RACP prefix and captures responses into `.GCC/`.
357
440
 
441
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2`.
442
+
358
443
  ---
359
444
 
360
445
  ### Ollama (local models)
@@ -387,6 +472,8 @@ devtorch doctor
387
472
 
388
473
  No API key required. Fully local — RACP context and captures stay on-device.
389
474
 
475
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
476
+
390
477
  ---
391
478
 
392
479
  ### Cloud MCP server (team-wide shared governance)
@@ -428,6 +515,14 @@ Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
428
515
 
429
516
  **Full walkthrough:** `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
430
517
 
518
+ > **Updating from an older version:** You do **not** need to redeploy the Cloudflare Worker for client-side changes. Just regenerate the IDE config on each machine after upgrading `agentorch`:
519
+ > ```bash
520
+ > pip install -U agentorch>=2.0.2
521
+ > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
522
+ > /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
523
+ > <ide> <org> <repo> <api-key>
524
+ > ```
525
+
431
526
  ---
432
527
 
433
528
  ### Platform comparison
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentorch
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: DevTorch — AI reasoning capture, audit trail, and governance for agent-assisted development
5
5
  Author-email: Hemant Joshi <hemant@flotorch.ai>
6
6
  License: Apache-2.0
@@ -52,8 +52,10 @@ Requires-Dist: agentorch[cloud,mcp,proxy,wrapper]; extra == "all"
52
52
 
53
53
  **Local-first AI agent governance.** DevTorch gives multi-agent systems a shared on-disk audit trail, coordination vector, privacy controls, and LLM integration layer — all without a remote service.
54
54
 
55
+ > **Latest release:** `agentorch 2.0.2` — MCP bridge with automatic local fallback, plus upgrade/reinstall docs for all IDE integrations. Install or upgrade with `pip install -U agentorch`.
56
+
55
57
  ```bash
56
- pip install agentorch
58
+ pip install -U agentorch>=2.0.2
57
59
  devtorch init
58
60
  devtorch setup # connects to Claude Code, Cursor, or Antigravity
59
61
  devtorch debug timeline
@@ -76,13 +78,13 @@ devtorch debug timeline
76
78
 
77
79
  ### Reasoning Plus
78
80
 
79
- Reasoning Plus is DevTorch’s default augmentation mode: before every LLM call, it gathers smart context from your workspace and asks the model to produce inline `<thinking>` reasoning before the final answer. The reasoning is captured to `.GCC/` automatically and stripped from the response your tool sees.
81
+ Reasoning Plus is DevTorch’s default augmentation mode: before every LLM call, it gathers smart context from your workspace, asks the model to produce inline `<thinking>` reasoning, and learns from previous calls by re-injecting relevant reasoning into subsequent prompts. The reasoning is captured to `.GCC/` automatically and stripped from the response your tool sees.
80
82
 
81
83
  ```bash
82
84
  devtorch reasoning-plus status # show current settings
83
85
  devtorch reasoning-plus enable # turn on per project
84
86
  devtorch reasoning-plus disable # turn off per project
85
- devtorch reasoning-plus config --smart-top-n 3 --smart-max-lines 150
87
+ devtorch reasoning-plus config --smart-top-n 3 --smart-max-lines 150 --learning-top-n 3
86
88
  ```
87
89
 
88
90
  Set `DEVTORCH_REASONING_PLUS=0` to disable it for a single session. See [REASONING_PLUS.md](REASONING_PLUS.md) for details.
@@ -111,6 +113,35 @@ pip install agentorch[all] # everything
111
113
 
112
114
  ---
113
115
 
116
+ ## Upgrade from an older version
117
+
118
+ DevTorch preserves your `.GCC/` store across upgrades. Newer releases add IDE configs, hooks, or governance instructions, so you should re-run `devtorch setup` after upgrading.
119
+
120
+ **Upgrade any time:**
121
+
122
+ ```bash
123
+ pip install -U agentorch>=2.0.2
124
+ cd /path/to/your/project
125
+ devtorch setup # or: devtorch setup --target <ide>
126
+ devtorch doctor
127
+ ```
128
+
129
+ `devtorch setup` is idempotent:
130
+ - It rewrites `CLAUDE.md` / `AGENTS.md` with the latest governance instructions.
131
+ - It regenerates IDE-specific config files (`.claude/settings.json`, `.cursor/mcp.json`, `opencode.json`, etc.).
132
+ - It leaves existing `.GCC/` data untouched.
133
+
134
+ **If you use the cloud MCP server**, re-run the client config installer after upgrade to get the latest bridge and fallback settings:
135
+
136
+ ```bash
137
+ export DEVTORCH_MCP_DOMAIN=devtorch-mcp.your-domain.com
138
+ devtorch cloud client-config <ide> --org <org> --repo <repo> --api-key <api-key>
139
+ ```
140
+
141
+ Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
142
+
143
+ ---
144
+
114
145
  ## Getting Started
115
146
 
116
147
  DevTorch takes **5 minutes to set up**. Pick your AI coding tool below.
@@ -153,6 +184,8 @@ Open Claude Code in your project. On the first task Claude will call `devtorch_c
153
184
 
154
185
  **What you get:** Full RACP integration — reasoning commits, sensitivity events, coordination vector Θ, divergence detection, HITL conflict resolution.
155
186
 
187
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
188
+
156
189
  ---
157
190
 
158
191
  ### Cursor
@@ -195,6 +228,8 @@ devtorch doctor
195
228
 
196
229
  **What you get:** MCP tools, VS Code sidebar, optional HTTP proxy for passive capture of all LLM calls (`devtorch proxy start`).
197
230
 
231
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
232
+
198
233
  ---
199
234
 
200
235
  ### Google Antigravity
@@ -225,6 +260,46 @@ devtorch doctor
225
260
 
226
261
  **What you get:** Full RACP integration. The multi-agent nature of Antigravity makes Θ accumulation especially valuable — multiple agents share the same reasoning state through `devtorch_context`.
227
262
 
263
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
264
+
265
+ ---
266
+
267
+ ### OpenCode
268
+
269
+ OpenCode connects to DevTorch through the local stdio ↔ SSE bridge. The bridge talks to the cloud MCP server first, and if the cloud is unreachable or slow it automatically falls back to the local `devtorch` CLI so your `.GCC/` audit trail is never lost.
270
+
271
+ **Step 1 — Install DevTorch**
272
+ ```bash
273
+ pip install agentorch
274
+ ```
275
+
276
+ **Step 2 — Create an API key and install the client config**
277
+
278
+ Run from the project you want to govern:
279
+
280
+ ```bash
281
+ devtorch cloud key create --org myorg --repo myrepo
282
+ # Copy the printed API key — it will not be shown again.
283
+
284
+ export DEVTORCH_MCP_DOMAIN=devtorch-mcp.your-domain.com
285
+ devtorch cloud client-config opencode --org myorg --repo myrepo --api-key <api-key>
286
+ ```
287
+
288
+ This creates:
289
+ - `opencode.json` — the OpenCode MCP server config (uses the local bridge)
290
+ - `AGENTS.md` — DevTorch governance instructions for the model
291
+
292
+ **Step 3 — Verify**
293
+ ```bash
294
+ devtorch doctor
295
+ ```
296
+
297
+ Open the project in OpenCode. The DevTorch MCP tools will be listed, and the model will be instructed to call `devtorch_context` at the start of each task and `devtorch_commit` before every file edit.
298
+
299
+ **What you get:** Cloud-hosted MCP server integration with automatic local fallback, automatic reasoning commits via `AGENTS.md` instructions, and a shared Θ state across sessions.
300
+
301
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
302
+
228
303
  ---
229
304
 
230
305
  ### VS Code (with GitHub Copilot)
@@ -255,6 +330,8 @@ devtorch sensitivity add --source you --concept auth --confidence 0.9 --disclosu
255
330
 
256
331
  **What you get:** Sidebar panel (read-only), git-commit-level event capture, manual reasoning commits. Full capture requires switching to Claude Code, Cursor, Kiro, or Antigravity.
257
332
 
333
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will reinstall the git hook and update the governance instructions.
334
+
258
335
  ---
259
336
 
260
337
  ### AWS Kiro
@@ -318,6 +395,8 @@ devtorch doctor
318
395
 
319
396
  **What you get:** Full RACP integration equivalent to Claude Code — MCP tools, steering-document governance, agent action hooks.
320
397
 
398
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
399
+
321
400
  ---
322
401
 
323
402
  ### AWS Bedrock (Python SDK)
@@ -349,6 +428,8 @@ All `invoke_model()` and `converse()` calls are identical. DevTorch injects the
349
428
  devtorch doctor
350
429
  ```
351
430
 
431
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
432
+
352
433
  ---
353
434
 
354
435
  ### Azure AI Foundry (Python SDK)
@@ -381,6 +462,8 @@ client = AzureOpenAI(
381
462
  devtorch doctor
382
463
  ```
383
464
 
465
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
466
+
384
467
  ---
385
468
 
386
469
  ### OpenAI Codex CLI
@@ -405,6 +488,8 @@ codex "Add error handling to the payment service"
405
488
 
406
489
  All Codex calls are intercepted by the proxy, which injects the RACP prefix and captures responses into `.GCC/`.
407
490
 
491
+ > **Updating from an older version:** `pip install -U agentorch>=2.0.2`.
492
+
408
493
  ---
409
494
 
410
495
  ### Ollama (local models)
@@ -437,6 +522,8 @@ devtorch doctor
437
522
 
438
523
  No API key required. Fully local — RACP context and captures stay on-device.
439
524
 
525
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
526
+
440
527
  ---
441
528
 
442
529
  ### Cloud MCP server (team-wide shared governance)
@@ -478,6 +565,14 @@ Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
478
565
 
479
566
  **Full walkthrough:** `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
480
567
 
568
+ > **Updating from an older version:** You do **not** need to redeploy the Cloudflare Worker for client-side changes. Just regenerate the IDE config on each machine after upgrading `agentorch`:
569
+ > ```bash
570
+ > pip install -U agentorch>=2.0.2
571
+ > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
572
+ > /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
573
+ > <ide> <org> <repo> <api-key>
574
+ > ```
575
+
481
576
  ---
482
577
 
483
578
  ### Platform comparison
@@ -18,6 +18,7 @@ benchmarks/swe_bench/run_baseline.py
18
18
  benchmarks/swe_bench/run_devtorch.py
19
19
  benchmarks/swe_bench/seed_gcc.py
20
20
  devtorch_cli/__init__.py
21
+ devtorch_cli/__main__.py
21
22
  devtorch_cli/main.py
22
23
  devtorch_core/__init__.py
23
24
  devtorch_core/aggphi_textual.py
@@ -50,6 +51,15 @@ devtorch_core/alerts/teams.py
50
51
  devtorch_core/broadcast/__init__.py
51
52
  devtorch_core/broadcast/broadcaster.py
52
53
  devtorch_core/broadcast/watcher.py
54
+ devtorch_core/cloud/__init__.py
55
+ devtorch_core/cloud/client_config.py
56
+ devtorch_core/cloud/devtorch-mcp-bridge.js
57
+ devtorch_core/cloud/client_configs/.claude-opencode-fallback.json
58
+ devtorch_core/cloud/client_configs/.claude-stdio.json
59
+ devtorch_core/cloud/client_configs/.cursor-mcp.json
60
+ devtorch_core/cloud/client_configs/.opencode-bridge.json
61
+ devtorch_core/cloud/client_configs/.opencode.json
62
+ devtorch_core/cloud/client_configs/.vscode-mcp.json
53
63
  devtorch_core/codex/__init__.py
54
64
  devtorch_core/codex/__main__.py
55
65
  devtorch_core/codex/capture.py
@@ -60,6 +70,7 @@ devtorch_core/consolidation/workflow.py
60
70
  devtorch_core/divergence/__init__.py
61
71
  devtorch_core/divergence/detector.py
62
72
  devtorch_core/gateway/__init__.py
73
+ devtorch_core/gateway/key_manager.py
63
74
  devtorch_core/gateway/metrics_webhook.py
64
75
  devtorch_core/gateway/policy.py
65
76
  devtorch_core/gateway/server.py
@@ -96,8 +107,11 @@ devtorch_core/metrics/session_writer.py
96
107
  devtorch_core/metrics/shadow_ai.py
97
108
  devtorch_core/metrics/sprint_writer.py
98
109
  devtorch_core/observability/__init__.py
110
+ devtorch_core/observability/datadog.py
99
111
  devtorch_core/observability/formatter.py
100
112
  devtorch_core/observability/report.py
113
+ devtorch_core/observability/servicenow.py
114
+ devtorch_core/observability/splunk.py
101
115
  devtorch_core/observability/webhook.py
102
116
  devtorch_core/parser/__init__.py
103
117
  devtorch_core/parser/blocks.py
@@ -118,6 +132,15 @@ devtorch_core/reasoning_plus/capture.py
118
132
  devtorch_core/reasoning_plus/config.py
119
133
  devtorch_core/reasoning_plus/context.py
120
134
  devtorch_core/reasoning_plus/prompt.py
135
+ devtorch_core/reasoning_plus/learning/__init__.py
136
+ devtorch_core/reasoning_plus/learning/api.py
137
+ devtorch_core/reasoning_plus/learning/composer.py
138
+ devtorch_core/reasoning_plus/learning/extractor.py
139
+ devtorch_core/reasoning_plus/learning/models.py
140
+ devtorch_core/reasoning_plus/learning/recorder.py
141
+ devtorch_core/reasoning_plus/learning/relevance.py
142
+ devtorch_core/reasoning_plus/learning/state.py
143
+ devtorch_core/reasoning_plus/learning/store.py
121
144
  devtorch_core/rep_network/__init__.py
122
145
  devtorch_core/rep_network/merge.py
123
146
  devtorch_core/rep_network/node.py
@@ -140,6 +163,7 @@ tests/conftest.py
140
163
  tests/test_backend_factory.py
141
164
  tests/test_broadcast.py
142
165
  tests/test_cloud_auth.py
166
+ tests/test_cloud_bridge.py
143
167
  tests/test_cloud_integration.py
144
168
  tests/test_cloud_sse.py
145
169
  tests/test_cloud_storage.py
@@ -164,6 +188,7 @@ tests/test_s15_rep_network.py
164
188
  tests/test_s16_alerts.py
165
189
  tests/test_s17a_metrics.py
166
190
  tests/test_s17b_observability.py
191
+ tests/test_s17b_sso.py
167
192
  tests/test_s18_credibility.py
168
193
  tests/test_s18_identity.py
169
194
  tests/test_s19_projects.py
@@ -176,6 +201,7 @@ tests/test_s21_hitl.py
176
201
  tests/test_s22_swe_bench.py
177
202
  tests/test_s22_swe_bench_dry_run.py
178
203
  tests/test_s23_reasoning_plus.py
204
+ tests/test_s24_reasoning_plus_learning.py
179
205
  tests/test_s2_context.py
180
206
  tests/test_s3_sensitivity.py
181
207
  tests/test_s4_invariants.py
@@ -189,6 +215,7 @@ tests/test_s7_parser.py
189
215
  tests/test_s7_proxy.py
190
216
  tests/test_s7_wrappers.py
191
217
  tests/test_s7ent_gateway.py
218
+ tests/test_s7ent_helm.py
192
219
  tests/test_s8_aggphi.py
193
220
  tests/test_s8_theta_synthesis.py
194
221
  tests/test_s9_gaps.py