feat: add DeepSeek agent layer with job filter and chat automation#333
feat: add DeepSeek agent layer with job filter and chat automation#333Richard13310 wants to merge 1 commit into
Conversation
Adds agent/ orchestrator, tools/ filter layer, agent CLI commands, local docs, run.py entry, and tests. Extends AIService for OpenAI-compatible tool calling. Co-authored-by: Cursor <cursoragent@cursor.com>
can4hou6joeng4
left a comment
There was a problem hiding this comment.
Thanks for the contribution. I cannot approve this PR in its current shape because it crosses several project boundaries that are deliberately strict for this repository.
Required revision before this can move forward:
-
Scope this PR down to low-risk, read-only local assistance.
- Remove or keep fully blocked:
send_message,exchange_contact,greet_recruiter,apply_job,mark_contact, bulk chat/contact processing, and any path that reads or writes recruiter/candidate chat state as an automated workflow. - The project default is Low-Risk Assistance Mode: local assistance, read-only first, user-triggered, no automatic outreach, no bulk contact, and no risk-control bypass.
- Sensitive actions must end in Official Platform Handoff, not CLI/browser automation.
- Remove or keep fully blocked:
-
Remove risk-control / high-risk automation language and implementation.
- The added docs/code mention CDP/browser behavior for high-risk actions and wording such as making operations look more human / avoiding platform risk controls.
- That is not an acceptable direction here. Do not add CDP, patchright, or browser-channel retries for actions that are compliance-blocked.
-
Keep only a narrow, reviewable slice.
AIService.chat_completionmay be acceptable if it is independently useful, OpenAI-compatible, typed, tested, and not coupled to chat/contact automation.- Local-only AI analysis helpers may be acceptable if they operate on user-provided/local data and are wired through the existing CLI/schema patterns.
- Please split unrelated large docs/framework files out unless they are necessary for that narrow slice.
-
Clean up repository integration.
- Remove
_COMMENTED.pysnapshot files. - Remove
requirements.txtandrun.pyunless there is a strong reason they cannot use the existingpyproject.tomlpackage entry point. - Any new CLI command must update
src/boss_agent_cli/commands/schema.pyand preserve the JSON envelope contract: stdout JSON only, stderr logs/progress only,ok/exit-code consistency, and structured errors.
- Remove
-
Fix commit metadata and PR template evidence.
- The commit includes
Co-authored-by: Cursor <cursoragent@cursor.com>, which conflicts with this repo's commit-message/source-identifier rules. - Please rewrite the commit message/history for this branch so it follows
type: 中文描述and has no tool/model/agent attribution lines. - Complete the PR template checkboxes and provide a real test plan.
- The commit includes
-
Restore full verification.
- The current check rollup only shows GitGuardian. Before review can continue, this PR needs the normal required checks visible and passing: CI, Docs, CodeQL, Python test matrix, lint, typecheck, and P0 quality baseline.
A path that is likely reviewable: a much smaller PR that only adds a tested OpenAI-compatible tool-calling helper and/or local read-only job analysis, with no chat/contact write operations, no bulk workflow, no platform-risk-control language, and complete schema/docs/tests for any exposed CLI behavior.
Adds agent/ orchestrator, tools/ filter layer, agent CLI commands, local docs, run.py entry, and tests. Extends AIService for OpenAI-compatible tool calling.
关联 Issue / Related Issue
Closes #
变更说明 / Summary
变更类型 / Type
Breaking Change
截图 / Screenshot
测试 / Test Plan
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返回合法 JSON 信封文档与契约 / Docs & Contracts
src/boss_agent_cli/commands/schema.pyREADME.md和docs/capability-matrix.mdmcp-server/server.py和mcp-server/README.mdschema.py的error_codesCHANGELOG.md的[Unreleased]段落安全与规范 / Safety & Convention
type: 中文描述Co-authored-by尾注或 AI 署名行docs/platform-risk.mddocs/maintainer/release-checklist.md