agentrules 4.2.1__tar.gz → 4.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. {agentrules-4.2.1/src/agentrules.egg-info → agentrules-4.3.0}/PKG-INFO +9 -6
  2. {agentrules-4.2.1 → agentrules-4.3.0}/README.md +7 -4
  3. {agentrules-4.2.1 → agentrules-4.3.0}/pyproject.toml +2 -2
  4. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/services/claude_code_runtime.py +1 -1
  5. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/agents.py +243 -24
  6. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/anthropic/capabilities.py +106 -0
  7. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/anthropic/request_builder.py +15 -29
  8. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/claude_code/request_builder.py +13 -43
  9. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/config.py +2 -2
  10. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/request_builder.py +17 -2
  11. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/capabilities.py +75 -2
  12. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/xai/architect.py +2 -2
  13. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/xai/config.py +6 -0
  14. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/xai/request_builder.py +0 -2
  15. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/model_presets.py +77 -11
  16. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/claude_code.py +1 -0
  17. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/types/models.py +65 -5
  18. {agentrules-4.2.1 → agentrules-4.3.0/src/agentrules.egg-info}/PKG-INFO +9 -6
  19. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules.egg-info/requires.txt +1 -1
  20. {agentrules-4.2.1 → agentrules-4.3.0}/LICENSE +0 -0
  21. {agentrules-4.2.1 → agentrules-4.3.0}/setup.cfg +0 -0
  22. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/__init__.py +0 -0
  23. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/__main__.py +0 -0
  24. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/__init__.py +0 -0
  25. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/app.py +0 -0
  26. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/bootstrap.py +0 -0
  27. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/__init__.py +0 -0
  28. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/analyze.py +0 -0
  29. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/configure.py +0 -0
  30. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/execplan.py +0 -0
  31. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/execplan_registry.py +0 -0
  32. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/keys.py +0 -0
  33. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/scaffold.py +0 -0
  34. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/snapshot.py +0 -0
  35. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/commands/tree.py +0 -0
  36. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/context.py +0 -0
  37. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/services/__init__.py +0 -0
  38. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/services/codex_runtime.py +0 -0
  39. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/services/configuration.py +0 -0
  40. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/services/output_validation.py +0 -0
  41. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/services/pipeline_runner.py +0 -0
  42. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/services/tree_preview.py +0 -0
  43. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/__init__.py +0 -0
  44. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/analysis_view.py +0 -0
  45. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/event_sink.py +0 -0
  46. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/main_menu.py +0 -0
  47. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/__init__.py +0 -0
  48. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/claude_code.py +0 -0
  49. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/codex.py +0 -0
  50. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/exclusions/__init__.py +0 -0
  51. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/exclusions/editor.py +0 -0
  52. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/exclusions/preview.py +0 -0
  53. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/exclusions/summary.py +0 -0
  54. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/logging.py +0 -0
  55. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/menu.py +0 -0
  56. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/models/__init__.py +0 -0
  57. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/models/researcher.py +0 -0
  58. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/models/utils.py +0 -0
  59. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/outputs.py +0 -0
  60. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/settings/providers.py +0 -0
  61. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/cli/ui/styles.py +0 -0
  62. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/__init__.py +0 -0
  63. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/exclusions.py +0 -0
  64. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/prompts/__init__.py +0 -0
  65. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/prompts/final_analysis_prompt.py +0 -0
  66. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/prompts/phase_1_prompts.py +0 -0
  67. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/prompts/phase_2_prompts.py +0 -0
  68. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/prompts/phase_3_prompts.py +0 -0
  69. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/prompts/phase_4_prompts.py +0 -0
  70. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/prompts/phase_5_prompts.py +0 -0
  71. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/config/tools.py +0 -0
  72. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/__init__.py +0 -0
  73. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agent_tools/tool_manager.py +0 -0
  74. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agent_tools/web_search/__init__.py +0 -0
  75. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agent_tools/web_search/tavily.py +0 -0
  76. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/__init__.py +0 -0
  77. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/anthropic/__init__.py +0 -0
  78. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/anthropic/architect.py +0 -0
  79. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/anthropic/client.py +0 -0
  80. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/anthropic/prompting.py +0 -0
  81. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/anthropic/response_parser.py +0 -0
  82. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/anthropic/tooling.py +0 -0
  83. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/base.py +0 -0
  84. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/claude_code/__init__.py +0 -0
  85. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/claude_code/architect.py +0 -0
  86. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/claude_code/client.py +0 -0
  87. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/claude_code/errors.py +0 -0
  88. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/claude_code/response_parser.py +0 -0
  89. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/__init__.py +0 -0
  90. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/architect.py +0 -0
  91. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/client.py +0 -0
  92. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/errors.py +0 -0
  93. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/model_selection.py +0 -0
  94. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/models.py +0 -0
  95. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/process.py +0 -0
  96. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/protocol.py +0 -0
  97. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/reasoning.py +0 -0
  98. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/request_builder.py +0 -0
  99. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/codex/response_parser.py +0 -0
  100. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/__init__.py +0 -0
  101. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/architect.py +0 -0
  102. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/client.py +0 -0
  103. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/compat.py +0 -0
  104. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/prompting.py +0 -0
  105. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/response_parser.py +0 -0
  106. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/deepseek/tooling.py +0 -0
  107. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/factory/__init__.py +0 -0
  108. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/factory/factory.py +0 -0
  109. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/__init__.py +0 -0
  110. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/architect.py +0 -0
  111. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/client.py +0 -0
  112. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/errors.py +0 -0
  113. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/legacy.py +0 -0
  114. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/prompting.py +0 -0
  115. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/response_parser.py +0 -0
  116. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/gemini/tooling.py +0 -0
  117. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/openai/__init__.py +0 -0
  118. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/openai/architect.py +0 -0
  119. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/openai/client.py +0 -0
  120. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/openai/compat.py +0 -0
  121. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/openai/config.py +0 -0
  122. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/openai/request_builder.py +0 -0
  123. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/openai/response_parser.py +0 -0
  124. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/xai/__init__.py +0 -0
  125. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/xai/client.py +0 -0
  126. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/xai/prompting.py +0 -0
  127. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/xai/response_parser.py +0 -0
  128. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/agents/xai/tooling.py +0 -0
  129. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/analysis/__init__.py +0 -0
  130. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/analysis/events.py +0 -0
  131. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/analysis/final_analysis.py +0 -0
  132. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/analysis/phase_1.py +0 -0
  133. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/analysis/phase_2.py +0 -0
  134. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/analysis/phase_3.py +0 -0
  135. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/analysis/phase_4.py +0 -0
  136. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/analysis/phase_5.py +0 -0
  137. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/__init__.py +0 -0
  138. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/constants.py +0 -0
  139. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/environment.py +0 -0
  140. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/manager.py +0 -0
  141. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/models.py +0 -0
  142. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/repository.py +0 -0
  143. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/serde.py +0 -0
  144. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/__init__.py +0 -0
  145. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/codex.py +0 -0
  146. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/exclusions.py +0 -0
  147. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/features.py +0 -0
  148. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/logging.py +0 -0
  149. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/outputs.py +0 -0
  150. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/phase_models.py +0 -0
  151. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/services/providers.py +0 -0
  152. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/configuration/utils.py +0 -0
  153. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/__init__.py +0 -0
  154. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/creator.py +0 -0
  155. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/identity.py +0 -0
  156. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/locks.py +0 -0
  157. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/milestones.py +0 -0
  158. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/paths.py +0 -0
  159. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/registry.py +0 -0
  160. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/templates/EXECPLAN_TEMPLATE.md +0 -0
  161. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/execplan/templates/MILESTONE_FILE_TEMPLATE.md +0 -0
  162. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/logging/__init__.py +0 -0
  163. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/logging/config.py +0 -0
  164. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/pipeline/__init__.py +0 -0
  165. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/pipeline/config.py +0 -0
  166. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/pipeline/factory.py +0 -0
  167. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/pipeline/orchestrator.py +0 -0
  168. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/pipeline/output.py +0 -0
  169. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/pipeline/project_profile.py +0 -0
  170. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/pipeline/snapshot.py +0 -0
  171. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/streaming/__init__.py +0 -0
  172. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/streaming/types.py +0 -0
  173. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/types/__init__.py +0 -0
  174. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/types/agent_config.py +0 -0
  175. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/types/tool_config.py +0 -0
  176. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/async_stream.py +0 -0
  177. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/constants.py +0 -0
  178. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/__init__.py +0 -0
  179. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/constants.py +0 -0
  180. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/discovery.py +0 -0
  181. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/metadata.py +0 -0
  182. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/models.py +0 -0
  183. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/__init__.py +0 -0
  184. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/clojure.py +0 -0
  185. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/dart.py +0 -0
  186. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/dotnet.py +0 -0
  187. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/elixir.py +0 -0
  188. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/generic.py +0 -0
  189. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/go.py +0 -0
  190. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/helpers.py +0 -0
  191. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/java.py +0 -0
  192. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/javascript.py +0 -0
  193. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/php.py +0 -0
  194. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/python.py +0 -0
  195. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/ruby.py +0 -0
  196. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/swift.py +0 -0
  197. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/parsers/toml_based.py +0 -0
  198. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/registry.py +0 -0
  199. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/dependency_scanner/scan.py +0 -0
  200. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_creation/agent_scaffold.py +0 -0
  201. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_creation/atomic_write.py +0 -0
  202. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_creation/cursorignore.py +0 -0
  203. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_creation/phases_output.py +0 -0
  204. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_creation/snapshot_artifact.py +0 -0
  205. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_creation/snapshot_policy.py +0 -0
  206. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_creation/templates/MILESTONE_TEMPLATE.md +0 -0
  207. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_creation/templates/PLANS.md +0 -0
  208. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_system/__init__.py +0 -0
  209. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_system/file_retriever.py +0 -0
  210. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_system/gitignore.py +0 -0
  211. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/file_system/tree_generator.py +0 -0
  212. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/formatters/__init__.py +0 -0
  213. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/formatters/clean_agentrules.py +0 -0
  214. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/model_config_helper.py +0 -0
  215. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/offline.py +0 -0
  216. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/parsers/__init__.py +0 -0
  217. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/parsers/agent_parser.py +0 -0
  218. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/provider_capabilities.py +0 -0
  219. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/provider_utils.py +0 -0
  220. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/release_metadata.py +0 -0
  221. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/structured_outputs.py +0 -0
  222. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/system_prompt.py +0 -0
  223. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/token_estimator.py +0 -0
  224. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules/core/utils/token_packer.py +0 -0
  225. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules.egg-info/SOURCES.txt +0 -0
  226. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules.egg-info/dependency_links.txt +0 -0
  227. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules.egg-info/entry_points.txt +0 -0
  228. {agentrules-4.2.1 → agentrules-4.3.0}/src/agentrules.egg-info/top_level.txt +0 -0
  229. {agentrules-4.2.1 → agentrules-4.3.0}/tests/test_cli_services.py +0 -0
  230. {agentrules-4.2.1 → agentrules-4.3.0}/tests/test_env.py +0 -0
  231. {agentrules-4.2.1 → agentrules-4.3.0}/tests/test_openai_responses.py +0 -0
  232. {agentrules-4.2.1 → agentrules-4.3.0}/tests/test_smoke_discovery.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentrules
