shotgun-sh 0.2.5.dev1__tar.gz → 0.2.28.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.
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/LICENSE +1 -1
- shotgun_sh-0.2.28.dev1/PKG-INFO +472 -0
- shotgun_sh-0.2.28.dev1/README.md +412 -0
- shotgun_sh-0.2.28.dev1/hatch_build.py +155 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/pyproject.toml +15 -4
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/agent_manager.py +1363 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/common.py +70 -71
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/config/README.md +89 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/config/__init__.py +10 -1
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/config/constants.py +0 -6
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/config/manager.py +782 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/config/models.py +93 -1
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/config/provider.py +83 -15
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/config/streaming_test.py +119 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/context_analyzer/__init__.py +28 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/context_analyzer/analyzer.py +475 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/context_analyzer/constants.py +9 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/context_analyzer/formatter.py +115 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/context_analyzer/models.py +212 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation/__init__.py +18 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation/filters.py +164 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation/history/chunking.py +278 -0
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/compaction.py +36 -5
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/constants.py +5 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation/history/context_extraction.py +195 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation/history/file_content_deduplication.py +216 -0
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/history_processors.py +380 -8
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/token_counting/anthropic.py +47 -3
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/token_counting/base.py +14 -3
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/token_counting/openai.py +11 -1
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/token_counting/sentencepiece_counter.py +8 -0
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/token_counting/tokenizer_cache.py +3 -1
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/token_counting/utils.py +0 -3
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation/manager.py +143 -0
- shotgun_sh-0.2.5.dev1/src/shotgun/agents/conversation_history.py → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation/models.py +40 -3
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/error/__init__.py +11 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/error/models.py +19 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/export.py +6 -7
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/models.py +50 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/plan.py +6 -7
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/research.py +7 -8
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/runner.py +230 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/specify.py +6 -7
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tasks.py +6 -7
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/__init__.py +0 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/codebase/codebase_shell.py +6 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/codebase/directory_lister.py +6 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/codebase/file_read.py +11 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/codebase/query_graph.py +6 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/codebase/retrieve_code.py +6 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/file_management.py +82 -16
- shotgun_sh-0.2.28.dev1/src/shotgun/agents/tools/registry.py +217 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/web_search/__init__.py +8 -8
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/web_search/anthropic.py +8 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/web_search/gemini.py +7 -1
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/web_search/openai.py +8 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/web_search/utils.py +2 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/usage_manager.py +16 -11
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/api_endpoints.py +7 -3
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/build_constants.py +2 -2
- shotgun_sh-0.2.28.dev1/src/shotgun/cli/clear.py +53 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/cli/compact.py +188 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/config.py +8 -5
- shotgun_sh-0.2.28.dev1/src/shotgun/cli/context.py +154 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/cli/error_handler.py +24 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/export.py +34 -34
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/feedback.py +4 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/models.py +1 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/plan.py +34 -34
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/research.py +18 -10
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/specify.py +20 -19
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/tasks.py +34 -34
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/update.py +16 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/change_detector.py +5 -3
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/code_retrieval.py +4 -2
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/ingestor.py +163 -15
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/manager.py +13 -4
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/nl_query.py +1 -1
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/models.py +2 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/exceptions.py +357 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/llm_proxy/__init__.py +17 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/llm_proxy/client.py +215 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/llm_proxy/models.py +137 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/logging_config.py +60 -27
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/main.py +75 -11
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/posthog_telemetry.py +38 -29
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/export.j2 +18 -1
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/partials/common_agent_system_prompt.j2 +6 -1
- shotgun_sh-0.2.28.dev1/src/shotgun/prompts/agents/partials/interactive_mode.j2 +43 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/plan.j2 +1 -1
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/research.j2 +0 -3
- shotgun_sh-0.2.28.dev1/src/shotgun/prompts/agents/specify.j2 +318 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/tasks.j2 +1 -1
- shotgun_sh-0.2.28.dev1/src/shotgun/prompts/history/chunk_summarization.j2 +34 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/prompts/history/combine_summaries.j2 +53 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/sdk/codebase.py +14 -3
- shotgun_sh-0.2.28.dev1/src/shotgun/sentry_telemetry.py +232 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/settings.py +243 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/telemetry.py +18 -33
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/app.py +383 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/commands/__init__.py +1 -1
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/components/context_indicator.py +179 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/components/mode_indicator.py +70 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/components/status_bar.py +48 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/containers.py +91 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/dependencies.py +39 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/layout.py +5 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/protocols.py +45 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat/__init__.py +5 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat/chat.tcss +54 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat/chat_screen.py +1420 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat/codebase_index_prompt_screen.py +243 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat/codebase_index_selection.py +12 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat/help_text.py +40 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat/prompt_history.py +48 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/chat.tcss +11 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/chat_screen/command_providers.py +81 -4
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat_screen/hint_message.py +115 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat_screen/history/__init__.py +22 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat_screen/history/agent_response.py +66 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat_screen/history/chat_history.py +115 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat_screen/history/formatters.py +115 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat_screen/history/partial_response.py +43 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/chat_screen/history/user_question.py +42 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/confirmation_dialog.py +191 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/directory_setup.py +117 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/feedback.py +14 -7
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/github_issue.py +111 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/model_picker.py +64 -26
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/onboarding.py +580 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/screens/pipx_migration.py +205 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/provider_config.py +116 -35
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/shotgun_auth.py +40 -12
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/welcome.py +146 -12
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/services/__init__.py +5 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/services/conversation_service.py +187 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/state/__init__.py +7 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/state/processing_state.py +185 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/utils/mode_progress.py +14 -7
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/widgets/__init__.py +5 -0
- shotgun_sh-0.2.28.dev1/src/shotgun/tui/widgets/widget_coordinator.py +263 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/utils/file_system_utils.py +22 -2
- shotgun_sh-0.2.28.dev1/src/shotgun/utils/marketing.py +110 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/utils/update_checker.py +69 -14
- shotgun_sh-0.2.5.dev1/PKG-INFO +0 -467
- shotgun_sh-0.2.5.dev1/README.md +0 -413
- shotgun_sh-0.2.5.dev1/hatch_build.py +0 -84
- shotgun_sh-0.2.5.dev1/src/shotgun/agents/agent_manager.py +0 -717
- shotgun_sh-0.2.5.dev1/src/shotgun/agents/config/manager.py +0 -484
- shotgun_sh-0.2.5.dev1/src/shotgun/agents/conversation_manager.py +0 -105
- shotgun_sh-0.2.5.dev1/src/shotgun/agents/history/context_extraction.py +0 -108
- shotgun_sh-0.2.5.dev1/src/shotgun/agents/tools/user_interaction.py +0 -37
- shotgun_sh-0.2.5.dev1/src/shotgun/prompts/agents/partials/interactive_mode.j2 +0 -26
- shotgun_sh-0.2.5.dev1/src/shotgun/prompts/agents/specify.j2 +0 -51
- shotgun_sh-0.2.5.dev1/src/shotgun/sentry_telemetry.py +0 -85
- shotgun_sh-0.2.5.dev1/src/shotgun/tui/app.py +0 -156
- shotgun_sh-0.2.5.dev1/src/shotgun/tui/screens/chat.py +0 -804
- shotgun_sh-0.2.5.dev1/src/shotgun/tui/screens/chat_screen/hint_message.py +0 -40
- shotgun_sh-0.2.5.dev1/src/shotgun/tui/screens/chat_screen/history.py +0 -352
- shotgun_sh-0.2.5.dev1/src/shotgun/tui/screens/directory_setup.py +0 -113
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/.gitignore +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/history_building.py +0 -0
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/message_utils.py +0 -0
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/token_counting/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1/src/shotgun/agents → shotgun_sh-0.2.28.dev1/src/shotgun/agents/conversation}/history/token_estimation.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/llm.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/messages.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/codebase/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/agents/tools/codebase/models.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/codebase/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/codebase/commands.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/codebase/models.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/cli/utils.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/cypher_models.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/language_config.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/core/parser_loader.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/codebase/service.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/llm_proxy/clients.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/llm_proxy/constants.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/partials/codebase_understanding.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/partials/content_formatting.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/state/codebase/codebase_graphs_available.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/agents/state/system_state.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/codebase/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/codebase/cypher_query_patterns.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/codebase/cypher_system.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/codebase/enhanced_query_context.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/codebase/partials/cypher_rules.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/codebase/partials/graph_schema.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/codebase/partials/temporal_context.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/history/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/history/incremental_summarization.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/history/summarization.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/loader.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/prompts/tools/web_search.j2 +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/py.typed +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/sdk/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/sdk/exceptions.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/sdk/models.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/sdk/services.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/shotgun_web/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/shotgun_web/client.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/shotgun_web/constants.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/shotgun_web/models.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/components/prompt_input.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/components/spinner.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/components/splash.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/components/vertical_tail.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/filtered_codebase_service.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/chat_screen/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/screens/splash.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/styles.tcss +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/tui/utils/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/utils/__init__.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/utils/datetime_utils.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/utils/env_utils.py +0 -0
- {shotgun_sh-0.2.5.dev1 → shotgun_sh-0.2.28.dev1}/src/shotgun/utils/source_detection.py +0 -0
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: shotgun-sh
|
|
3
|
+
Version: 0.2.28.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
|
+
[](https://shotgun.sh) [](https://x.com/ShotgunCLI) [](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
|
+
| **🔬 Research** | Searches codebase + web, identifies patterns | `How do we handle authentication in this codebase?` | `research.md` |
|
|
254
|
+
| **📝 Specify** | Creates technical specs aware of architecture | `Add OAuth2 authentication with refresh token support` | `specification.md` |
|
|
255
|
+
| **📋 Plan** | Generates implementation roadmap | `Create an implementation plan for the payment system` | `plan.md` |
|
|
256
|
+
| **✅ Tasks** | Breaks plans into actionable items | `Break down the user dashboard plan into tasks` | `tasks.md` |
|
|
257
|
+
| **📤 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
|
+

|
|
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
|
+
```
|