2026-03-01
agent_reach/ 旧包目录rm -rf /srv/projects/agent-reach/agent_reach/ ✅
修改 pyproject.toml
agent-reach = "ai_search.cli:main" 入口点 ✅"agent_reach" ✅保留 ai-search = "ai_search.cli:main" 唯一入口点 ✅
修改 ai_search/core.py
删除 AgentReach = AISearch 向后兼容别名 ✅
修改 ai_search/cli.py
agent-reach → ai-search ✅AgentReach → AISearch ✅版本显示从 "Agent Reach v2.0.0" → "AI Search v2.0.0" ✅
修改 ai_search/config.py
~/.agent-reach/ → ~/.ai-search/ ✅
修改 channels/*.py
twitter.py, xiaohongshu.py, bilibili.py, base.py, instagram.py, reddit.py ✅
修改其他 ai_search/ 文件
cookie_extract.py, init.py, integrations/mcp_server.py ✅
修改 Markdown 文件
ai_search/guides/*.md (6 个文件) ✅
修改 tests/
test_config.py, test_cli.py, test_channels.py, test_doctor.py, test_core.py ✅
修改 README.md 及 docs/
OpenClaw skill 目录重命名
cp -r ~/.openclaw/skills/agent-reach ~/.openclaw/skills/ai-search ✅rm -rf ~/.openclaw/skills/agent-reach ✅TOOLS.md 更新
~/.openclaw/workspace/TOOLS.md 中的 agent-reach → ai-search ✅卸载旧系统包
pip uninstall agent-reach -y ✅rm -rf /usr/local/lib/python3.11/dist-packages/agent_reach ✅项目内旧 skill 目录
agent-reach/SKILL.md 内容 ✅agent-reach/ → ai-search-skill/ ✅重新安装
pip install -e . --break-system-packages ✅| 项目 | 结果 |
|---|---|
agent_reach/ 目录不存在 |
✅ |
~/.openclaw/skills/agent-reach 不存在 |
✅ |
~/.openclaw/skills/ai-search 存在 |
✅ |
ai-search version 输出 "AI Search v2.0.0" |
✅ |
which agent-reach 无结果 |
✅ |
from ai_search.core import AISearch 正常 |
✅ |
import agent_reach 报 ModuleNotFoundError |
✅ |
ai_search/ Python 代码残留扫描 |
✅ 零残留 |
TOOLS.md 无残留 |
✅ |
pyproject.toml 无代码级残留 |
✅(仅 GitHub 仓库 URL 例外) |
pyproject.toml 的 [project.urls] 中保留了 https://github.com/Panniantong/agent-reach 这一 GitHub 仓库地址,因为这是实际的 git 仓库名(目录名本身不改),属于允许的例外。
✅ 完成,移交 reviewer