3
- Version: 4.2.1
3
+ Version: 4.3.0
4
4
  Summary: AGENTS.md/CLAUDE.md generator and ExecPlan harness for coding agents
5
5
  Author: trevor-nichols
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ License-File: LICENSE
15
15
  Requires-Dist: anthropic>=0.78.0
16
16
  Requires-Dist: rich
17
17
  Requires-Dist: openai>=2.45.0
18
- Requires-Dist: google-genai>=1.51.0
18
+ Requires-Dist: google-genai>=1.56.0
19
19
  Requires-Dist: protobuf>=4.25
20
20
  Requires-Dist: python-dotenv
21
21
  Requires-Dist: tavily-python>=0.7.14
@@ -403,6 +403,7 @@ Toggle outputs with `agentrules configure --outputs` or via the config TOML.
403
403
  - Deterministic smoke runs (CI/local without API calls): `agentrules analyze --offline tests/tests_input`
404
404
  - Full suite: `pytest`
405
405
  - Releases are Release Please-driven: merges to `main` update/open a release PR, and merging that PR creates the `vX.Y.Z` tag + GitHub release automatically.
406
+ - Release Please PRs regenerate and commit `uv.lock` automatically; pull requests that change project or lock metadata must pass `uv lock --check`.
406
407
  - GitHub Actions publishes package artifacts with Trusted Publishing (OIDC) via `.github/workflows/publish-pypi.yml` (no long-lived PyPI API token).
