kyegomez/swarms

[Cleanup] Delete 23 unused prompt files in swarms/prompts/ (~1,677 lines)

オープン

#1,835 opened on 2026/08/09

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (986 件のフォーク)github user discovery
good first issuepromptstech-debt

Repository metrics

Stars
 (7,040 個のスター)
PR merge metrics
 (平均マージ 3d 5h) (30d で 17 merged PRs)

説明

What

23 files in swarms/prompts/ are never imported by anything — not by swarms/, not by tests/, not by examples/. Together they are ~1,677 lines of legacy persona prompts that no code path can reach.

The files

Lines File
276 autobloggen.py
104 xray_swarm_prompt.py
103 agent_self_builder_prompt.py
102 self_operating_prompt.py
101 multi_modal_prompts.py
97 support_agent_prompt.py
91 ai_research_team.py
90 accountant_swarm_prompts.py
88 sop_generator_agent_prompt.py
88 sales_prompts.py
78 project_manager.py
75 agent_orchestration_prompt.py
62 code_spawner.py
54 swarm_manager_agent.py
52 meta_system_prompt.py
48 multi_modal_visual_prompts.py
41 visual_cot.py
39 urban_planning.py
38 personal_stylist.py
23 aot_prompt.py
14 idea2img.py
13 task_assignment_prompt.py
0 refiner_agent_prompt.py (empty file)

Verification method

For each file, both the module name and every exported symbol (prompt constants, functions) were grepped across the entire repo. Zero hits outside the files themselves.

Note: agent_self_builder_prompt.py mentions AgentConfiguration in prose, but that schema was itself deleted as dead code in #1830 — another signal this prompt is orphaned.

Consideration before deleting

These are prompt content, not logic, so the cost of keeping them is low and someone may consider them a library of starting points. Two reasonable outcomes:

  1. Delete them — they are unreachable, unversioned, and untested; anything valuable lives better in docs or examples
  2. Move them to examples/prompts/ — preserves the content, removes it from the shipped package

Recommend option 1 unless someone identifies specific prompts worth keeping, in which case they should get an actual import path and a test.

Scope

  • Decide delete vs. relocate
  • Remove the files (and any prompts/__init__.py entries — currently none reference them)
  • Verify the package still imports

Context

From the code-waste audit (experimental/CODE_WASTE_AUDIT.md, section 1.5).

🤖 Generated with Claude Code

コントリビューターガイド