Files
XingHuo/AGENTS.md
T

37 lines
1.7 KiB
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.
# Agent
**无上下文时先读** [docs/memory/MEMORY.md](docs/memory/MEMORY.md) **§0 交接清单**(5 分钟了解仓库地图、bootstrap、禁止项、下一步)。
## 阅读顺序
| 顺序 | 文件 | 何时 |
| --- | --- | --- |
| 1 | `docs/memory/MEMORY.md` | 每次任务 |
| 2 | `docs/memory/TODO.md` | 取当前待办 |
| 3 | `docs/memory/REQUIREMENTS.md` | 对照场景 ID(F/C/A/D/R) |
| 4 | `docs/memory/FRAMEWORK.md` | 分层、选型、**实现状态表** |
| 5 | `docs/memory/FLOW.md` | 端到端链路 + §0 bootstrap |
| 6 | `docs/memory/ENVIRONMENT.md` | As-Is;Core 为模拟库 |
## 原文与深度文档
- 业务需求:`docs/需求拆解/`
- 表结构 SQL:`docs/项目框架设计/表设计/`
- 技术选型 / JWT:`docs/项目框架设计/技术选型和版本/`
- Core 模拟底座:`docs/项目框架设计/Core模拟底座/`
- 业务记忆分层:`docs/业务记忆管理/业务记忆管理手册.md`
## 代码入口
```text
app/main.py # FastAPI:路由挂载 + trace/audit 中间件 + lifespan(风控 4 API + /api/simulate + /api/chat 已挂载)
app/api/deps.py # 鉴权工厂(T-01 JWT:Bearer 优先,dev debug 头兜底)+ 归属断言
app/service/auth_service.py # Auth SDK:JWT 验签/吊销(T-01);签发 CLI scripts/dev/issue_dev_token.py
app/service/agent_service.py # LangGraph StateGraph 骨架 + DeepSeek(T-07)
app/config/settings.py # 双库 jinrong_agent + jinrong_core + risk_* 阈值 + JWT 配置
app/repository/core_ro.py # Core 只读(已实现)
scripts/core/reset.ps1 # 本地灌 Core 模拟库
```
技术选型硬阀门见 MEMORY 第 3、7 节。Cursor 以 `.cursor/rules/project-memory.mdc` 为准。