can4hou6joeng4 / boss-agent-cli
git clone https://github.com/can4hou6joeng4/boss-agent-cli.git
v3.0.0 · 21d ago
🤖 Local-assist BOSS Zhipin CLI for AI agents — search, welfare filtering, shortlist, JSON-envelope output; low-risk & compliant by default.
+5
stars, 24h · #6,027
+~30
stars, 7 days · #6,029
+~130
stars, 30 days · #5,652
2.1k
★ total · +1% this week
177
forks · 3 open issues
Star history (as recorded here)
LanguagePython
LicenseMIT
Created2026-03-20 (7mo ago)
Last pushtoday
Watchers2
OwnerUser
GitHub topics
agent-skillagent-toolsai-agentboss-zhipinclaudeclicommand-linejob-huntingjob-searchmcpmodel-context-protocolpythonrecruiter-workflowrecruitmentresumezhipin
Links
- GitHub: github.com/can4hou6joeng4/boss-agent-cli
- Homepage: https://can4hou6joeng4.github.io/boss-agent-cli/
- Releases · Issues · Hacker News mentions
README excerpt
# boss-agent-cli
*🤖 面向真人与 AI Agent 的招聘平台 CLI —— 纯终端向导 · 福利筛选 · 双角色工作流 · JSON 信封。*
快速上手 · Agent 集成 · 命令 · 排障 · 路线图 · **中文** | English
**观看 48 秒发布会动画** · 交互版 · 终端交互演示 · 福利筛选 · 双角色工作流 · Agent 接入
## 🧭 为什么
boss-agent-cli 把职位发现、福利筛选、本地简历与 AI、投递沟通、招聘者候选人处理和可恢复采集统一到一个 CLI。真人直接运行 `boss` 进入纯终端向导;Agent 使用 JSON、schema、MCP 或 Python API 调用同一套 workflow 与状态。`boss schema` 始终是能力真源。
## ⚠️ 运行边界
历史配置 `operating_mode=assisted|research` 继续兼容,但两种模式都可调用全部已实现能力,不再产生模式级 `COMPLIANCE_BLOCKED`。平台尚未实现的能力仍准确返回 `NOT_SUPPORTED`;认证失效、账号风险和网络错误保留结构化错误与恢复动作。长流程仍受 timeout、retry、预算、checkpoint 和 stop 控制。
## ✨ 核心能力
- **职位发现**:关键词搜索 + 8 维筛选,按编号回看缓存结果 —— `search` `show` `detail`
- **福利筛选(核心差异化)**:`--welfare "双休,五险一金"` 自动翻页补抓、按 AND 逻辑做**真实匹配**,并可 `--sort score` 按本地匹配分排序 —— `search --welfare`
- **HR 活跃度筛选**:`--active 3d` 只留最近活跃的 HR,避免把投递次数浪费在长期不上线的岗位上;`online` 只看列表、请求量与普通搜索相同,其余档位可能要逐个查职位详情,更慢、风控风险更高,低风险场景建议用 `--active online` —— `search --active`
- **纯终端向导**:直接运行 `boss` 或 `boss wizard`,选择角色、平台和目标;同一 workflow 也可用 `--input-json`、run ID 或 MCP 推进和恢复
- **本地候选池与统计**:查看详情后本地保存、读取带有效状态的网页职位收藏并仅同步有效项 / 用标签和备注复盘候选岗位、离线对比、查看漏斗统计 —— `shortlist` `stats` `watch` `preset` `favorites`
- **AI 求职增强 + 本地模型**:JD 分析、简历润色、定向优化、候选池匹配、模拟面试、沟通指导;本地模型权重外置,支持 Ollama/vLLM OpenAI 兼容接口 —— `ai analyze-jd` `ai local configure` `ai local smoke`
- **Schema 驱动 + JSON 信封**:stdout 只输出 `{ok, data, pagination, error, hints}` 信封,`boss schema` 是能力真源,适合 CLI 编排 / Shell Agent / MCP / Python SDK
- **招聘者完整链路**:候选人搜索、推荐牛人、首次招呼、附件简历接收与下载、简历、聊天/最近消息、回复和职位管理 —— `hr candidates/recommendations/greet/applications/resume/chat/last-messages/reply/request-resume/accept-resume/download-resume/jobs`
- **平台抽象**:`Platform` / `RecruiterPlatform` 双注册表 + `--platform` 全局选项;当前注册平台为 `zhipin`(BOSS 直聘)
## 🚀 快速开始
[code]
所有命令输出结构化 JSON(`ok` 判断成败,默认 `exit 0/1`;可选 `--exit-codes sysexits` 返回按错误类别区分的语义化退出码)。完整上手见 快速上手。
## 🎭 角色与平台
| 平台 | 求职者 | 招聘者 | 状态 |
|------|:--:|:--:|------|
| BOSS 直聘 (`zhipin`) | ✅ | ✅ | 默认 |
[code]
`boss hr ...` 与招聘者侧 `agent` 自动化当前均只支持 `zhipin-recruiter`。设计细节见 docs/platform-abstraction.md。
## 🤖 Agent 集成
推荐先读:Agent Quickstart · Capability Matrix · Host Examples
[code]
不想在本机配 Python 工具链,可用仓库自带的容器:`BOSS_UID=$(id -u) BOSS_GID=$(id -g) docker compose run --rm boss-mcp`。镜像刻意不含浏览器内核 —— 先在宿主机 `boss login`,再把 `~/.boss-agent` 挂进去,详见 Docker 接入。
OpenCode 源码项目可直接使用仓库示例:
[code]
portable / 全局安装后,在任意 OpenCode 项目里使用 `examples/opencode.json`,它会启动 `boss-mcp --data-dir ./.boss-agent`,让 review、pending、日志按项目隔离。
[code]
[code]
## 📚 命令
`boss schema` 暴露 39 个顶层命令 + 13 个一级招聘者子命令,按工作流分组:
- **认证**:`login` · `logout` · `status` · `doctor`
- **职位发现**:`search` · `detail` · `show` · `cities` · `history`
- **本地整理**:`watch` · `preset` · `shortlist` · `stats` · `favorites`
- **可恢复采集**:`crawl configure/run/start/status/results/resume/stop/shortlist`
- **简历 / AI**:`resume` · `me` · `ai analyze-jd` · `ai polish` · `ai optimize` · `ai fit` · `ai suggest-keywords` · `ai resume-optimize` · `ai cover-letter` · `ai interview-prep` · `ai chat-coach` · `ai local`
- **系统 / w