这份文档只保留最短可验证路径。完整能力说明见 README.md,Agent 接入见 agent-quickstart.md。
uv tool install boss-agent-cli
patchright install chromium源码开发环境:
git clone https://github.com/can4hou6joeng4/boss-agent-cli.git
cd boss-agent-cli
uv sync --all-extras
uv run patchright install chromiumboss doctor
boss status
boss schema --format native期望结果:
boss doctor返回ok:true或带有明确recovery_action的ok:false。boss status能说明当前登录态是否可用。boss schema --format native返回 JSON 信封,并列出当前 CLI 能力。
登录后先执行只读命令,不要从写操作开始排障。
boss search "Golang" --city 广州 --welfare "双休"
boss detail <security_id>security_id 来自 search 返回的 JSON 数据。提交 Issue 时必须脱敏,不要粘贴真实 security_id、Cookie、Token、手机号、微信号、姓名或公司内部信息。
所有 Agent 可读输出都应是单个 JSON 信封:
{
"ok": true,
"schema_version": "1.0",
"command": "schema",
"data": {},
"pagination": null,
"error": null,
"hints": null
}失败时:
{
"ok": false,
"schema_version": "1.0",
"command": "status",
"data": null,
"pagination": null,
"error": {
"code": "AUTH_REQUIRED",
"message": "未登录",
"recoverable": true,
"recovery_action": "boss login"
},
"hints": null
}修改代码前后使用同一组命令验证:
uv run pytest tests/ -q
uv run ruff check src/ tests/
uv run mypy src/boss_agent_cli
uv run boss --help
uv run boss schema --format native如果只改文档,至少运行:
uv run pytest tests/test_agent_docs.py tests/test_open_source_docs.py -q
git diff --check提交 Bug 时请提供:
boss --version- Python 版本
- 操作系统
- 平台:
zhipin或zhilian - 角色:
candidate或recruiter - 完整 JSON 信封,已脱敏
boss doctor输出,已脱敏
平台接口变化、登录失效、风控、Cookie/CDP、浏览器自动化问题,先阅读 platform-risk.md。