[Cleanup] Delete 23 unused prompt files in swarms/prompts/ (~1,677 lines)
#1,835 创建于 2026年8月9日
仓库指标
- 星标
- (7,040 个星标)
- PR 合并指标
- (平均合并 3天 5小时) (30 天内合并 17 个 PR)
描述
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:
- Delete them — they are unreachable, unversioned, and untested; anything valuable lives better in docs or examples
- 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__.pyentries — 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