open-swarm 0.1.1745275181__py3-none-any.whl → 0.1.1748636295__py3-none-any.whl
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.
- open_swarm-0.1.1748636295.dist-info/METADATA +257 -0
- open_swarm-0.1.1748636295.dist-info/RECORD +89 -0
- {open_swarm-0.1.1745275181.dist-info → open_swarm-0.1.1748636295.dist-info}/WHEEL +2 -1
- open_swarm-0.1.1748636295.dist-info/entry_points.txt +3 -0
- open_swarm-0.1.1748636295.dist-info/top_level.txt +1 -0
- swarm/__init__.py +2 -0
- swarm/agent/agent.py +49 -0
- swarm/auth.py +48 -113
- swarm/consumers.py +0 -19
- swarm/core.py +411 -0
- swarm/extensions/blueprint/__init__.py +16 -30
- swarm/extensions/blueprint/agent_utils.py +45 -0
- swarm/extensions/blueprint/blueprint_base.py +562 -0
- swarm/extensions/blueprint/blueprint_discovery.py +112 -0
- swarm/extensions/blueprint/django_utils.py +79 -181
- swarm/extensions/blueprint/interactive_mode.py +72 -67
- swarm/extensions/blueprint/output_utils.py +82 -0
- swarm/{core → extensions/blueprint}/spinner.py +21 -30
- swarm/extensions/cli/cli_args.py +0 -6
- swarm/extensions/cli/commands/blueprint_management.py +9 -47
- swarm/extensions/cli/commands/config_management.py +6 -5
- swarm/extensions/cli/commands/edit_config.py +7 -16
- swarm/extensions/cli/commands/list_blueprints.py +1 -1
- swarm/extensions/cli/commands/validate_env.py +4 -11
- swarm/extensions/cli/commands/validate_envvars.py +6 -6
- swarm/extensions/cli/interactive_shell.py +2 -16
- swarm/extensions/config/config_loader.py +345 -107
- swarm/{core → extensions/config}/config_manager.py +38 -50
- swarm/{core → extensions/config}/server_config.py +0 -32
- swarm/extensions/launchers/build_launchers.py +14 -0
- swarm/{core → extensions/launchers}/build_swarm_wrapper.py +0 -0
- swarm/extensions/launchers/swarm_api.py +64 -8
- swarm/extensions/launchers/swarm_cli.py +300 -8
- swarm/extensions/mcp/__init__.py +1 -0
- swarm/extensions/mcp/cache_utils.py +32 -0
- swarm/extensions/mcp/mcp_client.py +233 -0
- swarm/extensions/mcp/mcp_tool_provider.py +135 -0
- swarm/extensions/mcp/mcp_utils.py +260 -0
- swarm/llm/chat_completion.py +166 -0
- swarm/serializers.py +5 -96
- swarm/settings.py +133 -85
- swarm/types.py +91 -0
- swarm/urls.py +74 -57
- swarm/utils/context_utils.py +4 -10
- swarm/utils/general_utils.py +0 -21
- swarm/utils/redact.py +36 -23
- swarm/views/api_views.py +39 -48
- swarm/views/chat_views.py +76 -236
- swarm/views/core_views.py +87 -80
- swarm/views/model_views.py +121 -64
- swarm/views/utils.py +439 -65
- swarm/views/web_views.py +2 -2
- open_swarm-0.1.1745275181.dist-info/METADATA +0 -874
- open_swarm-0.1.1745275181.dist-info/RECORD +0 -319
- open_swarm-0.1.1745275181.dist-info/entry_points.txt +0 -4
- swarm/blueprints/README.md +0 -68
- swarm/blueprints/blueprint_audit_status.json +0 -27
- swarm/blueprints/chatbot/README.md +0 -40
- swarm/blueprints/chatbot/blueprint_chatbot.py +0 -471
- swarm/blueprints/chatbot/metadata.json +0 -23
- swarm/blueprints/chatbot/templates/chatbot/chatbot.html +0 -33
- swarm/blueprints/chucks_angels/README.md +0 -11
- swarm/blueprints/chucks_angels/blueprint_chucks_angels.py +0 -7
- swarm/blueprints/chucks_angels/test_basic.py +0 -3
- swarm/blueprints/codey/CODEY.md +0 -15
- swarm/blueprints/codey/README.md +0 -115
- swarm/blueprints/codey/blueprint_codey.py +0 -1072
- swarm/blueprints/codey/codey_cli.py +0 -373
- swarm/blueprints/codey/instructions.md +0 -17
- swarm/blueprints/codey/metadata.json +0 -23
- swarm/blueprints/common/operation_box_utils.py +0 -83
- swarm/blueprints/digitalbutlers/README.md +0 -11
- swarm/blueprints/digitalbutlers/__init__.py +0 -1
- swarm/blueprints/digitalbutlers/blueprint_digitalbutlers.py +0 -7
- swarm/blueprints/digitalbutlers/test_basic.py +0 -3
- swarm/blueprints/divine_code/README.md +0 -3
- swarm/blueprints/divine_code/__init__.py +0 -10
- swarm/blueprints/divine_code/apps.py +0 -11
- swarm/blueprints/divine_code/blueprint_divine_code.py +0 -270
- swarm/blueprints/django_chat/apps.py +0 -6
- swarm/blueprints/django_chat/blueprint_django_chat.py +0 -268
- swarm/blueprints/django_chat/templates/django_chat/django_chat_webpage.html +0 -37
- swarm/blueprints/django_chat/urls.py +0 -8
- swarm/blueprints/django_chat/views.py +0 -32
- swarm/blueprints/echocraft/blueprint_echocraft.py +0 -384
- swarm/blueprints/flock/README.md +0 -11
- swarm/blueprints/flock/__init__.py +0 -8
- swarm/blueprints/flock/blueprint_flock.py +0 -7
- swarm/blueprints/flock/test_basic.py +0 -3
- swarm/blueprints/geese/README.md +0 -10
- swarm/blueprints/geese/__init__.py +0 -8
- swarm/blueprints/geese/blueprint_geese.py +0 -384
- swarm/blueprints/geese/geese_cli.py +0 -102
- swarm/blueprints/jeeves/README.md +0 -41
- swarm/blueprints/jeeves/blueprint_jeeves.py +0 -722
- swarm/blueprints/jeeves/jeeves_cli.py +0 -55
- swarm/blueprints/jeeves/metadata.json +0 -24
- swarm/blueprints/mcp_demo/blueprint_mcp_demo.py +0 -473
- swarm/blueprints/messenger/templates/messenger/messenger.html +0 -46
- swarm/blueprints/mission_improbable/blueprint_mission_improbable.py +0 -423
- swarm/blueprints/monkai_magic/blueprint_monkai_magic.py +0 -340
- swarm/blueprints/nebula_shellz/blueprint_nebula_shellz.py +0 -265
- swarm/blueprints/omniplex/blueprint_omniplex.py +0 -298
- swarm/blueprints/poets/blueprint_poets.py +0 -546
- swarm/blueprints/poets/poets_cli.py +0 -23
- swarm/blueprints/rue_code/README.md +0 -8
- swarm/blueprints/rue_code/blueprint_rue_code.py +0 -448
- swarm/blueprints/rue_code/rue_code_cli.py +0 -43
- swarm/blueprints/stewie/apps.py +0 -12
- swarm/blueprints/stewie/blueprint_family_ties.py +0 -349
- swarm/blueprints/stewie/models.py +0 -19
- swarm/blueprints/stewie/serializers.py +0 -10
- swarm/blueprints/stewie/settings.py +0 -17
- swarm/blueprints/stewie/urls.py +0 -11
- swarm/blueprints/stewie/views.py +0 -26
- swarm/blueprints/suggestion/blueprint_suggestion.py +0 -222
- swarm/blueprints/whinge_surf/README.md +0 -22
- swarm/blueprints/whinge_surf/__init__.py +0 -1
- swarm/blueprints/whinge_surf/blueprint_whinge_surf.py +0 -565
- swarm/blueprints/whinge_surf/whinge_surf_cli.py +0 -99
- swarm/blueprints/whiskeytango_foxtrot/__init__.py +0 -0
- swarm/blueprints/whiskeytango_foxtrot/apps.py +0 -11
- swarm/blueprints/whiskeytango_foxtrot/blueprint_whiskeytango_foxtrot.py +0 -339
- swarm/blueprints/zeus/__init__.py +0 -2
- swarm/blueprints/zeus/apps.py +0 -4
- swarm/blueprints/zeus/blueprint_zeus.py +0 -270
- swarm/blueprints/zeus/zeus_cli.py +0 -13
- swarm/cli/async_input.py +0 -65
- swarm/cli/async_input_demo.py +0 -32
- swarm/core/agent_utils.py +0 -21
- swarm/core/blueprint_base.py +0 -769
- swarm/core/blueprint_discovery.py +0 -125
- swarm/core/blueprint_runner.py +0 -59
- swarm/core/blueprint_ux.py +0 -109
- swarm/core/build_launchers.py +0 -15
- swarm/core/cli/__init__.py +0 -1
- swarm/core/cli/commands/__init__.py +0 -1
- swarm/core/cli/commands/blueprint_management.py +0 -7
- swarm/core/cli/interactive_shell.py +0 -14
- swarm/core/cli/main.py +0 -50
- swarm/core/cli/utils/__init__.py +0 -1
- swarm/core/cli/utils/discover_commands.py +0 -18
- swarm/core/config_loader.py +0 -122
- swarm/core/output_utils.py +0 -193
- swarm/core/session_logger.py +0 -42
- swarm/core/slash_commands.py +0 -89
- swarm/core/swarm_api.py +0 -68
- swarm/core/swarm_cli.py +0 -216
- swarm/core/utils/__init__.py +0 -0
- swarm/extensions/blueprint/cli_handler.py +0 -197
- swarm/extensions/blueprint/runnable_blueprint.py +0 -42
- swarm/extensions/cli/utils/__init__.py +0 -1
- swarm/extensions/cli/utils/async_input.py +0 -46
- swarm/extensions/cli/utils/prompt_user.py +0 -3
- swarm/management/__init__.py +0 -0
- swarm/management/commands/__init__.py +0 -0
- swarm/management/commands/runserver.py +0 -58
- swarm/middleware.py +0 -65
- swarm/permissions.py +0 -38
- swarm/static/contrib/fonts/fontawesome-webfont.ttf +0 -7
- swarm/static/contrib/fonts/fontawesome-webfont.woff +0 -7
- swarm/static/contrib/fonts/fontawesome-webfont.woff2 +0 -7
- swarm/static/contrib/markedjs/marked.min.js +0 -6
- swarm/static/contrib/tabler-icons/adjustments-horizontal.svg +0 -27
- swarm/static/contrib/tabler-icons/alert-triangle.svg +0 -21
- swarm/static/contrib/tabler-icons/archive.svg +0 -21
- swarm/static/contrib/tabler-icons/artboard.svg +0 -27
- swarm/static/contrib/tabler-icons/automatic-gearbox.svg +0 -23
- swarm/static/contrib/tabler-icons/box-multiple.svg +0 -19
- swarm/static/contrib/tabler-icons/carambola.svg +0 -19
- swarm/static/contrib/tabler-icons/copy.svg +0 -20
- swarm/static/contrib/tabler-icons/download.svg +0 -21
- swarm/static/contrib/tabler-icons/edit.svg +0 -21
- swarm/static/contrib/tabler-icons/filled/carambola.svg +0 -13
- swarm/static/contrib/tabler-icons/filled/paint.svg +0 -13
- swarm/static/contrib/tabler-icons/headset.svg +0 -22
- swarm/static/contrib/tabler-icons/layout-sidebar-left-collapse.svg +0 -21
- swarm/static/contrib/tabler-icons/layout-sidebar-left-expand.svg +0 -21
- swarm/static/contrib/tabler-icons/layout-sidebar-right-collapse.svg +0 -21
- swarm/static/contrib/tabler-icons/layout-sidebar-right-expand.svg +0 -21
- swarm/static/contrib/tabler-icons/message-chatbot.svg +0 -22
- swarm/static/contrib/tabler-icons/message-star.svg +0 -22
- swarm/static/contrib/tabler-icons/message-x.svg +0 -23
- swarm/static/contrib/tabler-icons/message.svg +0 -21
- swarm/static/contrib/tabler-icons/paperclip.svg +0 -18
- swarm/static/contrib/tabler-icons/playlist-add.svg +0 -22
- swarm/static/contrib/tabler-icons/robot.svg +0 -26
- swarm/static/contrib/tabler-icons/search.svg +0 -19
- swarm/static/contrib/tabler-icons/settings.svg +0 -20
- swarm/static/contrib/tabler-icons/thumb-down.svg +0 -19
- swarm/static/contrib/tabler-icons/thumb-up.svg +0 -19
- swarm/static/css/dropdown.css +0 -22
- swarm/static/htmx/htmx.min.js +0 -0
- swarm/static/js/dropdown.js +0 -23
- swarm/static/rest_mode/css/base.css +0 -470
- swarm/static/rest_mode/css/chat-history.css +0 -286
- swarm/static/rest_mode/css/chat.css +0 -251
- swarm/static/rest_mode/css/chatbot.css +0 -74
- swarm/static/rest_mode/css/chatgpt.css +0 -62
- swarm/static/rest_mode/css/colors/corporate.css +0 -74
- swarm/static/rest_mode/css/colors/pastel.css +0 -81
- swarm/static/rest_mode/css/colors/tropical.css +0 -82
- swarm/static/rest_mode/css/general.css +0 -142
- swarm/static/rest_mode/css/layout.css +0 -167
- swarm/static/rest_mode/css/layouts/messenger-layout.css +0 -17
- swarm/static/rest_mode/css/layouts/minimalist-layout.css +0 -57
- swarm/static/rest_mode/css/layouts/mobile-layout.css +0 -8
- swarm/static/rest_mode/css/messages.css +0 -84
- swarm/static/rest_mode/css/messenger.css +0 -135
- swarm/static/rest_mode/css/settings.css +0 -91
- swarm/static/rest_mode/css/simple.css +0 -44
- swarm/static/rest_mode/css/slack.css +0 -58
- swarm/static/rest_mode/css/style.css +0 -156
- swarm/static/rest_mode/css/theme.css +0 -30
- swarm/static/rest_mode/css/toast.css +0 -40
- swarm/static/rest_mode/js/auth.js +0 -9
- swarm/static/rest_mode/js/blueprint.js +0 -41
- swarm/static/rest_mode/js/blueprintUtils.js +0 -12
- swarm/static/rest_mode/js/chatLogic.js +0 -79
- swarm/static/rest_mode/js/debug.js +0 -63
- swarm/static/rest_mode/js/events.js +0 -98
- swarm/static/rest_mode/js/main.js +0 -19
- swarm/static/rest_mode/js/messages.js +0 -264
- swarm/static/rest_mode/js/messengerLogic.js +0 -355
- swarm/static/rest_mode/js/modules/apiService.js +0 -84
- swarm/static/rest_mode/js/modules/blueprintManager.js +0 -162
- swarm/static/rest_mode/js/modules/chatHistory.js +0 -110
- swarm/static/rest_mode/js/modules/debugLogger.js +0 -14
- swarm/static/rest_mode/js/modules/eventHandlers.js +0 -107
- swarm/static/rest_mode/js/modules/messageProcessor.js +0 -120
- swarm/static/rest_mode/js/modules/state.js +0 -7
- swarm/static/rest_mode/js/modules/userInteractions.js +0 -29
- swarm/static/rest_mode/js/modules/validation.js +0 -23
- swarm/static/rest_mode/js/rendering.js +0 -119
- swarm/static/rest_mode/js/settings.js +0 -130
- swarm/static/rest_mode/js/sidebar.js +0 -94
- swarm/static/rest_mode/js/simpleLogic.js +0 -37
- swarm/static/rest_mode/js/slackLogic.js +0 -66
- swarm/static/rest_mode/js/splash.js +0 -76
- swarm/static/rest_mode/js/theme.js +0 -111
- swarm/static/rest_mode/js/toast.js +0 -36
- swarm/static/rest_mode/js/ui.js +0 -265
- swarm/static/rest_mode/js/validation.js +0 -57
- swarm/static/rest_mode/svg/animated_spinner.svg +0 -12
- swarm/static/rest_mode/svg/arrow_down.svg +0 -5
- swarm/static/rest_mode/svg/arrow_left.svg +0 -5
- swarm/static/rest_mode/svg/arrow_right.svg +0 -5
- swarm/static/rest_mode/svg/arrow_up.svg +0 -5
- swarm/static/rest_mode/svg/attach.svg +0 -8
- swarm/static/rest_mode/svg/avatar.svg +0 -7
- swarm/static/rest_mode/svg/canvas.svg +0 -6
- swarm/static/rest_mode/svg/chat_history.svg +0 -4
- swarm/static/rest_mode/svg/close.svg +0 -5
- swarm/static/rest_mode/svg/copy.svg +0 -4
- swarm/static/rest_mode/svg/dark_mode.svg +0 -3
- swarm/static/rest_mode/svg/edit.svg +0 -5
- swarm/static/rest_mode/svg/layout.svg +0 -9
- swarm/static/rest_mode/svg/logo.svg +0 -29
- swarm/static/rest_mode/svg/logout.svg +0 -5
- swarm/static/rest_mode/svg/mobile.svg +0 -5
- swarm/static/rest_mode/svg/new_chat.svg +0 -4
- swarm/static/rest_mode/svg/not_visible.svg +0 -5
- swarm/static/rest_mode/svg/plus.svg +0 -7
- swarm/static/rest_mode/svg/run_code.svg +0 -6
- swarm/static/rest_mode/svg/save.svg +0 -4
- swarm/static/rest_mode/svg/search.svg +0 -6
- swarm/static/rest_mode/svg/settings.svg +0 -4
- swarm/static/rest_mode/svg/speaker.svg +0 -5
- swarm/static/rest_mode/svg/stop.svg +0 -6
- swarm/static/rest_mode/svg/thumbs_down.svg +0 -3
- swarm/static/rest_mode/svg/thumbs_up.svg +0 -3
- swarm/static/rest_mode/svg/toggle_off.svg +0 -6
- swarm/static/rest_mode/svg/toggle_on.svg +0 -6
- swarm/static/rest_mode/svg/trash.svg +0 -10
- swarm/static/rest_mode/svg/undo.svg +0 -3
- swarm/static/rest_mode/svg/visible.svg +0 -8
- swarm/static/rest_mode/svg/voice.svg +0 -10
- swarm/templates/account/login.html +0 -22
- swarm/templates/account/signup.html +0 -32
- swarm/templates/base.html +0 -30
- swarm/templates/chat.html +0 -43
- swarm/templates/index.html +0 -35
- swarm/templates/rest_mode/components/chat_sidebar.html +0 -55
- swarm/templates/rest_mode/components/header.html +0 -45
- swarm/templates/rest_mode/components/main_chat_pane.html +0 -41
- swarm/templates/rest_mode/components/settings_dialog.html +0 -97
- swarm/templates/rest_mode/components/splash_screen.html +0 -7
- swarm/templates/rest_mode/components/top_bar.html +0 -28
- swarm/templates/rest_mode/message_ui.html +0 -50
- swarm/templates/rest_mode/slackbot.html +0 -30
- swarm/templates/simple_blueprint_page.html +0 -24
- swarm/templates/websocket_partials/final_system_message.html +0 -3
- swarm/templates/websocket_partials/system_message.html +0 -4
- swarm/templates/websocket_partials/user_message.html +0 -5
- swarm/utils/ansi_box.py +0 -34
- swarm/utils/disable_tracing.py +0 -38
- swarm/utils/log_utils.py +0 -63
- swarm/utils/openai_patch.py +0 -33
- swarm/ux/ansi_box.py +0 -43
- swarm/ux/spinner.py +0 -53
- {open_swarm-0.1.1745275181.dist-info → open_swarm-0.1.1748636295.dist-info}/licenses/LICENSE +0 -0
- /swarm/{core → extensions/blueprint}/blueprint_utils.py +0 -0
- /swarm/{core → extensions/blueprint}/common_utils.py +0 -0
- /swarm/{core → extensions/config}/setup_wizard.py +0 -0
- /swarm/{blueprints/rue_code → extensions/config/utils}/__init__.py +0 -0
- /swarm/{core → extensions/config}/utils/logger.py +0 -0
- /swarm/{core → extensions/launchers}/swarm_wrapper.py +0 -0
@@ -1,874 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: open-swarm
|
3
|
-
Version: 0.1.1745275181
|
4
|
-
Summary: Open Swarm: Orchestrating AI Agent Swarms with Django
|
5
|
-
Project-URL: Homepage, https://github.com/yourusername/open-swarm
|
6
|
-
Project-URL: Documentation, https://github.com/yourusername/open-swarm/blob/main/README.md
|
7
|
-
Project-URL: Repository, https://github.com/yourusername/open-swarm.git
|
8
|
-
Project-URL: Changelog, https://github.com/yourusername/open-swarm/blob/main/CHANGELOG.md
|
9
|
-
Author-email: Matthew Hand <matthewhandau@gmail.com>
|
10
|
-
License-Expression: MIT
|
11
|
-
License-File: LICENSE
|
12
|
-
Classifier: Development Status :: 3 - Alpha
|
13
|
-
Classifier: Framework :: Django :: 4.2
|
14
|
-
Classifier: Intended Audience :: Developers
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
16
|
-
Classifier: Natural Language :: English
|
17
|
-
Classifier: Programming Language :: Python :: 3
|
18
|
-
Classifier: Programming Language :: Python :: 3.10
|
19
|
-
Classifier: Programming Language :: Python :: 3.11
|
20
|
-
Classifier: Programming Language :: Python :: 3.12
|
21
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
22
|
-
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
23
|
-
Requires-Python: >=3.10
|
24
|
-
Requires-Dist: beautifulsoup4>=4.12.0
|
25
|
-
Requires-Dist: celery>=5.3.0
|
26
|
-
Requires-Dist: channels-redis>=4.0
|
27
|
-
Requires-Dist: channels>=4.0
|
28
|
-
Requires-Dist: django-cors-headers>=4.0.0
|
29
|
-
Requires-Dist: django-environ>=0.11.0
|
30
|
-
Requires-Dist: django-extensions>=3.2.0
|
31
|
-
Requires-Dist: django-filter>=23.0
|
32
|
-
Requires-Dist: django-model-utils>=4.3.0
|
33
|
-
Requires-Dist: django<5.0,>=4.2
|
34
|
-
Requires-Dist: djangorestframework<4.0,>=3.14
|
35
|
-
Requires-Dist: drf-spectacular>=0.28.0
|
36
|
-
Requires-Dist: drf-yasg>=1.21.0
|
37
|
-
Requires-Dist: filelock>=3.18.0
|
38
|
-
Requires-Dist: google-api-python-client>=2.100.0
|
39
|
-
Requires-Dist: google-auth-httplib2>=0.1.0
|
40
|
-
Requires-Dist: google-auth-oauthlib>=1.2.1
|
41
|
-
Requires-Dist: gunicorn>=21.0.0
|
42
|
-
Requires-Dist: httpx<0.26.0,>=0.25.2
|
43
|
-
Requires-Dist: jinja2>=3.1.6
|
44
|
-
Requires-Dist: jmespath>=1.0.1
|
45
|
-
Requires-Dist: openai-agents>=0.0.1
|
46
|
-
Requires-Dist: openai<2.0.0,>=1.3.0
|
47
|
-
Requires-Dist: platformdirs>=4.0.0
|
48
|
-
Requires-Dist: psycopg2-binary>=2.9.0
|
49
|
-
Requires-Dist: pyinstaller>=5.13.0
|
50
|
-
Requires-Dist: python-dotenv>=1.0.0
|
51
|
-
Requires-Dist: pyyaml>=6.0
|
52
|
-
Requires-Dist: qdrant-client>=1.6.0
|
53
|
-
Requires-Dist: redis>=5.0.0
|
54
|
-
Requires-Dist: requests>=2.31.0
|
55
|
-
Requires-Dist: tiktoken>=0.5.0
|
56
|
-
Requires-Dist: typer>=0.9.0
|
57
|
-
Requires-Dist: uvicorn>=0.23.0
|
58
|
-
Provides-Extra: dev
|
59
|
-
Requires-Dist: factory-boy>=3.3.0; extra == 'dev'
|
60
|
-
Requires-Dist: ipdb; extra == 'dev'
|
61
|
-
Requires-Dist: ipython; extra == 'dev'
|
62
|
-
Requires-Dist: mypy>=1.5.0; extra == 'dev'
|
63
|
-
Requires-Dist: pre-commit>=3.5.0; extra == 'dev'
|
64
|
-
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
|
65
|
-
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
|
66
|
-
Requires-Dist: pytest-django>=4.7.0; extra == 'dev'
|
67
|
-
Requires-Dist: pytest-mock>=3.11.0; extra == 'dev'
|
68
|
-
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
69
|
-
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
70
|
-
Requires-Dist: uv>=0.1.11; extra == 'dev'
|
71
|
-
Provides-Extra: docs
|
72
|
-
Requires-Dist: myst-parser>=2.0.0; extra == 'docs'
|
73
|
-
Requires-Dist: sphinx-rtd-theme>=1.3.0; extra == 'docs'
|
74
|
-
Requires-Dist: sphinx>=7.0.0; extra == 'docs'
|
75
|
-
Provides-Extra: test
|
76
|
-
Requires-Dist: anyio>=4.0.0; extra == 'test'
|
77
|
-
Requires-Dist: factory-boy>=3.3.0; extra == 'test'
|
78
|
-
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'test'
|
79
|
-
Requires-Dist: pytest-cov>=4.1.0; extra == 'test'
|
80
|
-
Requires-Dist: pytest-django>=4.7.0; extra == 'test'
|
81
|
-
Requires-Dist: pytest-env>=1.0.0; extra == 'test'
|
82
|
-
Requires-Dist: pytest-mock>=3.11.0; extra == 'test'
|
83
|
-
Requires-Dist: pytest-xdist; extra == 'test'
|
84
|
-
Requires-Dist: pytest>=8.0.0; extra == 'test'
|
85
|
-
Requires-Dist: respx>=0.20.0; extra == 'test'
|
86
|
-
Requires-Dist: sseclient-py>=1.7.2; extra == 'test'
|
87
|
-
Description-Content-Type: text/markdown
|
88
|
-
|
89
|
-
# 🚀 Open Swarm — S-Tier Onboarding
|
90
|
-
|
91
|
-
Welcome to Open Swarm! Orchestrate, manage, and run AI agent blueprints with S-tier onboarding and UX polish.
|
92
|
-
|
93
|
-
## Quickstart
|
94
|
-
|
95
|
-
1. List blueprints:
|
96
|
-
```bash
|
97
|
-
swarm-cli list
|
98
|
-
```
|
99
|
-
2. Run the demo blueprint:
|
100
|
-
```bash
|
101
|
-
swarm-cli run hello_world --instruction "Hello, world!"
|
102
|
-
```
|
103
|
-
3. Install as command:
|
104
|
-
```bash
|
105
|
-
swarm-cli install hello_world
|
106
|
-
./hello_world "Hello, world!"
|
107
|
-
```
|
108
|
-
|
109
|
-
For advanced features, see below or run `swarm-cli help`.
|
110
|
-
|
111
|
-
# Open Swarm
|
112
|
-
|
113
|
-
<div align="center">
|
114
|
-
<img src="assets/images/openswarm-project-image.jpg" alt="Project Logo" width="70%"/>
|
115
|
-
</div>
|
116
|
-
|
117
|
-
**Open Swarm** is a Python framework for creating, managing, and deploying autonomous agent swarms. It leverages the `openai-agents` library for core agent functionality and provides a structured way to build complex, multi-agent workflows using **Blueprints**.
|
118
|
-
|
119
|
-
Open Swarm can be used in two primary ways:
|
120
|
-
|
121
|
-
1. **As a CLI Utility (`swarm-cli`):** Manage, run, and install blueprints directly on your local machine. Ideal for personal use, testing, and creating standalone agent tools. (Recommended installation: PyPI)
|
122
|
-
2. **As an API Service (`swarm-api`):** Deploy a web server that exposes your blueprints via an OpenAI-compatible REST API. Ideal for integrations, web UIs, and shared access. (Recommended deployment: Docker)
|
123
|
-
|
124
|
-
---
|
125
|
-
|
126
|
-
## Development Setup (Editable Install)
|
127
|
-
|
128
|
-
If you are working from a cloned repository or developing Open Swarm locally, you must install the package in editable mode before using the CLI or API tools:
|
129
|
-
|
130
|
-
```bash
|
131
|
-
pip install -e .
|
132
|
-
```
|
133
|
-
|
134
|
-
This ensures that the `swarm-cli` and `swarm-api` commands point to the latest source code and are available in your PATH. After running this, you can use the CLI commands as described below.
|
135
|
-
|
136
|
-
---
|
137
|
-
|
138
|
-
## Configuration & Quickstart
|
139
|
-
|
140
|
-
See [CONFIGURATION.md](./CONFIGURATION.md) for a full guide to Swarm configuration—including LLM setup, MCP server integration, per-blueprint overrides, pricing, and CLI vs manual workflows.
|
141
|
-
|
142
|
-
You can configure everything interactively using `swarm-cli configure` or by manually editing your config file (see guide for details and examples).
|
143
|
-
|
144
|
-
> **Note:** In development mode, some CLI commands or features may differ from the published PyPI version. If you encounter issues, ensure you have run `pip install -e .` and that your environment is activated.
|
145
|
-
|
146
|
-
---
|
147
|
-
|
148
|
-
## Core Framework TODO
|
149
|
-
|
150
|
-
- [x] Unified interactive approval mode for all blueprints (core, CLI/API flag, boxed UX)
|
151
|
-
- [x] Enhanced ANSI/emoji output for search, analysis, and file ops (core BlueprintUX)
|
152
|
-
- [x] Custom spinner/progress messages (core and per-blueprint personality)
|
153
|
-
- [x] Persistent session logging/audit trail (core, opt-in per blueprint)
|
154
|
-
- [x] Automatic context/project file injection for agent prompts
|
155
|
-
- [x] User feedback/correction loop for agent actions
|
156
|
-
- [x] API/CLI flag for enabling/disabling advanced UX features
|
157
|
-
- [x] Support desktop notifications (`--notify`)
|
158
|
-
- [x] Support attaching image inputs (`--image`, `-i`)
|
159
|
-
- [x] Support inspecting past sessions via `--view`, `-v`)
|
160
|
-
- [x] Support opening instructions file with `--config`, `-c`)
|
161
|
-
- [x] Support whitelisting sandbox write roots (`--writable-root`, `-w`)
|
162
|
-
- [x] Support disabling project docs (`--no-project-doc`)
|
163
|
-
- [x] Support full stdout (`--full-stdout`)
|
164
|
-
- [x] Support dangerous auto-approve (`--dangerously-auto-approve-everything`)
|
165
|
-
- [x] Support shell completion subcommand (`completion <bash|zsh|fish>`)
|
166
|
-
- [x] Support full-context mode (`--full-context`, `-f`)
|
167
|
-
- [x] Model selection overlay and CLI/agent-specific support
|
168
|
-
- [x] Session/history management and overlays
|
169
|
-
- [x] Full-context mode for large refactor/analysis
|
170
|
-
- [x] Writable root/sandboxing CLI/config support
|
171
|
-
- [x] Command suggestions/typeahead/autocomplete for CLI and slash commands
|
172
|
-
- [x] Help and onboarding overlays
|
173
|
-
- [x] Desktop notification support (optional)
|
174
|
-
- [x] Dangerous auto-approve flag/UX
|
175
|
-
- [x] Output formatting/full stdout option
|
176
|
-
- [x] Image input (CLI/UX, future-proof)
|
177
|
-
- [ ] Security review: command sanitization, safe execution wrappers
|
178
|
-
- [ ] Documentation: core feature usage, extension points, UX guidelines
|
179
|
-
|
180
|
-
---
|
181
|
-
|
182
|
-
## 🚀 Unified Blueprint Search & Analysis UX
|
183
|
-
|
184
|
-
Open Swarm blueprints now deliver a consistent, branded, and user-friendly experience for all search and analysis operations. Each blueprint leverages:
|
185
|
-
|
186
|
-
- **ANSI/emoji result boxes** summarizing search/analysis results, parameters, and counts
|
187
|
-
- **Progress spinners** ("Generating...", "Taking longer than expected") with live line/progress updates
|
188
|
-
- **Distinct emoji branding** for each blueprint (e.g., 🌳 Family Ties, 🪶 Unapologetic Poets, 🦢 Gaggle)
|
189
|
-
- **Clear feedback** for subprocess management and onboarding
|
190
|
-
|
191
|
-
<!-- BLUEPRINT_TABLE_START -->
|
192
|
-
<!-- The following table is auto-generated. Do not edit manually. Run scripts/gen_blueprint_table.py to update. -->
|
193
|
-
|
194
|
-
| Emoji | Name | Description | Example Commands | Branding |
|
195
|
-
|-------|------|-------------|------------------|----------|
|
196
|
-
| | `ChatbotBlueprint` | A basic conversational agent that responds to user input. | | |
|
197
|
-
| | `ZeusBlueprint` | Zeus leads a pantheon for software dev & sysadmin tasks, coordinating via agent-as-tool delegation. (DivineOpsBlueprint merged into this) | | |
|
198
|
-
| | `FamilyTiesBlueprint` | Manages WordPress content using Peter (coordinator) and Brian (WP manager via MCP). | | |
|
199
|
-
| | `JeevesBlueprint` | Provides private web search (DuckDuckGo) and home automation (Home Assistant) via specialized agents (Jeeves, Mycroft, Gutenberg). | | |
|
200
|
-
| | `MCPDemoBlueprint` | A scalable agent (Sage) demonstrating interaction with filesystem and memory MCP servers, supporting horizontal scaling and viral file operations. | | |
|
201
|
-
| | `MissionImprobableBlueprint` | A cheeky team led by JimFlimsy (coordinator), CinnamonToast (strategist/filesystem), and RollinFumble (operative/shell). Uses SQLite for instructions. | | |
|
202
|
-
| | `MonkaiMagicBlueprint` | A *Monkai Magic*-inspired crew managing AWS, Fly.io, and Vercel with pre-authenticated CLI tools and agent-as-tool delegation. | | |
|
203
|
-
| | `NebulaShellzzarBlueprint` | A multi-agent blueprint inspired by The Matrix for system administration and coding tasks. | | |
|
204
|
-
| | `OmniplexBlueprint` | Dynamically delegates tasks to agents (Amazo:npx, Rogue:uvx, Sylar:other) based on the command type of available MCP servers. | | |
|
205
|
-
| | `PoetsBlueprint` | A swarm of agents embodying legendary poets, using SQLite for instructions, agent-as-tool for collaboration, and MCPs for creative augmentation. | | |
|
206
|
-
| | `RueCode` | Generates, executes code, and interacts with the file system. | | |
|
207
|
-
| | `SuggestionBlueprint` | An agent that provides structured suggestions using Agent(output_type=...). | | |
|
208
|
-
| | `UnapologeticPoetsBlueprint` | A swarm of agents embodying legendary poets, using SQLite for instructions, agent-as-tool for collaboration, and MCPs for creative augmentation. | | |
|
209
|
-
| | `WhiskeyTangoFoxtrotBlueprint` | Tracks free online services with SQLite and web search using a multi-tiered agent hierarchy. | | |
|
210
|
-
| 🤖 | `codey` | Code and semantic code search/analysis. | swarm-cli codey /codesearch recursion . 5<br>swarm-cli codey /semanticsearch asyncio . 3 | Unified ANSI/emoji box UX, spinner, progress, summary |
|
211
|
-
| 🦢 | `gaggle` | Minimal test/demo search blueprint. | swarm-cli gaggle /search alpha . 5<br>swarm-cli gaggle /analyze beta . 2 | Unified ANSI/emoji box UX, spinner, progress, summary |
|
212
|
-
| | `DivineOpsBlueprint` (historical, merged into ZeusBlueprint) | | | |
|
213
|
-
| | `divine_code` (historical, merged into ZeusBlueprint) | | | |
|
214
|
-
<!-- BLUEPRINT_TABLE_END -->
|
215
|
-
|
216
|
-
- All commands support `/analyze` as well as `/search` (e.g., `/analyze beta . 5`).
|
217
|
-
- Try the commands above to see the new UX in action!
|
218
|
-
|
219
|
-
### Key Features
|
220
|
-
- **Result counts** and summaries in every result box
|
221
|
-
- **Live progress updates** during long-running operations
|
222
|
-
- **Custom spinner messages** for clear feedback
|
223
|
-
- **Fallback echo** for other commands, always in a result box
|
224
|
-
|
225
|
-
---
|
226
|
-
|
227
|
-
## 🚀 Unified Spinner and Result Output for Blueprints
|
228
|
-
|
229
|
-
All blueprints must use `print_search_progress_box` for spinner/progress/result output. See [`src/swarm/blueprints/blueprint_template.py`](src/swarm/blueprints/blueprint_template.py) for a canonical implementation.
|
230
|
-
|
231
|
-
- Distinguish between code and semantic search.
|
232
|
-
- Show spinner sequence: "Generating.", "Generating..", "Generating...", "Running...", and "Generating... Taking longer than expected".
|
233
|
-
- Update line numbers and result counts during progress.
|
234
|
-
- Always emit a summary/result box at the end.
|
235
|
-
- Pass all test suite checks for spinner/result output.
|
236
|
-
|
237
|
-
**Review Checklist:**
|
238
|
-
- [ ] Uses `print_search_progress_box` for all output
|
239
|
-
- [ ] Distinguishes code/semantic search
|
240
|
-
- [ ] Shows spinner sequence and “Taking longer than expected”
|
241
|
-
- [ ] Progress boxes update lines/results
|
242
|
-
- [ ] Passes all tests
|
243
|
-
|
244
|
-
---
|
245
|
-
|
246
|
-
## Continuous Compliance
|
247
|
-
|
248
|
-
This project uses an automated compliance audit for all blueprint metadata. Every push and pull request is checked for standards compliance via GitHub Actions. If any blueprint fails compliance, the build will fail.
|
249
|
-
|
250
|
-
- Audit script: `scripts/audit_blueprint_compliance.py`
|
251
|
-
- Workflow: `.github/workflows/compliance-audit.yml`
|
252
|
-
|
253
|
-
To run the audit locally:
|
254
|
-
|
255
|
-
```bash
|
256
|
-
python3 scripts/audit_blueprint_compliance.py
|
257
|
-
```
|
258
|
-
|
259
|
-
---
|
260
|
-
|
261
|
-
## Blueprint UX Compliance & Test Mode
|
262
|
-
|
263
|
-
Open Swarm blueprints must provide a consistent, user-friendly CLI experience. All blueprints must:
|
264
|
-
- Display custom spinner messages: `Generating.`, `Generating..`, `Generating...`, `Running...`, and `Generating... Taking longer than expected` for long operations.
|
265
|
-
- Use ANSI/emoji boxes to summarize operations, results, and parameters (see `print_search_progress_box`).
|
266
|
-
- Clearly distinguish between code search, semantic search, and analysis operations in the output.
|
267
|
-
- In test mode (`SWARM_TEST_MODE=1`), output must be deterministic and include all spinner/box states for compliance tests.
|
268
|
-
- For more, see `docs/blueprint_standards.md` and `docs/blueprint_test_mode_ux.md`.
|
269
|
-
|
270
|
-
To check compliance or debug output, run:
|
271
|
-
```bash
|
272
|
-
uv run pytest -v tests/blueprints
|
273
|
-
```
|
274
|
-
|
275
|
-
For automated compliance checking, see `scripts/check_ux_compliance.py`.
|
276
|
-
|
277
|
-
---
|
278
|
-
|
279
|
-
## What to Try Next
|
280
|
-
|
281
|
-
- **Try Code Search:**
|
282
|
-
- `swarm-cli codey /codesearch <keyword> <path> <max_results>`
|
283
|
-
- Example: `swarm-cli codey /codesearch recursion . 5`
|
284
|
-
- Try `/semanticsearch` for semantic code search with rich result boxes, result counts, and progressive spinner.
|
285
|
-
|
286
|
-
- **Try WhingeSurf Async UX:**
|
287
|
-
- `swarm-cli whinge_surf !run sleep 2`
|
288
|
-
- Then: `swarm-cli whinge_surf !status <process_id>`
|
289
|
-
- Demonstrates async subprocess management and status polling.
|
290
|
-
|
291
|
-
- **Discover Blueprints:**
|
292
|
-
- `swarm-cli info <blueprint>`
|
293
|
-
- Shows blueprint description, usage, and onboarding tips.
|
294
|
-
|
295
|
-
- **Get Help:**
|
296
|
-
- `swarm-cli --help` or `swarm-cli codey --help`
|
297
|
-
- For onboarding, command list, and usage examples.
|
298
|
-
|
299
|
-
---
|
300
|
-
|
301
|
-
## Core Concepts
|
302
|
-
|
303
|
-
* **Agents:** Individual AI units performing specific tasks, powered by LLMs (like GPT-4, Claude, etc.). Built using the `openai-agents` SDK.
|
304
|
-
* **Blueprints:** Python classes (`BlueprintBase` subclasses) defining a swarm's structure, agents, coordination logic, and external dependencies (like required environment variables or MCP servers). They act as reusable templates for specific tasks (e.g., code generation, research, data analysis).
|
305
|
-
* **MCP (Model Context Protocol) Servers:** Optional external processes providing specialized capabilities (tools) to agents, such as filesystem access, web browsing, database interaction, or interacting with specific APIs (Slack, Monday.com, etc.). Agents interact with MCP servers via a standardized communication protocol.
|
306
|
-
* **Configuration (`swarm_config.json`):** A central JSON file defining available LLM profiles (API keys, models) and configurations for MCP servers. Typically managed via `swarm-cli` in `~/.config/swarm/`.
|
307
|
-
* **`swarm-cli`:** A command-line tool for managing blueprints (adding, listing, running, installing) and the `swarm_config.json` file. Uses XDG directories for storing blueprints (`~/.local/share/swarm/blueprints/`) and configuration (`~/.config/swarm/`).
|
308
|
-
* **`swarm-api`:** A launcher for the Django/DRF backend that exposes installed blueprints via an OpenAI-compatible REST API (`/v1/models`, `/v1/chat/completions`).
|
309
|
-
|
310
|
-
---
|
311
|
-
|
312
|
-
## Installation
|
313
|
-
|
314
|
-
### Option 1: Install from PyPI (Recommended for most users)
|
315
|
-
|
316
|
-
```bash
|
317
|
-
pip install open-swarm
|
318
|
-
```
|
319
|
-
|
320
|
-
This will install the `swarm-cli` and `swarm-api` command-line tools to your PATH (typically `~/.local/bin/` for user installs).
|
321
|
-
|
322
|
-
- Run `swarm-cli --help` or `swarm-api --help` to verify installation.
|
323
|
-
|
324
|
-
### Option 2: Install from Local Source (for development and testing)
|
325
|
-
|
326
|
-
Clone the repository and install in editable mode:
|
327
|
-
|
328
|
-
```bash
|
329
|
-
git clone https://github.com/matthewhand/open-swarm.git
|
330
|
-
cd open-swarm
|
331
|
-
pip install -e .
|
332
|
-
```
|
333
|
-
|
334
|
-
- This makes `swarm-cli` and `swarm-api` available from your local copy. Changes to the code are immediately reflected.
|
335
|
-
- You can now test your local changes before pushing to PyPI.
|
336
|
-
|
337
|
-
#### Local CLI Usage Example
|
338
|
-
|
339
|
-
```bash
|
340
|
-
swarm-cli --help
|
341
|
-
swarm-cli run hello_world --instruction "Hello from CLI!"
|
342
|
-
python src/swarm/blueprints/hello_world/blueprint_hello_world.py Hello from CLI!
|
343
|
-
./hello_world Hello from CLI!
|
344
|
-
swarm-api --help
|
345
|
-
```
|
346
|
-
|
347
|
-
If you do not see the commands in your PATH, ensure `~/.local/bin` is in your PATH:
|
348
|
-
|
349
|
-
```bash
|
350
|
-
export PATH="$HOME/.local/bin:$PATH"
|
351
|
-
```
|
352
|
-
|
353
|
-
---
|
354
|
-
|
355
|
-
## Configuration Management & Secrets
|
356
|
-
|
357
|
-
Open Swarm uses a modern, XDG-compliant config structure:
|
358
|
-
|
359
|
-
- Main config: `~/.config/swarm/swarm_config.json`
|
360
|
-
- Secrets: `~/.config/swarm/.env`
|
361
|
-
- Example config: `swarm_config.json.example` (in project root)
|
362
|
-
|
363
|
-
### Deploying/Initializing Config
|
364
|
-
|
365
|
-
1. **Copy the advanced example config:**
|
366
|
-
```bash
|
367
|
-
cp ./swarm_config.json ~/.config/swarm/swarm_config.json
|
368
|
-
```
|
369
|
-
2. **Copy your .env file:**
|
370
|
-
```bash
|
371
|
-
cp .env ~/.config/swarm/.env
|
372
|
-
```
|
373
|
-
|
374
|
-
### Config Structure (Advanced Example)
|
375
|
-
|
376
|
-
Your `swarm_config.json` can include rich LLM profiles, MCP server definitions, and blueprint metadata. Example:
|
377
|
-
|
378
|
-
```json
|
379
|
-
{
|
380
|
-
"llm": {
|
381
|
-
"default": {
|
382
|
-
"provider": "openai",
|
383
|
-
"model": "${LITELLM_MODEL}",
|
384
|
-
"base_url": "${LITELLM_BASE_URL}",
|
385
|
-
"api_key": "${LITELLM_API_KEY}"
|
386
|
-
},
|
387
|
-
...
|
388
|
-
},
|
389
|
-
"mcpServers": {
|
390
|
-
"git": {
|
391
|
-
"description": "Provides Git operations via Docker.",
|
392
|
-
"command": "docker",
|
393
|
-
"args": ["run", "--rm", ...]
|
394
|
-
},
|
395
|
-
...
|
396
|
-
},
|
397
|
-
"blueprints": {
|
398
|
-
"defaults": { "max_llm_calls": 10 },
|
399
|
-
"MyBlueprint": { "llm_profile": "default" }
|
400
|
-
}
|
401
|
-
}
|
402
|
-
```
|
403
|
-
- **Secrets** (like API keys) are always referenced as `${ENV_VAR}` in the config and stored in `.env`.
|
404
|
-
|
405
|
-
### Editing Config with `swarm-cli`
|
406
|
-
|
407
|
-
- Use `swarm-cli` to add/edit/remove/list:
|
408
|
-
- LLMs
|
409
|
-
- MCP servers
|
410
|
-
- Blueprints
|
411
|
-
- When prompted for secrets, they are stored in `~/.config/swarm/.env`, not in the JSON.
|
412
|
-
|
413
|
-
---
|
414
|
-
|
415
|
-
## Environment Variables
|
416
|
-
|
417
|
-
Open Swarm and its blueprints use a variety of environment variables for configuration, security, and integration with external services. Set these in your shell, `.env` file, Docker environment, or deployment platform as appropriate.
|
418
|
-
|
419
|
-
### Core Framework Environment Variables
|
420
|
-
|
421
|
-
| Variable | Description | Default / Required |
|
422
|
-
|--------------------------|------------------------------------------------------------------|----------------------------|
|
423
|
-
| `OPENAI_API_KEY` | API key for OpenAI LLMs (used by agents and blueprints) | Required for OpenAI usage |
|
424
|
-
| `SWARM_API_KEY` | API key for securing API endpoints (swarm-api) | Optional (recommended) |
|
425
|
-
| `LITELLM_BASE_URL` | Override base URL for LiteLLM/OpenAI-compatible endpoints | Optional |
|
426
|
-
| `LITELLM_API_KEY` | API key for LiteLLM endpoints | Optional |
|
427
|
-
| `SWARM_CONFIG_PATH` | Path to the main Swarm config file (`swarm_config.json`) | `../swarm_config.json` |
|
428
|
-
| `BLUEPRINT_DIRECTORY` | Directory containing blueprint files | `src/swarm/blueprints` |
|
429
|
-
| `DJANGO_SECRET_KEY` | Django secret key (for API mode) | Auto-generated/dev default |
|
430
|
-
| `DJANGO_DEBUG` | Enable Django debug mode | `True` |
|
431
|
-
| `DJANGO_ALLOWED_HOSTS` | Comma-separated allowed hosts for Django API | `localhost,127.0.0.1` |
|
432
|
-
| `API_AUTH_TOKEN` | Token for authenticating API requests | Optional |
|
433
|
-
| `DJANGO_LOG_LEVEL` | Log level for Django app | `INFO` |
|
434
|
-
| `SWARM_LOG_LEVEL` | Log level for Swarm app | `DEBUG` |
|
435
|
-
| `REDIS_HOST` | Host for Redis (if used) | `localhost` |
|
436
|
-
| `REDIS_PORT` | Port for Redis (if used) | `6379` |
|
437
|
-
| `DJANGO_CSRF_TRUSTED_ORIGINS` | Comma-separated trusted origins for CSRF protection | `http://localhost:8000,...`|
|
438
|
-
| `ENABLE_ADMIN` | Enable admin web interface | `false` |
|
439
|
-
| `ENABLE_API_AUTH` | Require API authentication | `true` |
|
440
|
-
|
441
|
-
#### Blueprint/Tool-Specific Variables
|
442
|
-
- Some blueprints and MCP tools may require additional env vars (e.g., Google API keys, Slack tokens, etc.).
|
443
|
-
- Refer to the blueprint's docstring or config for details.
|
444
|
-
|
445
|
-
#### Usage Example
|
446
|
-
```bash
|
447
|
-
export OPENAI_API_KEY="sk-..."
|
448
|
-
export SWARM_API_KEY="..."
|
449
|
-
export LITELLM_BASE_URL="https://open-litellm.fly.dev/v1"
|
450
|
-
# ... set other variables as needed
|
451
|
-
```
|
452
|
-
|
453
|
-
---
|
454
|
-
|
455
|
-
## Toolbox Functionality
|
456
|
-
|
457
|
-
Open Swarm ships with a growing toolbox of agent and blueprint utilities. All features listed below have robust, passing tests unless marked as **WIP** (Work In Progress).
|
458
|
-
|
459
|
-
### Task Scheduler Toolbox
|
460
|
-
- **Schedule jobs with `at`:**
|
461
|
-
- Schedule a shell script or command to run at a specific time (uses the system `at` command).
|
462
|
-
- **Test Status:** Passing
|
463
|
-
- **List scheduled `at` jobs:**
|
464
|
-
- List all jobs currently scheduled with `at`.
|
465
|
-
- **Test Status:** Passing
|
466
|
-
- **Remove `at` jobs:**
|
467
|
-
- Remove a scheduled job by its job ID.
|
468
|
-
- **Test Status:** Passing
|
469
|
-
- **Schedule jobs with `cron`:**
|
470
|
-
- Schedule recurring jobs using cron expressions (uses the system `crontab`).
|
471
|
-
- **Test Status:** Passing
|
472
|
-
- **List scheduled `cron` jobs:**
|
473
|
-
- List all jobs currently scheduled with `crontab`.
|
474
|
-
- **Test Status:** Passing
|
475
|
-
- **Remove `cron` jobs:**
|
476
|
-
- Remove a scheduled cron job by its job ID.
|
477
|
-
- **Test Status:** Passing
|
478
|
-
|
479
|
-
### Slash Command Framework
|
480
|
-
- **Global slash command registry:**
|
481
|
-
- Blueprints can register and use slash commands (e.g., `/help`, `/agent`, `/model`).
|
482
|
-
- Built-in demo commands: `/help`, `/agent`, `/model`.
|
483
|
-
- **Test Status:** Passing
|
484
|
-
- **Blueprint Integration:**
|
485
|
-
- Blueprints can access the global registry and add their own commands.
|
486
|
-
- **Test Status:** Passing
|
487
|
-
|
488
|
-
#### Usage Example (Slash Commands)
|
489
|
-
```python
|
490
|
-
from swarm.extensions.blueprint.slash_commands import slash_command_registry
|
491
|
-
|
492
|
-
@slash_command_registry.register('/hello')
|
493
|
-
def hello_command(args):
|
494
|
-
return f"Hello, {args}!"
|
495
|
-
```
|
496
|
-
|
497
|
-
#### Usage Example (Task Scheduler)
|
498
|
-
```python
|
499
|
-
from swarm.extensions.task_scheduler_toolbox import schedule_at_job, list_at_jobs, remove_at_job
|
500
|
-
|
501
|
-
job_id = schedule_at_job('/path/to/script.sh', run_time='now + 5 minutes')
|
502
|
-
jobs = list_at_jobs()
|
503
|
-
remove_at_job(job_id)
|
504
|
-
```
|
505
|
-
|
506
|
-
---
|
507
|
-
|
508
|
-
## CLI Reference
|
509
|
-
|
510
|
-
### swarm-cli Usage
|
511
|
-
|
512
|
-
```shell
|
513
|
-
Usage: swarm-cli [OPTIONS] COMMAND [ARGS]...
|
514
|
-
|
515
|
-
Swarm CLI tool for managing blueprints.
|
516
|
-
|
517
|
-
Options:
|
518
|
-
--install-completion Install completion for the current shell.
|
519
|
-
--show-completion Show completion for the current shell, to copy it or customize the installation.
|
520
|
-
--help Show this message and exit.
|
521
|
-
|
522
|
-
Commands:
|
523
|
-
install Install a blueprint by creating a standalone executable using PyInstaller.
|
524
|
-
launch Launch a previously installed blueprint executable.
|
525
|
-
list Lists available blueprints (bundled and user-provided) and/or installed executables.
|
526
|
-
```
|
527
|
-
|
528
|
-
### swarm-api Usage
|
529
|
-
|
530
|
-
```shell
|
531
|
-
# (No standalone swarm-api binary was found in dist/; see Docker/API section below for usage.)
|
532
|
-
```
|
533
|
-
|
534
|
-
---
|
535
|
-
|
536
|
-
## Developer Notes
|
537
|
-
- System dependencies are mocked in tests for CI and portability.
|
538
|
-
- Any toolbox feature not listed as **Passing** above is considered **WIP** and may not be stable.
|
539
|
-
- Contributions and feedback are welcome!
|
540
|
-
|
541
|
-
---
|
542
|
-
|
543
|
-
## Blueprint Metadata: Developer Guide
|
544
|
-
|
545
|
-
All blueprints must define a class-level `metadata` property for onboarding, CLI discovery, and documentation automation. This property should be a Python dictionary and include the following keys:
|
546
|
-
|
547
|
-
- `name`: The blueprint's canonical name (string)
|
548
|
-
- `emoji`: The blueprint's emoji branding (string)
|
549
|
-
- `description`: Short description for CLI/docs (string)
|
550
|
-
- `examples`: List of CLI example commands (list of strings)
|
551
|
-
- `commands`: List of supported commands (list of strings)
|
552
|
-
- `branding`: Description of the UX/branding features (string)
|
553
|
-
|
554
|
-
**Example:**
|
555
|
-
```python
|
556
|
-
class FamilyTiesBlueprint(BlueprintBase):
|
557
|
-
metadata = {
|
558
|
-
"name": "family_ties",
|
559
|
-
"emoji": "🌳",
|
560
|
-
"description": "Genealogy/family data search and analysis.",
|
561
|
-
"examples": [
|
562
|
-
"swarm-cli family_ties /search Smith . 5",
|
563
|
-
"swarm-cli family_ties /analyze Johnson . 3"
|
564
|
-
],
|
565
|
-
"commands": ["/search", "/analyze"],
|
566
|
-
"branding": "Unified ANSI/emoji box UX, spinner, progress, summary"
|
567
|
-
}
|
568
|
-
```
|
569
|
-
|
570
|
-
This metadata is used by the CLI for `swarm-cli blueprint list` and `swarm-cli blueprint info <name>`, and for onboarding/documentation automation. **Always update the `metadata` property when adding or modifying a blueprint.**
|
571
|
-
|
572
|
-
---
|
573
|
-
|
574
|
-
## Test Database Setup (Django + SQLite)
|
575
|
-
|
576
|
-
- The Django test database is configured to use a file in `/tmp` to avoid permission issues:
|
577
|
-
- Path: `/tmp/tmp.FwE9ucN97b/test_db.sqlite3`
|
578
|
-
- Journal mode is set to `DELETE` for maximum compatibility and to avoid WAL file locking issues in CI and local runs.
|
579
|
-
- Before running tests, the test DB file is deleted to prevent corruption or stale locks.
|
580
|
-
- **Automated cleanup:** Use `make test` or run `bash scripts/pretest_cleanup.sh` before tests to automatically remove any stale test DB files in `/tmp`.
|
581
|
-
- If you encounter `readonly database` or `disk I/O error` during tests:
|
582
|
-
1. Delete the test DB file manually: `rm -f /tmp/tmp.FwE9ucN97b/test_db.sqlite3`
|
583
|
-
2. Or use `make pretest-clean` to remove all test DBs.
|
584
|
-
3. Re-run your tests.
|
585
|
-
- For CI, add a pre-test cleanup step to always remove the test DB file before running tests (see `scripts/pretest_cleanup.sh`).
|
586
|
-
- To prevent DB lock/readonly errors, ensure `/tmp` has free space and is not mounted read-only.
|
587
|
-
|
588
|
-
---
|
589
|
-
|
590
|
-
## Troubleshooting
|
591
|
-
- Ensure `/tmp` has free space and is not mounted read-only.
|
592
|
-
- If you see persistent DB errors, check for OS-level security restrictions or concurrent test runs.
|
593
|
-
|
594
|
-
---
|
595
|
-
|
596
|
-
## Security
|
597
|
-
- Never commit `.env` or sensitive config files to version control.
|
598
|
-
- Review environment variable usage for API keys and secrets.
|
599
|
-
|
600
|
-
---
|
601
|
-
|
602
|
-
## Acknowledgements
|
603
|
-
|
604
|
-
This project builds upon concepts and code from the `openai-agents` library and potentially other open-source projects. Specific acknowledgements can be found in `DEVELOPMENT.md` or individual source files.
|
605
|
-
|
606
|
-
---
|
607
|
-
|
608
|
-
## License
|
609
|
-
|
610
|
-
Open Swarm is provided under the MIT License. Refer to the [LICENSE](LICENSE) file for full details.
|
611
|
-
|
612
|
-
---
|
613
|
-
|
614
|
-
## Contributing
|
615
|
-
|
616
|
-
Contributions are welcome! Please refer to the `CONTRIBUTING.md` file (if available) or open an issue/pull request on the repository.
|
617
|
-
|
618
|
-
---
|
619
|
-
|
620
|
-
## Quickstart for Contributors
|
621
|
-
|
622
|
-
- **Run all tests and check UX compliance:**
|
623
|
-
```bash
|
624
|
-
uv run pytest -v tests/blueprints
|
625
|
-
python scripts/check_ux_compliance.py
|
626
|
-
```
|
627
|
-
- **Check code style (lint):**
|
628
|
-
```bash
|
629
|
-
ruff check .
|
630
|
-
```
|
631
|
-
- **Check coverage:**
|
632
|
-
```bash
|
633
|
-
uv run pytest --cov=src --cov-report=term-missing tests/blueprints
|
634
|
-
```
|
635
|
-
- **Add new blueprints:**
|
636
|
-
- Follow the standards in `docs/blueprint_standards.md` and `docs/blueprint_test_mode_ux.md`.
|
637
|
-
- Ensure spinner/box/emoji/summary output is present in test mode (`SWARM_TEST_MODE=1`).
|
638
|
-
- Add or update tests in `tests/blueprints/`.
|
639
|
-
- **CI/CD:**
|
640
|
-
- All PRs are checked for spinner/box/emoji/summary compliance, lint, and coverage.
|
641
|
-
- Warnings are surfaced for missing UX elements in test mode, but do not block merges.
|
642
|
-
|
643
|
-
See the docs and scripts for more details on compliance and extending Open Swarm.
|
644
|
-
|
645
|
-
---
|
646
|
-
|
647
|
-
## Quickstart 1: Using `swarm-cli` Locally (via PyPI)
|
648
|
-
|
649
|
-
This is the recommended way to use `swarm-cli` for managing and running blueprints on your local machine.
|
650
|
-
|
651
|
-
**Prerequisites:**
|
652
|
-
* Python 3.10+
|
653
|
-
* `pip` (Python package installer)
|
654
|
-
|
655
|
-
**Steps:**
|
656
|
-
|
657
|
-
1. **Install `open-swarm` from PyPI:**
|
658
|
-
```bash
|
659
|
-
pip install open-swarm
|
660
|
-
```
|
661
|
-
*(Using a virtual environment is recommended: `python -m venv .venv && source .venv/bin/activate`)*
|
662
|
-
|
663
|
-
2. **Initial Configuration (First Run):**
|
664
|
-
* The first time you run a `swarm-cli` command that requires configuration (like `run` or `config`), it will automatically create a default `swarm_config.json` at `~/.config/swarm/swarm_config.json` if one doesn't exist.
|
665
|
-
* You **must** set the required environment variables (like `OPENAI_API_KEY`) in your shell for the configuration to work. Create a `.env` file in your working directory or export them:
|
666
|
-
```bash
|
667
|
-
export OPENAI_API_KEY="sk-..."
|
668
|
-
# Add other keys as needed (GROQ_API_KEY, etc.)
|
669
|
-
```
|
670
|
-
* You can customize the configuration further using `swarm-cli config` commands (see `USERGUIDE.md`).
|
671
|
-
|
672
|
-
3. **Add a Blueprint:**
|
673
|
-
* Download or create a blueprint file (e.g., `my_blueprint.py`). Example blueprints are available in the [project repository](https://github.com/matthewhand/open-swarm/tree/main/src/swarm/blueprints).
|
674
|
-
* Add it using `swarm-cli`:
|
675
|
-
```bash
|
676
|
-
# Example: Adding a downloaded blueprint file
|
677
|
-
swarm-cli add ./path/to/downloaded/blueprint_hello_world.py
|
678
|
-
|
679
|
-
# Example: Adding a directory containing a blueprint
|
680
|
-
swarm-cli add ./my_custom_blueprints/agent_smith --name agent_smith
|
681
|
-
```
|
682
|
-
|
683
|
-
4. **Run the Blueprint:**
|
684
|
-
* **Single Instruction (recommended):**
|
685
|
-
```bash
|
686
|
-
swarm-cli run hello_world --instruction "Hello from CLI!"
|
687
|
-
```
|
688
|
-
* **Interactive Mode:**
|
689
|
-
```bash
|
690
|
-
swarm-cli run hello_world
|
691
|
-
# Now you can chat with the blueprint interactively
|
692
|
-
```
|
693
|
-
* **Direct Python or Binary Execution:**
|
694
|
-
```bash
|
695
|
-
python src/swarm/blueprints/hello_world/blueprint_hello_world.py Hello from CLI!
|
696
|
-
./hello_world Hello from CLI!
|
697
|
-
```
|
698
|
-
|
699
|
-
5. **(Optional) Install as Command:**
|
700
|
-
```bash
|
701
|
-
swarm-cli install hello_world
|
702
|
-
# Now run (ensure ~/.local/share/swarm/bin is in your PATH):
|
703
|
-
./hello_world Hello from CLI!
|
704
|
-
```
|
705
|
-
|
706
|
-
---
|
707
|
-
|
708
|
-
## Quickstart 2: Deploying `swarm-api` Service (via Docker)
|
709
|
-
|
710
|
-
This section covers deploying the API service using Docker.
|
711
|
-
|
712
|
-
### Option A: Docker Compose (Recommended for Flexibility)
|
713
|
-
|
714
|
-
This method uses `docker-compose.yaml` and is best if you need to customize volumes, environment variables easily, or manage related services (like Redis).
|
715
|
-
|
716
|
-
**Prerequisites:**
|
717
|
-
* Docker ([Install Docker](https://docs.docker.com/engine/install/))
|
718
|
-
* Docker Compose ([Install Docker Compose](https://docs.docker.com/compose/install/))
|
719
|
-
* Git
|
720
|
-
|
721
|
-
**Steps:**
|
722
|
-
|
723
|
-
1. **Clone the Repository:** (Needed for `docker-compose.yaml` and config files)
|
724
|
-
```bash
|
725
|
-
git clone https://github.com/matthewhand/open-swarm.git
|
726
|
-
cd open-swarm
|
727
|
-
```
|
728
|
-
|
729
|
-
2. **Configure Environment:**
|
730
|
-
* Copy `cp .env.example .env` and edit `.env` with your API keys (e.g., `OPENAI_API_KEY`, `SWARM_API_KEY`).
|
731
|
-
|
732
|
-
3. **Prepare Blueprints & Config:**
|
733
|
-
* Place blueprints in `./blueprints`.
|
734
|
-
* Ensure `./swarm_config.json` exists and is configured.
|
735
|
-
|
736
|
-
4. **Configure Overrides (Optional):**
|
737
|
-
* Copy `cp docker-compose.override.yaml.example docker-compose.override.yaml`.
|
738
|
-
* Edit the override file to mount additional volumes, change ports, etc.
|
739
|
-
|
740
|
-
5. **Start the Service:**
|
741
|
-
```bash
|
742
|
-
docker compose up -d
|
743
|
-
```
|
744
|
-
|
745
|
-
6. **Verify API:** (Default port 8000)
|
746
|
-
* Models: `curl http://localhost:8000/v1/models`
|
747
|
-
* Chat: `curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d '{"model": "hello_world", ...}'` (Add `-H "Authorization: Bearer <key>"` if needed).
|
748
|
-
|
749
|
-
### Option B: Direct `docker run` (Simpler for Single Container)
|
750
|
-
|
751
|
-
This method runs the pre-built image directly from Docker Hub. Good for quick tests or simple deployments without cloning the repo. Customization requires careful use of `-v` (volume) and `-e` (environment) flags.
|
752
|
-
|
753
|
-
**Prerequisites:**
|
754
|
-
* Docker ([Install Docker](https://docs.docker.com/engine/install/))
|
755
|
-
|
756
|
-
**Steps:**
|
757
|
-
|
758
|
-
1. **Prepare Local Files (If Customizing):**
|
759
|
-
* Create a directory for your blueprints (e.g., `~/my_swarm_blueprints`).
|
760
|
-
* Create your `swarm_config.json` file locally (e.g., `~/my_swarm_config.json`).
|
761
|
-
* Create a `.env` file locally (e.g., `~/swarm.env`) with your API keys (`OPENAI_API_KEY`, `SWARM_API_KEY`, etc.).
|
762
|
-
|
763
|
-
2. **Run the Container:**
|
764
|
-
```bash
|
765
|
-
docker run -d \
|
766
|
-
--name open-swarm-api \
|
767
|
-
-p 8000:8000 \
|
768
|
-
--env-file ~/swarm.env \
|
769
|
-
-v ~/my_swarm_blueprints:/app/blueprints:ro \
|
770
|
-
-v ~/my_swarm_config.json:/app/swarm_config.json:ro \
|
771
|
-
-v open_swarm_db:/app/db.sqlite3 \
|
772
|
-
--restart unless-stopped \
|
773
|
-
mhand79/open-swarm:latest
|
774
|
-
```
|
775
|
-
* `-d`: Run detached (in background).
|
776
|
-
* `--name`: Assign a name to the container.
|
777
|
-
* `-p 8000:8000`: Map host port 8000 to container port 8000 (adjust if needed).
|
778
|
-
* `--env-file`: Load environment variables from your local file.
|
779
|
-
* `-v ...:/app/blueprints:ro`: Mount your local blueprints directory (read-only). **Required** if you want to use custom blueprints.
|
780
|
-
* `-v ...:/app/swarm_config.json:ro`: Mount your local config file (read-only). **Required** for custom LLM/MCP settings.
|
781
|
-
* `-v open_swarm_db:/app/db.sqlite3`: Use a named Docker volume for the database to persist data.
|
782
|
-
* `--restart unless-stopped`: Automatically restart the container unless manually stopped.
|
783
|
-
* `mhand79/open-swarm:latest`: The image name on Docker Hub.
|
784
|
-
|
785
|
-
3. **Verify API:** (Same as Docker Compose)
|
786
|
-
* Models: `curl http://localhost:8000/v1/models`
|
787
|
-
* Chat: `curl http://localhost:8000/v1/chat/completions ...` (Add `-H "Authorization: Bearer <key>"` if needed).
|
788
|
-
|
789
|
-
---
|
790
|
-
|
791
|
-
## Usage Modes Summary
|
792
|
-
|
793
|
-
* **`swarm-api` (via Docker or `manage.py runserver`):** Exposes blueprints as an OpenAI-compatible REST API. Ideal for integrations. Requires `SWARM_API_KEY` for security in non-local deployments.
|
794
|
-
* **`swarm-cli run` (via PyPI install):** Executes managed blueprints locally, either with a single instruction or in interactive chat mode. Good for testing and local tasks.
|
795
|
-
* **`swarm-cli install` (via PyPI install):** Creates standalone command-line executables from managed blueprints.
|
796
|
-
* **Direct Python Execution (via Git clone):** Running `uv run python <blueprint_file.py>` is mainly for development and testing individual files.
|
797
|
-
|
798
|
-
---
|
799
|
-
|
800
|
-
## Further Documentation
|
801
|
-
|
802
|
-
This README provides a high-level overview and quickstart guides. For more detailed information, please refer to:
|
803
|
-
|
804
|
-
* **User Guide (`USERGUIDE.md`):** Detailed instructions on using `swarm-cli` commands for managing blueprints and configuration locally.
|
805
|
-
* **Development Guide (`DEVELOPMENT.md`):** Information for contributors and developers, including architecture details, testing strategies, project layout, API details, and advanced topics.
|
806
|
-
* **Example Blueprints (`src/swarm/blueprints/README.md`):** A list and description of the example blueprints included with the framework, showcasing various features and integration patterns.
|
807
|
-
* **Blueprint Patterns and Configuration (`blueprints/README.md`):** Guidance on creating and configuring blueprints, including best practices and common pitfalls. **Start here for blueprint usage and extension.**
|
808
|
-
* **User Experience Standards (`UX.md`):** Guidelines for creating a consistent and user-friendly experience across blueprints and the Swarm framework.
|
809
|
-
* **User Experience Standards (`UX.md`)**: Guidelines for creating a consistent and user-friendly experience across blueprints and the Swarm framework.
|
810
|
-
|
811
|
-
---
|
812
|
-
|
813
|
-
## Blueprint Compliance Report
|
814
|
-
|
815
|
-
To generate a Markdown compliance report for all blueprints, run:
|
816
|
-
|
817
|
-
```bash
|
818
|
-
python3 scripts/generate_blueprint_report.py
|
819
|
-
```
|
820
|
-
|
821
|
-
This will output `BLUEPRINT_COMPLIANCE_REPORT.md` in the project root, summarizing compliance, test coverage, spinner/continuation command usage, and missing fields for every blueprint.
|
822
|
-
|
823
|
-
---
|
824
|
-
|
825
|
-
## Blueprint Scaffolding
|
826
|
-
|
827
|
-
To create a new, fully compliant blueprint with metadata, README, and test stub, run:
|
828
|
-
|
829
|
-
```bash
|
830
|
-
python3 scripts/scaffold_blueprint.py
|
831
|
-
```
|
832
|
-
|
833
|
-
This script will prompt for the blueprint name and description, set up all required files, and ensure compliance fields are present from the start.
|
834
|
-
|
835
|
-
---
|
836
|
-
|
837
|
-
## Blueprint Compliance & Automation
|
838
|
-
|
839
|
-
Open Swarm enforces high standards for all blueprints. The following scripts help automate compliance and quality:
|
840
|
-
|
841
|
-
- `scripts/list_blueprints.py [--missing-descriptions]` — List all blueprints, or only those missing meaningful descriptions.
|
842
|
-
- `scripts/check_blueprint_descriptions.py` — Check for missing or placeholder descriptions in blueprint metadata.
|
843
|
-
- `scripts/fix_blueprint_descriptions.py [--auto-fill]` — Batch-remediate missing descriptions interactively or with an auto-filled template.
|
844
|
-
- `scripts/check_blueprint_tests.py` — Ensure every blueprint has an associated test file.
|
845
|
-
- `scripts/check_stub_tests.py` — Flag test files that only contain stubs (e.g., `assert True` or TODOs).
|
846
|
-
- `scripts/check_spinner_compliance.py` — Verify required spinner messages and continuation commands are present.
|
847
|
-
- `scripts/check_ux_compliance.py` — Ensure all blueprints have required UX/CLI compliance fields (`agentic`, `ux_ansi_emoji`, `spinner`, `fallback`).
|
848
|
-
- `scripts/generate_blueprint_report.py` — Generate a Markdown compliance report including stub test and description status.
|
849
|
-
|
850
|
-
### Continuous Integration
|
851
|
-
|
852
|
-
All compliance scripts are integrated into CI via GitHub Actions. PRs and pushes are checked for:
|
853
|
-
- Required blueprint metadata fields
|
854
|
-
- Non-placeholder descriptions
|
855
|
-
- Presence of test files
|
856
|
-
- Required spinner/UX/CLI fields
|
857
|
-
- Absence of stub-only tests (warning)
|
858
|
-
|
859
|
-
### Improving Test Coverage
|
860
|
-
Blueprints flagged with stub-only tests should have their test files expanded to cover real functionality. See the compliance report for guidance.
|
861
|
-
|
862
|
-
## Blueprint Scaffolding
|
863
|
-
|
864
|
-
Automate new blueprint creation with:
|
865
|
-
- `scripts/scaffold_blueprint.py` — Scaffold a new, compliant blueprint with all required files and metadata.
|
866
|
-
|
867
|
-
## CLI Tools
|
868
|
-
|
869
|
-
- `scripts/list_blueprints.py` — Discover and filter blueprints.
|
870
|
-
- `scripts/generate_blueprint_report.py` — Generate and review compliance status.
|
871
|
-
|
872
|
-
## Contributing
|
873
|
-
|
874
|
-
Please ensure all blueprints and contributions pass compliance and quality checks before submitting PRs.
|