407
408
  - Run a safe preflight publish first from Actions with `workflow_dispatch` and `repository = testpypi`; publish to production PyPI on release-tag push or manual `repository = pypi`.
408
409
  - Keep docs and presets in sync when adding providers (`config/agents.py`, `config/tools.py`, `core/agents/*`).
@@ -412,10 +413,12 @@ Toggle outputs with `agentrules configure --outputs` or via the config TOML.
412
413
  1. Merge feature PRs into `main` using Conventional Commit-style titles/messages (for example `feat: ...`, `fix: ...`).
413
414
  For an intentional one-release version override, include a `Release-As: X.Y.Z` footer in a commit merged to `main`; do not manually edit `pyproject.toml` or `.release-please-manifest.json`.
414
415
  2. `.github/workflows/release-please.yml` updates or opens a release PR with the version bump and changelog.
415
- 3. (Optional, recommended) run `.github/workflows/publish-pypi.yml` manually with `repository = testpypi` from the release PR head commit.
416
- 4. Merge the release PR. Release Please creates/pushes the matching `vX.Y.Z` tag and publishes a GitHub release.
417
- 5. The tag push triggers `.github/workflows/publish-pypi.yml` to publish to production PyPI.
418
- 6. One-time setup for new projects:
416
+ 3. The release workflow regenerates `uv.lock` on the release PR branch and commits it when project metadata changed.
417
+ 4. Confirm the release PR passes the `Verify pyproject and uv.lock agree` check.
418
+ 5. (Optional, recommended) run `.github/workflows/publish-pypi.yml` manually with `repository = testpypi` from the release PR head commit.
419
+ 6. Merge the release PR. Release Please creates/pushes the matching `vX.Y.Z` tag and publishes a GitHub release.
420
+ 7. The tag push triggers `.github/workflows/publish-pypi.yml` to publish to production PyPI.
421
+ 8. One-time setup for new projects:
419
422
  - Configure a repo secret `RELEASE_PLEASE_TOKEN` (PAT or GitHub App token) with permission to create/update PRs, tags, and releases. This ensures tag pushes from Release Please trigger downstream workflows.
420
423
  - Configure Trusted Publishers on TestPyPI and PyPI for repository `trevor-nichols/agentrules-architect`, workflow `.github/workflows/publish-pypi.yml`, and environments `testpypi`/`pypi`.
421
424
 
@@ -364,6 +364,7 @@ Toggle outputs with `agentrules configure --outputs` or via the config TOML.
364
364
  - Deterministic smoke runs (CI/local without API calls): `agentrules analyze --offline tests/tests_input`
365
365
  - Full suite: `pytest`
366
366
  - Releases are Release Please-driven: merges to `main` update/open a release PR, and merging that PR creates the `vX.Y.Z` tag + GitHub release automatically.
367
+ - Release Please PRs regenerate and commit `uv.lock` automatically; pull requests that change project or lock metadata must pass `uv lock --check`.
367
368
  - GitHub Actions publishes package artifacts with Trusted Publishing (OIDC) via `.github/workflows/publish-pypi.yml` (no long-lived PyPI API token).
368
369
  - Run a safe preflight publish first from Actions with `workflow_dispatch` and `repository = testpypi`; publish to production PyPI on release-tag push or manual `repository = pypi`.
369
370
  - Keep docs and presets in sync when adding providers (`config/agents.py`, `config/tools.py`, `core/agents/*`).
@@ -373,10 +374,12 @@ Toggle outputs with `agentrules configure --outputs` or via the config TOML.
373
374
  1. Merge feature PRs into `main` using Conventional Commit-style titles/messages (for example `feat: ...`, `fix: ...`).
374
375
  For an intentional one-release version override, include a `Release-As: X.Y.Z` footer in a commit merged to `main`; do not manually edit `pyproject.toml` or `.release-please-manifest.json`.
375
376
  2. `.github/workflows/release-please.yml` updates or opens a release PR with the version bump and changelog.
376
- 3. (Optional, recommended) run `.github/workflows/publish-pypi.yml` manually with `repository = testpypi` from the release PR head commit.
377
- 4. Merge the release PR. Release Please creates/pushes the matching `vX.Y.Z` tag and publishes a GitHub release.
378
- 5. The tag push triggers `.github/workflows/publish-pypi.yml` to publish to production PyPI.
379
- 6. One-time setup for new projects:
377
+ 3. The release workflow regenerates `uv.lock` on the release PR branch and commits it when project metadata changed.
378
+ 4. Confirm the release PR passes the `Verify pyproject and uv.lock agree` check.
379
+ 5. (Optional, recommended) run `.github/workflows/publish-pypi.yml` manually with `repository = testpypi` from the release PR head commit.
380
+ 6. Merge the release PR. Release Please creates/pushes the matching `vX.Y.Z` tag and publishes a GitHub release.
381
+ 7. The tag push triggers `.github/workflows/publish-pypi.yml` to publish to production PyPI.
382
+ 8. One-time setup for new projects:
380
383
  - Configure a repo secret `RELEASE_PLEASE_TOKEN` (PAT or GitHub App token) with permission to create/update PRs, tags, and releases. This ensures tag pushes from Release Please trigger downstream workflows.
381
384
  - Configure Trusted Publishers on TestPyPI and PyPI for repository `trevor-nichols/agentrules-architect`, workflow `.github/workflows/publish-pypi.yml`, and environments `testpypi`/`pypi`.
382
385
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agentrules"
7
- version = "4.2.1"
7
+ version = "4.3.0"
8
8
  description = "AGENTS.md/CLAUDE.md generator and ExecPlan harness for coding agents"
9
9
  readme = "README.md"
10
10
  authors = [{name = "trevor-nichols"}]
