shotgun-sh 0.2.5.dev1__tar.gz → 0.2.21.dev1__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.

Potentially problematic release.


This version of shotgun-sh might be problematic. Click here for more details.

Files changed (218) hide show
  1. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/LICENSE +1 -1
  2. shotgun_sh-0.2.21.dev1/PKG-INFO +472 -0
  3. shotgun_sh-0.2.21.dev1/README.md +412 -0
  4. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/hatch_build.py +38 -8
  5. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/pyproject.toml +15 -4
  6. shotgun_sh-0.2.21.dev1/src/shotgun/agents/agent_manager.py +1363 -0
  7. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/common.py +69 -70
  8. shotgun_sh-0.2.21.dev1/src/shotgun/agents/config/README.md +89 -0
  9. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/config/__init__.py +10 -1
  10. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/config/constants.py +0 -6
  11. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/config/manager.py +352 -62
  12. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/config/models.py +66 -1
  13. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/config/provider.py +60 -5
  14. shotgun_sh-0.2.21.dev1/src/shotgun/agents/config/streaming_test.py +119 -0
  15. shotgun_sh-0.2.21.dev1/src/shotgun/agents/context_analyzer/__init__.py +28 -0
  16. shotgun_sh-0.2.21.dev1/src/shotgun/agents/context_analyzer/analyzer.py +471 -0
  17. shotgun_sh-0.2.21.dev1/src/shotgun/agents/context_analyzer/constants.py +9 -0
  18. shotgun_sh-0.2.21.dev1/src/shotgun/agents/context_analyzer/formatter.py +115 -0
  19. shotgun_sh-0.2.21.dev1/src/shotgun/agents/context_analyzer/models.py +212 -0
  20. shotgun_sh-0.2.21.dev1/src/shotgun/agents/conversation_history.py +229 -0
  21. shotgun_sh-0.2.21.dev1/src/shotgun/agents/conversation_manager.py +143 -0
  22. shotgun_sh-0.2.21.dev1/src/shotgun/agents/error/__init__.py +11 -0
  23. shotgun_sh-0.2.21.dev1/src/shotgun/agents/error/models.py +19 -0
  24. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/export.py +6 -7
  25. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/compaction.py +9 -4
  26. shotgun_sh-0.2.21.dev1/src/shotgun/agents/history/context_extraction.py +195 -0
  27. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/history_processors.py +113 -5
  28. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/token_counting/anthropic.py +47 -3
  29. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/token_counting/base.py +14 -3
  30. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/token_counting/openai.py +11 -1
  31. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/token_counting/sentencepiece_counter.py +8 -0
  32. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/token_counting/tokenizer_cache.py +3 -1
  33. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/token_counting/utils.py +0 -3
  34. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/models.py +50 -2
  35. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/plan.py +6 -7
  36. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/research.py +7 -8
  37. shotgun_sh-0.2.21.dev1/src/shotgun/agents/runner.py +221 -0
  38. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/specify.py +6 -7
  39. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tasks.py +6 -7
  40. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/__init__.py +0 -2
  41. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/codebase/codebase_shell.py +6 -0
  42. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/codebase/directory_lister.py +6 -0
  43. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/codebase/file_read.py +11 -2
  44. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/codebase/query_graph.py +6 -0
  45. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/codebase/retrieve_code.py +6 -0
  46. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/file_management.py +82 -16
  47. shotgun_sh-0.2.21.dev1/src/shotgun/agents/tools/registry.py +217 -0
  48. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/web_search/__init__.py +8 -8
  49. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/web_search/anthropic.py +8 -2
  50. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/web_search/gemini.py +7 -1
  51. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/web_search/openai.py +7 -1
  52. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/web_search/utils.py +2 -2
  53. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/usage_manager.py +16 -11
  54. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/api_endpoints.py +7 -3
  55. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/build_constants.py +2 -2
  56. shotgun_sh-0.2.21.dev1/src/shotgun/cli/clear.py +53 -0
  57. shotgun_sh-0.2.21.dev1/src/shotgun/cli/compact.py +186 -0
  58. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/config.py +8 -5
  59. shotgun_sh-0.2.21.dev1/src/shotgun/cli/context.py +154 -0
  60. shotgun_sh-0.2.21.dev1/src/shotgun/cli/error_handler.py +24 -0
  61. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/export.py +34 -34
  62. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/feedback.py +4 -2
  63. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/models.py +1 -0
  64. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/plan.py +34 -34
  65. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/research.py +18 -10
  66. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/specify.py +20 -19
  67. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/tasks.py +34 -34
  68. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/update.py +16 -2
  69. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/change_detector.py +5 -3
  70. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/code_retrieval.py +4 -2
  71. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/ingestor.py +10 -8
  72. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/manager.py +13 -4
  73. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/nl_query.py +1 -1
  74. shotgun_sh-0.2.21.dev1/src/shotgun/exceptions.py +355 -0
  75. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/llm_proxy/__init__.py +17 -0
  76. shotgun_sh-0.2.21.dev1/src/shotgun/llm_proxy/client.py +215 -0
  77. shotgun_sh-0.2.21.dev1/src/shotgun/llm_proxy/models.py +137 -0
  78. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/logging_config.py +60 -27
  79. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/main.py +75 -11
  80. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/posthog_telemetry.py +37 -28
  81. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/export.j2 +18 -1
  82. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/partials/common_agent_system_prompt.j2 +6 -1
  83. shotgun_sh-0.2.21.dev1/src/shotgun/prompts/agents/partials/interactive_mode.j2 +43 -0
  84. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/plan.j2 +1 -1
  85. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/research.j2 +1 -1
  86. shotgun_sh-0.2.21.dev1/src/shotgun/prompts/agents/specify.j2 +318 -0
  87. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/tasks.j2 +1 -1
  88. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/sdk/codebase.py +14 -3
  89. shotgun_sh-0.2.21.dev1/src/shotgun/sentry_telemetry.py +232 -0
  90. shotgun_sh-0.2.21.dev1/src/shotgun/settings.py +243 -0
  91. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/telemetry.py +18 -33
  92. shotgun_sh-0.2.21.dev1/src/shotgun/tui/app.py +381 -0
  93. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/commands/__init__.py +1 -1
  94. shotgun_sh-0.2.21.dev1/src/shotgun/tui/components/context_indicator.py +179 -0
  95. shotgun_sh-0.2.21.dev1/src/shotgun/tui/components/mode_indicator.py +70 -0
  96. shotgun_sh-0.2.21.dev1/src/shotgun/tui/components/status_bar.py +48 -0
  97. shotgun_sh-0.2.21.dev1/src/shotgun/tui/containers.py +91 -0
  98. shotgun_sh-0.2.21.dev1/src/shotgun/tui/dependencies.py +39 -0
  99. shotgun_sh-0.2.21.dev1/src/shotgun/tui/protocols.py +45 -0
  100. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat/__init__.py +5 -0
  101. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat/chat.tcss +54 -0
  102. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat/chat_screen.py +1322 -0
  103. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat/codebase_index_prompt_screen.py +115 -0
  104. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat/codebase_index_selection.py +12 -0
  105. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat/help_text.py +40 -0
  106. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat/prompt_history.py +48 -0
  107. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/chat.tcss +11 -0
  108. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/chat_screen/command_providers.py +81 -4
  109. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat_screen/hint_message.py +115 -0
  110. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat_screen/history/__init__.py +22 -0
  111. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat_screen/history/agent_response.py +66 -0
  112. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat_screen/history/chat_history.py +115 -0
  113. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat_screen/history/formatters.py +115 -0
  114. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat_screen/history/partial_response.py +43 -0
  115. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/chat_screen/history/user_question.py +42 -0
  116. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/confirmation_dialog.py +151 -0
  117. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/directory_setup.py +117 -0
  118. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/feedback.py +14 -7
  119. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/github_issue.py +111 -0
  120. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/model_picker.py +57 -25
  121. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/onboarding.py +431 -0
  122. shotgun_sh-0.2.21.dev1/src/shotgun/tui/screens/pipx_migration.py +159 -0
  123. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/provider_config.py +75 -35
  124. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/shotgun_auth.py +2 -12
  125. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/welcome.py +55 -12
  126. shotgun_sh-0.2.21.dev1/src/shotgun/tui/services/__init__.py +5 -0
  127. shotgun_sh-0.2.21.dev1/src/shotgun/tui/services/conversation_service.py +184 -0
  128. shotgun_sh-0.2.21.dev1/src/shotgun/tui/state/__init__.py +7 -0
  129. shotgun_sh-0.2.21.dev1/src/shotgun/tui/state/processing_state.py +185 -0
  130. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/utils/mode_progress.py +14 -7
  131. shotgun_sh-0.2.21.dev1/src/shotgun/tui/widgets/__init__.py +5 -0
  132. shotgun_sh-0.2.21.dev1/src/shotgun/tui/widgets/widget_coordinator.py +263 -0
  133. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/utils/file_system_utils.py +22 -2
  134. shotgun_sh-0.2.21.dev1/src/shotgun/utils/marketing.py +110 -0
  135. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/utils/update_checker.py +69 -14
  136. shotgun_sh-0.2.5.dev1/PKG-INFO +0 -467
  137. shotgun_sh-0.2.5.dev1/README.md +0 -413
  138. shotgun_sh-0.2.5.dev1/src/shotgun/agents/agent_manager.py +0 -717
  139. shotgun_sh-0.2.5.dev1/src/shotgun/agents/conversation_history.py +0 -106
  140. shotgun_sh-0.2.5.dev1/src/shotgun/agents/conversation_manager.py +0 -105
  141. shotgun_sh-0.2.5.dev1/src/shotgun/agents/history/context_extraction.py +0 -108
  142. shotgun_sh-0.2.5.dev1/src/shotgun/agents/tools/user_interaction.py +0 -37
  143. shotgun_sh-0.2.5.dev1/src/shotgun/prompts/agents/partials/interactive_mode.j2 +0 -26
  144. shotgun_sh-0.2.5.dev1/src/shotgun/prompts/agents/specify.j2 +0 -51
  145. shotgun_sh-0.2.5.dev1/src/shotgun/sentry_telemetry.py +0 -85
  146. shotgun_sh-0.2.5.dev1/src/shotgun/tui/app.py +0 -156
  147. shotgun_sh-0.2.5.dev1/src/shotgun/tui/screens/chat.py +0 -804
  148. shotgun_sh-0.2.5.dev1/src/shotgun/tui/screens/chat_screen/hint_message.py +0 -40
  149. shotgun_sh-0.2.5.dev1/src/shotgun/tui/screens/chat_screen/history.py +0 -352
  150. shotgun_sh-0.2.5.dev1/src/shotgun/tui/screens/directory_setup.py +0 -113
  151. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/.gitignore +0 -0
  152. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/__init__.py +0 -0
  153. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/__init__.py +0 -0
  154. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/__init__.py +0 -0
  155. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/constants.py +0 -0
  156. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/history_building.py +0 -0
  157. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/message_utils.py +0 -0
  158. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/token_counting/__init__.py +0 -0
  159. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/history/token_estimation.py +0 -0
  160. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/llm.py +0 -0
  161. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/messages.py +0 -0
  162. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/codebase/__init__.py +0 -0
  163. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/agents/tools/codebase/models.py +0 -0
  164. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/__init__.py +0 -0
  165. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/codebase/__init__.py +0 -0
  166. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/codebase/commands.py +0 -0
  167. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/codebase/models.py +0 -0
  168. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/cli/utils.py +0 -0
  169. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/__init__.py +0 -0
  170. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/__init__.py +0 -0
  171. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/cypher_models.py +0 -0
  172. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/language_config.py +0 -0
  173. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/core/parser_loader.py +0 -0
  174. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/models.py +0 -0
  175. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/codebase/service.py +0 -0
  176. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/llm_proxy/clients.py +0 -0
  177. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/llm_proxy/constants.py +0 -0
  178. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/__init__.py +0 -0
  179. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/__init__.py +0 -0
  180. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/partials/codebase_understanding.j2 +0 -0
  181. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/partials/content_formatting.j2 +0 -0
  182. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/state/codebase/codebase_graphs_available.j2 +0 -0
  183. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/agents/state/system_state.j2 +0 -0
  184. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/codebase/__init__.py +0 -0
  185. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/codebase/cypher_query_patterns.j2 +0 -0
  186. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/codebase/cypher_system.j2 +0 -0
  187. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/codebase/enhanced_query_context.j2 +0 -0
  188. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/codebase/partials/cypher_rules.j2 +0 -0
  189. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/codebase/partials/graph_schema.j2 +0 -0
  190. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/codebase/partials/temporal_context.j2 +0 -0
  191. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/history/__init__.py +0 -0
  192. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/history/incremental_summarization.j2 +0 -0
  193. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/history/summarization.j2 +0 -0
  194. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/loader.py +0 -0
  195. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/prompts/tools/web_search.j2 +0 -0
  196. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/py.typed +0 -0
  197. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/sdk/__init__.py +0 -0
  198. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/sdk/exceptions.py +0 -0
  199. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/sdk/models.py +0 -0
  200. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/sdk/services.py +0 -0
  201. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/shotgun_web/__init__.py +0 -0
  202. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/shotgun_web/client.py +0 -0
  203. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/shotgun_web/constants.py +0 -0
  204. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/shotgun_web/models.py +0 -0
  205. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/__init__.py +0 -0
  206. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/components/prompt_input.py +0 -0
  207. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/components/spinner.py +0 -0
  208. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/components/splash.py +0 -0
  209. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/components/vertical_tail.py +0 -0
  210. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/filtered_codebase_service.py +0 -0
  211. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/chat_screen/__init__.py +0 -0
  212. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/screens/splash.py +0 -0
  213. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/styles.tcss +0 -0
  214. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/tui/utils/__init__.py +0 -0
  215. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/utils/__init__.py +0 -0
  216. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/utils/datetime_utils.py +0 -0
  217. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/utils/env_utils.py +0 -0
  218. {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.21.dev1}/src/shotgun/utils/source_detection.py +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Proofs.io
