agentcrew-mcn 0.1.0__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.
- agentcrew_mcn-0.1.0/LICENSE +19 -0
- agentcrew_mcn-0.1.0/PKG-INFO +160 -0
- agentcrew_mcn-0.1.0/README.md +126 -0
- agentcrew_mcn-0.1.0/agentcrew_mcn.egg-info/PKG-INFO +160 -0
- agentcrew_mcn-0.1.0/agentcrew_mcn.egg-info/SOURCES.txt +44 -0
- agentcrew_mcn-0.1.0/agentcrew_mcn.egg-info/dependency_links.txt +1 -0
- agentcrew_mcn-0.1.0/agentcrew_mcn.egg-info/entry_points.txt +2 -0
- agentcrew_mcn-0.1.0/agentcrew_mcn.egg-info/requires.txt +11 -0
- agentcrew_mcn-0.1.0/agentcrew_mcn.egg-info/top_level.txt +7 -0
- agentcrew_mcn-0.1.0/agents/__init__.py +5 -0
- agentcrew_mcn-0.1.0/agents/analyst.py +370 -0
- agentcrew_mcn-0.1.0/agents/base.py +115 -0
- agentcrew_mcn-0.1.0/agents/publisher.py +262 -0
- agentcrew_mcn-0.1.0/agents/skills.py +213 -0
- agentcrew_mcn-0.1.0/agents/tools.py +193 -0
- agentcrew_mcn-0.1.0/agents/writer.py +285 -0
- agentcrew_mcn-0.1.0/cli/__init__.py +3 -0
- agentcrew_mcn-0.1.0/cli/analyst.py +210 -0
- agentcrew_mcn-0.1.0/cli/main.py +192 -0
- agentcrew_mcn-0.1.0/cli/publish.py +193 -0
- agentcrew_mcn-0.1.0/cli/rag_cmd.py +188 -0
- agentcrew_mcn-0.1.0/cli/schedule.py +183 -0
- agentcrew_mcn-0.1.0/cli/write.py +149 -0
- agentcrew_mcn-0.1.0/dashboard/__init__.py +1 -0
- agentcrew_mcn-0.1.0/dashboard/app.py +162 -0
- agentcrew_mcn-0.1.0/dashboard/components.py +224 -0
- agentcrew_mcn-0.1.0/dashboard/data_loader.py +178 -0
- agentcrew_mcn-0.1.0/dashboard/pages/__init__.py +1 -0
- agentcrew_mcn-0.1.0/dashboard/pages/analytics.py +118 -0
- agentcrew_mcn-0.1.0/dashboard/pages/publishing.py +102 -0
- agentcrew_mcn-0.1.0/dashboard/pages/system.py +98 -0
- agentcrew_mcn-0.1.0/llm/__init__.py +5 -0
- agentcrew_mcn-0.1.0/llm/client.py +95 -0
- agentcrew_mcn-0.1.0/orchestrator/__init__.py +3 -0
- agentcrew_mcn-0.1.0/orchestrator/manager.py +248 -0
- agentcrew_mcn-0.1.0/orchestrator/scheduler.py +185 -0
- agentcrew_mcn-0.1.0/platforms/__init__.py +3 -0
- agentcrew_mcn-0.1.0/platforms/base.py +121 -0
- agentcrew_mcn-0.1.0/platforms/juejin.py +220 -0
- agentcrew_mcn-0.1.0/platforms/zhihu.py +249 -0
- agentcrew_mcn-0.1.0/pyproject.toml +69 -0
- agentcrew_mcn-0.1.0/rag/__init__.py +3 -0
- agentcrew_mcn-0.1.0/rag/embedder.py +39 -0
- agentcrew_mcn-0.1.0/rag/knowledge_base.py +161 -0
- agentcrew_mcn-0.1.0/rag/retriever.py +55 -0
- agentcrew_mcn-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) {{ year }} {{ organization }}
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
15
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
16
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
17
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
18
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
19
|
+
OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentcrew-mcn
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AI MCN 自动推广工具 — 你的AI营销团队,24小时在线工作,不领工资。
|
|
5
|
+
Author: super-rick
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/super-rick/agent-crew
|
|
8
|
+
Project-URL: Bug Reports, https://github.com/super-rick/agent-crew/issues
|
|
9
|
+
Project-URL: Source, https://github.com/super-rick/agent-crew
|
|
10
|
+
Keywords: ai,mcn,marketing,agent,automation,content-marketing,multi-agent
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: openai>=1.0.0
|
|
23
|
+
Requires-Dist: httpx>=0.27.0
|
|
24
|
+
Requires-Dist: click>=8.1.0
|
|
25
|
+
Requires-Dist: pyyaml>=6.0
|
|
26
|
+
Requires-Dist: rich>=13.0.0
|
|
27
|
+
Requires-Dist: chromadb>=0.5.0
|
|
28
|
+
Requires-Dist: schedule>=1.2.0
|
|
29
|
+
Requires-Dist: duckduckgo-search>=6.0.0
|
|
30
|
+
Requires-Dist: streamlit>=1.28.0
|
|
31
|
+
Requires-Dist: pandas>=2.0.0
|
|
32
|
+
Requires-Dist: plotly>=5.0.0
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
# AgentCrew 🤖
|
|
36
|
+
|
|
37
|
+
<div align="center">
|
|
38
|
+
|
|
39
|
+
**你的 AI 营销团队,24 小时在线工作,不领工资。**
|
|
40
|
+
|
|
41
|
+
[]()
|
|
42
|
+
[]()
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 什么是 AgentCrew?
|
|
49
|
+
|
|
50
|
+
AgentCrew 是一个开源的多 Agent 内容营销自动化工具。它由一组 AI"员工"组成,自动完成从内容生成到跨平台分发的全流程。
|
|
51
|
+
|
|
52
|
+
- **Writer Agent** — 文案员工:生成技术文章、帖子、Thread
|
|
53
|
+
- **Publisher Agent** — 运营员工:发布到掘金、知乎、X/Twitter
|
|
54
|
+
- **Analyst Agent** — 数据分析员工:追踪效果、优化策略(v2)
|
|
55
|
+
|
|
56
|
+
## 核心特性
|
|
57
|
+
|
|
58
|
+
- 🧠 **多 Agent 架构** — 每个"员工"独立部署,可插拔
|
|
59
|
+
- 🔧 **Skills + Tools 系统** — 原子化操作 + 高级能力编排
|
|
60
|
+
- 📚 **RAG 知识库** — 基于历史内容和竞品情报的增强生成
|
|
61
|
+
- 🎯 **跨平台发布** — 支持掘金、知乎、X/Twitter 等平台
|
|
62
|
+
- ⏰ **智能调度** — 带随机抖动的定时发布,避免平台检测
|
|
63
|
+
- 🔮 **MCP 预留** — 架构预留 MCP 协议接口(v2 路线图)
|
|
64
|
+
- 📊 **Dashboard** — Web 面板查看发布数据和 Agent 状态(v0.3)
|
|
65
|
+
- 🔁 **自推广 Meta 闭环** — 项目自己推广自己
|
|
66
|
+
|
|
67
|
+
## 快速开始
|
|
68
|
+
|
|
69
|
+
### 安装
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# 1. 克隆项目
|
|
73
|
+
git clone https://github.com/super-rick/agent-crew.git
|
|
74
|
+
cd agent-crew
|
|
75
|
+
|
|
76
|
+
# 2. 安装依赖
|
|
77
|
+
pip install -r requirements.txt
|
|
78
|
+
|
|
79
|
+
# 3. 配置环境变量
|
|
80
|
+
cp .env.example .env
|
|
81
|
+
# 编辑 .env,填入你的 API Key
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### 配置
|
|
85
|
+
|
|
86
|
+
编辑 `config.yaml`,填入各平台的认证信息。
|
|
87
|
+
|
|
88
|
+
```yaml
|
|
89
|
+
# config.yaml 核心配置
|
|
90
|
+
llm:
|
|
91
|
+
api_key: ${DEEPSEEK_API_KEY} # 从 .env 读取
|
|
92
|
+
model: deepseek-chat
|
|
93
|
+
|
|
94
|
+
platforms:
|
|
95
|
+
juejin:
|
|
96
|
+
cookie: ${JUEJIN_COOKIE} # 浏览器登录后导出 Cookie
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 使用
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# 生成一篇技术文章
|
|
103
|
+
agent-crew write generate --topic "Python异步编程" --style technical
|
|
104
|
+
|
|
105
|
+
# 发布到掘金
|
|
106
|
+
agent-crew publish post --file article.md --platform juejin
|
|
107
|
+
|
|
108
|
+
# 启动定时发布(每6小时)
|
|
109
|
+
agent-crew schedule start --topic-file topics.txt --platform juejin --interval 6
|
|
110
|
+
|
|
111
|
+
# 管理 RAG 知识库
|
|
112
|
+
agent-crew rag ingest --file article.md --source "my_blog"
|
|
113
|
+
agent-crew rag search --query "AI Agent 架构"
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## 架构概览
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
┌─────────────────────────────────────────────────────┐
|
|
120
|
+
│ Orchestrator │
|
|
121
|
+
│ 任务分派 / 调度引擎 / 配置管理 │
|
|
122
|
+
└──┬──────────┬──────────────┬────────────────────────┘
|
|
123
|
+
│ │ │
|
|
124
|
+
┌──▼──────┐ ┌▼────────┐ ┌──▼────────┐
|
|
125
|
+
│ Writer │ │Publisher│ │ Analyst │
|
|
126
|
+
│ Agent │ │Agent │ │ Agent │
|
|
127
|
+
│ │ │ │ │ │
|
|
128
|
+
│ Skills: │ │ Skills: │ │ Skills: │
|
|
129
|
+
│ 追热点 │ │ 定时分发 │ │ 效果分析 │
|
|
130
|
+
│ 技术文章 │ │ 多平台 │ │ 趋势报告 │
|
|
131
|
+
│ Thread │ │ 批量 │ │ │
|
|
132
|
+
│ │ │ │ │ │
|
|
133
|
+
│ Tools: │ │ Tools: │ │ Tools: │
|
|
134
|
+
│ search │ │ twitter │ │ analytics │
|
|
135
|
+
│ rag │ │ juejin │ │ compare │
|
|
136
|
+
│ compose │ │ zhihu │ │ report │
|
|
137
|
+
└─────────┘ └─────────┘ └───────────┘
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## 技术栈
|
|
141
|
+
|
|
142
|
+
| 组件 | 技术 |
|
|
143
|
+
|------|------|
|
|
144
|
+
| 语言 | Python 3.10+ |
|
|
145
|
+
| CLI | Click + Rich |
|
|
146
|
+
| LLM | DeepSeek API (OpenAI 兼容) |
|
|
147
|
+
| 向量库 | ChromaDB |
|
|
148
|
+
| 自动化 | Playwright |
|
|
149
|
+
| Dashboard | Streamlit + Plotly (v0.3) |
|
|
150
|
+
|
|
151
|
+
## 开发路线图
|
|
152
|
+
|
|
153
|
+
- **v0.1** ✅ Writer Agent + Publisher Agent + CLI + 掘金/知乎
|
|
154
|
+
- **v0.2** 📝 RAG 深度集成 + X/Twitter + 内容策略引擎
|
|
155
|
+
- **v0.3** 📊 Streamlit Dashboard + Analyst Agent
|
|
156
|
+
- **v1.0** 🎯 MCP 协议 + Skill Store + 社区插件
|
|
157
|
+
|
|
158
|
+
## License
|
|
159
|
+
|
|
160
|
+
MIT
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# AgentCrew 🤖
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
**你的 AI 营销团队,24 小时在线工作,不领工资。**
|
|
6
|
+
|
|
7
|
+
[]()
|
|
8
|
+
[]()
|
|
9
|
+
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 什么是 AgentCrew?
|
|
15
|
+
|
|
16
|
+
AgentCrew 是一个开源的多 Agent 内容营销自动化工具。它由一组 AI"员工"组成,自动完成从内容生成到跨平台分发的全流程。
|
|
17
|
+
|
|
18
|
+
- **Writer Agent** — 文案员工:生成技术文章、帖子、Thread
|
|
19
|
+
- **Publisher Agent** — 运营员工:发布到掘金、知乎、X/Twitter
|
|
20
|
+
- **Analyst Agent** — 数据分析员工:追踪效果、优化策略(v2)
|
|
21
|
+
|
|
22
|
+
## 核心特性
|
|
23
|
+
|
|
24
|
+
- 🧠 **多 Agent 架构** — 每个"员工"独立部署,可插拔
|
|
25
|
+
- 🔧 **Skills + Tools 系统** — 原子化操作 + 高级能力编排
|
|
26
|
+
- 📚 **RAG 知识库** — 基于历史内容和竞品情报的增强生成
|
|
27
|
+
- 🎯 **跨平台发布** — 支持掘金、知乎、X/Twitter 等平台
|
|
28
|
+
- ⏰ **智能调度** — 带随机抖动的定时发布,避免平台检测
|
|
29
|
+
- 🔮 **MCP 预留** — 架构预留 MCP 协议接口(v2 路线图)
|
|
30
|
+
- 📊 **Dashboard** — Web 面板查看发布数据和 Agent 状态(v0.3)
|
|
31
|
+
- 🔁 **自推广 Meta 闭环** — 项目自己推广自己
|
|
32
|
+
|
|
33
|
+
## 快速开始
|
|
34
|
+
|
|
35
|
+
### 安装
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# 1. 克隆项目
|
|
39
|
+
git clone https://github.com/super-rick/agent-crew.git
|
|
40
|
+
cd agent-crew
|
|
41
|
+
|
|
42
|
+
# 2. 安装依赖
|
|
43
|
+
pip install -r requirements.txt
|
|
44
|
+
|
|
45
|
+
# 3. 配置环境变量
|
|
46
|
+
cp .env.example .env
|
|
47
|
+
# 编辑 .env,填入你的 API Key
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 配置
|
|
51
|
+
|
|
52
|
+
编辑 `config.yaml`,填入各平台的认证信息。
|
|
53
|
+
|
|
54
|
+
```yaml
|
|
55
|
+
# config.yaml 核心配置
|
|
56
|
+
llm:
|
|
57
|
+
api_key: ${DEEPSEEK_API_KEY} # 从 .env 读取
|
|
58
|
+
model: deepseek-chat
|
|
59
|
+
|
|
60
|
+
platforms:
|
|
61
|
+
juejin:
|
|
62
|
+
cookie: ${JUEJIN_COOKIE} # 浏览器登录后导出 Cookie
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 使用
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# 生成一篇技术文章
|
|
69
|
+
agent-crew write generate --topic "Python异步编程" --style technical
|
|
70
|
+
|
|
71
|
+
# 发布到掘金
|
|
72
|
+
agent-crew publish post --file article.md --platform juejin
|
|
73
|
+
|
|
74
|
+
# 启动定时发布(每6小时)
|
|
75
|
+
agent-crew schedule start --topic-file topics.txt --platform juejin --interval 6
|
|
76
|
+
|
|
77
|
+
# 管理 RAG 知识库
|
|
78
|
+
agent-crew rag ingest --file article.md --source "my_blog"
|
|
79
|
+
agent-crew rag search --query "AI Agent 架构"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 架构概览
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
┌─────────────────────────────────────────────────────┐
|
|
86
|
+
│ Orchestrator │
|
|
87
|
+
│ 任务分派 / 调度引擎 / 配置管理 │
|
|
88
|
+
└──┬──────────┬──────────────┬────────────────────────┘
|
|
89
|
+
│ │ │
|
|
90
|
+
┌──▼──────┐ ┌▼────────┐ ┌──▼────────┐
|
|
91
|
+
│ Writer │ │Publisher│ │ Analyst │
|
|
92
|
+
│ Agent │ │Agent │ │ Agent │
|
|
93
|
+
│ │ │ │ │ │
|
|
94
|
+
│ Skills: │ │ Skills: │ │ Skills: │
|
|
95
|
+
│ 追热点 │ │ 定时分发 │ │ 效果分析 │
|
|
96
|
+
│ 技术文章 │ │ 多平台 │ │ 趋势报告 │
|
|
97
|
+
│ Thread │ │ 批量 │ │ │
|
|
98
|
+
│ │ │ │ │ │
|
|
99
|
+
│ Tools: │ │ Tools: │ │ Tools: │
|
|
100
|
+
│ search │ │ twitter │ │ analytics │
|
|
101
|
+
│ rag │ │ juejin │ │ compare │
|
|
102
|
+
│ compose │ │ zhihu │ │ report │
|
|
103
|
+
└─────────┘ └─────────┘ └───────────┘
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## 技术栈
|
|
107
|
+
|
|
108
|
+
| 组件 | 技术 |
|
|
109
|
+
|------|------|
|
|
110
|
+
| 语言 | Python 3.10+ |
|
|
111
|
+
| CLI | Click + Rich |
|
|
112
|
+
| LLM | DeepSeek API (OpenAI 兼容) |
|
|
113
|
+
| 向量库 | ChromaDB |
|
|
114
|
+
| 自动化 | Playwright |
|
|
115
|
+
| Dashboard | Streamlit + Plotly (v0.3) |
|
|
116
|
+
|
|
117
|
+
## 开发路线图
|
|
118
|
+
|
|
119
|
+
- **v0.1** ✅ Writer Agent + Publisher Agent + CLI + 掘金/知乎
|
|
120
|
+
- **v0.2** 📝 RAG 深度集成 + X/Twitter + 内容策略引擎
|
|
121
|
+
- **v0.3** 📊 Streamlit Dashboard + Analyst Agent
|
|
122
|
+
- **v1.0** 🎯 MCP 协议 + Skill Store + 社区插件
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
MIT
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentcrew-mcn
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AI MCN 自动推广工具 — 你的AI营销团队,24小时在线工作,不领工资。
|
|
5
|
+
Author: super-rick
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/super-rick/agent-crew
|
|
8
|
+
Project-URL: Bug Reports, https://github.com/super-rick/agent-crew/issues
|
|
9
|
+
Project-URL: Source, https://github.com/super-rick/agent-crew
|
|
10
|
+
Keywords: ai,mcn,marketing,agent,automation,content-marketing,multi-agent
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: openai>=1.0.0
|
|
23
|
+
Requires-Dist: httpx>=0.27.0
|
|
24
|
+
Requires-Dist: click>=8.1.0
|
|
25
|
+
Requires-Dist: pyyaml>=6.0
|
|
26
|
+
Requires-Dist: rich>=13.0.0
|
|
27
|
+
Requires-Dist: chromadb>=0.5.0
|
|
28
|
+
Requires-Dist: schedule>=1.2.0
|
|
29
|
+
Requires-Dist: duckduckgo-search>=6.0.0
|
|
30
|
+
Requires-Dist: streamlit>=1.28.0
|
|
31
|
+
Requires-Dist: pandas>=2.0.0
|
|
32
|
+
Requires-Dist: plotly>=5.0.0
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
# AgentCrew 🤖
|
|
36
|
+
|
|
37
|
+
<div align="center">
|
|
38
|
+
|
|
39
|
+
**你的 AI 营销团队,24 小时在线工作,不领工资。**
|
|
40
|
+
|
|
41
|
+
[]()
|
|
42
|
+
[]()
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 什么是 AgentCrew?
|
|
49
|
+
|
|
50
|
+
AgentCrew 是一个开源的多 Agent 内容营销自动化工具。它由一组 AI"员工"组成,自动完成从内容生成到跨平台分发的全流程。
|
|
51
|
+
|
|
52
|
+
- **Writer Agent** — 文案员工:生成技术文章、帖子、Thread
|
|
53
|
+
- **Publisher Agent** — 运营员工:发布到掘金、知乎、X/Twitter
|
|
54
|
+
- **Analyst Agent** — 数据分析员工:追踪效果、优化策略(v2)
|
|
55
|
+
|
|
56
|
+
## 核心特性
|
|
57
|
+
|
|
58
|
+
- 🧠 **多 Agent 架构** — 每个"员工"独立部署,可插拔
|
|
59
|
+
- 🔧 **Skills + Tools 系统** — 原子化操作 + 高级能力编排
|
|
60
|
+
- 📚 **RAG 知识库** — 基于历史内容和竞品情报的增强生成
|
|
61
|
+
- 🎯 **跨平台发布** — 支持掘金、知乎、X/Twitter 等平台
|
|
62
|
+
- ⏰ **智能调度** — 带随机抖动的定时发布,避免平台检测
|
|
63
|
+
- 🔮 **MCP 预留** — 架构预留 MCP 协议接口(v2 路线图)
|
|
64
|
+
- 📊 **Dashboard** — Web 面板查看发布数据和 Agent 状态(v0.3)
|
|
65
|
+
- 🔁 **自推广 Meta 闭环** — 项目自己推广自己
|
|
66
|
+
|
|
67
|
+
## 快速开始
|
|
68
|
+
|
|
69
|
+
### 安装
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# 1. 克隆项目
|
|
73
|
+
git clone https://github.com/super-rick/agent-crew.git
|
|
74
|
+
cd agent-crew
|
|
75
|
+
|
|
76
|
+
# 2. 安装依赖
|
|
77
|
+
pip install -r requirements.txt
|
|
78
|
+
|
|
79
|
+
# 3. 配置环境变量
|
|
80
|
+
cp .env.example .env
|
|
81
|
+
# 编辑 .env,填入你的 API Key
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### 配置
|
|
85
|
+
|
|
86
|
+
编辑 `config.yaml`,填入各平台的认证信息。
|
|
87
|
+
|
|
88
|
+
```yaml
|
|
89
|
+
# config.yaml 核心配置
|
|
90
|
+
llm:
|
|
91
|
+
api_key: ${DEEPSEEK_API_KEY} # 从 .env 读取
|
|
92
|
+
model: deepseek-chat
|
|
93
|
+
|
|
94
|
+
platforms:
|
|
95
|
+
juejin:
|
|
96
|
+
cookie: ${JUEJIN_COOKIE} # 浏览器登录后导出 Cookie
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 使用
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# 生成一篇技术文章
|
|
103
|
+
agent-crew write generate --topic "Python异步编程" --style technical
|
|
104
|
+
|
|
105
|
+
# 发布到掘金
|
|
106
|
+
agent-crew publish post --file article.md --platform juejin
|
|
107
|
+
|
|
108
|
+
# 启动定时发布(每6小时)
|
|
109
|
+
agent-crew schedule start --topic-file topics.txt --platform juejin --interval 6
|
|
110
|
+
|
|
111
|
+
# 管理 RAG 知识库
|
|
112
|
+
agent-crew rag ingest --file article.md --source "my_blog"
|
|
113
|
+
agent-crew rag search --query "AI Agent 架构"
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## 架构概览
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
┌─────────────────────────────────────────────────────┐
|
|
120
|
+
│ Orchestrator │
|
|
121
|
+
│ 任务分派 / 调度引擎 / 配置管理 │
|
|
122
|
+
└──┬──────────┬──────────────┬────────────────────────┘
|
|
123
|
+
│ │ │
|
|
124
|
+
┌──▼──────┐ ┌▼────────┐ ┌──▼────────┐
|
|
125
|
+
│ Writer │ │Publisher│ │ Analyst │
|
|
126
|
+
│ Agent │ │Agent │ │ Agent │
|
|
127
|
+
│ │ │ │ │ │
|
|
128
|
+
│ Skills: │ │ Skills: │ │ Skills: │
|
|
129
|
+
│ 追热点 │ │ 定时分发 │ │ 效果分析 │
|
|
130
|
+
│ 技术文章 │ │ 多平台 │ │ 趋势报告 │
|
|
131
|
+
│ Thread │ │ 批量 │ │ │
|
|
132
|
+
│ │ │ │ │ │
|
|
133
|
+
│ Tools: │ │ Tools: │ │ Tools: │
|
|
134
|
+
│ search │ │ twitter │ │ analytics │
|
|
135
|
+
│ rag │ │ juejin │ │ compare │
|
|
136
|
+
│ compose │ │ zhihu │ │ report │
|
|
137
|
+
└─────────┘ └─────────┘ └───────────┘
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## 技术栈
|
|
141
|
+
|
|
142
|
+
| 组件 | 技术 |
|
|
143
|
+
|------|------|
|
|
144
|
+
| 语言 | Python 3.10+ |
|
|
145
|
+
| CLI | Click + Rich |
|
|
146
|
+
| LLM | DeepSeek API (OpenAI 兼容) |
|
|
147
|
+
| 向量库 | ChromaDB |
|
|
148
|
+
| 自动化 | Playwright |
|
|
149
|
+
| Dashboard | Streamlit + Plotly (v0.3) |
|
|
150
|
+
|
|
151
|
+
## 开发路线图
|
|
152
|
+
|
|
153
|
+
- **v0.1** ✅ Writer Agent + Publisher Agent + CLI + 掘金/知乎
|
|
154
|
+
- **v0.2** 📝 RAG 深度集成 + X/Twitter + 内容策略引擎
|
|
155
|
+
- **v0.3** 📊 Streamlit Dashboard + Analyst Agent
|
|
156
|
+
- **v1.0** 🎯 MCP 协议 + Skill Store + 社区插件
|
|
157
|
+
|
|
158
|
+
## License
|
|
159
|
+
|
|
160
|
+
MIT
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
agentcrew_mcn.egg-info/PKG-INFO
|
|
5
|
+
agentcrew_mcn.egg-info/SOURCES.txt
|
|
6
|
+
agentcrew_mcn.egg-info/dependency_links.txt
|
|
7
|
+
agentcrew_mcn.egg-info/entry_points.txt
|
|
8
|
+
agentcrew_mcn.egg-info/requires.txt
|
|
9
|
+
agentcrew_mcn.egg-info/top_level.txt
|
|
10
|
+
agents/__init__.py
|
|
11
|
+
agents/analyst.py
|
|
12
|
+
agents/base.py
|
|
13
|
+
agents/publisher.py
|
|
14
|
+
agents/skills.py
|
|
15
|
+
agents/tools.py
|
|
16
|
+
agents/writer.py
|
|
17
|
+
cli/__init__.py
|
|
18
|
+
cli/analyst.py
|
|
19
|
+
cli/main.py
|
|
20
|
+
cli/publish.py
|
|
21
|
+
cli/rag_cmd.py
|
|
22
|
+
cli/schedule.py
|
|
23
|
+
cli/write.py
|
|
24
|
+
dashboard/__init__.py
|
|
25
|
+
dashboard/app.py
|
|
26
|
+
dashboard/components.py
|
|
27
|
+
dashboard/data_loader.py
|
|
28
|
+
dashboard/pages/__init__.py
|
|
29
|
+
dashboard/pages/analytics.py
|
|
30
|
+
dashboard/pages/publishing.py
|
|
31
|
+
dashboard/pages/system.py
|
|
32
|
+
llm/__init__.py
|
|
33
|
+
llm/client.py
|
|
34
|
+
orchestrator/__init__.py
|
|
35
|
+
orchestrator/manager.py
|
|
36
|
+
orchestrator/scheduler.py
|
|
37
|
+
platforms/__init__.py
|
|
38
|
+
platforms/base.py
|
|
39
|
+
platforms/juejin.py
|
|
40
|
+
platforms/zhihu.py
|
|
41
|
+
rag/__init__.py
|
|
42
|
+
rag/embedder.py
|
|
43
|
+
rag/knowledge_base.py
|
|
44
|
+
rag/retriever.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|