agent-Specialization/skills/agent-build-standard/references/repo-guidelines.md
JOJO 757718c492 feat: add user turn tool protection to shallow compression
- Add shallow_compress_keep_user_turn_tools config (default: 3)
- Add is_auto_generated metadata to system messages (sub_agent/background_command)
- Fix sub_agent notification path to include auto_message marker
- Frontend: add input field in PersonalizationDrawer
- Backend: implement protection logic in _run_auto_shallow_compression
2026-04-12 18:48:08 +08:00

23 lines
760 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 项目规范(摘要)
## 结构与职责
- `main.py` 启动 CLI agent`web_server.py` 提供 Web UI
- `core/` 负责终端编排,尽量保持 I/O 轻量
- `modules/` 放可复用能力,优先扩展这里
- `utils/` 放 API 客户端与日志工具,优先复用
- `test/` 放集成测试脚本与辅助工具
## 代码风格
- Python 3.11+4 空格缩进snake_case
- 需要类型标注与简短双语 docstring
- 日志统一使用 `utils.logger.setup_logger`
## 前端注意
- `static/src/components/chat/monitor` 为虚拟显示器动画层
- 新场景需对齐 `MonitorDirector` 与 monitor store
## 测试建议
- 优先 `pytest`,文件名为 `test/test_<feature>.py`
- 涉及网络请使用 `test/api_interceptor_server.py` 代理