3
+ Copyright (c) 2025 Mimir AI, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,472 @@
1
+ Metadata-Version: 2.4
2
+ Name: shotgun-sh
3
+ Version: 0.2.21.dev1
4
+ Summary: AI-powered research, planning, and task management CLI tool
5
+ Project-URL: Homepage, https://shotgun.sh/
6
+ Project-URL: Repository, https://github.com/shotgun-sh/shotgun
7
+ Project-URL: Issues, https://github.com/shotgun-sh/shotgun-alpha/issues
8
+ Project-URL: Discord, https://discord.gg/5RmY6J2N7s
9
+ Author-email: "Proofs.io" <hello@proofs.io>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: agent,ai,cli,llm,planning,productivity,pydantic-ai,research,task-management
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Topic :: Utilities
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: aiofiles>=24.0.0
25
+ Requires-Dist: anthropic>=0.39.0
26
+ Requires-Dist: dependency-injector>=4.41.0
27
+ Requires-Dist: genai-prices>=0.0.27
28
+ Requires-Dist: httpx>=0.27.0
29
+ Requires-Dist: jinja2>=3.1.0
30
+ Requires-Dist: kuzu>=0.7.0
31
+ Requires-Dist: logfire>=2.0.0
32
+ Requires-Dist: openai>=1.0.0
33
+ Requires-Dist: packaging>=23.0
34
+ Requires-Dist: posthog>=3.0.0
35
+ Requires-Dist: pydantic-ai>=0.0.14
36
+ Requires-Dist: pydantic-settings>=2.0.0
37
+ Requires-Dist: pyperclip>=1.10.0
38
+ Requires-Dist: rich>=13.0.0
39
+ Requires-Dist: sentencepiece>=0.2.0
40
+ Requires-Dist: sentry-sdk[pure-eval]>=2.0.0
41
+ Requires-Dist: tenacity>=8.0.0
42
+ Requires-Dist: textual-dev>=1.7.0
43
+ Requires-Dist: textual-serve>=0.1.0
44
+ Requires-Dist: textual>=6.1.0
45
+ Requires-Dist: tiktoken>=0.7.0
46
+ Requires-Dist: tree-sitter-go>=0.23.0
47
+ Requires-Dist: tree-sitter-javascript>=0.23.0
48
+ Requires-Dist: tree-sitter-python>=0.23.0
49
+ Requires-Dist: tree-sitter-rust>=0.23.0
50
+ Requires-Dist: tree-sitter-typescript>=0.23.0
51
+ Requires-Dist: tree-sitter>=0.21.0
52
+ Requires-Dist: typer>=0.12.0
53
+ Requires-Dist: watchdog>=4.0.0
54
+ Provides-Extra: dev
55
+ Requires-Dist: commitizen>=3.13.0; extra == 'dev'
56
+ Requires-Dist: lefthook>=1.12.0; extra == 'dev'
57
+ Requires-Dist: mypy>=1.11.0; extra == 'dev'
58
+ Requires-Dist: ruff>=0.6.0; extra == 'dev'
59
+ Description-Content-Type: text/markdown
60
+
61
+ <div align="center">
62
+ <img width="400" height="150" alt="Shotgun logo transparent background" src="https://github.com/user-attachments/assets/08f9ccd5-f2e8-4bf4-9cb2-2f0de866a76a" />
63
+
64
+ ### Spec-Driven Development
65
+
66
+
67
+ **Write codebase-aware specs for AI coding agents (Codex, Cursor, Claude Code) so they don't derail.**
68
+ <p align="center">
69
+ <a href="https://github.com/shotgun-sh/shotgun">
70
+ <img src="https://img.shields.io/badge/python-3.11+-blue?style=flat&logo=python&logoColor=white" />
71
+ </a>
72
+ <a href="https://www.producthunt.com/products/shotgun-cli/launches/shotgun-cli">
73
+ <img src="https://img.shields.io/badge/Product%20Hunt-%237%20Product%20of%20the%20Day-FF6154?style=flat&logo=producthunt&logoColor=white" />
74
+ </a>
75
+ <a href="https://github.com/shotgun-sh/shotgun?tab=contributing-ov-file">
76
+ <img src="https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat" />
77
+ </a>
78
+ <a href="https://github.com/shotgun-sh/shotgun?tab=MIT-1-ov-file">
79
+ <img src="https://img.shields.io/badge/license-MIT-blue?style=flat" />
80
+ </a>
81
+ <a href="https://discord.com/invite/5RmY6J2N7s">
82
+ <img src="https://img.shields.io/badge/discord-150+%20online-5865F2?style=flat&logo=discord&logoColor=white" />
83
+ </a>
84
+ </p>
85
+
86
+ [![Website](https://img.shields.io/badge/-shotgun.sh-5865F2?style=social&logo=safari&logoColor=5865F2)](https://shotgun.sh) [![Follow @ShotgunCLI](https://img.shields.io/badge/Follow%20@ShotgunCLI-1DA1F2?style=social&logo=x&logoColor=000000)](https://x.com/ShotgunCLI) [![YouTube](https://img.shields.io/badge/-@shotgunCLI-FF0000?style=social&logo=youtube&logoColor=red)](https://www.youtube.com/@shotgunCLI)
87
+
88
+ </div>
89
+
90
+ ---
91
+
92
+ <table>
93
+ <tr>
94
+ <td>
95
+
96
+ **Shotgun is a CLI tool** that generates codebase-aware specs for AI coding agents like Cursor, Claude Code, and Lovable. **It reads your entire repository**, researches how new features should fit your architecture, and produces technical specifications that keep AI agents on track—so they build what you actually want instead of derailing halfway through. **Bring your own key (BYOK) or use a Shotgun subscription — $10 for $10 in usage.**
97
+
98
+ It includes research on existing patterns, implementation plans that respect your architecture, and task breakdowns ready to export as **AGENTS.md** files. Each spec is complete enough that your AI agent can work longer and further without losing context or creating conflicts.
99
+
100
+ <p align="center">
101
+ <img src="https://github.com/user-attachments/assets/9c7ca014-1ed3-4935-b310-9147b275fdc7" alt="Shotgun Demo" />
102
+ </p>
103
+
104
+ </td>
105
+ </tr>
106
+ </table>
107
+
108
+ ---
109
+
110
+ # 📦 Installation
111
+
112
+ ### 1. Install uv
113
+
114
+ Shotgun runs via `uvx` or `uv tool install`. First, install `uv` for your platform:
115
+
116
+ <table>
117
+ <tr>
118
+ <th>Platform</th>
119
+ <th>Installation Command</th>
120
+ </tr>
121
+ <tr>
122
+ <td><strong>macOS</strong> (Homebrew)</td>
123
+ <td>
124
+
125
+ ```bash
126
+ brew install uv
127
+ ```
128
+ </td>
129
+ </tr>
130
+ <tr>
131
+ <td><strong>macOS/Linux</strong> (curl)</td>
132
+ <td>
133
+
134
+ ```bash
135
+ curl -LsSf https://astral.sh/uv/install.sh | sh
136
+ ```
137
+ </td>
138
+ </tr>
139
+ <tr>
140
+ <td><strong>Windows</strong> (PowerShell)</td>
141
+ <td>
142
+
143
+ ```powershell
144
+ powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
145
+ ```
146
+ </td>
147
+ </tr>
148
+ </table>
149
+
150
+ _💡 Restart your terminal after installation_
151
+
152
+ ### 2. Run Shotgun
153
+
154
+ <table>
155
+ <tr>
156
+ <th>🚀 Try It Out (Ephemeral)</th>
157
+ <th>⚡ Regular Use (Permanent)</th>
158
+ </tr>
159
+ <tr>
160
+ <td>
161
+
162
+ **Best for:** Testing Shotgun first
163
+
164
+ ```bash
165
+ uvx shotgun-sh@latest
166
+ ```
167
+
168
+ No installation needed, runs immediately
169
+
170
+ </td>
171
+ <td>
172
+
173
+ **Best for:** Daily use
174
+
175
+ ```bash
176
+ uv tool install shotgun-sh
177
+ ```
178
+
179
+ Then run anywhere: ``` shotgun ```
180
+
181
+ </td>
182
+ </tr>
183
+ </table>
184
+
185
+ _**Why uv?** It's 10-100x faster than pip and handles binary wheels reliably—no cmake/build tool errors._
186
+
187
+ ### 3. Get Started
188
+
189
+ When you launch Shotgun, it will guide you through:
190
+
191
+ | Step | What Happens |
192
+ |------|--------------|
193
+ | **1. Codebase Indexing** | Builds a searchable graph of your entire repository |
194
+ | **2. LLM Setup** | Configure OpenAI, Anthropic, or Gemini |
195
+ | **3. First Research** | Start generating codebase-aware specs |
196
+
197
+ _**💡 Pro tip:** Run Shotgun in your IDE's terminal for the best experience._
198
+
199
+ > [!WARNING]
200
+ > **Upgrading from alpha?** Uninstall the old version first:
201
+ > ```bash
202
+ > npm uninstall -g @proofs-io/shotgun @proofs-io/shotgun-server
203
+ > ```
204
+
205
+ ---
206
+
207
+ # 🎥 Demo
208
+
209
+ <p align="center">
210
+ <a href="https://youtu.be/nR6iKbJ8l_I">
211
+ <img src="https://github.com/user-attachments/assets/37eae206-0d6f-4499-b980-2f33a5aed65d" alt="Watch the Shotgun demo" width="720" height="405">
212
+ </a>
213
+ </p>
214
+
215
+ _Click the image above to watch the full demo on YouTube_
216
+
217
+ ---
218
+
219
+ # 🎯 Usage
220
+
221
+ Shotgun's Terminal UI guides you through **5 specialized modes** — from research to export. Each mode has a dedicated AI agent optimized for that phase.
222
+
223
+ ### Launch Shotgun in your project directory:
224
+
225
+ | Already Installed | First Time / Try It Out |
226
+ |-------------------|------------------------|
227
+ | `shotgun` | `uvx shotgun-sh@latest` |
228
+
229
+ _The TUI opens automatically. **Press `Shift+Tab` to switch modes** or `Ctrl+P` for the command palette._
230
+
231
+ ### The 5-Phase Workflow
232
+
233
+ <table>
234
+ <tr>
235
+ <td align="center"><b>🔬 Research</b><br/>Explore & understand</td>
236
+ <td align="center">→</td>
237
+ <td align="center"><b>📝 Specify</b><br/>Define requirements</td>
238
+ <td align="center">→</td>
239
+ <td align="center"><b>📋 Plan</b><br/>Create roadmap</td>
240
+ <td align="center">→</td>
241
+ <td align="center"><b>✅ Tasks</b><br/>Break into steps</td>
242
+ <td align="center">→</td>
243
+ <td align="center"><b>📤 Export</b><br/>Format for AI</td>
244
+ </tr>
245
+ </table>
246
+
247
+ _Each phase builds on the previous one, creating a complete specification ready for AI coding agents._
248
+
249
+ ### Mode Reference
250
+
251
+ | Mode | What It Does | Example Prompt | Output |
252
+ |:-----|:-------------|:---------------|:-------|
253
+ | **🔬&nbsp;Research** | Searches codebase + web, identifies patterns | `How do we handle authentication in this codebase?` | `research.md` |
254
+ | **📝&nbsp;Specify** | Creates technical specs aware of architecture | `Add OAuth2 authentication with refresh token support` | `specification.md` |
255
+ | **📋&nbsp;Plan** | Generates implementation roadmap | `Create an implementation plan for the payment system` | `plan.md` |
256
+ | **✅&nbsp;Tasks** | Breaks plans into actionable items | `Break down the user dashboard plan into tasks` | `tasks.md` |
257
+ | **📤&nbsp;Export** | Formats for AI coding agents | `Export everything to AGENTS.md` | `AGENTS.md` |
258
+
259
+ _**Mode switching:** `Shift+Tab` cycles through modes_
260
+
261
+ _**Visual status:** See current mode and progress at bottom_
262
+
263
+ ### ⌨️ Keyboard Shortcuts
264
+
265
+ | Shortcut | Action |
266
+ |----------|--------|
267
+ | `Shift+Tab` | Switch modes |
268
+ | `Ctrl+P` | Open command palette |
269
+ | `Ctrl+C` | Cancel operation |
270
+ | `Escape` | Exit Q&A / stop agent |
271
+ | `Ctrl+U` | View usage stats |
272
+
273
+ ### Tips for Better Results
274
+
275
+ | Do This | Not This |
276
+ |---------|----------|
277
+ | ✅ `Research how we handle auth` | ❌ Jump straight to building |
278
+ | ✅ `Shotgun please ask me questions first` | ❌ Assume Shotgun knows your needs |
279
+ | ✅ `I'm working on payments, need refunds` | ❌ `Add refunds` (no context) |
280
+ | ✅ Follow Research → Specify → Plan → Tasks | ❌ Skip phases |
281
+
282
+ **Result:** Your AI coding agent gets complete context—what exists, why, and what to build.
283
+
284
+ **Note:** CLI available in [docs/CLI.md](docs/CLI.md), but TUI is recommended.
285
+
286
+ ---
287
+
288
+ # ✨ Features
289
+
290
+ ### What Makes Shotgun Different
291
+
292
+ <table>
293
+ <tr>
294
+ <th width="25%">Feature</th>
295
+ <th width="35%">Shotgun</th>
296
+ <th width="40%">Other Tools</th>
297
+ </tr>
298
+
299
+ <tr>
300
+ <td><strong>Codebase Understanding</strong></td>
301
+ <td>
302
+ Reads your <strong>entire repository</strong> before generating specs. Finds existing patterns, dependencies, and architecture.
303
+ </td>
304
+ <td>
305
+ Require manual context or search each time. No persistent understanding of your codebase structure.
306
+ </td>
307
+ </tr>
308
+
309
+ <tr>
310
+ <td><strong>Research Phase</strong></td>
311
+ <td>
312
+ Starts with research—discovers what you already have AND what exists externally before writing anything.
313
+ </td>
314
+ <td>
315
+ Start at specification. Build first, discover problems later.
316
+ </td>
317
+ </tr>
318
+
319
+ <tr>
320
+ <td><strong>Dedicated Agents Per Mode</strong></td>
321
+ <td>
322
+ Each mode (research, spec, plan, tasks, export) uses a <strong>separate specialized agent</strong> with prompts tailored specifically for that phase. 100% user-controllable via mode switching.
323
+ </td>
324
+ <td>
325
+ Single-agent or one-size-fits-all prompts.
326
+ </td>
327
+ </tr>
328
+
329
+ <tr>
330
+ <td><strong>Structured Workflow</strong></td>
331
+ <td>
332
+ 5-phase journey with checkpoints: Research → Spec → Plan → Tasks → Export
333
+ </td>
334
+ <td>
335
+ No structure. Just "prompt and hope."
336
+ </td>
337
+ </tr>
338
+
339
+ <tr>
340
+ <td><strong>Export Formats</strong></td>
341
+ <td>
342
+ <code>AGENTS.md</code> files ready for Cursor, Claude Code, Windsurf, Lovable—your choice of tool.
343
+ </td>
344
+ <td>
345
+ Locked into specific IDE or coding agent.
346
+ </td>
347
+ </tr>
348
+
349
+ </table>
350
+
351
+ ### Case Study - Real Example:
352
+
353
+ We had to implement payments. Cursor, Claude Code, and Copilot all suggested building a custom payment proxy — 3-4 weeks of development.
354
+
355
+ ⭐ Shotgun's research found [LiteLLM Proxy](https://docs.litellm.ai/docs/simple_proxy) instead—**30 minutes to discover, 5 days to deploy, first customer in 14 hours.**
356
+
357
+ ****80% less dev time. Near-zero technical debt.****
358
+
359
+ ### **[📖 Read the full case study](docs/CASE_STUDY.md)**
360
+
361
+ ---
362
+
363
+ # Use Cases
364
+
365
+ - **🚀 Onboarding** - New developer? Shotgun maps your entire architecture and generates docs that actually match the code
366
+ - **🔧 Refactoring** - Understand all dependencies before touching anything. Keep your refactor from becoming a rewrite
367
+ - **🌱 Greenfield Projects** - Research existing solutions globally before writing line one
368
+ - **➕ Adding Features** - Know exactly where your feature fits. Prevent duplicate functionality
369
+ - **📦 Migration** - Map the old, plan the new, track the delta. Break migration into safe stages
370
+
371
+ **📚 Want to see a detailed example?** Check out our [Case Study](docs/CASE_STUDY.md) showing Shotgun in action on a real-world project.
372
+
373
+ ---
374
+
375
+ # FAQ
376
+
377
+ **Q: Does Shotgun collect any stats or data?**
378
+
379
+ A: We only gather minimal, anonymous events (e.g., install, server start, tool call). We don't collect the content itself—only that an event occurred. We use Sentry for error reporting to improve stability.
380
+
381
+ **Q: Does my code leave my computer when indexing?**
382
+
383
+ A: No. When you index your codebase, all indexing happens locally on your machine. The index is stored in `~/.shotgun-sh/codebases/` and never sent to any server. Your code stays on your computer.
384
+
385
+ ![Indexing Privacy](docs/index_codebase_privacy.png)
386
+
387
+ **Q: Local LLMs?**
388
+
389
+ A: Planned. We'll publish compatibility notes and local provider integrations.
390
+
391
+ **Q: What LLM providers are supported?**
392
+
393
+ A: Currently OpenAI, Anthropic (Claude), and Google Gemini. Local LLM support is on the roadmap.
394
+
395
+ **Q: Can I use Shotgun offline?**
396
+
397
+ A: You need an internet connection for LLM API calls, but your codebase stays local.
398
+
399
+ **Q: How does the code graph work?**
400
+
401
+ A: Shotgun indexes your codebase using tree-sitter for accurate parsing and creates a searchable graph of your code structure, dependencies, and relationships.
402
+
403
+ ---
404
+ # Contributing
405
+
406
+ Shotgun is open-source and we welcome contributions. Whether you're fixing bugs, proposing features, improving docs, or spreading the word—we'd love to have you as part of the community.
407
+
408
+ ### Ways to contribute:
409
+
410
+ - **Bug Report:** Found an issue? [Create a bug report](https://github.com/shotgun-sh/shotgun/issues/new?template=bug_report.md)
411
+ - **Feature Request:** Have an idea to make Shotgun better? [Submit a feature request](https://github.com/shotgun-sh/shotgun/issues/new?template=feature_request.md)
412
+ - **Documentation:** See something missing in the docs? [Request documentation](https://github.com/shotgun-sh/shotgun/issues/new?template=documentation.md)
413
+
414
+ **Not sure where to start?** Join our Discord and we'll help you get started!
415
+
416
+ <div align="left">
417
+ <a href="https://discord.com/invite/5RmY6J2N7s">
418
+ <img src="https://img.shields.io/badge/Join%20our%20community-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join Discord" />
419
+ </a>
420
+ </div>
421
+
422
+ ### Development Resources
423
+
424
+ - **[Contributing Guide](docs/CONTRIBUTING.md)** - Setup, workflow, and guidelines
425
+ - **[Git Hooks](docs/GIT_HOOKS.md)** - Lefthook, trufflehog, and security scanning
426
+ - **[CI/CD](docs/CI_CD.md)** - GitHub Actions and automated testing
427
+ - **[Observability](docs/OBSERVABILITY.md)** - Telemetry, Logfire, and monitoring
428
+ - **[Docker](docs/DOCKER.md)** - Container setup and deployment
429
+
430
+ ---
431
+
432
+ <div align="center">
433
+
434
+ ## 🚀 Ready to Stop AI Agents from Derailing?
435
+
436
+ **Research → Specify → Plan → Tasks → Export** — Five phases that give AI agents the full picture.
437
+
438
+ ```bash
439
+ uvx shotgun-sh@latest
440
+ ```
441
+
442
+
443
+ ### ⭐ Star us on GitHub
444
+
445
+
446
+ <a href="https://github.com/shotgun-sh/shotgun">
447
+ <img src="https://img.shields.io/badge/⭐%20Star%20on%20GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="Star Shotgun Repo" />
448
+ </a>
449
+
450
+ ### Star History
451
+
452
+ <a href="https://www.star-history.com/#shotgun-sh/shotgun&type=date&legend=bottom-right">
453
+ <picture>
454
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=shotgun-sh/shotgun&type=date&theme=dark&legend=bottom-right" />
455
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=shotgun-sh/shotgun&type=date&legend=bottom-right" />
456
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=shotgun-sh/shotgun&type=date&legend=bottom-right" />
457
+ </picture>
458
+ </a>
459
+
460
+ </div>
461
+
462
+ ---
463
+
464
+ **License:** MIT | **Python:** 3.11+ | **Homepage:** [shotgun.sh](https://shotgun.sh/)
465
+
466
+ ---
467
+
468
+ ## Uninstall
469
+
470
+ ```bash
471
+ uv tool uninstall shotgun-sh
472
+ ```