@@ -21,7 +21,7 @@ dependencies = [
21
21
  "anthropic>=0.78.0",
22
22
  "rich",
23
23
  "openai>=2.45.0",
24
- "google-genai>=1.51.0",
24
+ "google-genai>=1.56.0",
25
25
  "protobuf>=4.25",
26
26
  "python-dotenv",
27
27
  "tavily-python>=0.7.14",
@@ -12,7 +12,7 @@ from agentrules.core.configuration import (
12
12
  )
13
13
  from agentrules.core.configuration.services import claude_code as claude_code_service
14
14
 
15
- _DIAGNOSTIC_GATED_MODELS = ("claude-fable-5", "claude-sonnet-5")
15
+ _DIAGNOSTIC_GATED_MODELS = ("claude-fable-5", "claude-sonnet-5", "claude-opus-5")
16
16
 
17
17
 
18
18
  @dataclass(frozen=True)
@@ -17,6 +17,8 @@ from agentrules.core.types.models import (
17
17
  CLAUDE_HAIKU,
18
18
  CLAUDE_HAIKU_WITH_REASONING,
19
19
  CLAUDE_OPUS,
20
+ CLAUDE_OPUS_5,
21
+ CLAUDE_OPUS_5_WITH_REASONING,
20
22
  CLAUDE_OPUS_45,
21
23
  CLAUDE_OPUS_45_WITH_REASONING,
22
24
  CLAUDE_OPUS_46,
@@ -34,14 +36,20 @@ from agentrules.core.types.models import (
34
36
  DEEPSEEK_CHAT,
35
37
  DEEPSEEK_REASONER,
36
38
  DEEPSEEK_V4_FLASH,
39
+ DEEPSEEK_V4_FLASH_LOW,
40
+ DEEPSEEK_V4_FLASH_MAX,
37
41
  DEEPSEEK_V4_FLASH_NON_REASONING,
38
42
  DEEPSEEK_V4_PRO,
43
+ DEEPSEEK_V4_PRO_LOW,
39
44
  DEEPSEEK_V4_PRO_MAX,
40
45
  DEEPSEEK_V4_PRO_NON_REASONING,
41
46
  GEMINI_3_1_FLASH_LITE,
42
47
  GEMINI_3_1_FLASH_LITE_PREVIEW,
43
48
  GEMINI_3_1_PRO_PREVIEW,
44
49
  GEMINI_3_5_FLASH,
50
+ GEMINI_3_5_FLASH_LITE,
51
+ GEMINI_3_6_FLASH,
52
+ GEMINI_3_7_FLASH,
45
53
  GEMINI_3_FLASH_PREVIEW,
46
54
  GEMINI_3_PRO_PREVIEW,
47
55
  GEMINI_FLASH,
@@ -85,9 +93,12 @@ from agentrules.core.types.models import (
85
93
  GPT5_6_SOL_XHIGH,
86
94
  GPT5_6_TERRA_DEFAULT,
87
95
  GPT5_6_TERRA_HIGH,
96
+ GPT5_6_TERRA_LOW,
88
97
  GPT5_DEFAULT,
89
98
  GPT5_HIGH,
90
99
  GPT5_MINI,
100
+ GPT5_MINI_LOW,
101
+ GPT5_MINI_MEDIUM,
91
102
  GPT5_MINIMAL,
92
103
  GROK_4_0709,
93
104
  GROK_4_1_FAST_NON_REASONING,
@@ -98,6 +109,10 @@ from agentrules.core.types.models import (
98
109
  GROK_4_5,
99
110
  GROK_4_5_LOW,
100
111
  GROK_4_5_MEDIUM,
112
+ GROK_4_6,
113
+ GROK_4_6_LOW,
114
+ GROK_4_6_MEDIUM,
115
+ GROK_4_6_XHIGH,
101
116
  GROK_4_20_NON_REASONING,
102
117
  GROK_4_20_REASONING,
103
118
  GROK_4_FAST_NON_REASONING,
@@ -170,9 +185,10 @@ _XAI_1M_CONTEXT_MODELS: frozenset[str] = frozenset(
170
185
 
171
186
  def _apply_model_limits(config: ModelConfig) -> ModelConfig:
172
187
  """
173
- Attach provisional context window metadata and estimator hints to a ModelConfig.
188
+ Attach provider input limits and estimator hints to a ModelConfig.
174
189
 
175
- Values are conservative and logging-only; refine once telemetry is available.
190
+ These limits drive token packing and request preflight, so total-context values
191
+ must reserve any provider-required output capacity before they are recorded here.
176
192
  """
177
193
  name = config.model_name.lower()
178
194
  provider = config.provider
@@ -185,6 +201,7 @@ def _apply_model_limits(config: ModelConfig) -> ModelConfig:
185
201
  if (
186
202
  name.startswith("claude-fable-5")
187
203
  or name.startswith("claude-sonnet-5")
204
+ or name.startswith("claude-opus-5")
188
205
  or name.startswith("claude-opus-4-6")
189
206
  or name.startswith("claude-opus-4-7")
190
207
  or name.startswith("claude-opus-4-8")
@@ -209,7 +226,9 @@ def _apply_model_limits(config: ModelConfig) -> ModelConfig:
209
226
  elif "gpt-4.1" in name:
210
227
  limit = 128_000
211
228
  elif name.startswith("gpt-5.6"):
212
- limit = 1_050_000
229
+ limit = 922_000
230
+ elif name.startswith("gpt-5-mini"):
231
+ limit = 272_000
213
232
  elif "gpt-5.1" in name or "gpt-5" in name:
214
233
  limit = 400_000
215
234
  elif provider == ModelProvider.DEEPSEEK:
@@ -218,7 +237,7 @@ def _apply_model_limits(config: ModelConfig) -> ModelConfig:
218
237
  estimator_family = estimator_family or "tiktoken"
219
238
  elif provider == ModelProvider.XAI:
220
239
  if limit is None:
221
- if name.startswith("grok-4.5"):
240
+ if name.startswith(("grok-4.5", "grok-4.6")):
222
241
  limit = 500_000
223
242
  else:
224
243
  limit = 1_000_000 if name in _XAI_1M_CONTEXT_MODELS else 256_000
@@ -300,6 +319,72 @@ def _claude_code_runtime_managed_preset(
300
319
 
301
320
 
302
321
  BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
322
+ "gemini-3.7-flash": _preset(
323
+ config=GEMINI_3_7_FLASH,
324
+ label="Gemini 3.7 Flash (Medium Thinking, Recommended)",
325
+ description="Current Gemini Flash model at its default medium thinking level.",
326
+ provider=ModelProvider.GEMINI,
327
+ ),
328
+ "gemini-3.7-flash-reasoning-low": _preset(
329
+ config=GEMINI_3_7_FLASH._replace(reasoning=ReasoningMode.LOW),
330
+ label="Gemini 3.7 Flash (Low Thinking)",
331
+ description="Gemini 3.7 Flash at low thinking for latency-sensitive work.",
332
+ provider=ModelProvider.GEMINI,
333
+ ),
334
+ "gemini-3.7-flash-reasoning-high": _preset(
335
+ config=GEMINI_3_7_FLASH._replace(reasoning=ReasoningMode.HIGH),
336
+ label="Gemini 3.7 Flash (High Thinking)",
337
+ description="Gemini 3.7 Flash at high thinking for complex work.",
338
+ provider=ModelProvider.GEMINI,
339
+ ),
340
+ "gemini-3.6-flash": _preset(
341
+ config=GEMINI_3_6_FLASH,
342
+ label="Gemini 3.6 Flash (Medium Thinking)",
343
+ description="Gemini 3.6 Flash at its default medium thinking level.",
344
+ provider=ModelProvider.GEMINI,
345
+ ),
346
+ "gemini-3.6-flash-reasoning-minimal": _preset(
347
+ config=GEMINI_3_6_FLASH._replace(reasoning=ReasoningMode.MINIMAL),
348
+ label="Gemini 3.6 Flash (Minimal Thinking)",
349
+ description="Gemini 3.6 Flash at minimal thinking for the fastest supported responses.",
350
+ provider=ModelProvider.GEMINI,
351
+ ),
352
+ "gemini-3.6-flash-reasoning-low": _preset(
353
+ config=GEMINI_3_6_FLASH._replace(reasoning=ReasoningMode.LOW),
354
+ label="Gemini 3.6 Flash (Low Thinking)",
355
+ description="Gemini 3.6 Flash at low thinking for efficient workloads.",
356
+ provider=ModelProvider.GEMINI,
357
+ ),
358
+ "gemini-3.6-flash-reasoning-high": _preset(
359
+ config=GEMINI_3_6_FLASH._replace(reasoning=ReasoningMode.HIGH),
360
+ label="Gemini 3.6 Flash (High Thinking)",
361
+ description="Gemini 3.6 Flash at high thinking for deeper analysis.",
362
+ provider=ModelProvider.GEMINI,
363
+ ),
364
+ "gemini-3.5-flash-lite": _preset(
365
+ config=GEMINI_3_5_FLASH_LITE,
366
+ label="Gemini 3.5 Flash-Lite (Minimal Thinking, Recommended for Throughput)",
367
+ description="High-throughput Gemini 3.5 Flash-Lite at its default minimal thinking level.",
368
+ provider=ModelProvider.GEMINI,
369
+ ),
370
+ "gemini-3.5-flash-lite-reasoning-low": _preset(
371
+ config=GEMINI_3_5_FLASH_LITE._replace(reasoning=ReasoningMode.LOW),
372
+ label="Gemini 3.5 Flash-Lite (Low Thinking)",
373
+ description="Gemini 3.5 Flash-Lite at low thinking for efficient reasoning.",
374
+ provider=ModelProvider.GEMINI,
375
+ ),
376
+ "gemini-3.5-flash-lite-reasoning-medium": _preset(
377
+ config=GEMINI_3_5_FLASH_LITE._replace(reasoning=ReasoningMode.MEDIUM),
378
+ label="Gemini 3.5 Flash-Lite (Medium Thinking)",
379
+ description="Gemini 3.5 Flash-Lite at medium thinking for balanced workloads.",
380
+ provider=ModelProvider.GEMINI,
381
+ ),
382
+ "gemini-3.5-flash-lite-reasoning-high": _preset(
383
+ config=GEMINI_3_5_FLASH_LITE._replace(reasoning=ReasoningMode.HIGH),
384
+ label="Gemini 3.5 Flash-Lite (High Thinking)",
385
+ description="Gemini 3.5 Flash-Lite at high thinking for complex high-volume work.",
386
+ provider=ModelProvider.GEMINI,
387
+ ),
303
388
  "gemini-3.5-flash": _preset(
304
389
  config=GEMINI_3_5_FLASH,
305
390
  label="Gemini 3.5 Flash",
@@ -488,14 +573,50 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
488
573
  ),
489
574
  "claude-opus": _preset(
490
575
  config=CLAUDE_OPUS,
491
- label="Claude Opus 4.8 (Generic Key)",
492
- description="Generic Opus compatibility key updated to Claude Opus 4.8 before Opus 4.1 retirement.",
576
+ label="Claude Opus 5 (Generic Key)",
577
+ description="Generic Opus compatibility key routed to the current Claude Opus 5 family.",
493
578
  provider=ModelProvider.ANTHROPIC,
494
579
  ),
495
580
  "claude-opus-reasoning": _preset(
496
581
  config=CLAUDE_OPUS_WITH_REASONING,
497
- label="Claude Opus 4.8 (Generic Key, Adaptive Thinking)",
498
- description="Generic Opus reasoning key updated to Claude Opus 4.8 adaptive thinking at provider defaults.",
582
+ label="Claude Opus 5 (Generic Key, Adaptive Thinking)",
583
+ description="Generic Opus reasoning key routed to Claude Opus 5 adaptive thinking at provider defaults.",
584
+ provider=ModelProvider.ANTHROPIC,
585
+ ),
586
+ "claude-opus-5": _preset(
587
+ config=CLAUDE_OPUS_5,
588
+ label="Claude Opus 5",
589
+ description="Current Claude Opus family with 1M context and explicitly disabled thinking.",
590
+ provider=ModelProvider.ANTHROPIC,
591
+ ),
592
+ "claude-opus-5-reasoning-low": _preset(
593
+ config=CLAUDE_OPUS_5_WITH_REASONING._replace(anthropic_effort="low"),
594
+ label="Claude Opus 5 (Adaptive Thinking, Low Effort)",
595
+ description="Claude Opus 5 adaptive thinking at low effort.",
596
+ provider=ModelProvider.ANTHROPIC,
597
+ ),
598
+ "claude-opus-5-reasoning-medium": _preset(
599
+ config=CLAUDE_OPUS_5_WITH_REASONING._replace(anthropic_effort="medium"),
600
+ label="Claude Opus 5 (Adaptive Thinking, Medium Effort)",
601
+ description="Claude Opus 5 adaptive thinking at medium effort.",
602
+ provider=ModelProvider.ANTHROPIC,
603
+ ),
604
+ "claude-opus-5-reasoning-high": _preset(
605
+ config=CLAUDE_OPUS_5_WITH_REASONING._replace(anthropic_effort="high"),
606
+ label="Claude Opus 5 (Adaptive Thinking, High Effort)",
607
+ description="Claude Opus 5 adaptive thinking at the default high effort.",
608
+ provider=ModelProvider.ANTHROPIC,
609
+ ),
610
+ "claude-opus-5-reasoning-xhigh": _preset(
611
+ config=CLAUDE_OPUS_5_WITH_REASONING._replace(anthropic_effort="xhigh"),
612
+ label="Claude Opus 5 (Adaptive Thinking, XHigh Effort)",
613
+ description="Claude Opus 5 adaptive thinking at xhigh effort for agentic work.",
614
+ provider=ModelProvider.ANTHROPIC,
615
+ ),
616
+ "claude-opus-5-reasoning-max": _preset(
617
+ config=CLAUDE_OPUS_5_WITH_REASONING._replace(anthropic_effort="max"),
618
+ label="Claude Opus 5 (Adaptive Thinking, Max Effort)",
619
+ description="Claude Opus 5 adaptive thinking at maximum effort.",
499
620
  provider=ModelProvider.ANTHROPIC,
500
621
  ),
501
622
  "claude-opus-4.5": _preset(
@@ -632,20 +753,29 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
632
753
  ),
633
754
  "o4-mini-low": _preset(
634
755
  config=O4_MINI_LOW,
635
- label="OpenAI o4-mini (low effort)",
636
- description="Efficient modality-friendly reasoning.",
756
+ label="OpenAI o4-mini (Deprecated; successor: GPT-5.6 Terra Low)",
757
+ description=(
758
+ "Deprecated o4-mini endpoint at low reasoning. Existing selections remain on o4-mini; "
759
+ "choose GPT-5.6 Terra Low for new configurations."
760
+ ),
637
761
  provider=ModelProvider.OPENAI,
638
762
  ),
639
763
  "o4-mini-medium": _preset(
640
764
  config=O4_MINI_MEDIUM,
641
- label="OpenAI o4-mini (medium effort)",
642
- description="Balanced o4-mini configuration.",
765
+ label="OpenAI o4-mini (Deprecated; successor: GPT-5.6 Terra Medium)",
766
+ description=(
767
+ "Deprecated o4-mini endpoint at medium reasoning. Existing selections remain on o4-mini; "
768
+ "choose GPT-5.6 Terra Medium for new configurations."
769
+ ),
643
770
  provider=ModelProvider.OPENAI,
644
771
  ),
645
772
  "o4-mini-high": _preset(
646
773
  config=O4_MINI_HIGH,
647
- label="OpenAI o4-mini (high effort)",
648
- description="Highest reasoning effort for o4-mini.",
774
+ label="OpenAI o4-mini (Deprecated; successor: GPT-5.6 Terra High)",
775
+ description=(
776
+ "Deprecated o4-mini endpoint at high reasoning. Existing selections remain on o4-mini; "
777
+ "choose GPT-5.6 Terra High for new configurations."
778
+ ),
649
779
  provider=ModelProvider.OPENAI,
650
780
  ),
651
781
  "gpt4.1-default": _preset(
@@ -674,8 +804,29 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
674
804
  ),
675
805
  "gpt5-mini": _preset(
676
806
  config=GPT5_MINI,
677
- label="GPT-5 Mini (high reasoning)",
678
- description="Cost-efficient GPT-5 Mini with 400k context and high reasoning.",
807
+ label="GPT-5 Mini (Deprecated; successor: GPT-5.6 Terra High)",
808
+ description=(
809
+ "Deprecated GPT-5 Mini endpoint with 400K context and high reasoning. Existing selections "
810
+ "remain on GPT-5 Mini; choose GPT-5.6 Terra High for new configurations."
811
+ ),
812
+ provider=ModelProvider.OPENAI,
813
+ ),
814
+ "gpt5-mini-low": _preset(
815
+ config=GPT5_MINI_LOW,
816
+ label="GPT-5 Mini (Deprecated; successor: GPT-5.6 Terra Low)",
817
+ description=(
818
+ "Deprecated GPT-5 Mini endpoint with 400K context and low reasoning. Existing selections "
819
+ "remain on GPT-5 Mini; choose GPT-5.6 Terra Low for new configurations."
820
+ ),
821
+ provider=ModelProvider.OPENAI,
822
+ ),
823
+ "gpt5-mini-medium": _preset(
824
+ config=GPT5_MINI_MEDIUM,
825
+ label="GPT-5 Mini (Deprecated; successor: GPT-5.6 Terra Medium)",
826
+ description=(
827
+ "Deprecated GPT-5 Mini endpoint with 400K context and medium reasoning. Existing selections "
828
+ "remain on GPT-5 Mini; choose GPT-5.6 Terra Medium for new configurations."
829
+ ),
679
830
  provider=ModelProvider.OPENAI,
680
831
  ),
681
832
  "gpt55-none": _preset(
@@ -744,6 +895,12 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
744
895
  description="Flagship GPT-5.6 Sol at maximum reasoning effort for the hardest quality-first workloads.",
745
896
  provider=ModelProvider.OPENAI,
746
897
  ),
898
+ "gpt56-terra-low": _preset(
899
+ config=GPT5_6_TERRA_LOW,
900
+ label="GPT-5.6 Terra (low reasoning)",
901
+ description="Balanced-cost GPT-5.6 Terra with low reasoning, low verbosity, and 1.05M context.",
902
+ provider=ModelProvider.OPENAI,
903
+ ),
747
904
  "gpt56-terra-default": _preset(
748
905
  config=GPT5_6_TERRA_DEFAULT,
749
906
  label="GPT-5.6 Terra (medium reasoning)",
@@ -818,14 +975,20 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
818
975
  ),
819
976
  "gpt-5.1-codex": _preset(
820
977
  config=GPT5_1_CODEX,
821
- label="GPT-5.1 Codex",
822
- description="Coding-optimized GPT-5.1 variant via Responses API with medium reasoning.",
978
+ label="GPT-5.1 Codex (Retired; redirects to GPT-5.6 Sol)",
979
+ description=(
980
+ "Retired GPT-5.1 Codex compatibility key. Existing selections resolve to GPT-5.6 Sol "
981
+ "with medium reasoning before dispatch."
982
+ ),
823
983
  provider=ModelProvider.OPENAI,
824
984
  ),
825
985
  "gpt-5.2-codex": _preset(
826
986
  config=GPT5_2_CODEX,
827
- label="GPT-5.2 Codex",
828
- description="Coding-optimized GPT-5.2 variant via Responses API with medium reasoning.",
987
+ label="GPT-5.2 Codex (Retired; redirects to GPT-5.6 Sol)",
988
+ description=(
989
+ "Retired GPT-5.2 Codex compatibility key. Existing selections resolve to GPT-5.6 Sol "
990
+ "with medium reasoning before dispatch."
991
+ ),
829
992
  provider=ModelProvider.OPENAI,
830
993
  ),
831
994
  "gpt-5.3-codex": _preset(
@@ -906,6 +1069,18 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
906
1069
  description="Fast, cost-efficient DeepSeek V4 model with thinking enabled at high effort and 1M context.",
907
1070
  provider=ModelProvider.DEEPSEEK,
908
1071
  ),
1072
+ "deepseek-v4-flash-low": _preset(
1073
+ config=DEEPSEEK_V4_FLASH_LOW,
1074
+ label="DeepSeek V4 Flash (Thinking, Low)",
1075
+ description="DeepSeek V4 Flash with low thinking effort and the conservative 32K output cap.",
1076
+ provider=ModelProvider.DEEPSEEK,
1077
+ ),
1078
+ "deepseek-v4-flash-max": _preset(
1079
+ config=DEEPSEEK_V4_FLASH_MAX,
1080
+ label="DeepSeek V4 Flash (Thinking, Max)",
1081
+ description="DeepSeek V4 Flash with maximum thinking effort and the conservative 32K output cap.",
1082
+ provider=ModelProvider.DEEPSEEK,
1083
+ ),
909
1084
  "deepseek-v4-flash-non-reasoning": _preset(
910
1085
  config=DEEPSEEK_V4_FLASH_NON_REASONING,
911
1086
  label="DeepSeek V4 Flash (Non-Thinking)",
@@ -918,6 +1093,12 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
918
1093
  description="Highest-capability DeepSeek V4 model with thinking enabled at high effort and 1M context.",
919
1094
  provider=ModelProvider.DEEPSEEK,
920
1095
  ),
1096
+ "deepseek-v4-pro-low": _preset(
1097
+ config=DEEPSEEK_V4_PRO_LOW,
1098
+ label="DeepSeek V4 Pro (Thinking, Low)",
1099
+ description="DeepSeek V4 Pro with low thinking effort and the conservative 32K output cap.",
1100
+ provider=ModelProvider.DEEPSEEK,
1101
+ ),
921
1102
  "deepseek-v4-pro-max": _preset(
922
1103
  config=DEEPSEEK_V4_PRO_MAX,
923
1104
  label="DeepSeek V4 Pro (Thinking, Max)",
@@ -948,10 +1129,34 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
948
1129
  ),
949
1130
  provider=ModelProvider.DEEPSEEK,
950
1131
  ),
1132
+ "grok-4.6": _preset(
1133
+ config=GROK_4_6,
1134
+ label="Grok 4.6 (Reasoning High, Recommended)",
1135
+ description="Recommended general xAI model with default high reasoning and 500K context.",
1136
+ provider=ModelProvider.XAI,
1137
+ ),
1138
+ "grok-4.6-reasoning-low": _preset(
1139
+ config=GROK_4_6_LOW,
1140
+ label="Grok 4.6 (Reasoning Low)",
1141
+ description="Grok 4.6 with low reasoning for latency-sensitive work.",
1142
+ provider=ModelProvider.XAI,
1143
+ ),
1144
+ "grok-4.6-reasoning-medium": _preset(
1145
+ config=GROK_4_6_MEDIUM,
1146
+ label="Grok 4.6 (Reasoning Medium)",
1147
+ description="Grok 4.6 with medium reasoning for balanced latency and depth.",
1148
+ provider=ModelProvider.XAI,
1149
+ ),
1150
+ "grok-4.6-reasoning-xhigh": _preset(
1151
+ config=GROK_4_6_XHIGH,
1152
+ label="Grok 4.6 (Reasoning XHigh)",
1153
+ description="Grok 4.6 with xhigh reasoning for the most complex agentic work.",
1154
+ provider=ModelProvider.XAI,
1155
+ ),
951
1156
  "grok-4.5": _preset(
952
1157
  config=GROK_4_5,
953
- label="Grok 4.5 (Reasoning High, Recommended)",
954
- description="Recommended general xAI model with default high reasoning and 500k context.",
1158
+ label="Grok 4.5 (Reasoning High, Fallback)",
1159
+ description="Previous general xAI model retained as a 500K-context fallback.",
955
1160
  provider=ModelProvider.XAI,
956
1161
  ),
957
1162
  "grok-4.5-reasoning-medium": _preset(
@@ -1058,8 +1263,22 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
1058
1263
 
1059
1264
  def _build_codex_runtime_presets() -> dict[str, PresetDefinition]:
1060
1265
  return {
1061
- "codex-gpt-5.1-codex": _derive_codex_runtime_preset(BASE_MODEL_PRESETS["gpt-5.1-codex"]),
1062
- "codex-gpt-5.2-codex": _derive_codex_runtime_preset(BASE_MODEL_PRESETS["gpt-5.2-codex"]),
1266
+ "codex-gpt-5.1-codex": _derive_codex_runtime_preset(
1267
+ BASE_MODEL_PRESETS["gpt-5.1-codex"],
1268
+ label="Codex GPT-5.1 Codex (Deprecated runtime selection)",
1269
+ description=(
1270
+ "Static compatibility selection retained for saved Codex settings. It remains bound "
1271
+ "to GPT-5.1 Codex and is selectable only when the app-server catalog reports it."
1272
+ ),
1273
+ ),
1274
+ "codex-gpt-5.2-codex": _derive_codex_runtime_preset(
1275
+ BASE_MODEL_PRESETS["gpt-5.2-codex"],
1276
+ label="Codex GPT-5.2 Codex (Deprecated runtime selection)",
1277
+ description=(
1278
+ "Static compatibility selection retained for saved Codex settings. It remains bound "
1279
+ "to GPT-5.2 Codex and is selectable only when the app-server catalog reports it."
1280
+ ),
1281
+ ),
1063
1282
  "codex-gpt-5.3-codex": _derive_codex_runtime_preset(BASE_MODEL_PRESETS["gpt-5.3-codex"]),
1064
1283
  "codex-gpt-5.4": _derive_codex_runtime_preset(
1065
1284
  BASE_MODEL_PRESETS["gpt-5.4-2026-03-05"],
@@ -10,7 +10,9 @@ from __future__ import annotations
10
10
  from collections.abc import Iterable
11
11
  from dataclasses import dataclass
12
12
  from enum import Enum
13
+ from typing import cast
13
14
 
15
+ from agentrules.core.agents.base import ReasoningMode
14
16
  from agentrules.core.types.models import AnthropicEffort
15
17
 
16
18
 
@@ -33,6 +35,7 @@ class CapabilityProfile:
33
35
  supports_adaptive_thinking: bool = False
34
36
  supports_manual_thinking: bool = True
35
37
  supported_effort_levels: frozenset[AnthropicEffort] = frozenset()
38
+ supported_effort_levels_with_thinking_disabled: frozenset[AnthropicEffort] | None = None
36
39
  thinking_policy: ThinkingPolicy = ThinkingPolicy.LEGACY
37
40
  may_return_midstream_refusal: bool = False
38
41
 
@@ -46,6 +49,10 @@ _DEFAULT_PROFILE = CapabilityProfile(
46
49
  display_name="Unknown Claude family",
47
50
  )
48
51
 
52
+ _SUPPORTED_EFFORT_LEVELS: frozenset[AnthropicEffort] = frozenset(
53
+ {"low", "medium", "high", "xhigh", "max"}
54
+ )
55
+
49
56
  _CAPABILITY_PROFILES: tuple[CapabilityProfile, ...] = (
50
57
  CapabilityProfile(
51
58
  family_prefix="claude-fable-5",
@@ -83,6 +90,17 @@ _CAPABILITY_PROFILES: tuple[CapabilityProfile, ...] = (
83
90
  display_name="Claude Haiku 4.5",
84
91
  supports_structured_output_format=True,
85
92
  ),
93
+ CapabilityProfile(
94
+ family_prefix="claude-opus-5",
95
+ display_name="Claude Opus 5",
96
+ supports_structured_output_format=True,
97
+ supports_adaptive_thinking=True,
98
+ supports_manual_thinking=False,
99
+ supported_effort_levels=frozenset({"low", "medium", "high", "xhigh", "max"}),
100
+ supported_effort_levels_with_thinking_disabled=frozenset({"low", "medium", "high"}),
101
+ thinking_policy=ThinkingPolicy.ADAPTIVE_DEFAULT,
102
+ may_return_midstream_refusal=True,
103
+ ),
86
104
  CapabilityProfile(
87
105
  family_prefix="claude-opus-4-8",
88
106
  display_name="Claude Opus 4.8",
@@ -154,6 +172,94 @@ def supported_effort_levels(model_name: str) -> frozenset[AnthropicEffort]:
154
172
  return resolve_capability_profile(model_name).supported_effort_levels
155
173
 
156
174
 
175
+ def effort_from_reasoning_mode(reasoning: ReasoningMode) -> AnthropicEffort | None:
176
+ """Translate shared reasoning-effort modes to Anthropic effort values."""
177
+
178
+ if reasoning in {
179
+ ReasoningMode.LOW,
180
+ ReasoningMode.MEDIUM,
181
+ ReasoningMode.HIGH,
182
+ ReasoningMode.XHIGH,
183
+ ReasoningMode.MAX,
184
+ }:
185
+ return cast(AnthropicEffort, reasoning.value)
186
+ return None
187
+
188
+
189
+ def resolve_effort(
190
+ *,
191
+ model_name: str,
192
+ reasoning: ReasoningMode,
193
+ effort: AnthropicEffort | str | None,
194
+ ) -> AnthropicEffort | None:
195
+ """Resolve and validate the request's provider-native effort value."""
196
+
197
+ if effort is None:
198
+ requested_effort = effort_from_reasoning_mode(reasoning)
199
+ if requested_effort is None and reasoning not in {
200
+ ReasoningMode.DISABLED,
201
+ ReasoningMode.ENABLED,
202
+ ReasoningMode.DYNAMIC,
203
+ }:
204
+ raise ValueError(
205
+ f"Reasoning mode '{reasoning.value}' is not supported for Anthropic models."
206
+ )
207
+ else:
208
+ if not isinstance(effort, str):
209
+ raise ValueError(f"Invalid effort value type: {type(effort)!r}")
210
+
211
+ normalized_effort = effort.strip().lower()
212
+ if normalized_effort not in _SUPPORTED_EFFORT_LEVELS:
213
+ supported = ", ".join(sorted(_SUPPORTED_EFFORT_LEVELS))
214
+ raise ValueError(
215
+ f"Invalid effort value '{effort}'. Supported values: {supported}."
216
+ )
217
+ requested_effort = cast(AnthropicEffort, normalized_effort)
218
+
219
+ if requested_effort is None:
220
+ return None
221
+
222
+ allowed_effort_levels = supported_effort_levels(model_name)
223
+ if not allowed_effort_levels:
224
+ raise ValueError(
225
+ "Effort is only supported for "
226
+ f"{describe_profiles_with_effort()}; model '{model_name}' does not support "
227
+ "output_config.effort."
228
+ )
229
+ if requested_effort not in allowed_effort_levels:
230
+ supported = ", ".join(sorted(allowed_effort_levels))
231
+ raise ValueError(
232
+ f"Effort '{requested_effort}' is not supported for model '{model_name}'. "
233
+ f"Supported values for this model: {supported}."
234
+ )
235
+ return requested_effort
236
+
237
+
238
+ def validate_thinking_effort_compatibility(
239
+ *,
240
+ model_name: str,
241
+ thinking_type: str | None,
242
+ effort: AnthropicEffort | str | None,
243
+ ) -> None:
244
+ """Reject provider-invalid combinations of thinking policy and effort."""
245
+
246
+ if thinking_type != "disabled" or effort is None:
247
+ return
248
+
249
+ allowed_effort_levels = (
250
+ resolve_capability_profile(model_name).supported_effort_levels_with_thinking_disabled
251
+ )
252
+ if allowed_effort_levels is None or effort in allowed_effort_levels:
253
+ return
254
+
255
+ supported = ", ".join(sorted(allowed_effort_levels))
256
+ raise ValueError(
257
+ f"Effort '{effort}' is not supported for model '{model_name}' when thinking is "
258
+ f"disabled. Supported values for disabled thinking: {supported}. Enable adaptive "
259
+ "thinking or select a supported effort level."
260
+ )
261
+
262
+
157
263
  def supports_effort(model_name: str) -> bool:
158
264
  """Return True when the model supports output_config.effort."""
159
265